Detected 1 occurrence(s) of ‘mysql_[p]*connect\([“‘]{0,1}[a-z0-9\-\.\$]+[“‘]{0,1}\s*,': , $pass = NULL, $db = NULL) { if(!file_exists(ADMIN_DIRECTORY.'/config.php')) header("Location: ".ADMIN_DIRECTORY."/install.php"); if(empty($host) && empty($user) && empty($pass) && empty($db)) require_once(ADMIN_DIRECTORY.'/config.php'); if(!@mysql_connect($host, $user, $pass)) exit("Database server connection error"); else if(!@mysql_select_db($db)) exit("No connection with database"); mysql_query("SET NAMES utf8"); } public function isAdmin() { if(isset($_SESSION[$this->host().'-us_user']) && i Source: http://pastebin.com/raw.php?i=YR59T2Dx
↧