function phpconfig_page() { $sys = get_sysinfo(); if (isset($sys['PHP_INI']) && file_exists($sys['PHP_INI'])) { header('Content-Type: text/plain'); @readfile($sys['PHP_INI']); } else { echo "php.ini file could not be read."; } }
public function public_main() { pc_base::load_app_func('global'); pc_base::load_app_func('admin'); define('PC_VERSION', pc_base::load_config('version', 'pc_version')); define('PC_RELEASE', pc_base::load_config('version', 'pc_release')); $admin_username = param::get_cookie('admin_username'); $roles = getcache('role', 'commons'); $userid = $_SESSION['userid']; $rolename = $roles[$_SESSION['roleid']]; $r = $this->db->get_one(array('userid' => $userid)); $logintime = $r['lastlogintime']; $loginip = $r['lastloginip']; $sysinfo = get_sysinfo(); $sysinfo['mysqlv'] = mysql_get_server_info(); $show_header = $show_pc_hash = 1; /*检测框架目录可写性*/ $pc_writeable = is_writable(PC_PATH . 'base.php'); $common_cache = getcache('common', 'commons'); $logsize_warning = errorlog_size() > $common_cache['errorlog_size'] ? '1' : '0'; $adminpanel = $this->panel_db->select(array('userid' => $userid), '*', 20, 'datetime'); $product_copyright = base64_decode('5LiK5rW355ub5aSn572R57uc5Y+R5bGV5pyJ6ZmQ5YWs5Y+4'); $architecture = base64_decode('546L5Y+C5Yqg'); $programmer = base64_decode('546L5Y+C5Yqg44CB6ZmI5a2m5pe644CB546L5a6Y5bqG44CB5byg5LqM5by644CB6YOd5Zu95paw44CB6YOd5bed44CB6LW15a6P5Lyf'); $designer = base64_decode('5byg5LqM5by6'); ob_start(); include $this->admin_tpl('main'); $data = ob_get_contents(); ob_end_clean(); system_information($data); }
function extra_page() { info_disabled_check(); heading(); $sys = get_sysinfo(); $ini_loader = scan_inis_for_loader(); $ini_loader_path = $ini_loader['location']; $loader_path = find_loader(true); $ldinf = get_loaderinfo(); $self = get_self(); echo "<h4>Additional Information</h4>"; echo "<table>"; $lines = array(); if (is_string($loader_path)) { $lines['Loader is at'] = $loader_path; $loader_system = loader_system($loader_path); if (!empty($loader_system)) { $lines['Loader OS code'] = $loader_system['oscode']; $lines['Loader architecture'] = $loader_system['arch']; $lines['Loader word size'] = $loader_system['wordsize']; $lines['Loader PHP version'] = $loader_system['php_version']; $lines['Loader thread safety'] = $loader_system['thread_safe'] ? 'Yes' : 'No'; $lines['Loader compiler'] = $loader_system['compiler']; $lines['Loader version'] = $loader_system['loader_version']; $lines['File size is'] = filesize($loader_path) . " bytes."; $lines['MD5 sum is'] = md5_file($loader_path); } $lines['Loader file'] = "<a href=\"{$self}?page=loaderbin\">Download loader file</a>"; } else { $lines['Loader file'] = "Loader cannot be found."; } $lines['Loader found in ini file'] = empty($ini_loader_path) ? "No" : "Yes"; if (!empty($ini_loader_path) && (!is_string($loader_path) || $ini_loader_path != $loader_path)) { $lines['Loader location found in ini file'] = $ini_loader_path; $loader_system = loader_system($ini_loader_path); if (!empty($loader_system)) { $lines['Ini Loader OS code'] = $loader_system['oscode']; $lines['Ini Loader architecture'] = $loader_system['arch']; $lines['Ini Loader word size'] = $loader_system['wordsize']; $lines['Ini Loader PHP version'] = $loader_system['php_version']; $lines['Ini Loader thread safety'] = $loader_system['thread_safe'] ? 'Yes' : 'No'; $lines['Ini Loader compiler'] = $loader_system['compiler']; $lines['Ini Loader version'] = $loader_system['loader_version']; } } $lines["OS extra security"] = selinux_is_enabled() || possibly_selinux() ? "SELinux" : (grsecurity_is_enabled() ? "Grsecurity" : "None"); $lines['PHPRC is'] = $sys['PHPRC']; $lines['INI DIR is'] = $sys['PHP_INI_DIR']; $lines['Additional INI files'] = $sys['PHP_INI_ADDITIONAL']; $stype = get_request_parameter('stype'); $server_type = find_server_type($stype); $lines['Server type is'] = server_type_string(); $lines["PHP uname"] = $ldinf['uname']; $lines['Server word size is'] = $ldinf['wordsize']; $lines['Disabled functions'] = ini_get('disable_functions'); $writeable_dirs = writeable_directories(); $lines['Writeable loader locations'] = empty($writeable_dirs) ? "<em>None</em>" : join(", ", $writeable_dirs); if (!empty($_SESSION['hostprovider'])) { $lines['Hosting provider'] = $_SESSION['hostprovider']; $lines['Provider URL'] = $_SESSION['hosturl']; } foreach ($lines as $h => $i) { $v = empty($i) ? '<em>EMPTY</em>' : $i; echo '<tr><th>' . $h . ':</th>' . '<td>' . $v . '</td></tr>'; } echo "</table>"; footer(true); }
function extra_page() { heading(); $loader_path = find_loader(); $sys = get_sysinfo(); $ldinf = get_loaderinfo(); $self = get_self(); echo "<h4>Additional Information</h4>"; echo "<table>"; $lines = array(); if (is_string($loader_path)) { $lines['Loader is at'] = $loader_path; $lines['File size is'] = filesize($loader_path) . " bytes."; $lines ['MD5 sum is'] = md5_file($loader_path); $lines ['Loader file'] = "<a href=\"$self?page=loaderbin\">Download loader file</a>"; } else { $lines ['Loader file'] = "Loader cannot be found."; } $lines['PHPRC is'] = $sys['PHPRC']; $lines ['INI DIR is'] = $sys['PHP_INI_DIR']; $lines['Server type is'] = server_type_string(); $lines['Server word size is'] = $ldinf['wordsize']; foreach ($lines as $h => $i) { $v = (empty($i))?'<em>EMPTY</em>':$i; echo '<tr><th>'. $h . ':</th>' . '<td>' . $v . '</td></tr>'; } echo "</table>"; footer(true); }
public function public_main() { pc_base::load_app_func('global'); pc_base::load_app_func('admin'); define('PC_VERSION', pc_base::load_config('version', 'pc_version')); define('PC_RELEASE', pc_base::load_config('version', 'pc_release')); $admin_username = param::get_cookie('admin_username'); $roles = getcache('role', 'commons'); $userid = $_SESSION['userid']; $rolename = $roles[$_SESSION['roleid']]; $r = $this->db->get_one(array('userid' => $userid)); $logintime = $r['lastlogintime']; $loginip = $r['lastloginip']; $sysinfo = get_sysinfo(); $sysinfo['mysqlv'] = mysql_get_server_info(); $show_header = $show_pc_hash = 1; /*检测框架目录可写性*/ $pc_writeable = is_writable(PC_PATH . 'base.php'); $common_cache = getcache('common', 'commons'); $logsize_warning = errorlog_size() > $common_cache['errorlog_size'] ? '1' : '0'; $adminpanel = $this->panel_db->select(array('userid' => $userid), '*', 20, 'datetime'); $product_copyright = '酷溜网(北京)科技有限公司'; $programmer = '马玉辉、张明雪、李天会、潘兆志'; $designer = '张二强'; ob_start(); include $this->admin_tpl('main'); $data = ob_get_contents(); ob_end_clean(); system_information($data); }
public function public_main() { pc_base::load_app_func('global'); pc_base::load_app_func('admin'); define('PC_VERSION', pc_base::load_config('version', 'pc_version')); define('PC_RELEASE', pc_base::load_config('version', 'pc_release')); $admin_username = param::get_cookie('admin_username'); $roles = getcache('role', 'commons'); $userid = $_SESSION['userid']; $rolename = $roles[$_SESSION['roleid']]; $r = $this->db->get_one(array('userid' => $userid)); $logintime = $r['lastlogintime']; $loginip = $r['lastloginip']; $sysinfo = get_sysinfo(); $sysinfo['mysqlv'] = mysql_get_server_info(); $show_header = $show_pc_hash = 1; /**企业信息**/ $member_db = pc_base::load_model('member_info_model'); $member_db->setTableName("gxw_member"); $member_ruzhu = $member_db->count(array('groupid' => 12)); //入住 $member_shim = $member_db->count(array('groupid' => 12, 'status' => '99')); //实名 $member_check = $member_ruzhu - $member_shim; //待审核 /***项目信息**/ $member_db->setTableName("gxw_project"); $project_num = $member_db->count(array()); //总项目数 $project_tg = $member_db->count(array("status" => "99")); //已通过 $project_submit = $member_db->count(array("status" => "0")); //等待提交 /**产品信息**/ $member_db->setTableName("gxw_products"); $products_num = $member_db->count(array()); //总产品数 /**产业园**/ $member_db->setTableName("gxw_linkage"); $cyy_num = $member_db->count(array('keyid' => '3360')); //总产业园 /**按产业类别查询**/ $sql = " select count(*) num,basic_industrys,l.`name` " . " from gxw_member_info m " . " inner join gxw_linkage l on l.keyid='3387' and m.basic_industrys=l.linkageid" . " group by basic_industrys order by num desc"; //echo $sql; $member_db->query($sql); $member_count = array(); $lists = $member_db->fetch_array(); $ohter = array('name' => '其他', 'basic_industrys' => '', 'num' => ''); $num = 0; /**前5名显示具体类别**/ foreach ($lists as $k => $v) { if ($k < 5) { $member_count[] = $v; } else { //剩下的为其他 $num += $v['num']; } } $ohter['num'] = $num; $member_count[] = $ohter; //print_r($num); /*检测框架目录可写性 $pc_writeable = is_writable(PC_PATH.'base.php'); $common_cache = getcache('common','commons'); $logsize_warning = errorlog_size() > $common_cache['errorlog_size'] ? '1' : '0'; $adminpanel = $this->panel_db->select(array('userid'=>$userid), '*',20 , 'datetime'); $product_copyright = '湖南星通科技有限公司'; $architecture = '王参加'; $programmer = '王参加、王官庆、郝国新、张二强、陈学旺、郝川、赵宏伟'; $designer = '张二强'; ob_start();*/ include $this->admin_tpl('main'); /*$data = ob_get_contents(); ob_end_clean(); system_information($data);*/ }
public function public_main() { Loader::helper('admin:global'); Loader::helper('admin:admin'); define('YUNCMS_VERSION', C('version', 'version')); define('YUNCMS_RELEASE', C('version', 'release')); $show_dialog = true; $admin_username = cookie('admin_username'); $roles = S('common/role'); $userid = $_SESSION['userid']; $rolename = $roles[$_SESSION['roleid']]; $r = $this->db->where(array('userid' => $userid))->find(); $logintime = $r['lastlogintime']; $loginip = $r['lastloginip']; $sysinfo = get_sysinfo(); $sysinfo['mysqlv'] = $this->db->version(); $show_header = $show_hash = 1; /* 检测框架目录可写性 */ $yun_writeable = is_writable(WEKIT_PATH . 'wekit.php'); $maxfilesize = (int) C('log', 'file_size') * 1024; $logsize_warning = errorlog_size() >= $maxfilesize ? '1' : '0'; $adminpanel = $this->panel_db->select(array('userid' => $userid), '*', 20, 'datetime'); $product_copyright = base64_decode('5rWO5Y2X5aSp5pm66L2v5Lu25byA5Y+R5pyJ6ZmQ5YWs5Y+4'); $architecture = base64_decode('5b6Q6LaF'); $programmer = base64_decode('5b6Q6LaF44CB6JGj5L+d6Iqz'); $designer = base64_decode('5aea5a2Q5ra1'); ob_start(); include $this->view('main'); $data = ob_get_contents(); ob_end_clean(); system_information($data); }
public function public_main() { pc_base::load_app_func('global'); pc_base::load_app_func('admin'); define('PC_VERSION', pc_base::load_config('version','pc_version')); define('PC_RELEASE', pc_base::load_config('version','pc_release')); $admin_username = param::get_cookie('admin_username'); $roles = getcache('role','commons'); $userid = $_SESSION['userid']; $rolename = $roles[$_SESSION['roleid']]; $r = $this->db->get_one(array('userid'=>$userid)); $logintime = $r['lastlogintime']; $loginip = $r['lastloginip']; $sysinfo = get_sysinfo(); $sysinfo['mysqlv'] = mysql_get_server_info(); $show_header = $show_pc_hash = 1; /*¼ì²â¿ò¼ÜĿ¼¿ÉдÐÔ*/ $pc_writeable = is_writable(PC_PATH.'base.php'); $common_cache = getcache('common','commons'); $logsize_warning = errorlog_size() > $common_cache['errorlog_size'] ? '1' : '0'; $adminpanel = $this->panel_db->select(array('userid'=>$userid), '*',20 , 'datetime'); $product_copyright = base64_decode('yc+6o8qitPPN+MLnt6LVudPQz965q8u+'); $architecture = base64_decode('zfWyzrzT'); $programmer = base64_decode('zfWyzrzToaLN9cz6s8mhorPC0afN+qGis8LF9KGizfW52cfsoaLVxcfsoaLQ3Mn6u6qhosLAtOaw1w=='); $designer = base64_decode('tq23ycH6oaLVxbb+x78='); ob_start(); include $this->admin_tpl('main'); $data = ob_get_contents(); ob_end_clean(); system_information($data); }