How to build a UberCMS Hotel (R63) (Phoenix EMU)

Status
Not open for further replies.

Lounge

#dat habbo nigga
Apr 12, 2012
304
27
Okay.

All who have problems send me a Private message and I will answer you one of each
 

Momet45

Member
Nov 27, 2011
52
3
Uh its something i dont understand, each time if i put my IP adress into my hotel url link i get linked to my modem page, you know the place when you type 192.168.1.1 r something the modem login page but not the hotel SITE you know? so yeah my IP dont link to my site
 

Lounge

#dat habbo nigga
Apr 12, 2012
304
27
You have to open at your port 80 at " 192.168.1.1 " Then setup with your and setup with the DNS.
 

sholomon25

New Member
May 6, 2012
1
0
Can anyone help me ? i got this error

it says ...
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\global.php on line 30


then my web got no images O.O ... i do all procedure in a correct way...

Here Screen Shot :


 

LimeHotelRetro

New Member
May 19, 2012
1
0
I need help!!!





Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\global.php on line 30




Global.php

<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
|
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/


// ############################################################################
// Prepare the local environment

define('UBER', true);
define('DS', DIRECTORY_SEPARATOR);
define('LB', chr(13));
define('CWD', str_replace('manage' . DS, '', dirname(__FILE__) . DS));
define('INCLUDES', CWD . 'inc' . DS);
define('USER_IP', $_SERVER['REMOTE_ADDR']);

set_magic_quotes_runtime('0');
error_reporting(E_ALL);

session_start();


// ############################################################################
// Initialize core classes

require_once INCLUDES . "class.core.php";
require_once INCLUDES . "class.db.mysql.php";
require_once INCLUDES . "class.cron.php";
require_once INCLUDES . "class.users.php";
require_once INCLUDES . "class.tpl.php";

$core = new uberCore();
$cron = new uberCron();
$users = new uberUsers();
$tpl = new uberTpl();


// ############################################################################
// Execute some required core functionality

$core->ParseConfig();

$db = new MySQL($core->config['MySQL']['hostname'], $core->config['MySQL']['username'],
$core->config['MySQL']['password'], $core->config['MySQL']['database']);
$db->Connect();

$cron->Execute();

// ############################################################################
// Session handling

if (isset($_SESSION['UBER_USER_N']) && isset($_SESSION['UBER_USER_H']))
{
$userN = $_SESSION['UBER_USER_N'];
$userH = $_SESSION['UBER_USER_H'];

if ($users->ValidateUser($userN, $userH))
{
define('LOGGED_IN', true);
define('USER_NAME', $userN);
define('USER_ID', $users->name2id($userN));
define('USER_HASH', $userH);

$users->CacheUser(USER_ID);
}
else
{
@session_destroy();
header('Location: ./index.html');
exit;
}
}
else
{
define('LOGGED_IN', false);
define('USER_NAME', 'Guest');
define('USER_ID', -1);
define('USER_HASH', null);
}

define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
define('WEBBUILD', uberCore::GetWebBuild());

if (FORCE_MAINTENANCE && !defined('IN_MAINTENANCE'))
{
if (!LOGGED_IN || !$users->HasFuse(USER_ID, 'fuse_ignore_maintenance'))
{
header("Location: " . WWW . "/maintenance.html");
exit;
}
}

if ((!defined('BAN_PAGE') || !BAN_PAGE) && ($users->IsIpBanned(USER_IP) || (LOGGED_IN && $users->IsUserBanned(USER_NAME))))
{
header("Location: " . WWW . "/banned.php");
exit;
}

$core->CheckCookies();

// ############################################################################
// Some commonly used functions for easy access

function dbquery($strQuery = '')
{
global $db;

if($db->IsConnected())
{
return $db->DoQuery($strQuery);
}

return $db->Error('Could not process query, no active db connection detected..');
}

function filter($strInput = '')
{
global $core;

return $core->FilterInputString($strInput);
}

function clean($strInput = '', $ignoreHtml = false, $nl2br = false)
{
global $core;

return $core->CleanStringForOutput($strInput, $ignoreHtml, $nl2br);
}

function shuffle_assoc(&$array)
{
$keys = array_keys($array);

shuffle($keys);

foreach($keys as $key)
{
$new[$key] = $array[$key];
}

$array = $new;

return true;
}

?>
PLEASE HELP!!!
 

Blues

Member
May 24, 2012
113
2
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\global.php on line 30
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\xampp\htdocs\global.php on line 30
go to global.php, go to line 30, remove magic quotes
Should look like ->> set_magic_quotes_runtime('0');
 

DaLightz

See ya'll in the afterlife.
May 19, 2012
1,136
262
No change? It already looks like that?
If you did as i said, the warning should of disapeared.

Here, replace global.php with this:
PHP:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
 
 
// ############################################################################
// Prepare the local environment
 
define('UBER', true);
define('DS', DIRECTORY_SEPARATOR);
define('LB', chr(13));
define('CWD', str_replace('manage' . DS, '', dirname(__FILE__) . DS));
define('INCLUDES', CWD . 'inc' . DS);
define('USER_IP', $_SERVER['REMOTE_ADDR']);
 
error_reporting(E_ALL);
 
session_start();
 
 
// ############################################################################
// Initialize core classes
 
require_once INCLUDES . "class.core.php";
require_once INCLUDES . "class.db.mysql.php";
require_once INCLUDES . "class.cron.php";
require_once INCLUDES . "class.users.php";
require_once INCLUDES . "class.tpl.php";
 
$core = new uberCore();
$cron = new uberCron();
$users = new uberUsers();
$tpl = new uberTpl();
 
 
// ############################################################################
// Execute some required core functionality
 
$core->ParseConfig();
 
$db = new MySQL($core->config['MySQL']['hostname'], $core->config['MySQL']['username'],
$core->config['MySQL']['password'], $core->config['MySQL']['database']);
$db->Connect();
 
$cron->Execute();
 
// ############################################################################
// Session handling
 
if (isset($_SESSION['UBER_USER_N']) && isset($_SESSION['UBER_USER_H']))
{
$userN = $_SESSION['UBER_USER_N'];
$userH = $_SESSION['UBER_USER_H'];
 
if ($users->ValidateUser($userN, $userH))
{
define('LOGGED_IN', true);
define('USER_NAME', $userN);
define('USER_ID', $users->name2id($userN));
define('USER_HASH', $userH);
 
$users->CacheUser(USER_ID);
}
else
{
@session_destroy();
header('Location: ./index.html');
exit;
}
}
else
{
define('LOGGED_IN', false);
define('USER_NAME', 'Guest');
define('USER_ID', -1);
define('USER_HASH', null);
}
 
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
define('WEBBUILD', uberCore::GetWebBuild());
 
if (FORCE_MAINTENANCE && !defined('IN_MAINTENANCE'))
{
if (!LOGGED_IN || !$users->HasFuse(USER_ID, 'fuse_ignore_maintenance'))
{
header("Location: " . WWW . "/maintenance.html");
exit;
}
}
 
if ((!defined('BAN_PAGE') || !BAN_PAGE) && ($users->IsIpBanned(USER_IP) || (LOGGED_IN && $users->IsUserBanned(USER_NAME))))
{
header("Location: " . WWW . "/banned.php");
exit;
}
 
$core->CheckCookies();
 
// ############################################################################
// Some commonly used functions for easy access
 
function dbquery($strQuery = '')
{
global $db;
 
if($db->IsConnected())
{
return $db->DoQuery($strQuery);
}
 
return $db->Error('Could not process query, no active db connection detected..');
}
 
function filter($strInput = '')
{
global $core;
 
return $core->FilterInputString($strInput);
}
 
function clean($strInput = '', $ignoreHtml = false, $nl2br = false)
{
global $core;
 
return $core->CleanStringForOutput($strInput, $ignoreHtml, $nl2br);
}
 
function shuffle_assoc(&$array)
{
$keys = array_keys($array);
 
shuffle($keys);
 
foreach($keys as $key)
{
$new[$key] = $array[$key];
}
 
$array = $new;
 
return true;
}
 
?>
 

Blues

Member
May 24, 2012
113
2
Thanks but now i have this? Its been there the whole time as well as that part that you just fixed for me



Uploaded with
 
Status
Not open for further replies.

Users who are viewing this thread

Top