Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 26th April 2012, 23:47
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default error in global.php
Hi there,

I have a small problem and cant seem to find a work arround..basicly Im trying to ad
PHP Code:
require_once('../global.php'); 
in a sub folder off my root, unfortunately im getting the following error in my browser...

Quote:
Notice: Use of undefined constant totaltime - assumed 'totaltime' in /XXXX/XXX/www/global.php on line 31 Notice: Use of undefined constant totalqueries - assumed 'totalqueries' in /XXXX/XXX/www/global.php on line 32
I have highlighted the error in blue in my global.php below.


Quote:
<?
/***********************************************/
/*============[WDW Tracker v.5.6]=============*/
/* moded & optimized by BiBicu */
/*=============[Special Thanks To]=============*/
/* DrNet - wWw.SpecialCoders.CoM */
/* Vinson - wWw.Decode4u.CoM */
/* MrDecoder - wWw.Fearless-Releases.CoM */
/* Fynnon - wWw.BvList.CoM */
/***********************************************/


@ini_set ('session.gc_maxlifetime', '18000');
@session_cache_expire (1440);
@set_time_limit (0);
@set_magic_quotes_runtime (0);
@ini_set ('magic_quotes_sybase', 0);
@session_name ('TSSE_Session');
@session_start ();
define ('IN_TRACKER', true);
define ('IN_SCRIPT_TSSEv56', true);
define ('O_SCRIPT_VERSION', '5.6');
define ('TIMENOW', time ());
define ('TSDIR', dirname (__FILE__));
define ('INC_PATH', TSDIR . '/include');
define ('CONFIG_DIR', TSDIR . '/config');
$rootpath = (isset ($rootpath) ? $rootpath : TSDIR);
if (!defined ('DEBUGMODE'))
{
$GLOBALS['ts_start_time'] = array_sum (explode (' ', microtime ()));
unset ($_SESSION[totaltime]);
unset ($_SESSION[totalqueries]);

$_SESSION['queries'] = array ();
}

if (((empty ($_SESSION['hash']) OR empty ($_SESSION['hash_time'])) OR 1800 < TIMENOW - $_SESSION['hash_time']))
{
$_SESSION['hash'] = md5 (uniqid (rand (), true));
$_SESSION['hash_time'] = TIMENOW;
}

define ('LOGFILE', 'tracker_error_logs');
require INC_PATH . '/functions_ts_error_handler.php';
set_error_handler ('TS_Error_Handler');
require INC_PATH . '/core.php';
Please could someone help me -/
Reply With Quote
  #2  
Old 27th April 2012, 08:00
PAX's Avatar
PAX PAX is offline
Senior Member
 
Join Date: Nov 2010
P2P
Posts: 41
Default
check on my global.php
Attached Files
File Type: php global.php (1.5 KB, 71 views)
Reply With Quote
Reply

Tags
error , globalphp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 14:38. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.