/** * Returns remaining days to trial expiration or FALSE * * @return bool|int */ function calc_days_to_expire() { $trial_days = FALSE; if (Session::is_pro()) { $days_to_expire = Session::trial_days_to_expire(); if ($days_to_expire <= 30) { $trial_days = intval($days_to_expire) <= 0 ? 0 : intval($days_to_expire); } } return $trial_days; }
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, * MA 02110-1301 USA * * * On Debian GNU/Linux systems, the complete text of the GNU General * Public License can be found in `/usr/share/common-licenses/GPL-2'. * * Otherwise you can read it here: http://www.gnu.org/licenses/gpl-2.0.txt * */ require_once 'av_init.php'; Session::useractive("../session/login.php"); //Support contact $v = Session::is_pro(); $s_c = NULL; $t_d = Session::trial_days_to_expire(); $license = Session::get_system_license(); if ($v) { if ($license !== FALSE) { $s_email = '*****@*****.**'; if ($t_d > 31) { $s_email = '*****@*****.**'; } $s_c = md5($s_email); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title><?php
function calc_days_to_expire() { $trial_days = Session::trial_days_to_expire(); if (!Session::is_pro()) { return FALSE; } if ($trial_days <= 30) { $trial_days = intval($trial_days) <= 0 ? 0 : intval($trial_days); return $trial_days; } return FALSE; }