/* Decoded by unphp.net */ ":"")."???????".(${${"GLOBALS"}["sbafwbxxeajh"]}?"":"").(${${"GLOBALS"}["isgwszjoug"]}?" ".PhpFox::getVersion():"");}public static function &getObject($sClass,$aParams=array()){$spvxxhhp="sHash";$eqtirb="sHash";${"GLOBALS"}["vcfqfqwz"]="aParams";${"GLOBALS"}["jclltbvu"]="sHash";${${"GLOBALS"}["dbxvyltspk"]}=md5(${${"GLOBALS"}["jxqwaivjjmp"]}.serialize(${${"GLOBALS"}["vcfqfqwz"]}));$snouzvqql="sClass";if(isset(self::${${"GLOBALS"}["yjxikgvdfvp"]}[${$eqtirb}])){${"GLOBALS"}["qmdeake"]="sHash";return self::${${"GLOBALS"}["yjxikgvdfvp"]}[${${"GLOBALS"}["qmdeake"]}];}$cxwelkucjdd="_aObject";${"GLOBALS"}["cqxjtwbobpv"]="aParams";(PHPFOX_DEBUG?Phpfox_Debug::start("object"):false);${${"GLOBALS"}["jxqwaivjjmp"]}=str_replace(array(".","-"),"_",${${"GLOBALS"}["jxqwaivjjmp"]});if(!class_exists(${${"GLOBALS"}["jxqwaivjjmp"]})){Phpfox_Error::trigger("Unable to call class: ".${${"GLOBALS"}["jxqwaivjjmp"]},E_USER_ERROR);}$jzayjkcrodn="_aObject";if(${${"GLOBALS"}["cqxjtwbobpv"]}){${"GLOBALS"}["tukuxyj"]="sClass";${"GLOBALS"}["dgdmagmh"]="sHash";self::${${"GLOBALS"}["yjxikgvdfvp"]}[${${"GLOBALS"}["dgdmagmh"]}]=new${${"GLOBALS"}["tukuxyj"]}(${${"GLOBALS"}["yqgenwkzawr"]});}else{${"GLOBALS"}["brqvsp"]="sHash";$ygvepcosx="_aObject";$hvppndpwqed="sClass";self::${$ygvepcosx}[${${"GLOBALS"}["brqvsp"]}]=new${$hvppndpwqed}();}(PHPFOX_DEBUG?Phpfox_Debug::end("object",array("name"=>${$snouzvqql})):false);if(method_exists(self::${$jzayjkcrodn}[${${"GLOBALS"}["jclltbvu"]}],"getInstance")){${"GLOBALS"}["ogxcth"]="sHash";return self::${${"GLOBALS"}["yjxikgvdfvp"]}[${${"GLOBALS"}["ogxcth"]}]->getInstance();}return self::${$cxwelkucjdd}[${$spvxxhhp}];}public static function getParam($sVar){return Phpfox::getLib("setting")->getParam(${${"GLOBALS"}["jlfbymk"]});}public static function getLibClass($sClass){$lldoqsl="_aLibs";${"GLOBALS"}["ymonkyuxyhcv"]="sFile";if(isset(self::${${"GLOBALS"}["xdjldeeh"]}[${${"GLOBALS"}["jxqwaivjjmp"]}])){return true;}${"GLOBALS"}["vqgzfochasc"]="sFile";self::${$lldoqsl}[${${"GLOBALS"}["jxqwaivjjmp"]}]=md5(${${"GLOBALS"}["jxqwaivjjmp"]});${${"GLOBALS"}["jxqwaivjjmp"]}=str_replace(".",PHPFOX_DS,${${"GLOBALS"}["jxqwaivjjmp"]});${${"GLOBALS"}["ymonkyuxyhcv"]}=PHPFOX_DIR_LIB.${${"GLOBALS"}["jxqwaivjjmp"]}.".class.php";$nwghfflfxxt="sClass";if(file_exists(${${"GLOBALS"}["vqgzfochasc"]})){$qrjmmmnfiq="sFile";require(${$qrjmmmnfiq});return true;}${${"GLOBALS"}["ztqplvxux"]}=explode(PHPFOX_DS,${${"GLOBALS"}["jxqwaivjjmp"]});if(isset(${${"GLOBALS"}["ztqplvxux"]}[1])){$jfmvlygoo="sClass";${${"GLOBALS"}["iukvbcwsbqw"]}=PHPFOX_DIR_LIB.${$jfmvlygoo}.PHPFOX_DS.${${"GLOBALS"}["ztqplvxux"]}[1].".class.php";$mdtdhxs="sSubClassFile";if(file_exists(${$mdtdhxs})){${"GLOBALS"}["dtidocd"]="sSubClassFile";require(${${"GLOBALS"}["dtidocd"]});return true;}}Phpfox_Error::trigger("Unable to load class: ".${$nwghfflfxxt},E_USER_ERROR);return false;}public static function &getLib($sClass,$aParams=array()){$vqirxijeo="sClass";${"GLOBALS"}["oclpto"]="sClass";${"GLOBALS"}["fgevkdwgbk"]="_aObject";${"GLOBALS"}["hrmaknmat"]="_aObject";${"GLOBALS"}["ddvvhml"]="aParams";$byuivksebkl="sClass";${"GLOBALS"}["cpcdtlme"]="sHash";$fcqbthc="sHash";if((substr(${${"GLOBALS"}["oclpto"]},0,7)!="phpfox.")||(${${"GLOBALS"}["jxqwaivjjmp"]}=="phpfox.api"||${$vqirxijeo}=="phpfox.process")){$jxpiaucv="sClass";$yxirshtfyzcq="sClass";${$jxpiaucv}="phpfox.".${$yxirshtfyzcq};}${${"GLOBALS"}["cpcdtlme"]}=md5(${$byuivksebkl}.serialize(${${"GLOBALS"}["ddvvhml"]}));if(isset(self::${${"GLOBALS"}["hrmaknmat"]}[${${"GLOBALS"}["dbxvyltspk"]}])){${"GLOBALS"}["inxwknlizqy"]="_aObject";return self::${${"GLOBALS"}["inxwknlizqy"]}[${${"GLOBALS"}["dbxvyltspk"]}];}${"GLOBALS"}["sqdjvpjpc"]="sClass";Phpfox::getLibClass(${${"GLOBALS"}["sqdjvpjpc"]});${${"GLOBALS"}["jxqwaivjjmp"]}=str_replace("phpfox.phpfox.","phpfox.",${${"GLOBALS"}["jxqwaivjjmp"]});self::${${"GLOBALS"}["fgevkdwgbk"]}[${${"GLOBALS"}["dbxvyltspk"]}]=Phpfox::getObject(${${"GLOBALS"}["jxqwaivjjmp"]},${${"GLOBALS"}["yqgenwkzawr"]});return self::${${"GLOBALS"}["yjxikgvdfvp"]}[${$fcqbthc}];}public static function isModule($sModule){$cjngpv="sModule";return Phpfox::getLib("module")->isModule(${$cjngpv});}public static function getBlock($sClass,$aParams=array(),$bTemplateParams=false){${"GLOBALS"}["kyfleglruo"]="bTemplateParams";${"GLOBALS"}["xmnfycjh"]="sClass";$xqrlhnibctsd="aParams";return Phpfox::getLib("module")->getComponent(${${"GLOBALS"}["xmnfycjh"]},${$xqrlhnibctsd},"block",${${"GLOBALS"}["kyfleglruo"]});}public static function callback($sCall){$rahliuefe="sCall";if(func_num_args()>1){$oonvgodqn="aParams";${$oonvgodqn}=func_get_args();return Phpfox::getLib("module")->callback(${${"GLOBALS"}["vxwvejtqedpn"]},${${"GLOBALS"}["yqgenwkzawr"]});}return Phpfox::getLib("module")->callback(${$rahliuefe});}public static function massCallback($sMethod){$yijufvx="sMethod";if(func_num_args()>1){$kewtazgdxsp="sMethod";${${"GLOBALS"}["yqgenwkzawr"]}=func_get_args();return Phpfox::getLib("module")->massCallback(${$kewtazgdxsp},${${"GLOBALS"}["yqgenwkzawr"]});}return Phpfox::getLib("module")->massCallback(${$yijufvx});}public static function hasCallback($sModule,$sMethod){$lghyirgff="sModule";return Phpfox::getLib("module")->hasCallback(${$lghyirgff},${${"GLOBALS"}["qiklqjjcu"]});}public static function getComponent($sClass,$aParams=array(),$sType='block',$bTemplateParams=false){$nuborbsc="sType";${"GLOBALS"}["yyodqhd"]="bTemplateParams";$oexsdevqqyc="aParams";return Phpfox::getLib("module")->getComponent(${${"GLOBALS"}["jxqwaivjjmp"]},${$oexsdevqqyc},${$nuborbsc},${${"GLOBALS"}["yyodqhd"]});}public static function getComponentSetting($iUserId,$sVarName,$mDefaultValue){return Phpfox::getLib("module")->getComponentSetting(${${"GLOBALS"}["lxshlbjjtrwr"]},${${"GLOBALS"}["ruedbccgg"]},${${"GLOBALS"}["lmgfrp"]});}public static function getTokenName(){return"core";}public static function getService($sClass,$aParams=array()){return Phpfox::getLib("module")->getService(${${"GLOBALS"}["jxqwaivjjmp"]},${${"GLOBALS"}["yqgenwkzawr"]});}public static function getT($sTable){return Phpfox::getParam(array("db","prefix")).${${"GLOBALS"}["fzpprkn"]};}public static function getUserId(){if(isset($_REQUEST["custom_pages_post_as_page"])&&(int)$_REQUEST["custom_pages_post_as_page"]>0){$ojyfldvctn="aPage";$wuyrzlvklw="aPage";${$ojyfldvctn}=Phpfox::getLib("database")->getRow(" SELECT p.page_id, p.user_id AS owner_user_id, u.user_id FROM ".Phpfox::getT("pages")." AS p JOIN ".Phpfox::getT("user")." AS u ON(u.profile_page_id = p.page_id) WHERE p.page_id = ".(int)$_REQUEST["custom_pages_post_as_page"]." ");${${"GLOBALS"}["cizehwddt"]}=Phpfox::getService("user.auth")->getUserId();if(isset(${$wuyrzlvklw}["page_id"])){${"GLOBALS"}["uwtmeu"]="aPage";${"GLOBALS"}["kthabuz"]="bPass";${${"GLOBALS"}["kthabuz"]}=false;$jbzdcahckm="iActualUserId";if(${${"GLOBALS"}["uwtmeu"]}["owner_user_id"]==${$jbzdcahckm}){${${"GLOBALS"}["vmgxnepo"]}=true;}${"GLOBALS"}["fafxthfp"]="bPass";if(!${${"GLOBALS"}["vmgxnepo"]}){$hbcavxpp="aAdmin";${${"GLOBALS"}["qiuvyqjglnt"]}=Phpfox::getLib("database")->getRow(" SELECT page_id FROM ".Phpfox::getT("pages_admin")." WHERE page_id = ".(int)${${"GLOBALS"}["updhoh"]}["page_id"]." AND user_id = ".(int)${${"GLOBALS"}["cizehwddt"]}." ");if(isset(${$hbcavxpp}["page_id"])){${"GLOBALS"}["cwmgujjvpztv"]="bPass";${${"GLOBALS"}["cwmgujjvpztv"]}=true;}}if(${${"GLOBALS"}["fafxthfp"]}){return${${"GLOBALS"}["updhoh"]}["user_id"];}}}if(defined("PHPFOX_APP_USER_ID")){return PHPFOX_APP_USER_ID;}return Phpfox::getService("user.auth")->getUserId();}public static function getUserBy($sVar=null){$picvmuophr="sVar";return Phpfox::getService("user.auth")->getUserBy(${$picvmuophr});}public static function isMobile(){return Phpfox::getLib("request")->isMobile();}public static function getIp($bReturnNum=false){${"GLOBALS"}["wsamdyovbde"]="bReturnNum";return Phpfox::getLib("request")->getIp(${${"GLOBALS"}["wsamdyovbde"]});}public static function isSpammer(){if(Phpfox::getUserParam("core.is_spam_free")){return false;}if(!Phpfox::getParam("core.enable_spam_check")){return false;}if(Phpfox::isUser()&&Phpfox::getUserBy("total_spam")>Phpfox::getParam("core.auto_deny_items")){return true;}return false;}public static function getUserField($sAlias='u',$sPrefix=''){${"GLOBALS"}["sfpxjety"]="aFields";$pgdzmxtkw="sHash";${"GLOBALS"}["lvfiqaxrspx"]="sHash";static$aValues=array();$bazpcmyew="aValues";${$pgdzmxtkw}=md5(${${"GLOBALS"}["iocyjpbhpb"]}.${${"GLOBALS"}["gqlxiyx"]});if(isset(${$bazpcmyew}[${${"GLOBALS"}["lvfiqaxrspx"]}])){return${${"GLOBALS"}["roezddlurw"]}[${${"GLOBALS"}["dbxvyltspk"]}];}${${"GLOBALS"}["sfpxjety"]}=Phpfox::getService("user")->getUserFields();${"GLOBALS"}["llvhuvbn"]="aValues";${${"GLOBALS"}["roezddlurw"]}[${${"GLOBALS"}["dbxvyltspk"]}]="";${"GLOBALS"}["payxqabiubc"]="aValues";foreach(${${"GLOBALS"}["gxnxnor"]} as${${"GLOBALS"}["xeuwbbvsxpta"]}){${"GLOBALS"}["aqlkcyejc"]="sHash";$glakareqfu="aValues";${$glakareqfu}[${${"GLOBALS"}["aqlkcyejc"]}].=", {$sAlias}.{$sField}";if(${${"GLOBALS"}["iocyjpbhpb"]}=="u"&&${${"GLOBALS"}["xeuwbbvsxpta"]}=="server_id"){${"GLOBALS"}["gvtgiqzkp"]="sHash";${${"GLOBALS"}["roezddlurw"]}[${${"GLOBALS"}["gvtgiqzkp"]}].=" AS user_{$sPrefix}{$sField}";continue;}if(!empty(${${"GLOBALS"}["gqlxiyx"]})){${${"GLOBALS"}["roezddlurw"]}[${${"GLOBALS"}["dbxvyltspk"]}].=" AS {$sPrefix}{$sField}";}}${"GLOBALS"}["adtukoam"]="sHash";${${"GLOBALS"}["llvhuvbn"]}[${${"GLOBALS"}["dbxvyltspk"]}]=ltrim(${${"GLOBALS"}["payxqabiubc"]}[${${"GLOBALS"}["dbxvyltspk"]}],",");return${${"GLOBALS"}["roezddlurw"]}[${${"GLOBALS"}["adtukoam"]}];}public static function getTimeZone($bDst=true){$wmirmotcn="bDst";return Phpfox::getLib("date")->getTimeZone(${$wmirmotcn});}public static function getTime($sStamp=null,$iTime=PHPFOX_TIME,$bTimeZone=true){$hratppmmr="iNewTime";$cxkunatifsf="iNewTime";${"GLOBALS"}["dpcnyylf"]="iNewTime";static$sUserOffSet;$ivbrrvyrrc="iNewTime";${"GLOBALS"}["iueeynzx"]="iNewTime";$sndsdvw="iNewTime";$tgcwahd="iNewTime";${"GLOBALS"}["knbiznf"]="iNewTime";${"GLOBALS"}["scdkeiv"]="iNewTime";$xwdfybn="iNewTime";$drbggv="iNewTime";${"GLOBALS"}["irnbgvfuionh"]="aReplace";${"GLOBALS"}["yyjnmoimwe"]="iNewTime";$ptryqsvdsow="iNewTime";$jhiaooutu="iNewTime";$pctmxnqmdn="iNewTime";if(${${"GLOBALS"}["reavpsorsh"]}){$yrjgmpg="sStamp";${"GLOBALS"}["jmpvuoebyi"]="aMatch";$bwmugeioptox="bSet";${"GLOBALS"}["sajdehabbm"]="sUserOffSet";$pqeqswg="sUserOffSet";if(!${$pqeqswg}){$uhlcpwsssbyf="sUserOffSet";${$uhlcpwsssbyf}=Phpfox::getTimeZone();}if(!preg_match("/z[0-9]+/i",${${"GLOBALS"}["sajdehabbm"]},${${"GLOBALS"}["jmpvuoebyi"]})){${"GLOBALS"}["fszxsugjdku"]="aTZ";${"GLOBALS"}["bghbyiro"]="sTz";${${"GLOBALS"}["fszxsugjdku"]}=Phpfox::getService("core")->getTimeZones();${${"GLOBALS"}["bghbyiro"]}=array_search(${${"GLOBALS"}["wjkkeuirduqd"]},${${"GLOBALS"}["wtfeotkpc"]});if(${${"GLOBALS"}["aogrofiss"]}!==false){$jmckfdv="sUserOffSet";${$jmckfdv}=${${"GLOBALS"}["aogrofiss"]};}}if(substr(${${"GLOBALS"}["wjkkeuirduqd"]},0,1)=="z"&&PHPFOX_USE_DATE_TIME){$gqnriisbt="aTZ";if(!isset(${$gqnriisbt})){${${"GLOBALS"}["wtfeotkpc"]}=Phpfox::getService("core")->getTimeZones();}if(isset(${${"GLOBALS"}["wtfeotkpc"]}[${${"GLOBALS"}["wjkkeuirduqd"]}])){${"GLOBALS"}["mlsgybqs"]="oTZ";$eclxngqekvzm="sUserOffSet";$xrewywev="sStamp";$hyzgys="aTZ";$qoykuomcxiqo="sUserOffSet";${${"GLOBALS"}["mlsgybqs"]}=new DateTimeZone(${$hyzgys}[${${"GLOBALS"}["wjkkeuirduqd"]}]);${"GLOBALS"}["jhuvfna"]="iTime";${${"GLOBALS"}["nkbbphl"]}=new DateTime(null,${${"GLOBALS"}["kwperlywj"]});$oDateTime->setTimestamp(${${"GLOBALS"}["jhuvfna"]});${$qoykuomcxiqo}=${${"GLOBALS"}["wtfeotkpc"]}[${$eclxngqekvzm}];if(${$xrewywev}!==null){${"GLOBALS"}["bwstddutlh"]="iNewTime";${${"GLOBALS"}["bwstddutlh"]}=$oDateTime->format(${${"GLOBALS"}["dlsizghwe"]});${"GLOBALS"}["lgkkux"]="bSet";${${"GLOBALS"}["lgkkux"]}=true;}}}if(${$yrjgmpg}===null){${"GLOBALS"}["rlxvzyjh"]="iTime";return(!empty(${${"GLOBALS"}["wjkkeuirduqd"]})?(substr(${${"GLOBALS"}["wjkkeuirduqd"]},0,1)=="-"?(${${"GLOBALS"}["rlxvzyjh"]}-(substr(${${"GLOBALS"}["wjkkeuirduqd"]},1)*3600)):(${${"GLOBALS"}["wjkkeuirduqd"]}*3600)+${${"GLOBALS"}["dmnhmhvghsr"]}):${${"GLOBALS"}["dmnhmhvghsr"]});}elseif(!isset(${$bwmugeioptox})){${"GLOBALS"}["xnjghsu"]="iTime";$sylugktckjh="sUserOffSet";${"GLOBALS"}["vtmqnxq"]="sUserOffSet";$yovkrpodu="sUserOffSet";${"GLOBALS"}["nolcbuy"]="iTime";${"GLOBALS"}["uwwiuls"]="sStamp";$bkmywffh="iNewTime";${$bkmywffh}=(!empty(${${"GLOBALS"}["wjkkeuirduqd"]})?daate(${${"GLOBALS"}["uwwiuls"]},(substr(${${"GLOBALS"}["vtmqnxq"]},0,1)=="-"?(${${"GLOBALS"}["dmnhmhvghsr"]}-(substr(${$yovkrpodu},1)*3600)):(${$sylugktckjh}*3600)+${${"GLOBALS"}["xnjghsu"]})):daate(${${"GLOBALS"}["dlsizghwe"]},${${"GLOBALS"}["nolcbuy"]}));}}else{${"GLOBALS"}["kxwnxjobh"]="iNewTime";$ekjbewrt="iTime";$ltrswodcwfd="sStamp";${${"GLOBALS"}["kxwnxjobh"]}=daate(${$ltrswodcwfd},${$ekjbewrt});}${"GLOBALS"}["ktqvrtcz"]="iNewTime";$lmxtvbhkj="iNewTime";${"GLOBALS"}["pcdkyjtwcl"]="iNewTime";${${"GLOBALS"}["ugvqmivrbbtu"]}=array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Dey","Bahman","Esfand");${${"GLOBALS"}["irnbgvfuionh"]}=array(Phpfox::getPhrase("core.monday"),Phpfox::getPhrase("core.tuesday"),Phpfox::getPhrase("core.wednesday"),Phpfox::getPhrase("core.thursday"),Phpfox::getPhrase("core.friday"),Phpfox::getPhrase("core.saturday"),Phpfox::getPhrase("core.sunday"),Phpfox::getPhrase("core.farvardin"),Phpfox::getPhrase("core.ordibehesht"),Phpfox::getPhrase("core.khordad"),Phpfox::getPhrase("core.tir"),Phpfox::getPhrase("core.mordad"),Phpfox::getPhrase("core.shahrivar"),Phpfox::getPhrase("core.mehr"),Phpfox::getPhrase("core.aban"),Phpfox::getPhrase("core.azar"),Phpfox::getPhrase("core.dey"),Phpfox::getPhrase("core.bahman"),Phpfox::getPhrase("core.esfand"));${${"GLOBALS"}["depsnkqr"]}=str_replace("Mon","Monday",${${"GLOBALS"}["depsnkqr"]});${$jhiaooutu}=str_replace("Tue","Tuesday",${$ptryqsvdsow});$whalynsypkjd="iNewTime";${$xwdfybn}=str_replace("Wed","Wednesday",${$lmxtvbhkj});${"GLOBALS"}["lihtxr"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Thu","Thursday",${$pctmxnqmdn});${$whalynsypkjd}=str_replace("Fri","Friday",${${"GLOBALS"}["depsnkqr"]});${"GLOBALS"}["lyqofcmdqkp"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Sat","Saturday",${${"GLOBALS"}["scdkeiv"]});${${"GLOBALS"}["yyjnmoimwe"]}=str_replace("Sun","Sunday",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Jan","January",${${"GLOBALS"}["depsnkqr"]});$mrewuicynoor="iNewTime";${${"GLOBALS"}["ktqvrtcz"]}=str_replace("Feb","February",${${"GLOBALS"}["depsnkqr"]});${"GLOBALS"}["iooirq"]="iNewTime";${"GLOBALS"}["vojqxbmq"]="iNewTime";${"GLOBALS"}["iyoovae"]="iNewTime";${${"GLOBALS"}["pcdkyjtwcl"]}=str_replace("Mar","March",${$drbggv});$mnknslw="iNewTime";$ptdhzpnv="iNewTime";${"GLOBALS"}["lhagqhh"]="iNewTime";${"GLOBALS"}["xmkxpqz"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Apr","April",${${"GLOBALS"}["depsnkqr"]});$ysepwoehdaw="iNewTime";${$ptdhzpnv}=str_replace("May","May",${${"GLOBALS"}["depsnkqr"]});$mcxnhqbetx="iNewTime";${"GLOBALS"}["myiblccuvs"]="iNewTime";${$ysepwoehdaw}=str_replace("Jun","June",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Jul","July",${$sndsdvw});$aqkxjcxf="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Aug","August",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Sep","September",${${"GLOBALS"}["iueeynzx"]});${$ivbrrvyrrc}=str_replace("Oct","October",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Nov","November",${$mrewuicynoor});$rttndogqpvg="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Dec","December",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Mondayday","Monday",${${"GLOBALS"}["iooirq"]});${$mcxnhqbetx}=str_replace("Tuesdaysday","Tuesday",${${"GLOBALS"}["depsnkqr"]});${"GLOBALS"}["gxtqoxtfberm"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Wednesdaynesday","Wednesday",${${"GLOBALS"}["knbiznf"]});${$tgcwahd}=str_replace("Thursdayrsday","Thursday",${$aqkxjcxf});${${"GLOBALS"}["depsnkqr"]}=str_replace("Fridayday","Friday",${${"GLOBALS"}["depsnkqr"]});${"GLOBALS"}["lmwjueytf"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Saturdayurday","Saturday",${$hratppmmr});$jqrasxkan="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Sundayday","Sunday",${${"GLOBALS"}["vojqxbmq"]});${${"GLOBALS"}["lhagqhh"]}=str_replace("Januaryuary","January",${$jqrasxkan});${$cxkunatifsf}=str_replace("Februaryruary","February",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Marchch","March",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Aprilil","April",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["lyqofcmdqkp"]}=str_replace("Junee","June",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["iyoovae"]}=str_replace("Julyy","July",${${"GLOBALS"}["lihtxr"]});${${"GLOBALS"}["xmkxpqz"]}=str_replace("Augustust","August",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Septembertember","September",${${"GLOBALS"}["lmwjueytf"]});${${"GLOBALS"}["gxtqoxtfberm"]}=str_replace("Octoberober","October",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["dpcnyylf"]}=str_replace("Novemberember","November",${$rttndogqpvg});${${"GLOBALS"}["depsnkqr"]}=str_replace("Decemberember","December",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace(${${"GLOBALS"}["ugvqmivrbbtu"]},${${"GLOBALS"}["dylopdyemu"]},${${"GLOBALS"}["myiblccuvs"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("PM",Phpfox::getPhrase("core.pm"),${${"GLOBALS"}["depsnkqr"]});${$mnknslw}=str_replace("AM",Phpfox::getPhrase("core.am"),${${"GLOBALS"}["depsnkqr"]});return${${"GLOBALS"}["depsnkqr"]};}public static function isUser($bRedirect=false){if(defined("PHPFOX_APP_USER_ID")){return true;}${${"GLOBALS"}["slfdqfr"]}=Phpfox::getService("user.auth")->isUser();$ybskyykjuei="bIsUser";if(${${"GLOBALS"}["wpxoywftvh"]}&&!${${"GLOBALS"}["slfdqfr"]}){if(PHPFOX_IS_AJAX||PHPFOX_IS_AJAX_PAGE){return Phpfox::getLib("ajax")->isUser();}else{Phpfox::getLib("session")->set("redirect",Phpfox::getLib("url")->getFullUrl(true));Phpfox::getLib("url")->send("user.login");}}return${$ybskyykjuei};}public static function isAdmin($bRedirect=false){$qtqgszv="bRedirect";${"GLOBALS"}["jowwkfmmcske"]="bRedirect";if(!Phpfox::isUser(${$qtqgszv})){return false;}if(!Phpfox::getUserParam("admincp.has_admin_access",${${"GLOBALS"}["jowwkfmmcske"]})){return false;}return true;}public static function itemUrl($sUrl,$mParams,$sUserName){${"GLOBALS"}["huxjbxrmpd"]="bUserProfileUrl";$rpjkjzuxmp="bUserProfileUrl";${${"GLOBALS"}["huxjbxrmpd"]}=true;if(${$rpjkjzuxmp}){${"GLOBALS"}["hqbftrobx"]="mParams";${"GLOBALS"}["croozvuw"]="mParams";${"GLOBALS"}["vjtrcnj"]="mParams";$rardqadnnit="sUserName";return self::getLib("phpfox.url")->makeUrl(${$rardqadnnit},array_merge(array(${${"GLOBALS"}["ihafnqqc"]}),(is_array(${${"GLOBALS"}["hqbftrobx"]})?${${"GLOBALS"}["croozvuw"]}:array(${${"GLOBALS"}["vjtrcnj"]}))));}return self::getLib("phpfox.url")->makeUrl(${${"GLOBALS"}["ihafnqqc"]},${${"GLOBALS"}["vupxgvfgbj"]});}public static function getUserGroupParam($iGroupId,$sName){$hppojesqyi="iGroupId";return Phpfox::getService("user.group.setting")->getGroupParam(${$hppojesqyi},${${"GLOBALS"}["nuzgpu"]});}public static function getUserParam($sName,$bRedirect=false,$sJsCall=null){if(defined("PHPFOX_INSTALLER")){return true;}if(is_array(${${"GLOBALS"}["nuzgpu"]})){${"GLOBALS"}["xfqzrhk"]="sValue";${"GLOBALS"}["qteejdiwd"]="sName";${"GLOBALS"}["vjhfcgmdnsia"]="sKey";$wpiuhomxw="sName";${"GLOBALS"}["ncviqsfe"]="sKey";${${"GLOBALS"}["vjhfcgmdnsia"]}=array_keys(${$wpiuhomxw});$szgpzxfg="sName";${${"GLOBALS"}["scjmlki"]}=Phpfox::getService("user.group.setting")->getParam(${${"GLOBALS"}["ncviqsfe"]}[0]);eval("\$bPass = (".${${"GLOBALS"}["xfqzrhk"]}." ".${$szgpzxfg}[${${"GLOBALS"}["krirxxj"]}[0]][0]." ".${${"GLOBALS"}["qteejdiwd"]}[${${"GLOBALS"}["krirxxj"]}[0]][1].");");}else{${${"GLOBALS"}["vmgxnepo"]}=(Phpfox::getService("user.group.setting")->getParam(${${"GLOBALS"}["nuzgpu"]})?true:false);}if(${${"GLOBALS"}["wpxoywftvh"]}){${"GLOBALS"}["oysxtqjs"]="bPass";if(PHPFOX_IS_AJAX&&!${${"GLOBALS"}["oysxtqjs"]}){if(!Phpfox::isUser()){if(Phpfox::getLib("request")->get("tb")){Phpfox::getBlock("user.login-ajax");}else{${"GLOBALS"}["lrihfelrq"]="sJsCall";if(${${"GLOBALS"}["lrihfelrq"]}!==null){$esurziw="sJsCall";echo${$esurziw};}echo"tb_show('".Phpfox::getPhrase("user.login_title")."', \$.ajaxBox('user.login', 'height=250&width=400'));";}}else{if(Phpfox::getLib("request")->get("tb")){Phpfox::getBlock("subscribe.message");}else{if(${${"GLOBALS"}["yllhsifenmg"]}!==null){}echo"";}}exit;}else{$uujkrmfg="bPass";if(!${$uujkrmfg}){if(!Phpfox::isUser()){Phpfox::getLib("session")->set("redirect",Phpfox::getLib("url")->getFullUrl(true));Phpfox::getLib("url")->send("user.login");}else{Phpfox::getLib("url")->send("subscribe");}}return true;}}else{${"GLOBALS"}["ayryjm"]="sName";if(is_array(${${"GLOBALS"}["ayryjm"]})){${"GLOBALS"}["uggjygdosoo"]="bPass";return${${"GLOBALS"}["uggjygdosoo"]};}else{$tupnwmf="sName";return Phpfox::getService("user.group.setting")->getParam(${$tupnwmf});}}}public static function isAdminPanel(){return(self::${${"GLOBALS"}["pwlzsrvg"]}?true:false);}public static function isPublicView(){return(Phpfox::getParam("core.item_view_area")=="public"?true:false);}public static function run(){${"GLOBALS"}["dinvwmlor"]="sPlugin";$orswwivsqu="sPlugin";$ecaqynnxmfe="aLocale";${"GLOBALS"}["lddpcvdpd"]="oReq";${${"GLOBALS"}["qrxwhdv"]}=Phpfox::getLib("template");${${"GLOBALS"}["ebzlxgki"]}=Phpfox::getLib("locale")->getLang();${${"GLOBALS"}["lddpcvdpd"]}=Phpfox::getLib("request");${"GLOBALS"}["bpsgvvxryg"]="sPlugin";${${"GLOBALS"}["ddpztmtp"]}=Phpfox::getLib("module");((${${"GLOBALS"}["bpsgvvxryg"]}=Phpfox_Plugin::get("run_start"))?eval(${${"GLOBALS"}["dinvwmlor"]}):false);$oModule->loadBlocks();$netdaatq="sImage";if(Phpfox::isMobile()&&$oReq->get("req1")=="go-to-full-site"){Phpfox::getLib("session")->set("mobilestatus","true");Phpfox::getLib("url")->send("phpfox_full_site");}if(!Phpfox::getParam("core.branding")){$oTpl->setHeader(array(""));}if(strtolower(Phpfox::getLib("request")->get("req1"))==Phpfox::getParam("admincp.admin_cp")){self::${${"GLOBALS"}["pwlzsrvg"]}=true;}${$netdaatq}=Phpfox::getUserBy("user_image");$tenvcpyrwj="sPlugin";if(!Phpfox::getService("ban")->check("ip",Phpfox::getIp())){$oModule->setController("ban.message");}else{${"GLOBALS"}["zhuwnggjfi"]="_bIsAdminCp";if(!self::${${"GLOBALS"}["zhuwnggjfi"]}&&Phpfox::getParam("core.site_is_offline")&&!Phpfox::getUserParam("core.can_view_site_offline")){if((Phpfox::getLib("request")->get("req1")=="user"&&(Phpfox::getLib("request")->get("req2")=="login"||Phpfox::getLib("request")->get("req2")=="logout"))||Phpfox::getLib("request")->get("req1")=="contact"||Phpfox::getLib("request")->get("req1")=="captcha"){$oModule->setController();}else{$oModule->setController("core.offline");}}else{$oModule->setController();}}if(!PHPFOX_IS_AJAX_PAGE){$pijqbdktig="aLocale";if(Phpfox::isMobile()){$oTpl->setMobileHeader(array(""));}$oTpl->setImage(array("ajax_small"=>"ajax/small.gif","ajax_large"=>"ajax/large.gif","loading_animation"=>"misc/loading_animation.gif","close"=>"misc/close.gif","move"=>"misc/move.png","calendar"=>"jquery/calendar.gif"));$oTpl->setHeader(array("","convert(Phpfox::getParam("core.keywords"))."" />","convert(Phpfox::getParam("core.description"))."" />","","","","","",""))->setHeader("cache",array("layout.css"=>"style_css","common.css"=>"style_css","thickbox.css"=>"style_css","jquery.css"=>"style_css","pager.css"=>"style_css","jquery/jquery.js"=>"static_script"));{$oTpl->setHeader("cache",array("jquery/ui.js"=>"static_script"));}if(!defined("PHPFOX_IS_AD_PREVIEW")&&!defined("PHPFOX_IN_DESIGN_MODE")&&!defined("PHPFOX_INSTALLER")&&Phpfox::getParam("core.site_wide_ajax_browsing")){$oTpl->setHeader("cache",array("jquery/plugin/jquery.address.js"=>"static_script"));}$oTpl->setHeader("cache",array("common.js"=>"static_script","main.js"=>"static_script","ajax.js"=>"static_script","thickbox/thickbox.js"=>"static_script","search.js"=>"module_friend"));if(Phpfox::isModule("friend")){$oTpl->setPhrase(array("friend.show_more_results_for_search_term"));}if(PHPFOX_DEBUG){$oTpl->setHeader("cache",array("debug.css"=>"style_css"));}if(!Phpfox::isMobile()&&Phpfox::isUser()&&Phpfox::getParam("user.enable_user_tooltip")){$oTpl->setHeader("cache",array("user_info.js"=>"static_script"));}$unnjlgqvqqo="aLocale";if(${$unnjlgqvqqo}["direction"]=="rtl"){$oTpl->setHeader("cache",array("rtl.css"=>"style_css"));}if(Phpfox::isModule("captcha")&&Phpfox::getParam("captcha.recaptcha")){$oTpl->setHeader("");}}((${${"GLOBALS"}["cdfqqbijlh"]}=Phpfox_Plugin::get("get_controller"))?eval(${$tenvcpyrwj}):false);$oModule->getController();Phpfox::getService("admincp.seo")->setHeaders();if(!defined("PHPFOX_DONT_SAVE_PAGE")){Phpfox::getLib("session")->set("redirect",Phpfox::getLib("url")->getFullUrl(true));}if(!defined("PHPFOX_NO_CSRF")){Phpfox::getService("log.session")->verifyToken();}$hverrvx="sPlugin";((${$orswwivsqu}=Phpfox_Plugin::get("run"))?eval(${$hverrvx}):false);$wftxkfbpmud="aBreadCrumbs";if(!self::isAdminPanel()){$vtfxpdmlot="aPageLastLogin";if(!Phpfox::isMobile()&&!PHPFOX_IS_AJAX_PAGE&&Phpfox::isModule("rss")&&!defined("PHPFOX_IS_USER_PROFILE")){${${"GLOBALS"}["iuferexgphs"]}=Phpfox::getService("rss")->getLinks();if(is_array(${${"GLOBALS"}["iuferexgphs"]})&&count(${${"GLOBALS"}["iuferexgphs"]})){${"GLOBALS"}["cjqyliugnncj"]="sPhrase";$vgtjtuof="aFeeds";foreach(${$vgtjtuof} as${${"GLOBALS"}["jnreyckkxn"]}=>${${"GLOBALS"}["cjqyliugnncj"]}){$oTpl->setHeader("");}}}${${"GLOBALS"}["hekyjmlsdyt"]}=((Phpfox::isModule("pages")&&Phpfox::getUserBy("profile_page_id"))?Phpfox::getService("pages")->getLastLogin():false);$oTpl->assign(array("aMenus"=>$oTpl->getMenu("main"),"aRightMenus"=>$oTpl->getMenu("main_right"),"aAppMenus"=>$oTpl->getMenu("explore"),"aSubMenus"=>$oTpl->getMenu(),"aFooterMenu"=>$oTpl->getMenu("footer"),"aBlocks1"=>($oTpl->bIsSample?true:Phpfox::getLib("module")->getModuleBlocks(1)),"aBlocks3"=>($oTpl->bIsSample?true:Phpfox::getLib("module")->getModuleBlocks(3)),"aAdBlocks1"=>($oTpl->bIsSample?true:(Phpfox::isModule("ad")?Phpfox::getService("ad")->getForBlock(1,false,false):null)),"aAdBlocks3"=>($oTpl->bIsSample?true:(Phpfox::isModule("ad")?Phpfox::getService("ad")->getForBlock(3,false,false):null)),"bIsUsersProfilePage"=>(defined("PHPFOX_IS_USER_PROFILE")?true:false),"sStyleLogo"=>$oTpl->getStyleLogo(),"aStyleInUse"=>$oTpl->getStyleInUse(),"sGlobalUserFullName"=>(Phpfox::isUser()?Phpfox::getUserBy("full_name"):null),"aGlobalUser"=>(Phpfox::isUser()?Phpfox::getUserBy(null):array()),"sFullControllerName"=>str_replace(array(".","/"),"_",Phpfox::getLib("module")->getFullControllerName()),"iGlobalProfilePageId"=>Phpfox::getUserBy("profile_page_id"),"aGlobalProfilePageLogin"=>${$vtfxpdmlot},"aInstalledApps"=>((Phpfox::isUser()&&Phpfox::isModule("apps"))?Phpfox::getService("apps")->getInstalledApps():array()),"sSiteTitle"=>Phpfox::getParam("core.site_title")));$oTpl->setEditor();if(isset(${${"GLOBALS"}["hekyjmlsdyt"]}["style_id"])&&${${"GLOBALS"}["hekyjmlsdyt"]}["style_id"]>0){Phpfox::getLib("template")->testStyle(${${"GLOBALS"}["hekyjmlsdyt"]}["style_id"]);}if(Phpfox::isModule("captcha")){${${"GLOBALS"}["texnwsewbrn"]}=Phpfox::getParam("captcha.recaptcha_header");if(strlen(preg_replace("/\s\s+/","",${${"GLOBALS"}["texnwsewbrn"]}))>0){$oTpl->setHeader(array(${${"GLOBALS"}["texnwsewbrn"]}));}}if(!PHPFOX_IS_AJAX_PAGE&&!defined("PHPFOX_SKIP_IM")){if(!defined("PHPFOX_IN_DESIGN_MODE")){if(Phpfox::isUser()&&Phpfox::isModule("subscribe")&&Phpfox::getParam("subscribe.subscribe_is_required_on_sign_up")&&Phpfox::getUserBy("user_group_id")=="2"&&(int)Phpfox::getUserBy("subscribe_id")>0){}else{if(Phpfox::isModule("notification")&&Phpfox::isUser()&&Phpfox::getParam("notification.notify_on_new_request")){$oTpl->setHeader("cache",array("update.js"=>"module_notification"));}if(!Phpfox::isMobile()&&Phpfox::isModule("im")&&Phpfox::isUser()&&Phpfox::getUserBy("profile_page_id")<=0&&Phpfox::getParam("im.enable_im_in_footer_bar")&&!$oTpl->bIsSample){$oTpl->setPhrase(array("im.conversations","im.more_conversations","im.are_you_sure"))->setImage(array("misc_minimize"=>"misc/minimize.gif"))->setHeader("cache",array("im.js"=>"module_im","im.css"=>"style_css","player/".Phpfox::getParam("core.default_music_player")."/core.js"=>"static_script",))->setHeader(array("",""));}}}}}if(!PHPFOX_IS_AJAX_PAGE&&(${${"GLOBALS"}["ehqbwdm"]}=$oTpl->getHeaderFile())){require_once(${${"GLOBALS"}["ehqbwdm"]});}$mfzehnayt="aLocale";list(${${"GLOBALS"}["nnklwnnw"]},${${"GLOBALS"}["dtqlqjvrvj"]})=$oTpl->getBreadCrumb();$oTpl->assign(array("aErrors"=>(Phpfox_Error::getDisplay()?Phpfox_Error::get():array()),"sPublicMessage"=>Phpfox::getMessage(),"sLocaleDirection"=>${${"GLOBALS"}["ebzlxgki"]}["direction"],"sLocaleCode"=>${${"GLOBALS"}["ebzlxgki"]}["language_code"],"sLocaleFlagId"=>${$ecaqynnxmfe}["image"],"sLocaleName"=>${$mfzehnayt}["title"],"aRequests"=>Phpfox::getLib("request")->getRequests(),"aBreadCrumbs"=>${$wftxkfbpmud},"aBreadCrumbTitle"=>${${"GLOBALS"}["dtqlqjvrvj"]},"sCopyright"=>"© ".Phpfox::getPhrase("core.copyright")." ".Phpfox::getParam("core.site_copyright")));Phpfox::clearMessage();unset($_SESSION["phpfox"]["image"]);if(Phpfox::getParam("core.cron")){require_once(PHPFOX_DIR_CRON."exec.php");}if(!PHPFOX_IS_AJAX_PAGE&&$oTpl->sDisplayLayout){$oTpl->getLayout($oTpl->sDisplayLayout);}if(Phpfox::getParam("language.cache_phrases")){Phpfox::getLib("locale")->cache();}if(!PHPFOX_IS_AJAX_PAGE&&Phpfox::getParam("core.phpfox_is_hosted")){${"GLOBALS"}["imcixuekhi"]="iTotalMembersOnline";$hwqqgabq="iTotalMembersOnline";${${"GLOBALS"}["imcixuekhi"]}=Phpfox::getService("log.session")->getOnlineMembers();if(${$hwqqgabq}>Phpfox::getParam("core.phpfox_max_users_online")&&${${"GLOBALS"}["dmvkvgpenjgu"]}>(int)Phpfox::getParam("core.phpfox_total_users_online_mark")){$zdfvitcfcp="sPastHistory";$walntg="iTotalMembersOnline";${${"GLOBALS"}["achanvvzrjlc"]}=Phpfox::getLib("database");${"GLOBALS"}["lixburgrk"]="sPastHistory";$pkgeutuagyng="sPastHistory";$oDb->update(Phpfox::getT("setting"),array("value_actual"=>(int)${${"GLOBALS"}["dmvkvgpenjgu"]}),"var_name = 'phpfox_total_users_online_mark'");${$zdfvitcfcp}=Phpfox::getParam("core.phpfox_total_users_online_history");${${"GLOBALS"}["pwomywug"]}=array();if(!empty(${$pkgeutuagyng})&&Phpfox::getLib("parse.format")->isSerialized(${${"GLOBALS"}["lixburgrk"]})){${"GLOBALS"}["ngktgysdyae"]="sPastHistory";${${"GLOBALS"}["pwomywug"]}=unserialize(${${"GLOBALS"}["ngktgysdyae"]});}$oDb->update(Phpfox::getT("setting"),array("value_actual"=>serialize(array_merge(${${"GLOBALS"}["pwomywug"]},array(array("time_stamp"=>PHPFOX_TIME,"total"=>(int)${$walntg}))))),"var_name = 'phpfox_total_users_online_history'");Phpfox::getLib("cache")->remove("setting");ob_clean();}}if(Phpfox::getParam("core.use_gzip")&&!PHPFOX_IS_AJAX_PAGE){${"GLOBALS"}["bhenjjq"]="sGzipContent";${"GLOBALS"}["evwpdwid"]="sContent";$tjmuepirg="sGzipContent";${"GLOBALS"}["cxghoxknuie"]="sGzipContent";${${"GLOBALS"}["evwpdwid"]}=ob_get_contents();ob_clean();if(function_exists("gzencode")){${${"GLOBALS"}["lctevaxrsdby"]}=gzencode(${${"GLOBALS"}["onzuyvvg"]},Phpfox::getParam("core.gzip_level"),FORCE_GZIP);}else{if(function_exists("gzcompress")&&function_exists("crc32")){${"GLOBALS"}["gqieun"]="iCrc";${${"GLOBALS"}["xjnhfeeueins"]}=strlen(${${"GLOBALS"}["onzuyvvg"]});$skhvbgyyc="iSize";${${"GLOBALS"}["xkihbrvhitww"]}=crc32(${${"GLOBALS"}["onzuyvvg"]});${"GLOBALS"}["vcyjnbs"]="sGzipContent";${${"GLOBALS"}["lctevaxrsdby"]}=" ÿ";${${"GLOBALS"}["lctevaxrsdby"]}.=substr(gzcompress(${${"GLOBALS"}["onzuyvvg"]},Phpfox::getParam("core.gzip_level")),2,-4);${${"GLOBALS"}["vcyjnbs"]}.=pack("V",${${"GLOBALS"}["gqieun"]});${${"GLOBALS"}["lctevaxrsdby"]}.=pack("V",${$skhvbgyyc});}}if(isset(${${"GLOBALS"}["bhenjjq"]})){header("Content-Encoding: ".(in_array("x-gzip",Phpfox::getParam("core.gzip_encodings"))?"x-gzip":"gzip"));}echo(isset(${${"GLOBALS"}["cxghoxknuie"]})?${$tjmuepirg}:${${"GLOBALS"}["onzuyvvg"]});}}public static function getPhrase($sParam,$aParams=array(),$bNoDebug=false,$sDefault=null,$sLang=''){$jkepugxinm="aParams";$oszkadx="sParam";return Phpfox::getLib("locale")->getPhrase(${$oszkadx},${$jkepugxinm},${${"GLOBALS"}["tbjdox"]},${${"GLOBALS"}["bflfprs"]},${${"GLOBALS"}["nkyhcmzrawj"]});}public static function getPhraseT($sParam,$sPrefix){return Phpfox::getLib("locale")->translate(${${"GLOBALS"}["qmrqxybrii"]},${${"GLOBALS"}["gqlxiyx"]});}public static function addMessage($sMsg){Phpfox::getLib("session")->set("message",${${"GLOBALS"}["ihqshjdixbo"]});}public static function getMessage(){return Phpfox::getLib("session")->get("message");}public static function clearMessage(){Phpfox::getLib("session")->remove("message");}public static function setCookie($sName,$sValue,$iExpire=0){${"GLOBALS"}["egiwxfik"]="sName";$bbcmfsv="sName";$yoecrue="iExpire";${${"GLOBALS"}["nuzgpu"]}=Phpfox::getParam("core.session_prefix").${$bbcmfsv};setcookie(${${"GLOBALS"}["egiwxfik"]},${${"GLOBALS"}["scjmlki"]},((${$yoecrue}!=0||${${"GLOBALS"}["svisiagiurgu"]}!=-1)?${${"GLOBALS"}["svisiagiurgu"]}:(PHPFOX_TIME+(60*60*24*${${"GLOBALS"}["svisiagiurgu"]}))),Phpfox::getParam("core.cookie_path"),Phpfox::getParam("core.cookie_domain"));}public static function getCookie($sName){${"GLOBALS"}["bjslrvx"]="sName";$ntxtpqudex="sName";${${"GLOBALS"}["bjslrvx"]}=Phpfox::getParam("core.session_prefix").${${"GLOBALS"}["nuzgpu"]};${"GLOBALS"}["vviuoauys"]="sName";return(isset($_COOKIE[${$ntxtpqudex}])?$_COOKIE[${${"GLOBALS"}["vviuoauys"]}]:"");}public static function startLog($sLog=null){${"GLOBALS"}["oorqrhyif"]="sLog";${"GLOBALS"}["ugexfrsy"]="_aLogs";self::${${"GLOBALS"}["ugexfrsy"]}[]=array();if(${${"GLOBALS"}["oorqrhyif"]}!==null){self::log(${${"GLOBALS"}["tjdnfclgw"]});}}public static function log($sLog){${"GLOBALS"}["jcgkjv"]="sLog";self::${${"GLOBALS"}["prreffidb"]}[]=${${"GLOBALS"}["jcgkjv"]};}public static function endLog(){$bhohfxltbfk="_aLogs";return self::${$bhohfxltbfk};}public static function permalink($sLink,$iId,$sTitle=null,$bRedirect=false,$sMessage=null,$aExtra=array()){$istapnppx="bRedirect";${"GLOBALS"}["ymhpcqnt"]="iId";${"GLOBALS"}["cnguwrvxnb"]="sMessage";${"GLOBALS"}["hnathojgu"]="sTitle";return Phpfox::getLib("url")->permalink(${${"GLOBALS"}["jnreyckkxn"]},${${"GLOBALS"}["ymhpcqnt"]},${${"GLOBALS"}["hnathojgu"]},${$istapnppx},${${"GLOBALS"}["cnguwrvxnb"]},${${"GLOBALS"}["oxsxclsl"]});}public static function getCdnPath(){return"http://cdn.group.ly/sites/".self::getVersion()."/";}public static function geetTime($sStamp=null,$iTime=PHPFOX_TIME,$bTimeZone=true){${"GLOBALS"}["ialukkqbowp"]="iNewTime";${"GLOBALS"}["fptviuywetg"]="iNewTime";${"GLOBALS"}["nmqcyxc"]="iNewTime";${"GLOBALS"}["xzjfbbwoc"]="iNewTime";$ylbpoxbxbk="iNewTime";static$sUserOffSet;$fidftchqjk="iNewTime";${"GLOBALS"}["odvunsmns"]="iNewTime";$wxrmxnjdrhq="iNewTime";${"GLOBALS"}["frkdtlyt"]="bTimeZone";$xhvflmigy="iNewTime";${"GLOBALS"}["gwcgvlmtpjy"]="aReplace";$nwifnorkb="iNewTime";${"GLOBALS"}["dmpsffqoy"]="iNewTime";${"GLOBALS"}["awsbcxe"]="iNewTime";$slntidhyntiw="iNewTime";${"GLOBALS"}["bgqehpc"]="iNewTime";${"GLOBALS"}["cvfhfv"]="iNewTime";${"GLOBALS"}["mcfpofdmp"]="iNewTime";$fuowpei="iNewTime";${"GLOBALS"}["tvfgmfhqtmn"]="iNewTime";if(${${"GLOBALS"}["frkdtlyt"]}){$pxfztolzcjs="sUserOffSet";${"GLOBALS"}["lsxaoiucqkf"]="aMatch";if(!${$pxfztolzcjs}){${"GLOBALS"}["mexchfrskmxx"]="sUserOffSet";${${"GLOBALS"}["mexchfrskmxx"]}=Phpfox::getTimeZone();}${"GLOBALS"}["bzjnvult"]="sUserOffSet";if(!preg_match("/z[0-9]+/i",${${"GLOBALS"}["wjkkeuirduqd"]},${${"GLOBALS"}["lsxaoiucqkf"]})){$pesyzodg="sTz";${"GLOBALS"}["yecuhyn"]="sTz";${${"GLOBALS"}["wtfeotkpc"]}=Phpfox::getService("core")->getTimeZones();$wsehxismy="aTZ";${$pesyzodg}=array_search(${${"GLOBALS"}["wjkkeuirduqd"]},${$wsehxismy});if(${${"GLOBALS"}["yecuhyn"]}!==false){${${"GLOBALS"}["wjkkeuirduqd"]}=${${"GLOBALS"}["aogrofiss"]};}}if(substr(${${"GLOBALS"}["bzjnvult"]},0,1)=="z"&&PHPFOX_USE_DATE_TIME){${"GLOBALS"}["sjcnckqu"]="aTZ";$buppjkcct="sUserOffSet";$bkqbvizr="aTZ";if(!isset(${$bkqbvizr})){${${"GLOBALS"}["wtfeotkpc"]}=Phpfox::getService("core")->getTimeZones();}if(isset(${${"GLOBALS"}["sjcnckqu"]}[${$buppjkcct}])){${"GLOBALS"}["mcshyvu"]="sUserOffSet";$phbyghngbx="sUserOffSet";${"GLOBALS"}["pvbnoconfa"]="aTZ";$xwmdfnm="aTZ";${"GLOBALS"}["vfehbcyhndy"]="iTime";${${"GLOBALS"}["kwperlywj"]}=new DateTimeZone(${${"GLOBALS"}["pvbnoconfa"]}[${${"GLOBALS"}["mcshyvu"]}]);${${"GLOBALS"}["nkbbphl"]}=new DateTime(null,${${"GLOBALS"}["kwperlywj"]});$oDateTime->setTimestamp(${${"GLOBALS"}["vfehbcyhndy"]});${${"GLOBALS"}["wjkkeuirduqd"]}=${$xwmdfnm}[${$phbyghngbx}];if(${${"GLOBALS"}["dlsizghwe"]}!==null){$jxcltaxdvlbq="sStamp";${"GLOBALS"}["vknswz"]="iNewTime";${${"GLOBALS"}["vknswz"]}=$oDateTime->format(${$jxcltaxdvlbq});${${"GLOBALS"}["qcgivicov"]}=true;}}}if(${${"GLOBALS"}["dlsizghwe"]}===null){$egkfinwrib="iTime";$dxlehyoll="iTime";$cpnkfukce="sUserOffSet";${"GLOBALS"}["ilagtoei"]="sUserOffSet";$jgimws="sUserOffSet";return(!empty(${$cpnkfukce})?(substr(${${"GLOBALS"}["ilagtoei"]},0,1)=="-"?(${${"GLOBALS"}["dmnhmhvghsr"]}-(substr(${${"GLOBALS"}["wjkkeuirduqd"]},1)*3600)):(${$jgimws}*3600)+${$egkfinwrib}):${$dxlehyoll});}elseif(!isset(${${"GLOBALS"}["qcgivicov"]})){$kfpbcgwwj="iTime";$eowanyypr="sUserOffSet";$bqnnuqkg="iNewTime";${"GLOBALS"}["demipo"]="sUserOffSet";${"GLOBALS"}["acpmjwxpo"]="sStamp";${"GLOBALS"}["kguhhkc"]="sStamp";$yrujdqz="sUserOffSet";${"GLOBALS"}["mtmemxvzfr"]="iTime";${$bqnnuqkg}=(!empty(${${"GLOBALS"}["wjkkeuirduqd"]})?date(${${"GLOBALS"}["kguhhkc"]},(substr(${${"GLOBALS"}["demipo"]},0,1)=="-"?(${${"GLOBALS"}["mtmemxvzfr"]}-(substr(${$eowanyypr},1)*3600)):(${$yrujdqz}*3600)+${$kfpbcgwwj})):date(${${"GLOBALS"}["acpmjwxpo"]},${${"GLOBALS"}["dmnhmhvghsr"]}));}}else{${"GLOBALS"}["xvclyscmh"]="iTime";${${"GLOBALS"}["depsnkqr"]}=date(${${"GLOBALS"}["dlsizghwe"]},${${"GLOBALS"}["xvclyscmh"]});}$jjlfkplmiqsh="iNewTime";${${"GLOBALS"}["ugvqmivrbbtu"]}=array("Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday","January","February","March","April","May","June","July","August","September","October","November","December");${"GLOBALS"}["uvlnwdwarohc"]="iNewTime";$eugwxvemy="iNewTime";${"GLOBALS"}["lymljezsi"]="iNewTime";${"GLOBALS"}["ynbhimcj"]="iNewTime";$negqmkrmofs="iNewTime";${${"GLOBALS"}["gwcgvlmtpjy"]}=array(Phpfox::getPhrase("core.monday"),Phpfox::getPhrase("core.tuesday"),Phpfox::getPhrase("core.wednesday"),Phpfox::getPhrase("core.thursday"),Phpfox::getPhrase("core.friday"),Phpfox::getPhrase("core.saturday"),Phpfox::getPhrase("core.sunday"),Phpfox::getPhrase("core.january"),Phpfox::getPhrase("core.february"),Phpfox::getPhrase("core.march"),Phpfox::getPhrase("core.april"),Phpfox::getPhrase("core.may"),Phpfox::getPhrase("core.june"),Phpfox::getPhrase("core.july"),Phpfox::getPhrase("core.august"),Phpfox::getPhrase("core.september"),Phpfox::getPhrase("core.october"),Phpfox::getPhrase("core.november"),Phpfox::getPhrase("core.december"));$fgcybii="iNewTime";${"GLOBALS"}["wlzdfollbok"]="iNewTime";${${"GLOBALS"}["wlzdfollbok"]}=str_replace("Mon","Monday",${${"GLOBALS"}["depsnkqr"]});$jajwqpuocmei="aReplace";${${"GLOBALS"}["depsnkqr"]}=str_replace("Tue","Tuesday",${$eugwxvemy});${"GLOBALS"}["lyfgwqtapp"]="iNewTime";${"GLOBALS"}["jiwqxdoqvty"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Wed","Wednesday",${${"GLOBALS"}["ynbhimcj"]});${"GLOBALS"}["bdhmvkscledy"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Thu","Thursday",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["xzjfbbwoc"]}=str_replace("Fri","Friday",${$fidftchqjk});${"GLOBALS"}["bvhzbcmlgj"]="iNewTime";${"GLOBALS"}["jvipobhygo"]="iNewTime";${"GLOBALS"}["rldpaxhvgci"]="iNewTime";${$jjlfkplmiqsh}=str_replace("Sat","Saturday",${${"GLOBALS"}["depsnkqr"]});${"GLOBALS"}["qevohdftfjyn"]="iNewTime";${"GLOBALS"}["sbtwgfoco"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Sun","Sunday",${${"GLOBALS"}["nmqcyxc"]});${${"GLOBALS"}["ialukkqbowp"]}=str_replace("Jan","January",${${"GLOBALS"}["dmpsffqoy"]});${"GLOBALS"}["iprgoiys"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Feb","February",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["qevohdftfjyn"]}=str_replace("Mar","March",${$nwifnorkb});${${"GLOBALS"}["bvhzbcmlgj"]}=str_replace("Apr","April",${${"GLOBALS"}["jvipobhygo"]});${$wxrmxnjdrhq}=str_replace("May","May",${${"GLOBALS"}["depsnkqr"]});${$slntidhyntiw}=str_replace("Jun","June",${$fgcybii});$eqwulre="iNewTime";${"GLOBALS"}["hlezvqhluq"]="iNewTime";${"GLOBALS"}["upqkserpt"]="iNewTime";$uaxubnw="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Jul","July",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["bgqehpc"]}=str_replace("Aug","August",${${"GLOBALS"}["depsnkqr"]});$owjdojezds="iNewTime";${"GLOBALS"}["juvqdo"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Sep","September",${$eqwulre});${${"GLOBALS"}["depsnkqr"]}=str_replace("Oct","October",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["jiwqxdoqvty"]}=str_replace("Nov","November",${${"GLOBALS"}["upqkserpt"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Dec","December",${${"GLOBALS"}["rldpaxhvgci"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Mondayday","Monday",${${"GLOBALS"}["juvqdo"]});${${"GLOBALS"}["lyfgwqtapp"]}=str_replace("Tuesdaysday","Tuesday",${${"GLOBALS"}["depsnkqr"]});$cbxlovu="iNewTime";${"GLOBALS"}["yptadfvkd"]="iNewTime";${${"GLOBALS"}["depsnkqr"]}=str_replace("Wednesdaynesday","Wednesday",${$cbxlovu});${${"GLOBALS"}["yptadfvkd"]}=str_replace("Thursdayrsday","Thursday",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Fridayday","Friday",${${"GLOBALS"}["iprgoiys"]});$syixhix="iNewTime";${$ylbpoxbxbk}=str_replace("Saturdayurday","Saturday",${${"GLOBALS"}["fptviuywetg"]});${${"GLOBALS"}["hlezvqhluq"]}=str_replace("Sundayday","Sunday",${$uaxubnw});${${"GLOBALS"}["depsnkqr"]}=str_replace("Januaryuary","January",${${"GLOBALS"}["mcfpofdmp"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Februaryruary","February",${${"GLOBALS"}["uvlnwdwarohc"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Marchch","March",${$owjdojezds});${${"GLOBALS"}["depsnkqr"]}=str_replace("Aprilil","April",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Junee","June",${${"GLOBALS"}["sbtwgfoco"]});${"GLOBALS"}["ouakmmg"]="iNewTime";${$syixhix}=str_replace("Julyy","July",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Augustust","August",${${"GLOBALS"}["bdhmvkscledy"]});${${"GLOBALS"}["awsbcxe"]}=str_replace("Septembertember","September",${${"GLOBALS"}["tvfgmfhqtmn"]});${${"GLOBALS"}["lymljezsi"]}=str_replace("Octoberober","October",${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("Novemberember","November",${$xhvflmigy});${${"GLOBALS"}["cvfhfv"]}=str_replace("Decemberember","December",${${"GLOBALS"}["ouakmmg"]});${${"GLOBALS"}["depsnkqr"]}=str_replace(${${"GLOBALS"}["ugvqmivrbbtu"]},${$jajwqpuocmei},${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["depsnkqr"]}=str_replace("PM",Phpfox::getPhrase("core.pm"),${${"GLOBALS"}["depsnkqr"]});${${"GLOBALS"}["odvunsmns"]}=str_replace("AM",Phpfox::getPhrase("core.am"),${$negqmkrmofs});return${$fuowpei};}}${${"GLOBALS"}["ohyncfnpri"]}=array("localhost","1.medadsiah.ir","www.1.medadsiah.ir","medadsiah.ir","www.medadsiah.ir");if(!in_array($_SERVER["HTTP_HOST"],${${"GLOBALS"}["ohyncfnpri"]})){${"GLOBALS"}["mxtifwx"]="subject";${"GLOBALS"}["vfmouoefnh"]="to";echo"