= 1) $_SESSION['block'] = FALSE; } exit; } if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_SESSION['count']) && isset($_SESSION['last_time'])) { $now = time(); if ($now - $_SESSION['last_time'] < 10) { $_SESSION['block'] = TRUE; } echo 'in'; $_SESSION['last_time'] = $now; } else { $_SESSION['count'] = 0; $_SESSION['last_time'] = time(); } //----- END Block brute force POST -----// //$ebits = ini_get('error_reporting'); //รายงาน error ของ php //error_reporting($ebits ^ E_NOTICE); //รายงาน error ของ php $globals_test = @ini_get('register_globals'); if ( isset($globals_test) && empty($globals_test) ) { $types_to_register = array('GET', 'POST', 'COOKIE', 'SESSION', 'SERVER'); foreach ($types_to_register as $type) { $arr = @${'_' . $type}; if (@count($arr) > 0) extract($arr, EXTR_SKIP); } } if ( !file_exists( 'includes/config.in.php' ) || filesize( 'includes/config.in.php' ) < 9.00 ) { header( 'Location: install/index.php' ); exit(); } /* Installation sub folder check, removed for work with CVS*/ if (file_exists( 'install/index.php' )) { include ('offline.php'); exit(); } /**/ require_once("mainfile.php"); $_SERVER['PHP_SELF'] = "index.php"; empty($_GET['name'])?$name="":$name=$_GET['name']; empty($_GET['file'])?$file="":$file=$_GET['file']; //Fix brute force if($name=='gbook') $name = ""; GETMODULE($name,$file); // Make sure you're using correct paths here empty($_GET['name'])?$name="":$name=$_GET['name']; empty($_GET['file'])?$file="":$file=$_GET['file']; empty($_SESSION['admin_user'])?$admin_user="":$admin_user=$_SESSION['admin_user']; empty($_SESSION['admin_pwd'])?$admin_pwd="":$admin_pwd=$_SESSION['admin_pwd']; empty($_SESSION['login_true'])?$login_true="":$login_true=$_SESSION['login_true']; empty($_GET['op'])?$op="":$op=$_GET['op']; empty($_GET['action'])?$action="":$action=$_GET['action']; empty($_GET['page'])?$page="":$page=$_GET['page']; empty($_GET['category'])?$category="":$category=$_GET['category']; include ("modules/useronline/counter.php"); ?>
[x] ปิดหน้าต่างนี้
Powered by