@dent: Where should I declare them... lmao
@protege: i know that...
Up to line 66:
I had the exact same thing on a different host and it worked but when I switched it gave me these errors...PHP Code:<?php
#######################
# Configuration #######
#######################
// Database Connection
removed
// Gets an array with the active user's information
$query = mysql_query("SELECT * FROM users WHERE username = '{$_SESSION['username']}'",$conn);
$userinfo = mysql_fetch_array($query);
// Bans
if($userinfo['banned'] == 'yes') {
include('banned.php');
die();
}
// Messages
$msgquery = mysql_query("SELECT * FROM `pms` WHERE `to` = '{$_SESSION['username']}' ORDER BY `id` DESC",$conn);
$msgnum = mysql_num_rows($msgquery);
// Version No.
$version = 'r1 BETA';
// Admin/System Email
$adminemail = '';
// Errors
$err_login = 'You must be logged in to view this page. Please <a href="login.php">login</a> or <a href="register.php">register</a>.';
$err_auth = 'Only authorized staff can view this page!';
$err_notfound = 'The page you were looking for could not be found. Click <a href="index.php">here</a> to go back to the main page.';
// IP
$ip = $_SERVER['REMOTE_ADDR'];
// Date
$day = date('l');
$month = date('F');
$daynum = date('j');
$year = date('Y');
$date = $day.', '.$month.' '.$daynum.', '.$year;
#######################
# System Functions ####
#######################
// Cleaning Input
function clean($str) {
if(!get_magic_quotes_gpc()) {
$str = addslashes($str);
}
$str = strip_tags(htmlspecialchars($str));
return $str;
}





Reply With Quote





