<?php
/**
 *      [eminer] (C)20013-2099 eminer Inc.
 *      This is NOT a freeware, use is subject to license terms
 *      $Id: mr_sys_info.php  September 21, 2014, 9:17 am Hogan $
 */
require_once(dirname(__FILE__)."/config.php"); require_once(eminerINC.'/HttpClient.class.php'); ee7f2ef84(); if(empty($eb5707348)) $eb5707348 = "";  if(empty($e435ed7e9)){ $e16462f89 = explode('mr_',$_SERVER['REQUEST_URI']); $e435ed7e9= $e16462f89[1]; }else $e435ed7e9 = urldecode($e435ed7e9); $eb6c4d0e1 = eminerteconfig.'/config.cache.inc.php'; $e8ea72651=strpos(eminerDATA,'/')!==false?eminerDATA.'/'.$e2fa66dd0->eea8f538c.'/params/':eminerDATA.'params\\';  if($eb5707348=="save") { $ec08c2dcc=array();$paramarr=array(); $ed19383ed=$ea1f64765=''; if(is_file($e8ea72651.'param.js'))$e94f64a85 = file_get_contents($e8ea72651.'param.js'); if($e94f64a85) eval($e94f64a85); $ed19383ed="<"."?php\r\nif(!isset(\$paramarr))\$paramarr=array();\r\n"; foreach($_POST as $e8ce4b16b=>$e9e3669d1) { if(strpos($e8ce4b16b, 'edit___')===0){ $e8ce4b16b=str_replace('edit___', '', $e8ce4b16b) ; if(strpos($e8ce4b16b, 'php_')===0){  $ec08c2dcc[$e8ce4b16b]=$e9e3669d1; $ed19383ed.='$paramarr["'.$e8ce4b16b.'"]="'.$e9e3669d1."\";\r\n"; }else { $paramarr[$e8ce4b16b]=$e9e3669d1;  } } } foreach($paramarr as $e8ce4b16b=>$e9e3669d1){ $ea1f64765.='$paramarr["'.$e8ce4b16b.'"]="'.$e9e3669d1."\";\r\n"; } $ed19383ed.= "?".">"; if(!is_dir($e8ea72651)) e1697d2d4($e8ea72651); file_put_contents($e8ea72651.'param.js', $ea1f64765); file_put_contents($e8ea72651.'param.php', $ed19383ed); ea7e7cb02("mr_sys_info.php",'成功更改站点配置！'); exit(); }elseif($eb5707348=="savesettings"){ $paramarr=$eb9be7149=array(); $ea1f64765=''; if(!is_dir($e8ea72651)) e1697d2d4($e8ea72651); if(is_file($e8ea72651.'param.js'))$e42d41938 = file_get_contents($e8ea72651.'param.js'); if($e42d41938) eval($e42d41938); foreach($_POST as $e8ce4b16b=>$e9e3669d1) { if($e9e3669d1!==0 && !$e9e3669d1)$e9e3669d1=''; $paramarr["cfg_$e8ce4b16b"]=$e9e3669d1; } foreach($paramarr as $e8ce4b16b=>$e9e3669d1) { $eb9be7149[$e8ce4b16b]=$e9e3669d1; $ea1f64765.='$paramarr["'.$e8ce4b16b.'"]="'.$e9e3669d1."\";\r\n"; } file_put_contents($e8ea72651.'param.js', $ea1f64765); ea7e7cb02("mr_sys_info.php",'成功更改站点配置！'); exit(); }else{ $e7001b7bd = e17294293($ec313e3c0,$e435ed7e9); if($e7001b7bd){$e6eba5587 = unserialize($e7001b7bd);} else { exit('网络或服务器故障，请返回检查原因或再重试一次！'); } $paramarr=array(); @include $e8ea72651.'param.php'; if(is_file($e8ea72651.'param.js'))$e42d41938 = file_get_contents($e8ea72651.'param.js'); if($e42d41938) eval($e42d41938); foreach($e6eba5587 as $e8ce4b16b => &$e9e3669d1){ if(isset($paramarr[$e9e3669d1['e2b359ce0']])) $e9e3669d1['val'] = $paramarr[$e9e3669d1['e2b359ce0']]; } require('eminer_templates/sys_info.htm'); }