Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/esolutions.exportexcel/install/ |
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/modules/esolutions.exportexcel/install/demo.php |
<? IncludeModuleLangFile(__FILE__); function esolutions_exportexcel_demo_expired() { $DemoMode = CModule::IncludeModuleEx("esolutions.exportexcel"); if ($DemoMode==MODULE_DEMO) { $now=time(); if (defined("esolutions_exportexcel_OLDSITEEXPIREDATE")) { if ($now>=esolutions_exportexcel_OLDSITEEXPIREDATE) { return true; } } else{ return true; } } elseif ($DemoMode==MODULE_DEMO_EXPIRED) { return true; } return false; } function esolutions_exportexcel_show_demo() { $DemoMode = CModule::IncludeModuleEx("esolutions.exportexcel"); if ($DemoMode==MODULE_DEMO) { $now=time(); if (defined("esolutions_exportexcel_OLDSITEEXPIREDATE")) { if ($now<esolutions_exportexcel_OLDSITEEXPIREDATE) { print BeginNote(); $expire_arr = getdate(esolutions_exportexcel_OLDSITEEXPIREDATE); $expire_date = gmmktime($expire_arr["hours"],$expire_arr["minutes"],$expire_arr["seconds"],$expire_arr["mon"],$expire_arr["mday"],$expire_arr["year"]); $now_arr = getdate($now); $now_date = gmmktime($expire_arr["hours"],$expire_arr["minutes"],$expire_arr["seconds"],$now_arr["mon"],$now_arr["mday"],$now_arr["year"]); $days = ($expire_date-$now_date)/86400; print GetMessage("KDA_EXPORTEXCEL_DEMO_MESSAGE_DAYS_REMAIN",array("#DAYS#"=>$days)); print EndNote(); } else { print BeginNote(); print GetMessage("KDA_EXPORTEXCEL_DEMO_MESSAGE_EXPIRED"); print EndNote(); } } else{ print BeginNote(); print GetMessage("KDA_EXPORTEXCEL_DEMO_MESSAGE_EXPIRED"); print EndNote(); } } elseif ($DemoMode==MODULE_DEMO_EXPIRED) { print BeginNote(); print GetMessage("KDA_EXPORTEXCEL_DEMO_MESSAGE_EXPIRED"); print EndNote(); } } ?>