erorr in Auctions bidding plugin bundle

Last updated by r00t
  • Who want help this problem error " The expiry date is in the past please set it in the Future"?

  • r00t
    r00t an hour ago

    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?