Ajuda com Cpanel 25.06.12 13:43
so quando vo pro diretorio ele da erro 404 , quer diser que nao tem nada ,
como faço pra por a cms na index sem precisar por /nomedapasta
so na inicial mesmo ?
to no freehosting.com
JhoonatanUK escreveu:normalmente a pasta inicial em Host's é a public_html.
Vá na sua pasta pelo cpanel, e mova tudo pra lá, demora menos do que passar
a cms toda denovo. (:
http://www.power-pixel.net/t12707-
Warning: mysql_connect(): Access denied for user 'root'@'localhost' (using password: YES) in /home/habbodar/public_html/Cms/global.php on line 16 Could not connect to server, error: Access denied for user 'root'@'localhost' (using password: YES)
<?php
header('Content-Type: text/html; charset=iso-8859-1');
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($dbhost, $dbusername, $dbpassword) 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";
$core = new Core();
$users = new Users();
require_once DOCUMENT_ROOT.'lang/'.$language.'.php';
define('MAINTENANCE', $core->Maintenance());
if(USERNAME_REQUIRED == TRUE && !isset($_SESSION["username"]))
header("Location: ".WWW."/me.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));
}
if(MAINTENANCE && !$users->UserPermission('hk_login', $username) && !defined('MAINTENANCE_PAGE'))
header("Location: ".WWW."/maintenance.php");
?>
Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.