Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9
Author Message
Shemm22
New Member
New Member



Joined: Aug 22, 2003
Posts: 3

PostPosted: Sun Oct 12, 2003 5:10 pm Reply with quote

Yes I keep getting this error can anybody help:

Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /hsphere/local/home2/shemm22/traftononline.com/html/admin/modules/tracking.php on line 100

Here is my tracking.php file:
[code:1:f578b72ab0]<?php
# ******************************************************************************
# PHPnuke Tracking v1.1
#
# for PHPnuke 5.5
#
#
# Download at: http://www.wstyle.org
#
# This is a hack to log all pageviews of your PHPnuke website. It
# includes a program to analyse the tracking log data and display
# it with the common object titles from your PHPnuke database.
#
# Copyright (C) 2002 by WebStyle http://www.wstyle.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 2 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.
#
# ******************************************************************************

if (!eregi("admin.php", $PHP_SELF)) { die ("Access Denied"); }

$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {

include("admin/language/tracking/lang-$language.php");

# Menu Definition / you can change it here
# change text and/or date from (datef), date to (datet, time from (timef),
# time to (timet)

if ($sort=="") {
$sort = "visit"; # Default by: visit / page / time
}

$menu = array(
1 => array(
"text" => _TRACK_LAST." 1 "._TRACK_HOURS,
"timef" => date("Y-m-d H:i:s", time()-3600*1) # now - 1 hours
),
2 => array(
"text" => _TRACK_LAST." 4 "._TRACK_HOURS,
"timef" => date("Y-m-d H:i:s", time()-3600*4) # now - 4 hours
),
3 => array(
"text" => _TRACK_TODAY,
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y"))), # now
"timet" => date("Y-m-d H:i:s", mktime(23,59,59,date("m"),date("d"),date("Y"))) # today
),
4 => array(
"text" => _TRACK_YESTERDAY,
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-1,date("Y"))), # today - 1 day
"timet" => date("Y-m-d H:i:s", mktime(23,59,59,date("m"),date("d")-1,date("Y"))) # today - 1 day
),
5 => array(
"text" => _TRACK_LAST." 3",
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-3,date("Y"))), # today - 3 days
"timet" => date("Y-m-d H:i:s", time()) # now
),
6 => array(
"text" => _TRACK_LAST." 7",
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-7,date("Y"))), # today - 7 days
"timet" => date("Y-m-d H:i:s", time()) # now
),
7 => array(
"text" => _TRACK_LAST." 14",
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-14,date("Y"))), # today - 14 days
"timet" => date("Y-m-d H:i:s", time()) # now
),
8 => array(
"text" => _TRACK_LAST." 30",
"timef" => date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d")-30,date("Y"))), # today - 30 days
"timet" => date("Y-m-d H:i:s", time()) # now
),
9 => array(
"text" => _TRACK_ALL,
"timef" => "1990-01-01 00:00:01",
"timet" => date("Y-m-d H:i:s", time()) # now
)
); # End of Menu Definition

# only default if first start without parameters
# Default Menu: 1 / 2 / 3 / ...
# $default_timef = $menu[1]["timef"];
# $default_timet = $menu[1]["timet"];
# $default_text = $menu[1]["text"];

$menu_optr = "start"; # Default mode for period menu

function track_fc_format_date($f1_date, $f1_datestring) {

setlocale ("LC_TIME", $GLOBALS["locale"] );
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $f1_date, $datetime);
$datetime = strftime("".$f1_datestring."", mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
$datetime = ucfirst($datetime);

return($datetime);
}

# ******************************************************************************
# Display group of visits for selected range
# ******************************************************************************
function fc_sort ($a, $b) {

GLOBAL $FELD;

return strnatcasecmp($a[$FELD],$b[$FELD]);

}

# ************************************************************************
# Line break for words longer then $f1_lenght. It will ab a space after
# $f1_lenghtletters. So in a table can be an automatic line break
# for long words.
# ************************************************************************
function track_umbruch($f1_string, $f1_lenght) {

$hf_neu="";
$hf_words = explode (" ", $f1_string);

while (list($key, $val) = each($hf_words)) {
$hf_neu[] = chunk_split ($val, $f1_lenght, " ");
}

$f1_string = trim(implode(" ", $hf_neu));

return $f1_string;

}

# ************************************************************************
# print an array
# ************************************************************************
function track_print_array_table ($f1_array, $f1_double, $hf_printkey) {

while ( list($key1, $subarray) = each($f1_array ) ) {
$hf_count++;

if ( ($hf_count != 2) and ($f1_double == '2' ) ) {
continue;
}
$hf_count = 0;
echo "<tr>";
if ($hf_printkey) { echo "<td>$key1:</td>"; }
if (!is_array($subarray)) {
echo "<td>".$subarray."</td>";
} else {
echo "<ul>";
while ( list($key2, $val) = each($subarray) ) {
echo "<li>$key2 : $val\n";
}
echo "</ul>";
}
echo "</tr>";
}

}


# ******************************************************************************
# Cut a stringpart
# $string = complet string with the part to find
# $hf_suchend = cut from start including that string
# $hf_suchend = cut that until the end
# ******************************************************************************
function fc_cutpart ($string, $hf_suchstart, $hf_suchend) {

$string = substr($string, strpos($string, $hf_suchstart) + strlen($hf_suchstart), strlen($string)); # Cut first part
$hf_lenght = strpos($string, $hf_suchend);
if ($hf_lenght==0) { $hf_lenght = strlen($string); }
$part = substr($string, 0, $hf_lenght);


return $part;
}

function db_error_check ($disp_errno, $filename, $function, $where ) {

global $PHP_SELF;

if ( (mysql_errno()!=0) or ($disp_errno != '') ) {
echo "*** A Database Problem Occured ***<br>";
echo "Script: ".$PHP_SELF."<br>";
echo "Filename: ".$filename."<br>";
echo "Function: ".$function."<br>";
echo "Place : ".$where."<br>";
echo "Aff rows: ".mysql_affected_rows()."<br>";
echo "Errno : ".mysql_errno()."<br>";
echo "Error : ".mysql_error()."<br>";
echo "**********************************<br>";
}

}

# ******************************************************************************
# Display group of visits for selected range
# ******************************************************************************
function start ($sort, $timef, $timet, $text) {

global $prefix, $menu, $PHP_SELF;


if ($timef=='') { $timef = date("Y-m-d H:i:s", mktime(0,0,0,date("m"),date("d"),date("Y"))); }
if ($timet=='') { $timet = date("Y-m-d H:i:s", time()); }


$result=mysql_query("SELECT count(*) FROM $prefix"._tracking.
" WHERE tracktime BETWEEN '$timef' and '$timet' ");
db_error_check ('',"tracking.php", "start", "case user count(*) / SELECT" );
list($hf_pageviews) = mysql_fetch_row($result);

switch ($sort) {

case "visit":
$result=mysql_query("SELECT substring(tracktime,1,10) as hf_date, ip, uid, count(*) as hf_count FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
GROUP BY hf_date DESC, ip, uid ");
db_error_check ('',"tracking.php", "start", "case visit / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_VISITS;
$hf_textend = " "._TRACK_AND." ".$hf_pageviews." "._TRACK_PAGES;
break;

case "page":
$result=mysql_query("SELECT requrl, count(*) as hf_count FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
GROUP BY requrl DESC
ORDER BY hf_count DESC ");
db_error_check ('',"tracking.php", "start", "case page / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_DIFFPAGES;
$hf_textend = " "._TRACK_AND." ".$hf_pageviews." "._TRACK_PAGES;
break;

case "time":
$result=mysql_query("SELECT tracktime, ip, uid, requrl FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
ORDER BY tracktime DESC ");
db_error_check ('',"tracking.php", "start", "case time / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_PAGES;
break;

case "date":
$result=mysql_query("SELECT substring(tracktime,1,10) as hf_date, count(*) as hf_count FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
GROUP BY hf_date DESC ");
db_error_check ('',"tracking.php", "start", "case date / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_DAYS;
$hf_textend = " "._TRACK_AND." ".$hf_pageviews." "._TRACK_PAGES;
break;

case "user":
$result=mysql_query("SELECT uid, count(*) as hf_count FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
GROUP BY uid
ORDER BY hf_count DESC
");
db_error_check ('',"tracking.php", "start", "case user / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_USERS;
$hf_textend = " "._TRACK_AND." ".$hf_pageviews." "._TRACK_PAGES;
break;

case "trackid":
$result=mysql_query("SELECT trackid, uid, count(*) as hf_count FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
GROUP BY trackid
ORDER BY hf_count DESC
");
db_error_check ('',"tracking.php", "start", "case trackid / SELECT" );
$hf_headcount = mysql_affected_rows();
$hf_sorttext = _TRACK_TRACKID;
$hf_textend = " "._TRACK_AND." ".$hf_pageviews." "._TRACK_PAGES;
break;
}


OpenTable2();
if ($text!='') {$hf_text = " "._TRACK_AT." '".$text."'";}
echo "<b>".$hf_text1.$hf_headcount." ".$hf_sorttext.$hf_text.$hf_textend."</b>".
"("._TRACK_FROM." ".$timef." "._TRACK_TO." ".$timet.")</font>";
CloseTable2();

OpenTable2();
echo "<table>";

switch ($sort) {
case "visit":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"><br>"._TRACK_DATE." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"120\" height=\"1\"><br>"._TRACK_IP." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"40\" height=\"1\"><br>"._TRACK_UID." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"40\" height=\"1\"><br>"._TRACK_COUNT." </td>";
echo "</tr>";
break;
case "page":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"50\" height=\"1\"><br>"._TRACK_COUNT." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"370\" height=\"1\"><br>"._TRACK_TITLE." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"370\" height=\"1\"><br>"._TRACK_URL." </td>";
echo "</tr>";
break;
case "time":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"><br>"._TRACK_DATE." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"120\" height=\"1\"><br>"._TRACK_IP." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"100\" height=\"1\"><br>"._TRACK_UID." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"400\" height=\"1\"><br>"._TRACK_TITLE." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"400\" height=\"1\"><br>"._TRACK_URL." </td>";
echo "</tr>";
break;
case "date":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"><br>"._TRACK_DATE." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"50\" height=\"1\"><br>"._TRACK_COUNT." </td>";
echo "</tr>";
break;
case "user":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"><br>"._TRACK_USER." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"50\" height=\"1\"><br>"._TRACK_COUNT." </td>";
echo "</tr>";
break;
case "trackid":
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"><br>"._TRACK_TRACKID." </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"50\" height=\"1\"><br>"._TRACK_COUNT." </td>";
echo "</tr>";
break;

}

while ($array = mysql_fetch_array($result)) {

if ( $array[uid]!=$uid) { $uname = ''; $uid = ''; }
$href = "<a href=\"admin.php?op=trackingshow&optr=show_line".
"&timef=".urlencode($array[tracktime]).
"&ip=".$array[ip].
"&text=".$f1_text.
"\">";

$hf_date = track_fc_format_date($array[tracktime], _TRACK_DATESTRING);

switch ($sort) {

case "visit":
if ( ($array[uid]>0) and ($array[uid]!=$uid)) {
$nukeuser=mysql_query("SELECT uid, uname FROM $prefix"._users." WHERE uid='$array[uid]'");
list($uid, $uname) = mysql_fetch_row($nukeuser);
}

echo "<tr>";
echo "<td>".$array[hf_date]." </td>".
"<td>".$array[ip]." </td>";
if ($array[uid]>0) {
echo "<td><a href=\"modules.php?name=Your_Account&op=userinfo&uname=".$uname."\">".$uname."</a> </td>"; }
else {
echo "<td>".$uname." </td>"; }
echo "<td><a href=\"admin.php?op=trackingshow&optr=show_visit".
"&sort=".$sort.
"&timef=".urlencode($timef)."&timet=".urlencode($timet)."&ip=$array[ip]&truid=$array[uid]\">".
$array[hf_count]."</a> </td>";
echo "</tr>\n";
break;

case "page":
echo "<tr>";
echo "<td><a href=\"admin.php?op=trackingshow&optr=show_visit".
"&sort=".$sort.
"&timef=".urlencode($timef)."&timet=".urlencode($timet).
"&text=".$text."&url=".urlencode(str_replace("&","@@",$array[requrl]))."\">".$array[hf_count]."</a></td>".
"<td>".track_umbruch(read_object($array[requrl]),51)."</td>".
"<td>".track_umbruch($array[requrl],51)."</td>";
echo "</tr>\n";
break;

case "time":
if ( ($array[uid]>0) and ($array[uid]!=$uid)) {
$nukeuser=mysql_query("SELECT uid, uname FROM $prefix"._users." WHERE uid='$array[uid]'");
list($uid, $uname) = mysql_fetch_row($nukeuser);
}

echo "<tr>";
echo "<td>".$href.$hf_date."</a></td>".
"<td>".$array[ip]."</td>";
if ($array[uid]>0) {
echo "<td><a href=\"modules.php?name=Your_Account&op=userinfo&uname=".$uname."\">".$uname."</a></td>"; }
else {
echo "<td>".$uname."</td>"; }
echo "<td>".track_umbruch(read_object($array[requrl]),51)."</td>".
"<td>".track_umbruch($array[requrl],51)."</td>";
echo "</tr>\n";
break;

case "date":

echo "<tr>";
echo "<td>".$array[hf_date]." </td>";
echo "<td><a href=\"admin.php?op=trackingshow&optr=show_visit".
"&sort=".$sort.
"&timef=".urlencode($array[hf_date]." 00:00:00").
"&timet=".urlencode($array[hf_date]." 23:59:59")."\">";
echo $array[hf_count]."</a> </td>";
echo "</tr>\n";
break;

case "user":

echo "<tr>";
if ($array[uid]>0) {
$nukeuser=mysql_query("SELECT uid, uname FROM $prefix"._users." WHERE uid='$array[uid]'");
list($uid, $uname) = mysql_fetch_row($nukeuser);
echo "<td><a href=\"modules.php?name=Your_Account&op=userinfo&uname=".$uname."\">".$uname."</a></td>"; }
else {
echo "<td>Anonymous</td>"; }
echo "<td><a href=\"admin.php?op=trackingshow&optr=show_visit".
"&sort=".$sort.
"&timef=".urlencode($timef).
"&timet=".urlencode($timet).
"&truid=".$array[uid].
"\">";
echo $array[hf_count]."</a> </td>";
echo "</tr>\n";
break;

case "trackid":

echo "<tr>";
echo "<td>".$array[trackid]."</td>";
if ( ($array[uid]>0) and ($array[uid]!=$uid)) {
$nukeuser=mysql_query("SELECT uid, uname FROM $prefix"._users." WHERE uid='$array[uid]'");
list($uid, $uname) = mysql_fetch_row($nukeuser);
}
if ($array[uid]>0) {
echo "<td><a href=\"modules.php?name=Your_Account&op=userinfo&uname=".$uname."\">".$uname."</a></td>"; }
else {
echo "<td>Anonymous</td>"; }
echo "<td><a href=\"admin.php?op=trackingshow&optr=show_visit".
"&timef=".urlencode($timef).
"&timet=".urlencode($timet).
"&trid=".$array[trackid].
"&text=".$text.
"\">".
$array[hf_count]."</a> </td>";
echo "</tr>\n";
break;


}
}

echo "</table>";
CloseTable2();
if ( is_array($result) ) { mysql_free_result($result); }
if ( is_array($nukeuser) ) { mysql_free_result($nukeuser); }

}

function read_object($f1_url) {

global $prefix;

switch (true) {

case ( "/"==$f1_url ):
$back = _TRACK_STARTPAGE;
break;

case ( "/index.php"==$f1_url ):
$back = _TRACK_STARTPAGE;
break;

case ( "/admin.php"==$f1_url ):
$back = _TRACK_ADMIN_MENU;
break;

case ( "/backend.php"==$f1_url ):
$back = _TRACK_BACKEND;
break;

case ( strpos(" ".$f1_url, "/index.php?newlang=") >0 ):
$newlang = str_replace('/index.php?newlang=', '', $f1_url);
$back = _TRACK_NEWLANGUAGE." \"".$newlang."\"";
break;

// module Topics
case ( "/modules.php?name=Topics"==$f1_url ):
$back = _TRACK_TOPICS;
break;

//module Top
case ( "/modules.php?name=Top"==$f1_url ):
$back = _TRACK_TOP10;
break;

//module Submit News
case ( "/modules.php?name=Submit_News"==$f1_url ):
$back = _TRACK_SUBMITNEWS;
break;

// module Statistics
case ( "/modules.php?name=Statistics"==$f1_url ):
$back = _TRACK_STATISTICS;
break;

case ( "/modules.php?name=Statistics&op=Stats"==$f1_url ):
$back = _TRACK_STATISTICS_STATS;
break;

// module Feedback

case ( "/modules.php?name=Feedback"==$f1_url ):
$back = _TRACK_FEEDBACK;
break;

// module Avantgo

case ( "/modules.php?name=AvantGo"==$f1_url ):
$back = _TRACK_AVANTGO;
break;

//module Recommend Us
case ( "/modules.php?name=Recommend_Us"==$f1_url ):
$back = _TRACK_RECOMMEND_US;
break;

//modules Private Messages
case ( "/modules.php?name=Private_Messages"==$f1_url ):
$back = _TRACK_PRIVATE_MESSAGES;
break;

// module Stories Archief
case ( "/modules.php?name=Stories_Archive"==$f1_url ):
$back = _TRACK_STORIES_ARCHIVE;
break;

case ( "/modules.php?name=Stories_Archive&sa=show_all"==$f1_url ):
$back = _TRACK_STORIES_ARCHIVE_SHOWALL;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Stories_Archive&sa=show_month&year=") >0 ):
$title = str_replace ('/modules.php?name=Stories_Archive&sa=show_month&year=', '', $f1_url);
$back = _TRACK_STORIES_ARCHIVE_MONTH." \"".$title."\"";
break;

// module Surveys
case ( "/modules.php?name=Surveys"==$f1_url ):
$back = _TRACK_SURVEYS;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Surveys&pollID=") >0 ):
$pollID = str_replace('/modules.php?name=Surveys&pollID=', '', $f1_url);
$res = mysql_query("select pollTitle from $prefix"._poll_desc." where pollID='$pollID'");
list($pollTitle) = mysql_fetch_row($res);
$back = _TRACK_SURVEYS_POLL." \"".$pollTitle."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Surveys&op=results&pollID=") >0 ):
$pollID = str_replace('/modules.php?name=Surveys&op=results&pollID=', '', $f1_url);
$res = mysql_query("select pollTitle from $prefix"._poll_desc." where pollID='$pollID'");
list($pollTitle) = mysql_fetch_row($res);
$back = _TRACK_SURVEYS_POLL_RESULTS." \"".$pollTitle."\"";
break;

case ( "/modules.php?name=Surveys&file=comments"==$f1_url ):
$back = _TRACK_SURVEYS_COMMENTS;
break;

// module News
case ( "/modules.php?name=News&file=comments"==$f1_url ):
$back = _TRACK_NEWS_COMMENTS;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=News&file=categories&op=newindex&catid=") >0 ):
$catid = str_replace('/modules.php?name=News&file=categories&op=newindex&catid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._stories_cat." where catid='$catid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_NEWS_ARTICLE_CATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=News&file=article&sid=") >0 ):
$sid = str_replace('/modules.php?name=News&file=article&sid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._stories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_NEWS_ARTICLE." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=News&op=rate_complete&sid=") >0 ):
$sid = str_replace('/modules.php?name=News&op=rate_complete&sid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._stories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_NEWS_RATE." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=News&file=friend&op=FriendSend&sid=") >0 ):
$sid = str_replace('/modules.php?name=News&file=friend&op=FriendSend&sid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._stories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_NEWS_SENDFRIEND_STORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=News&file=print&sid=") >0 ):
$sid = str_replace('/modules.php?name=News&file=print&sid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._stories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_NEWS_PRINT." \"".$title."\"";
break;

// module Downloads
case ( "/modules.php?name=Downloads"==$f1_url ):
$back = _TRACK_DOWNLOADS;
break;

case ( "/modules.php?name=Downloads&d_op=NewDownloads"==$f1_url ):
$back = _TRACK_DOWNLOADS_NEWDOWNLOADS;
break;

case ( "/modules.php?name=Downloads&d_op=TopRated"==$f1_url ):
$back = _TRACK_DOWNLOADS_TOPRATED;
break;

case ( "/modules.php?name=Downloads&d_op=AddDownload"==$f1_url ):
$back = _TRACK_DOWNLOADS_ADDDOWNLOAD;
break;

case ( "/modules.php?name=Downloads&d_op=MostPopular"==$f1_url ):
$back = _TRACK_DOWNLOADS_MOSTPOPULAR;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=MostPopular&ratenum=") >0 ):
$ratenum = str_replace ('/modules.php?name=Downloads&d_op=MostPopular&ratenum=', '', $f1_url);
$back = _TRACK_DOWNLOADS_MOSTPOPULAR_TOP." \"".$ratenum."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=") >0 ):
$newdownloadshowdays = str_replace ('/modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=', '', $f1_url);
$back = _TRACK_DOWNLOADS_NEW_LASTDAYS." ".$newdownloadshowdays." "._TRACK_DOWNLOADS_NEW_LASTDAYS1."";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=") >0 ):
$selectdate = str_replace ('/modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=', '', $f1_url);
$back = _TRACK_DOWNLOADS_NEW_SELECTDATE;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=viewdownload&cid=") >0 ):
$cid = str_replace('/modules.php?name=Downloads&d_op=viewdownload&cid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_categories." where cid='$cid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_CATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Downloads&d_op=viewdownload&cid=") >0 ):
$cid = str_replace('/modules.php?op=modload&name=Downloads&d_op=viewdownload&cid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_categories." where cid='$cid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_CATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=viewsdownload&sid=") >0 ):
$sid = fc_cutpart ($f1_url, '/modules.php?name=Downloads&d_op=viewsdownload&sid=', "&");
$res = mysql_query("select title from $prefix"._downloads_subcategories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_SUBCATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=viewdownloaddetails&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_DETAILS." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=modifydownloadrequest&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=modifydownloadrequest&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_MODIFY_REQUEST." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=viewdownloadcomments&lid=") >0 ):
$lid = fc_cutpart ($f1_url, "/modules.php?name=Downloads&d_op=viewdownloadcomments&lid=", "&");
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_COMMENT." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=viewdownloadeditorial&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=viewdownloadeditorial&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_EDITORIAL." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=brokendownload&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=brokendownload&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_BROKENDOWNLOAD." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=ratedownload&lid=") >0 ):
$lid = fc_cutpart ($f1_url, '/modules.php?name=Downloads&d_op=ratedownload&lid=', "&");
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_RATEDOWNLOAD." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=getit&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=getit&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_GETDOWNLOAD." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=") >0 ):
$lid = str_replace('/modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_DOWNLOADS_OUTSIDESETUP." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Downloads&d_op=search&query=") >0 ):
$title = str_replace ('/modules.php?name=Downloads&d_op=search&query=', '', $f1_url);
$back = _TRACK_DOWNLOADS_SEARCH." \"".$title."\"";
break;

// module Web-Links
case ( "/modules.php?name=Web_Links"==$f1_url ):
$back = _TRACK_LINKS;
break;

case ( "/modules.php?op=modload&name=Web_Links&file=index&l_op=AddLink"==$f1_url ):
$back = _TRACK_LINKS_ADDLINK;
break;

case ( "/modules.php?op=modload&name=Web_Links&file=index&l_op=RandomLink"==$f1_url ):
$back = _TRACK_LINKS_RANDOMLINK;
break;

case ( "/modules.php?op=modload&name=Web_Links&file=index&l_op=TopRated"==$f1_url ):
$back = _TRACK_LINKS_TOPRATED;
break;

case ( "/modules.php?op=modload&name=Web_Links&file=index&l_op=MostPopular"==$f1_url ):
$back = _TRACK_LINKS_MOSTPOPULAR;
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=MostPopular&ratenum=") >0 ):
$ratenum = str_replace ('/modules.php?op=modload&name=Web_Links&file=index&l_op=MostPopular&ratenum=', '', $f1_url);
$back = _TRACK_LINKS_MOSTPOPULAR_TOP." \"".$ratenum."\"";
break;

case ( "/modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinks"==$f1_url ):
$back = _TRACK_LINKS_NEWLINKS;
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinks&newlinkshowdays=") >0 ):
$newlinkshowdays = str_replace ('/modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinks&newlinkshowdays=', '', $f1_url);
$back = _TRACK_LINKS_NEW_LASTDAYS." ".$newlinkshowdays." "._TRACK_LINKS_NEW_LASTDAYS1."";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=") >0 ):
$selectdate = str_replace ('/modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=', '', $f1_url);
$back = _TRACK_LINKS_NEW_SELECTDATE;
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlink&cid=") >0 ):
$cid = str_replace('/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlink&cid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._links_categories." where cid='$cid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_CATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlink&sid=") >0 ):
$sid = fc_cutpart ($f1_url, '/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlink&sid=', "&");
$res = mysql_query("select title from $prefix"._links_subcategories." where sid='$sid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_SUBCATEGORY." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlinkdetails&lid=") >0 ):
$lid = str_replace('/modules.php?op=modload&name=Web_Links&file=index&l_op=viewlinkdetails&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_DETAILS." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=brokenlink&lid=") >0 ):
$lid = str_replace('/modules.php?op=modload&name=Web_Links&file=index&l_op=brokenlink&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_BROKENLINK." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=") >0 ):
$lid = fc_cutpart ($f1_url, '/modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=', "&");
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_RATELINK." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=visit&lid=") >0 ):
$lid = str_replace ('/modules.php?op=modload&name=Web_Links&file=index&l_op=visit&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_VISIT." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=outsidelinksetup&lid=") >0 ):
$lid = str_replace('/modules.php?op=modload&name=Web_Links&file=index&l_op=outsidelinksetup&lid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_LINKS_OUTSIDESETUP." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Web_Links&file=index&l_op=search&query=") >0 ):
$title = str_replace ('/modules.php?op=modload&name=Web_Links&file=index&l_op=search&query=', '', $f1_url);
$back = _TRACK_LINKS_SEARCH." \"".$title."\"";
break;

// module Your Account
case ( "/modules.php?name=Your_Account"==$f1_url ):
$back = _TRACK_YOURACCOUNT;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Your_Account&op=userinfo&bypass=1&uname=") >0 ):
$user = str_replace('/modules.php?name=Your_Account&op=userinfo&bypass=1&uname=', '', $f1_url);
$back = _TRACK_YOURACCOUNT_LOGIN." \"".$user."\"";
break;

case ( "/modules.php?name=Your_Account&op=logout"==$f1_url ):
$back = _TRACK_YOURACCOUNT_LOGOUT;
break;

case ( "/modules.php?name=Your_Account&op=edituser"==$f1_url ):
$back = _TRACK_YOURACCOUNT_EDITUSER;
break;

case ( "/modules.php?name=Your_Account&op=edithome"==$f1_url ):
$back = _TRACK_YOURACCOUNT_EDITHOME;
break;

case ( "/modules.php?name=Your_Account&op=editcomm"==$f1_url ):
$back = _TRACK_YOURACCOUNT_EDITCOMM;
break;

case ( "/modules.php?name=Your_Account&op=chgtheme"==$f1_url ):
$back = _TRACK_YOURACCOUNT_CHGTHEME;
break;

case ( "/modules.php?name=Your_Account&op=new_user"==$f1_url ):
$back = _TRACK_YOURACCOUNT_NEW_USER;
break;

case ( "/modules.php?name=Your_Account&op=pass_lost"==$f1_url ):
$back = _TRACK_YOURACCOUNT_PASS_LOST;
break;

case ( "/modules.php?name=Your_Account&stop=1"==$f1_url ):
$back = _TRACK_YOURACCOUNT_PASS_STOP;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Your_Account&op=userinfo&uname=") >0 ):
$user = str_replace('/modules.php?name=Your_Account&op=userinfo&uname=', '', $f1_url);
$back = _TRACK_YOURACCOUNT_USERDATA." \"".$user."\"";
break;

// module Members List
case ( "/modules.php?name=Members_List"==$f1_url ):
$back = _TRACK_MEMBERLIST;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Members_List&letter=") >0 ):
$letter = str_replace('/modules.php?name=Members_List&letter=', '', $f1_url);
$back = _TRACK_MEMBERLIST_LETTER." ".$letter."";
break;

// module Search
case ( "/modules.php?name=Search"==$f1_url ):
$back = _TRACK_SEARCH;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Search&query=&topic=") >0 ):
$topicid = str_replace('/modules.php?name=Search&query=&topic=', '', $f1_url);
$res = mysql_query("select topicname from $prefix"._topics." where topicid='$topicid'");
list($topicname) = mysql_fetch_row($res);
$back = _TRACK_SEARCH_TOPIC." \"".$topicname."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Search&author=") >0 ):
$author = str_replace('/modules.php?name=Search&author=', '', $f1_url);
$back = _TRACK_SEARCH_AUTHOR." ".$author."";
break;

// module Forum
case ( "/modules.php?name=Forum"==$f1_url ):
$back = _TRACK_FORUM;
break;

// module Sections
case ( "/modules.php?name=Sections"==$f1_url ):
$back = _TRACK_SECTIONS;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Sections&sop=listarticles&secid=") >0 ):
$secid = str_replace('/modules.php?name=Sections&sop=listarticles&secid=', '', $f1_url);
$res = mysql_query("select secname from $prefix"._sections." where secid='$secid'");
list($secname) = mysql_fetch_row($res);
$back = _TRACK_SECTIONS_CATEGORYLIST." \"".$secname."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Sections&sop=viewarticle&artid=") >0 ):
$artid = str_replace('/modules.php?name=Sections&sop=viewarticle&artid=', '', $f1_url);
$res = mysql_query("select title from $prefix"._seccont." where artid='$artid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_SECTIONS_ARTICLE." \"".$title."\"";
break;

// module Reviews
case ( "/modules.php?name=Reviews"==$f1_url ):
$back = _TRACK_REVIEWS;
break;

case ( "/modules.php?name=Reviews&rop=write_review"==$f1_url ):
$back = _TRACK_REVIEWS_WRITE;
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Reviews&op=showcontent&id=") >0 ):
$id = str_replace('/modules.php?name=Reviews&op=showcontent&id=', '', $f1_url);
$res = mysql_query("select title from $prefix"._reviews." where id='$id'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_REVIEWS_ARTICLE." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Reviews&rop=showcontent&id=") >0 ):
$id = str_replace('/modules.php?name=Reviews&rop=showcontent&id=', '', $f1_url);
$res = mysql_query("select title from $prefix"._reviews." where id='$id'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_REVIEWS_ARTICLE." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Reviews&rop=postcomment&id=") >0 ):
$id = str_replace('/modules.php?name=Reviews&rop=postcomment&id=', '', $f1_url);
$res = mysql_query("select title from $prefix"._reviews." where id='$id'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_REVIEWS_ARTICLECOMMENT." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/modules.php?name=Reviews&rop=") >0 ):
$letter = str_replace('/modules.php?name=Reviews&rop=', '', $f1_url);
$back = _TRACK_REVIEWS_LETTER." ".$letter."";
break;

// Banners
case ( strpos(" ".$f1_url, "/banners.php?op=click&bid=") >0 ):
$bid = str_replace('/banners.php?op=click&bid=', '', $f1_url);
$res = mysql_query("select clickurl from $prefix"._banner." where bid='$bid'");
list($clickurl) = mysql_fetch_row($res);
$back = _TRACK_BANNERS_CLICKURL." \"".$clickurl."\"";
break;

case ( "/banners.php?op=login"==$f1_url ):
$back = _TRACK_BANNERS_LOGIN;
break;

// module FAQ
case ( "/modules.php?name=FAQ"==$f1_url ):
$back = _TRACK_FAQ;
break;

case ( "/modules.php?op=modload&name=FAQ&file=index"==$f1_url ):
$back = _TRACK_FAQ;
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=") >0 ):
$id_cat = str_replace('/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=', '', $f1_url);
$res = mysql_query("select categories from $prefix"._faqcategories." where id_cat='$id_cat'");
list($categories) = mysql_fetch_row($res);
$back = _TRACK_FAQ_CATEGORIES." \"".$categories."\"";
break;

//Easynews
case ( "/modules.php?name=Easynews"==$f1_url ):
$back = _TRACK_EASYNEWS;
break;

case ( strpos(" ".$f1_url, "/modules.php?op=modload&name=Easynews&file=index&ac=") >0 ):
$file = str_replace('/modules.php?op=modload&name=Easynews&file=index&ac=', '', $f1_url);
$back = _TRACK_EASYNEWS_FILE." ".$file."";
break;

// Tracking
case ( "/tracktest.php"==$f1_url ):
$back = _TRACK_TRACKTEST;
break;

case ( strpos(" ".$f1_url, "/tracklink.php?url=") >0 ):
$url = str_replace('/tracklink.php?url=', '', $f1_url);
$back = _TRACK_EXTLINK." \"".$url."\"";
break;

case ( strpos(" ".$f1_url, "/tracklink.php?optr=down&obid=") >0 ):
$lid = fc_cutpart ($f1_url, '/tracklink.php?optr=down&obid=', "&url=");
$res = mysql_query("select title from $prefix"._downloads_downloads." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_EXTLINKDOWN." \"".$title."\"";
break;

case ( strpos(" ".$f1_url, "/tracklink.php?optr=link&obid=") >0 ):
$lid = fc_cutpart ($f1_url, '/tracklink.php?optr=link&obid=', "&url=");
$res = mysql_query("select title from $prefix"._links_links." where lid='$lid'");
list($title) = mysql_fetch_row($res);
$back = _TRACK_EXTLINKLINK." \"".$title."\"";
break;

default:
$back = _TRACK_CASENOT.$f1_url;
}

if ($res!='') {
mysql_free_result($res);
}

return $back;

}

# ******************************************************************************
# Display pagesviews for one page
# ******************************************************************************
function show_page ($sort, $timef, $timet, $text, $url) {

global $prefix;

$url = urldecode(str_replace("@@","&",$url));
$result=mysql_query("SELECT * FROM $prefix"._tracking."
WHERE tracktime BETWEEN '$timef' and '$timet'
AND requrl = '$url'
ORDER BY tracktime DESC ");
db_error_check ('',"tracking.php", "show_page", "SELECT * FROM" );

OpenTable2();
echo "<table>";
echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"140\" height=\"1\"> "._TRACK_DATE."</td>";
echo "<td><img src=\"/images/pix.gif\" width=\"120\" height=\"1\"> "._TRACK_IP."</td>";
echo "<td><img src=\"/images/pix.gif\" width=\"40\" height=\"1\"> "._TRACK_UID."</td>";
echo "<td><img src=\"/images/pix.gif\" width=\"300\" height=\"1\"> "._TRACK_TITLE."</td>";
echo "<td><img src=\"/images/pix.gif\" width=\"300\" height=\"1\"> "._TRACK_URL."</td>";
echo "</tr>";

while ($array = mysql_fetch_array($result)) {
$uname = '';
if ($array[uid]>0) {
$nukeuser=mysql_query("SELECT uname FROM $prefix"._users." WHERE uid='$array[uid]'");
list($uname) = mysql_fetch_row($nukeuser);
}

$hf_date = track_fc_format_date($array[tracktime], _TRACK_DATESTRING);


echo "<tr>";
echo "<td width=140>".$hf_date."</td>".
"<td width=120>".$array[ip]."</td>";
if ($array[uid]>0) {
echo "<td width=40><a href=\"modules.php?name=Your_Account&op=userinfo&uname=".$uname."\">".$uname."</a></td>"; }
else {
echo "<td width=40>".$uname."</td>";
}
echo "<td>".read_object($array[requrl])."</td>".
"<td>".$array[requrl]."</td>".
"</tr>\n";
}
echo "</table>";
CloseTable2();

mysql_free_result($result);
mysql_free_result($nukeuser);
}

# ******************************************************************************
# Display pagesviews for one page
# ******************************************************************************
function show_line ($timef, $f1_ip) {

global $prefix;


$result=mysql_query("SELECT * FROM $prefix"._tracking.
" WHERE tracktime = '$timef' ".
"AND ip = '$f1_ip'"
);
db_error_check ('',"tracking.php", "show_line", "SELECT * FROM" );

OpenTable2();
echo "<table width=100% border=0>";

echo "<colgroup>".
"<col width='1'>".
"<col width='99%'".
"</colgroup>";

echo "<tr>";
echo "<td><img src=\"/images/pix.gif\" width=\"80\" height=\"1\"> </td>";
echo "<td><img src=\"/images/pix.gif\" width=\"300\" height=\"1\"> </td>";
echo "</tr>";
while ($array = mysql_fetch_array($result)) {
track_print_array_table ($array, "2", "x");
}
echo "</table>";
CloseTable2();

}

# ******************************************************************************
# Display pagesviews for one visit
# ******************************************************************************
function show_visit ($sort, $timef, $timet, $f1_ip, $f1_uid, $f1_trid, $f1_url, $f1_text) {

global $prefix;

$f1_url = urldecode(str_replace("@@","&",$f1_url));

if ($f1_uid !='') { $sel_uid = " AND uid = '$f1_uid'"; }
if ($f1_ip !='') { $sel_ip = " AND ip = '$f1_ip'"; }
if ($f1_trid !='') { $sel_trid = " AND trackid = '$f1_trid'"; }
if ($f1_url !='') { $sel_url = " AND requrl = '$f1_url'"; }

switch ($sort) {
case "tracktime": $hf_order = " ORDER BY tracktime"; break;
case "requrl": $hf_order = " ORDER B
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Oct 12, 2003 9:40 pm Reply with quote

Remove the quotes from around "LC_TIME" in those files/lines mentioned in your errors. This means "LC_TIME" should be changed to LC_TIME.
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 6.9

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©