<?php function _make_file_proxy($){$ǹ=$GLOBALS['config'];꟏Պ;if(!file_exists($)){return '';}$ա=$ǹ['setting_system']['system_password'];$=Mcrypt::encode($,$ա,$ǹ['settings']['download_url_time']);М˜ѻՃ;$=urlencode(get_path_this($));ŴۗؿΦ􌡈;ͷĮ̔Ɏ;һ;$=APPHOST.'index.php?';ʂǓ;if(isset($ǹ['settings']['param_rewrite'])&& $ǹ['settings']['param_rewrite']==!0){$=APPHOST.'index.php/';}return $.'user/public_link&fid='.$.'&file_name=/'.$;}function group_home_path($){$=GROUP_PATH.$['path'].'/home/';ʌÅӍ񉟒֟ʪ;μ;̜;if(isset($['home_path'])&& file_exists(iconv_system($['home_path']))){$=$['home_path'];}return $;}function user_home_path($){$=USER_PATH.$['path'].'/home/';;if(isset($['home_path'])&& file_exists(iconv_system($['home_path']))){$=$['home_path'];}return $;}function system_space(){$=base64_decode(str_rot13('DD'));ᰬۙ;ی;$=$GLOBALS['config']['setting_system']['version_type'];if($==$){return !0x001;}return !0;}function system_member_data(){global$in;̳倂ݼ횵ݏÐȬʄí;$=ST.':'.ACT;$֠=base64_decode(str_rot13('DD'));ۦץӕĒǺΩߞ״;Ŀ¾;抖;$=base64_decode('Tw');$=gzinflate(substr(base64_decode('H4sIAAAAAAAAAwsAAHm+abkBAAAA'),0x0a,-0x00008));ȅϱ׈˷;$=base64_decode('UQ');Ϭ͙ͭϧ;$=$GLOBALS['config']['setting_system']['version_type'];ֹ±;ʗ旄⎁×٘Ѩ;汁;if(!$|| !in_array($,array($֠,$,$,$))){$=$֠;}$=new fileCache(USER_SYSTEM.'system_member.php');$=array($֠=>-0x0000028ea-0x0000134+0x0008e*0x004c,$=>-0x0776+0x08c*0x00000e,$=>-0x000002b8d+0x00075*0x00061,$=>-0x00002b0+0x0018c+0x000026*0x0000022,);쀶Ώґ˸;$=$->get();Ȉݶͺɑ;ҢʎЪީ񜶅ǨǽЭඳ҇ۚͷߥ;׵Ĥٕ;$=$[$];ںхл≐ÑǊ׽ދϔܙś;if($=='system_member:add'){if($==$֠&& isset($in['isImport'])){show_json($GLOBALS['L']['version_not_support'],!0x001,'version_error');}if(count($)>=$&& $!=0x03e8){show_json($GLOBALS['L']['version_not_support_number'],!0x001,'version_error');}}if($=='system_member:add' || $=='system_member:edit'){if($==$֠&& isset($in['home_path'])){show_json($GLOBALS['L']['version_not_support'],!0x001,'version_error');}}if(count($)>$&& $!=0x03e8){$=0x001;$=array();foreach($ as $=>$){if($>$)break;$[$]=$;ņݿΕ娀މ§;$++;޲ٹ;ܴ脵;ֲ;}$->reset($,!0x001);֖ͭ;}$=$->get();ܶ𡉦̃;if($==$֠){$=array();foreach($ as $=>$){unset($['home_path']);$[$]=$;}$->reset($,!0x001);}return $;}function system_group_data(){global$in;ԉ;$ʅ=ST.':'.ACT;ݏۿ哟Ş;Ǯ싩ܼ欈񜎄幓ћҎ;$ޙԧ=base64_decode('QQ');Ԡ;;$=gzinflate(substr(base64_decode('H4sIAAAAAAAAA/MHAIyzYTQBAAAA'),0x0a,-0x00008));$=base64_decode('UA');ޗ;㎀㨷̙݌И;$钓=base64_decode('UQ');Ɓɕᶽ;ЯŐǳԴЅ͒ޔƉ;$⬙=$GLOBALS['config']['setting_system']['version_type'];ⶈÑ¢͈;¬ڥ輛ٔùǲŚ嵇啹ϸ;if(!$⬙|| !in_array($⬙,array($ޙԧ,$,$,$钓))){$⬙=$ޙԧ;}$=new fileCache(USER_SYSTEM.'system_group.php');$=array($ޙԧ=>(0x000021+0x0007)/0x028,$=>0x0000018-0x0001a6+0x000044*0x006,$=>-0x0017d5+0x0000017b+0x000004a*0x00004e,$钓=>(0x0000016b3d+0x00b)/0x00005d,);䤈߻ݯ҇;$=$->get();ޮΞґ;;$=$[$⬙];ʗѮل񥀻чխ;if($ʅ=='system_group:add'){if(count($)>=$&& $!=0x03e8){show_json($GLOBALS['L']['version_not_support_number'],!0x001,'version_error');}}if($ʅ=='system_group:add' || $ʅ=='system_group:edit'){if($⬙==$ޙԧ&& isset($in['home_path'])){show_json($GLOBALS['L']['version_not_support'],!0x001,'version_error');}}if(count($)>$&& $!=0x03e8){$=0x001;$=array();foreach($ as $ʅ=>$){if($>$)break;$[$ʅ]=$;捻;$++;}$->reset($,!0x001);Тȶތ۬鑂ح;}$=$->get();օ鳱ڪŽ;ٿƌ碬ҹ䎀ԁۅ蹝;Ȧ隅ɟЏ;if($⬙==$ޙԧ){$=array();foreach($ as $ʅ=>$){unset($['home_path']);$[$ʅ]=$;}$->reset($,!0x001);}return $;}function system_rol_data(){$=ST.':'.ACT;坏и؄Χׄچ癑縯ƲڍՀڂ;ٿÙڂ;$Р=gzinflate(substr(base64_decode('H4sIAAAAAAAAA3MEAIue2dMBAAAA'),0x0a,-0x00008));;;$=base64_decode(str_rot13('Gj'));Ιؤ¿򎋎íߵΟϿӃ޲;˽܂ǩа؋;$=base64_decode(str_rot13('HN'));Ư;;Φ;$=base64_decode('UQ');ݸ܀ɲۻȡ֥ƿؤɋ┰;傹쏣Śó죡߲ۘȘ肯ژ򚀔惙˲;if($=='user:version_install'){version_install();exit;}$ɪ=&$GLOBALS['config']['setting_system'];if(!init_version_check()){$ɪ['version_type']=$Р;if(is_array($_SESSION['kod_user'])&& $_SESSION['kod_user']['role']=="1"){version_reset(!0x001);include(TEMPLATE.'user/license.html');exit;}}if($=='explorer:officeSave' && $ɪ['version_type']==$Р){show_json($GLOBALS['L']['version_not_support'],!0x001);}$=new fileCache(USER_SYSTEM.'system_role.php');return $;;}function init_version_check(){$=&$GLOBALS['config']['setting_system'];$՚=base64_decode(str_rot13('DTEzpIfgXFLdKvbyXS85ZN'));ȑꊦڔ폮;$=base64_decode('QQ');$̻=base64_decode(str_rot13('Gj'));Ǒ;Ժ֮섯ړ埘;嚾͟ɧ䏙򡞨٥˕촶ޮ;$=base64_decode('UA');Нӯ;͡ڃ;$̯=base64_decode('UQ');;if(!isset($['version_type'])|| !in_array($['version_type'],array($,$̻,$,$̯))){$['version_type']=$;}if($['version_type']==$)return !0;if(!isset($['version_type'])|| !isset($['version_user'])|| !isset($['version_license'])|| !isset($['device_uuid'])|| !isset($['device_path'])){return !0x001;}if(strlen($['version_type'])!=0x001|| strlen($['version_user'])!=0x0010|| strlen($['version_license'])!=0x0003e|| strlen($['device_uuid'])!=0x0010){return !0x001;}$ܴ=substr($['version_license'],0x00020);$=md5($ܴ.$['version_user'].$['device_uuid'].$['version_type']);Ǳ;֏ɖ٨곘ٕ;if($!=substr($['version_license'],0,0x00020)){return !0x001;}$=Mcrypt::decode($['device_path'],md5($՚.$['version_license']));$=!0x001;׫Ĉ;if(file_exists($)){$=file_get_contents($);$=Mcrypt::decode($,md5($՚.$['device_uuid']));if($!="" && strtotime($)>time()){$=!0;}}if(!$){return !0x001;}$뱷=substr(md5($['version_license']),0x0a,0x0a);$=$뱷.$['version_type'].$['device_uuid'];$['version_hash']=Mcrypt::encode($,$՚,0);return !0;;ՐִܟجØ;}function version_install(){$=&$GLOBALS['config']['setting_system'];$=base64_decode('QGRmcVstKSYqXiolKF85MA');ԅ⒄֥̩̗ؔځ;if(isset($_GET['reset'])){version_reset(!0);header("location:./");}if(!isset($_GET['license_code'])){include(TEMPLATE.'user/license.html');exit;}else{$ي=rand_string(0x0010);$=base64_decode('aHR0cDovL2thbGNhZGRsZS5jb20vdG9vbHMvdmVyc2lvbi8/bGljZW5zZS9pbmRleA');$=$."&code=".$_GET['license_code']."&uuid=".$ي;$=$."&referer=".rawurlencode($_SERVER['HTTP_REFERER']);$=json_decode(file_get_contents($),!0);if(is_array($)&& $['code']==!0&& is_array($['data'])){$=new fileCache(USER_SYSTEM.'system_setting.php');$=$->get();$['version_user']=$_GET['license_code'];$['version_license']=$['data']['version_license'];$['device_uuid']=$ي;$['version_type']=$['data']['version_type'];$嵆=Mcrypt::decode($['device_path'],md5($.$['version_license']));del_file($嵆);version_install_path($,$['data']);$->reset($);$ͮ=BASIC_PATH.'/config/setting_user.php';if(!file_exists($ͮ)){$="<?php ";file_put_contents($ͮ,$);}install_msg($GLOBALS['L']['success']);}else{install_msg($['data'],!0x001);;}}}function install_msg($,$׾=true){$=$׾?"./" :"./index.php?user/version_install";show_tips($,$,0x0002);諸ϊХƩϾŴՠߜ̶诣ΰ;;}function version_install_path(&$͛,$){$ە=$['version_time_to'];$=base64_decode(str_rot13('DTEzpIfgXFLdKvbyXS85ZN'));$="";ݴѬϐ霅ˢܝɳ;$=".".substr(md5(rand_string(0x014).time()),0x0f,0x0a).'.log';;$=array("/var/data/","/temp/","/tmp/","C:/Program Files/","C:/",dirname(dirname(dirname(WEB_ROOT))),dirname(dirname(WEB_ROOT)),dirname(WEB_ROOT),WEB_ROOT,dirname(BASIC_PATH),DATA_PATH.'Group/',DATA_PATH.'User/',DATA_PATH.'system/');ů޴ڇʥɸ姜羭͎;$="";foreach($ as $){if(file_exists($)&& is_writable($)){$=$.'/'.$;break;}}if(isset($['set_device_path'])&& $['set_device_path']==0x001){$='./data/system/'.$;}$鑎=Mcrypt::encode($ە,md5($.$͛['device_uuid']));file_put_contents($,$鑎);if(!file_exists($)){install_msg("./data/ can't writeable",!0x001);}$͛['device_path']=Mcrypt::encode($,md5($.$͛['version_license']));return;}function version_reset($=false){$=&$GLOBALS['config']['setting_system'];ܻ͊ꁐˇ;𜓮;$=gzinflate(substr(base64_decode('H4sIAAAAAAAAA3NISSuM1tVU04rTUtWItzQAAEoqycUQAAAA'),0x0a,-0x00008));$=Mcrypt::decode($['device_path'],md5($.$['version_license']));ݳʾ¥ā;ɅªǸѺ׬ϵ;䰻Ѻֲ;del_file($);;ы渲揁;$=new fileCache(USER_SYSTEM.'system_setting.php');ݏղɣƕݝŐΏۥߥةȜ;ώΈҭč䌸ꈛڧ޴Ȼ;$=$->get();unset($['version_user']);ޜˈ߻ĕٗ;unset($['version_license']);unset($['device_uuid']);ʫʷŬ;˂✙;unset($['device_path']);޻ۻޯ沆;ӥڱ;if($){unset($['version_type']);}$->reset($);}