$sess = new session(); $sess->UpdateProEndingDate('freelancer78712'); exit; $uid = 78706; /* $data = payed::getProfiDaysFromPro($uid); print_r($data); exit; */ /* payed::freezePro($uid, '2014-10-11 00:00:00', '2014-10-18 00:00:00'); exit; */ $payed = new payed(); $data = $payed->ProLastById($uid, array(164)); print_r($data); exit; $is_pro = $payed->checkProByUid($uid); assert($is_pro == true); //$ok = $payed->freezeProDeactivate($uid); //assert($ok == true); exit; $last_freeze = payed::getLastFreeze($uid); /* if($last_freeze) { $from_time = strtotime($last_freeze['from_time_date']); $to_time = strtotime($last_freeze['to_time_date']); if ($from_time <= time() && strtotime($last_freeze['to_time']) > time()) {