It would be nice if you pasted the parse error so others can confirm if it's the one that you're talking about.am i right in saying at the bottom of every page theres like a error?
it was a checktheban.php but i fixed itIt would be nice if you pasted the parse error so others can confirm if it's the one that you're talking about.
You must be registered for see links, help me
<?php
namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class html implements iHTML
{
private $html;
final public function get($file)
{
global $template, $_CONFIG;
if($file != null && ctype_alnum($file))
{
if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))
{
ob_start();
include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');
$this->html .= ob_get_contents();
ob_end_clean();
$this->setHTML();
}
else
{
$this->get('404');
}
}
else
{
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
}
}
final public function getHK($file)
{
global $template, $_CONFIG;
if($file != null)
{
if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/ase/' . $file . '.php'))
{
ob_start();
require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/ase/' . $file . '.php');
$this->html .= ob_get_contents();
ob_end_clean();
$this->setHTML();
}
else
{
$this->getHK('404');
}
}
else
{
$this->getHK('dash');
}
}
final public function setHTML()
{
global $template;
$template->tpl .= $this->html;
unset($this->html);
}
}
?>
<?php
/*=========================================================
| RevCMS Banning system
| #########################################################
| Banning system developed by Grapefruit
| www.otaku-studios.com
| #########################################################
| Uses Phoenix Emulator 3.0 database
| #########################################################
\=========================================================*/
if($_SESSION['user']['id']){
$getuserinfo = mysql_query("SELECT * FROM users WHERE id='".$_SESSION['user']['id']."'");
while($row = mysql_fetch_array($getuserinfo)){
$usernameban = $row['username'];
$ipban = $row['ip_last'];
}
$getuserinfo= mysql_query("SELECT * FROM bans WHERE value='{$usernameban}' AND expire > UNIX_TIMESTAMP() ORDER BY expire DESC LIMIT 1");
$getuserinfoip= mysql_query("SELECT * FROM bans WHERE value='{$ipban}' AND expire > UNIX_TIMESTAMP() ORDER BY expire DESC LIMIT 1");
while($row = mysql_fetch_array($getuserinfo)){
$expire = $row['expire'];
if($expire <= time()){
}
else{
header('Location: banned');
exit;
}
}
while($row = mysql_fetch_array($getuserinfoip)){
$expire = $row['expire'];
if($expire <= time()){
}
else{
header('Location: ipbanned');
exit;
}
}
}
?>
In Ur DBBro how do you add the Owner part for the staff page?
<?php
header('Content-Type: image/png');
define("host", "localhost");
define("username", "root");
define("password", "***");
define("database", "hotel");
$map = './avatars';
define("hotel", "habbo.nl");
mysql_connect(host, username, password) or die ('Wrong username or password, or simply host.');
mysql_select_db(database) or die ('Cannot connect to database.');
if (!is_dir($map))
{
if (!mkdir($map, 0, true))
{
die('Unable to create directory.');
}
}
$figure = $_GET['figure'];
if(isset($_GET['size'])){
$size = $_GET['size'];
} else {
$size= 'b';
}
if(isset($_GET['direction'])){
$direction = $_GET['direction'];
} else {
$direction = '2';
}
if(isset($_GET['head_direction'])){
$head = $_GET['head_direction'];
} else {
$head = '2';
}
if(isset($_GET['action'])){
$action = $_GET['actionn'];
} else {
$head = 'sit';
}
if(isset($_GET['gesture'])){
$gesture = $_GET['gesture'];
} else {
$gesture = '';
}
$lookhash = md5("$figure$size$action$direction$head$gesture");
if (file_exists("$map/$lookhash.png")) {
$finalavatar = require("$map/$lookhash.png");
} else {
$habbo = file_get_contents("http://".hotel."/habbo-imaging/avatarimage?figure=".$figure."&size=".$size."action".$action."&direction=".$direction."&head_direction=".$head."&gesture=".$gesture."");
$fp = fopen("$map/$lookhash.png", 'w');
fwrite($fp, $habbo);
fclose($fp);
$finalavatar = $habbo;
}
echo $finalavatar;
?>