Who want help this problem error " The expiry date is in the past please set it in the Future"?
I think error in "webIntFramework" plugin in file webintframework/lib/wi_shared.php in this code
function wi_check_date_not_past($new_date){
$today = date('Y-m-d');
if($new_date >= $today){
return true;
}
else{
return false;
}
}
function wi_check_if_today($new_date){
$today = date('Y-m-d');
echo $today;
if($new_date == $today){
return true;
}
else{
return false;
}
}
function wi_check_date_format($str){
if(substr_count($str, "-")==2){
list ($y, $m, $d) = explode('-', $str);
if(!is_numeric($y) || !is_numeric($m) || !is_numeric($d)){
return false;
}
return checkdate($m, $d, $y);
}
else{
return false;
}
}
what do you think?
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.