Erro Global. 18.04.12 17:27
Como posso arrumar o erro global.php ?
Me ajudem :* Agradeço dese já.
Me ajudem :* Agradeço dese já.
<?php
//Installation files? - Start
if(file_exists('ainstall.php'))
{
echo 'Go to <a href="install.php">install.php</a>';
die;
}
if(file_exists('aupdate.php'))
{
echo 'Go to <a href="update.php">update.php</a>';
die;
}
//Installation files? - End
define('SEP', DIRECTORY_SEPARATOR);
$dir = str_replace('register'.SEP, '', dirname(__FILE__).SEP);
$dir = str_replace('functions'.SEP, '', $dir);
$dir = str_replace('housekeeping'.SEP, '', $dir);
define('DIR', $dir);
define('DOCUMENT_ROOT', DIR.SEP);
define('INCLUDES', DIR.'inc'.SEP);
define('WWW', 'http://'.$_SERVER['SERVER_NAME']);
session_start();
require_once DOCUMENT_ROOT.'config.php';
$connect = mysql_connect($host, $username, $password) or die("Could not connect to server, error: ".mysql_error());
mysql_select_db($dbname, $connect) or die("Could not connect to database, error: ".mysql_error());
require_once INCLUDES."class.core.php";
require_once INCLUDES."class.users.php";
require_once INCLUDES."class.pm.php";
$pms = new Pm();
$core = new Core();
$users = new Users();
require_once DOCUMENT_ROOT.'lang/'.$language.'.php';
define('MAINTENANCE', $core->CmsSetting('cms_maintenance'));
if(USERNAME_REQUIRED == TRUE && !isset($_SESSION["username"]))
header("Location: ".WWW."/characters.php");
if(ACCOUNT_REQUIRED == TRUE && !isset($_SESSION["account"]))
header("Location: ".WWW."/index.php");
$sitename = $core->CmsSetting('cms_name');
if(isset($_SESSION["username"]))
{
$username = $core->EscapeString($_SESSION['username']);
if($users->CheckBan($username))
header($users->BanInfo($username));
}
?>
Olá amigo, consulte este tutorial:
https://www.power-pixel.net/t14948
Até Mas.
Leia mais em: https://www.power-pixel.net/t18039-erro-global#ixzz1sQo9je5p
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.