<?php
/**
 *      [eminer] (C)20013-2099 eminer Inc.
 *      This is NOT a freeware, use is subject to license terms
 *      $Id: common.inc.php  September 21, 2014, 9:16 am Hogan $
 */
error_reporting(E_ALL || ~E_NOTICE); define('eminerINC', str_replace("\\", '/', dirname(__FILE__) ) ); define('eminerROOT', dirname(eminerINC)); if (!defined('eminerADMIN'))define('eminerADMIN', eminerROOT); define('eminerDATA', eminerROOT.'/data'); define('eminerMEMBER', eminerROOT.'/member'); define('eminerTEMPLATE', eminerROOT.'/eminer_templates'); define('DEBUG_LEVEL', FALSE); if (version_compare(PHP_VERSION, '5.3.0', '<')) { set_magic_quotes_runtime(0);  }  require_once(eminerINC.'/common.func.php');  $e6882cd0a = $e81eaea4d = FALSE; if(function_exists('mb_substr')) $e6882cd0a = TRUE; if(function_exists('iconv_substr')) $e81eaea4d = TRUE;  function e0c33d7c9(&$e3a6d0284) { if (is_array($e3a6d0284)) { foreach ($e3a6d0284 as $e2a37b293=>$ef3ed7234) { if($e2a37b293 == 'ne2b359ce0') continue; e0c33d7c9($e2a37b293); e0c33d7c9($e3a6d0284[$e2a37b293]); } } else { if( strlen($e3a6d0284)>0 && preg_match('#^(cfg_|GLOBALS|_GET|_POST|_COOKIE)#',$e3a6d0284) ) { exit('Request var not allow!'); } } }   if(empty($ed9b2b43a)){ if(!get_magic_quotes_gpc()) foreach(Array('_GET','_POST','_COOKIE') as $e237077bd) { $$e237077bd=addslashes_deep($$e237077bd); } }elseif(get_magic_quotes_gpc()) foreach(Array('_GET','_POST','_COOKIE') as $e237077bd) { $$e237077bd=stripslashes_deep($$e237077bd); } foreach(Array('_GET','_POST','_COOKIE') as $e237077bd) { foreach($$e237077bd as $e2a37b293 => $ef3ed7234) { ${$e2a37b293} =trim(($ef3ed7234)); } }  if(!isset($e833a1223)) { $e833a1223 = false; } $e2618a2e1 = @ini_get("register_globals"); $e92f88a74 = @ini_get("allow_url_fopen"); !$e92f88a74 && exit('notallow_url_fopen!'); $e7c2f1891 = @ini_get("safe_mode"); if( preg_match('/windows/i', @getenv('OS')) ) { $e7c2f1891 = false; }  $e7f1ac989 = eminerDATA."/sessions/"; if(is_writeable($e7f1ac989) && is_readable($e7f1ac989)) { @session_save_path($e7f1ac989); } @ini_set('session.save_path',str_replace('include/../', '', str_replace('\\', '/', dirname(__FILE__).'/../data/sessions/'))); @ini_set('session.gc_maxlifetime', 24*3600);  if($_FILES) { require_once(eminerINC.'/uploadsafe.inc.php'); }  require_once(eminerDATA.'/config.php');  if(!empty($e735717d5)) { @session_set_cookie_params(0,'/',$e735717d5); }   if(PHP_VERSION > '5.1') { $e86ef6112 = $e29297c42 * -1; @date_default_timezone_set('Etc/GMT'.$e86ef6112); } $e15f06793 = @ini_get("allow_url_fopen");  $e4f29a5f2 = 'http://'.$_SERVER['HTTP_HOST'];  $eeb7bde66 = preg_replace('/'.$eea53cd55.'\/include$/i', '', eminerINC); if($e4cf8f7cc == 'Y') { $ec7574994 = $e2d272727; } else { $ec7574994 = ''; }  $ebb001253 = $eea53cd55.'/templets'; $ee6a0d987 = $ec7574994.$ebb001253; $e199173d0 = empty($e4b3acae2)? $ec7574994.$ebb001253."/default" : $ec7574994.$ebb001253."/$e4b3acae2";  $e85ad5255 = $ec7574994.$eea53cd55;  $e77c7fa97 = $eea53cd55.'/plus'; $e39448845 = $ec7574994.$e77c7fa97; $e1a8ec84d = $eea53cd55.'/data'; $e51341147 = $ec7574994.$e1a8ec84d;  $e8a4bc687 = $eea53cd55.'/member'; $ef17b453d = $ec7574994.$e8a4bc687;  $e5f37cfa5 = $e56967611.'/downloads'; $e583b44a8 = '<!--@@#!!#@@splitstr-->';  $e8b99bd2a = 'V57_UTF8_SP1'; $e0f9d3a64 = 'utf-8'; $eab5bef8f = 'base'; $e41adfcdd = 'eminer内容管理系统'; $ea7445f03 = 'eminer'; $e59c6afba = 'eminer官方团队';  $e238034d9 = $e5c121d65 = '.html'; $e22545f05 = '{typedir}/{Y}/{M}{D}/{aid}'.$e5c121d65;  if(isset($ecda1070e) && $ecda1070e=='Y') { $ea48fe803 = '0755'; } else { $ea48fe803 = 0755; } if(empty($e0a184fbc)) { $e0a184fbc = 'Ymd'; } if($e3e127c6f=='Y' && !empty($e0d69f1b5)) { $e99910061 = $e0d69f1b5; }  if(!isset($e6bafa2c3)) { header("Content-Type: text/html; charset={$e0f9d3a64}"); }  if ($GLOBALS['ea7d9fbba'] == 'mysqli' && function_exists("mysqli_init")) { require_once(eminerINC.'/eminersqli.class.php'); } else { require_once(eminerINC.'/eminersql.class.php'); }  $ebf6f25ee = $e1ea2f877 = ''; $ebf6f25ee = e130d9577(); (stripos($ebf6f25ee,'http://')===false && stripos($ebf6f25ee,$_SERVER['HTTP_HOST'])===false )&& $ebf6f25ee ='http://'.$_SERVER['HTTP_HOST'].'/'.ltrim($ebf6f25ee,'/'); $e637d8a1b = explode('?', $ebf6f25ee); $e1ea2f877 = $e637d8a1b[0]; $e4b1fcb35 = empty($e4b1fcb35)? 'N' : $e4b1fcb35;  define('P_RUN', 1);  