Como Concertar o Erro no global.php
Autor: W-Oliver | Publicado: 2011-12-19T22:32:00-02:00


Como Concertar o Erro no global.php&nbsp;1°-Vá em WWW folder no vertrigo&nbsp;2°Vá em global.php&nbsp;3°Apague Tudo que Tiver Lá e Copie e Cole isto:&nbsp;&lt;?php&nbsp;/*=======================================================================&nbsp;| Dayvso CMS - Leve sistema local para CMS&nbsp;| #######################################################################&nbsp;| Copyright (c) 2011, By 'dayvson1112'&nbsp;| #######################################################################&nbsp;| Este programa é software livre: você pode redistribuí-lo e / ou modificar&nbsp;| Lo sob os termos da GNU General Public License como publicado pela&nbsp;| A Free Software Foundation, tanto a versão 3 da Licença, ou&nbsp;| (em sua opção) qualquer versão posterior.&nbsp;| #######################################################################&nbsp;| Este programa é distribuído na esperança que possa ser útil,&nbsp;| mas SEM NENHUMA GARANTIA, nem mesmo a garantia implícita de&nbsp;| COMERCIALIZAÇÃO ou ADEQUAÇÃO PARA UM DETERMINADO PROPÓSITO. Veja o&nbsp;| GNU General Public License para mais detalhes.&nbsp;\======================================================================*/&nbsp;// ############################################################################&nbsp;// Preparar o ambiente local&nbsp;define('UBER', true);&nbsp;define('DS', DIRECTORY_SEPARATOR);&nbsp;define('LB', chr(13));&nbsp;define('CWD', str_replace('manage' . DS, '', dirname(__FILE__) . DS));&nbsp;define('INCLUDES', CWD . 'inc' . DS);&nbsp;define('USER_IP', $_SERVER['REMOTE_ADDR']);&nbsp;/* esse eh o erro da Global.php comente ele do msm jeito q esta aki e divirta-se&nbsp;set_magic_quotes_runtime('0');&nbsp;error_reporting(E_ALL);&nbsp;*/&nbsp;session_start();&nbsp;// ############################################################################&nbsp;// Inicializar classes principais&nbsp;require_once INCLUDES . "class.core.php";&nbsp;require_once INCLUDES . "class.db.mysql.php";&nbsp;require_once INCLUDES . "class.cron.php";&nbsp;require_once INCLUDES . "class.users.php";&nbsp;require_once INCLUDES . "class.tpl.php";&nbsp;$core = new uberCore();&nbsp;$cron = new uberCron();&nbsp;$users = new uberUsers();&nbsp;$tpl = new uberTpl();&nbsp;// ############################################################################&nbsp;// Executar algumas funcionalidades básicas necessárias&nbsp;$core-&gt;ParseConfig();&nbsp;$db = new MySQL($core-&gt;config['MySQL']['hostname'], $core-&gt;config['MySQL']['username'],&nbsp;$core-&gt;config['MySQL']['password'], $core-&gt;config['MySQL']['database']);&nbsp;$db-&gt;Connect();&nbsp;$cron-&gt;Execute();&nbsp;// ############################################################################&nbsp;// A manipulação de sessões&nbsp;if (isset($_SESSION['UBER_USER_N']) &amp;&amp; isset($_SESSION['UBER_USER_H']))&nbsp;{&nbsp;$userN = $_SESSION['UBER_USER_N'];&nbsp;$userH = $_SESSION['UBER_USER_H'];&nbsp;if ($users-&gt;ValidateUser($userN, $userH))&nbsp;{&nbsp;define('LOGGED_IN', true);&nbsp;define('USER_NAME', $userN);&nbsp;define('USER_ID', $users-&gt;name2id($userN));&nbsp;define('USER_HASH', $userH);&nbsp;$users-&gt;CacheUser(USER_ID);&nbsp;}&nbsp;else&nbsp;{&nbsp;@session_destroy();&nbsp;header('Location: ./index.html');&nbsp;exit;&nbsp;}&nbsp;}&nbsp;else&nbsp;{&nbsp;define('LOGGED_IN', false);&nbsp;define('USER_NAME', 'Guest');&nbsp;define('USER_ID', -1);&nbsp;define('USER_HASH', null);&nbsp;}&nbsp;define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));&nbsp;if (FORCE_MAINTENANCE &amp;&amp; !defined('IN_MAINTENANCE'))&nbsp;{&nbsp;if (!LOGGED_IN || !$users-&gt;HasFuse(USER_ID, 'fuse_ignore_maintenance'))&nbsp;{&nbsp;header("Location: " . WWW . "/maintenance.html");&nbsp;exit;&nbsp;}&nbsp;}&nbsp;if ((!defined('BAN_PAGE') || !BAN_PAGE) &amp;&amp; ($users-&gt;IsIpBanned(USER_IP) || (LOGGED_IN &amp;&amp; $users-&gt;IsUserBanned(USER_NAME))))&nbsp;{&nbsp;header("Location: " . WWW . "/banned.php");&nbsp;exit;&nbsp;}&nbsp;$core-&gt;CheckCookies();&nbsp;// ############################################################################&nbsp;// Algumas funções comumente usadas para facilitar o acesso&nbsp;function dbquery($strQuery = '')&nbsp;{&nbsp;global $db;&nbsp;if($db-&gt;IsConnected())&nbsp;{&nbsp;return $db-&gt;DoQuery($strQuery);&nbsp;}&nbsp;return $db-&gt;Error('Não foi possível processo de consulta, sem conexão db detectou..');&nbsp;}&nbsp;function filter($strInput = '')&nbsp;{&nbsp;global $core;&nbsp;return $core-&gt;FilterInputString($strInput);&nbsp;}&nbsp;function clean($strInput = '', $ignoreHtml = false, $nl2br = false)&nbsp;{&nbsp;global $core;&nbsp;return $core-&gt;CleanStringForOutput($strInput, $ignoreHtml, $nl2br);&nbsp;}&nbsp;function shuffle_assoc(&amp;$array)&nbsp;{&nbsp;$keys = array_keys($array);&nbsp;shuffle($keys);&nbsp;foreach($keys as $key)&nbsp;{&nbsp;$new[$key] = $array[$key];&nbsp;}&nbsp;$array = $new;&nbsp;return true;&nbsp;}&nbsp;?&gt;&nbsp;OBS:Só Copie e Cole se não dá erro denovo&nbsp;Pronto agora Feche e Salve!&nbsp;