bladewolf2010 Posted July 27, 2010 Posted July 27, 2010 Would this work if your on V2 but chose to use V1 script? if (file_exists('globals.php')) {include 'globals.php'; } else { require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); } Quote
Dominion Posted July 27, 2010 Posted July 27, 2010 says it all right here if (file_exists('globals.php')) {include 'globals.php'; if the files 'globals.php' exists its included as it should be in v2 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.