Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Error


PHP Error

Reply
  #1 (permalink)  
Old 06-26-04, 02:50 AM
Fairnie Fairnie is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Middle-east
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Question PHP Error

I have set up PHP Nuke but I'm getting these errors.

Parse error: parse error, unexpected T_FUNCTION in /customers/k4f-squad.com/k4f-squad.com/httpd.www/test/phpnuke/html/mainfile.php on line 192

Fatal error: Call to undefined function: get_lang() in /customers/k4f-squad.com/k4f-squad.com/httpd.www/test/phpnuke/html/admin.php on line 21

LINE 192 :
PHP Code:

function is_admin($admin) { 

LINE 21 :
PHP Code:

get_lang(admin); 

thanks

MAINFILE.PHP

<?php

PHP Code:

/************************************************************************/

/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* [url]http://phpnuke.org[/url]                                                   */
/*                                                                      */
/* 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.       */
/************************************************************************/

$phpver phpversion();
if (
$phpver >= '4.0.4pl1' && strstr($HTTP_USER_AGENT,'compatible')) {
    if (
extension_loaded('zlib')) {
    
ob_end_clean();
    
ob_start('ob_gzhandler');
    }
} else if (
$phpver '4.0') {
    if (
strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip')) {
    if (
extension_loaded('zlib')) {
        
$do_gzip_compress TRUE;
        
ob_start();
        
ob_implicit_flush(0);
        
//header('Content-Encoding: gzip');
    
}
    }
}

$phpver explode("."$phpver);
$phpver "$phpver[0]$phpver[1]";
if (
$phpver >= 41) {
    
$PHP_SELF $_SERVER['PHP_SELF'];
}

if (!
ini_get("register_globals")) {
    
import_request_variables('GPC');
}

foreach (
$_GET as $secvalue) {
    if ((
eregi("<[^>]*script*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*object*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*iframe*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*applet*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*meta*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*style*\"?[^>]*>"$secvalue)) ||
    (
eregi("<[^>]*form*\"?[^>]*>"$secvalue)) ||
    (
eregi("\([^>]*\"?[^)]*\)"$secvalue)) ||
    (
eregi("\""$secvalue))) {
   die (
"<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
}

foreach (
$_POST as $secvalue) {
    if ((
eregi("<[^>]script*\"?[^>]*>"$secvalue)) ||    (eregi("<[^>]style*\"?[^>]*>"$secvalue))) {
        die (
"<center><img src=images/logo.gif><br><br><b>The html tags you attempted to use are not allowed</b><br><br>[ <a href=\"javascript:history.go(-1)\"><b>Go Back</b></a> ]");
    }
}

if (
eregi("mainfile.php",$PHP_SELF)) {
    
Header("Location: index.php");
    die();
}

if (
$forum_admin == 1) {
    require_once(
"../../../config.php");
    require_once(
"../../../db/db.php");
} elseif (
$inside_mod == 1) {
    require_once(
"../../config.php");
    require_once(
"../../db/db.php");
} else {
    require_once(
"config.php");
    require_once(
"db/db.php");
    
/* FOLLOWING TWO LINES ARE DEPRECATED BUT ARE HERE FOR OLD MODULES COMPATIBILITY */
    /* PLEASE START USING THE NEW SQL ABSTRACTION LAYER. SEE MODULES DOC FOR DETAILS */
    
require_once("includes/sql_layer.php");
    
$dbi sql_connect($dbhost$dbuname$dbpass$dbname);
}

$mainfile 1;
$sql "SELECT * FROM ".$prefix."_config";
$result $db->sql_query($sql);
$row $db->sql_fetchrow($result);
$sitename $row['sitename'];
$nukeurl $row[nukeurl];
$site_logo $row[site_logo];
$slogan $row[slogan];
$startdate $row[startdate];
$adminmail $row[adminmail];
$anonpost $row[anonpost];
$Default_Theme $row[Default_Theme];
$foot1 $row[foot1];
$foot2 $row[foot2];
$foot3 $row[foot3];
$commentlimit $row[commentlimit];
$commentlimit intval($commentlimit);
$anonymous $row[anonymous];
$minpass $row[minpass];
$minpass intval($minpass);
$pollcomm $row[pollcomm];
$pollcomm intval($pollcomm);
$articlecomm $row[articlecomm];
$articlecomm intval($articlecomm);
$broadcast_msg $row[broadcast_msg];
$broadcast_msg intval($broadcast_msg);
$my_headlines $row[my_headlines];
$my_headlines intval($my_headlines);
$top $row[top];
$top intval($top);
$storyhome $row[storyhome];
$storyhome intval($storyhome);
$user_news $row[user_news];
$user_news intval($user_news);
$oldnum $row[oldnum];
$oldnum intval($oldnum);
$ultramode $row[ultramode];
$ultramode intval($ultramode);
$banners $row[banners];
$banners intval($banners);
$backend_title $row[backend_title];
$backend_language $row[backend_language];
$language $row[language];
$locale $row[locale];
$multilingual $row[multilingual];
$multilingual intval($multilingual);
$useflags $row[useflags];
$useflags intval($useflags);
$notify $row[notify];
$notify intval($notify);
$notify_email $row[notify_email];
$notify_subject $row[notify_subject];
$notify_message $row[notify_message];
$notify_from $row[notify_from];
$moderate $row[moderate];
$moderate intval($moderate);
$admingraphic $row[admingraphic];
$admingraphic intval($admingraphic);
$httpref $row[httpref];
$httpref intval($httpref);
$httprefmax $row[httprefmax];
$httprefmax intval($httprefmax);
$CensorMode $row[CensorMode];
$CensorMode intval($CensorMode);
$CensorReplace $row[CensorReplace];
$copyright $row[copyright];
$Version_Num $row[Version_Num];
$domain eregi_replace("http://"""$nukeurl);
$tipath "images/topics/";
$mtime microtime();
$mtime explode(" ",$mtime);
$mtime $mtime[1] + $mtime[0];
$start_time $mtime;

if (
$forum_admin != 1) {
    if (isset(
$newlang) AND !eregi("\.","$newlang")) {
    if (
file_exists("language/lang-$newlang.php")) {
        
setcookie("lang",$newlang,time()+31536000);
        include(
"language/lang-$newlang.php");
        
$currentlang $newlang;
    } else {
        
setcookie("lang",$language,time()+31536000);
        include(
"language/lang-$language.php");
        
$currentlang $language;
    }
    } elseif (isset(
$lang)) {
    include(
"language/lang-$lang.php");
    
$currentlang $lang;
    } else {
    
setcookie("lang",$language,time()+31536000);
    
include_path .//test/phpnuke/html/language/includes("language/lang-$language.php");
    
$currentlang $language;
    }
}

function 
get_lang($module) {
    global 
$currentlang$language;
    if (
file_exists("modules/$module/language/lang-$currentlang.php")) {
    if (
$module == admin) {
        include_once(
"admin/language/lang-$currentlang.php");
    } else {
        include_once(
"modules/$module/language/lang-$currentlang.php");
    }
    } else {
    if (
$module == admin) {
        include_once
//("admin/language/lang-$currentlang.php");
    
        
include_once//("modules/$module/language/lang-$language.php");
        

function is_admin($admin) {
    global 
$prefix$db;
    if(!
is_array($admin)) {
    
$admin base64_decode($admin);
    
$admin explode(":"$admin);
        
$aid "$admin[0]";
    
$pwd "$admin[1]";
    } else {
        
$aid "$admin[0]";
    
$pwd "$admin[1]";
    }
    if (
$aid != "" AND $pwd != "") {
        
$aid trim($aid);
    
$sql "SELECT pwd FROM ".$prefix."_authors WHERE aid='$aid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$pass $row[pwd];
    if(
$pass == $pwd && $pass != "") {
        return 
1;
    }
    }
    return 
0;
}

function 
is_user($user) {
    global 
$prefix$db$user_prefix;
    if(!
is_array($user)) {
    
$user base64_decode($user);
    
$user explode(":"$user);
        
$uid "$user[0]";
    
$pwd "$user[2]";
    } else {
        
$uid "$user[0]";
    
$pwd "$user[2]";
    }
    
$uid addslashes($uid);
        
$uid intval($uid);
    if (
$uid != "" AND $pwd != "") {
    
$sql "SELECT user_password FROM ".$user_prefix."_users WHERE user_id='$uid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$pass $row[user_password];
    if(
$pass == $pwd && $pass != "") {
        return 
1;
    }
    }
    return 
0;
}

function 
is_group($user$name) {
    global 
$prefix$db$user_prefix;
    if(!
is_array($user)) {
    
$user base64_decode($user);
    
$user explode(":"$user);
        
$uid "$user[0]";
    
$pwd "$user[2]";
    } else {
        
$uid "$user[0]";
    
$pwd "$user[2]";
    }
    if (
$uid != "" AND $pwd != "") {
    
$sql "SELECT user_password FROM ".$user_prefix."_users WHERE user_id='$uid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$pass $row[user_password];
    if(
$pass == $pwd && $pass != "") {
        
$sql "SELECT points FROM ".$user_prefix."_users WHERE user_id='$uid'";
        
$result $db->sql_query($sql);
        
$row $db->sql_fetchrow($result);
        
$points $row[points];
        
$sql "SELECT mod_group FROM ".$prefix."_modules WHERE title='$name'";
        
$result $db->sql_query($sql);
        
$row $db->sql_fetchrow($result);
        
$mod_group $row[mod_group];
        
$sql "SELECT points FROM ".$prefix."_groups WHERE id='$mod_group'";
        
$result $db->sql_query($sql);
        
$row $db->sql_fetchrow($result);
        
$grp $row[points];
        if ((
$points >= AND $points >= $grp) OR $mod_group == 0) {
            return 
1;
        }
    }
    }
    return 
0;
}

function 
update_points($id) {
    global 
$user_prefix$prefix$db$user;
    if (
is_user($user)) {
    if(!
is_array($user)) {
        
$user1 base64_decode($user);
        
$user1 explode(":"$user1);
            
$username "$user1[1]";
    } else {
            
$username "$user1[1]";
    }
    if (
$db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_groups")) > 0) {
        
$row $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$prefix."_groups_points WHERE id='$id'"));
        
$db->sql_query("UPDATE ".$user_prefix."_users SET points=points+$row[points] WHERE username='$username'");
    }
    }
}

function 
title($text) {
    
OpenTable();
    echo 
"<center><font class=\"title\"><b>$text</b></font></center>";
    
CloseTable();
    echo 
"<br>";
}

function 
is_active($module) {
    global 
$prefix$db;
    
$module trim($module);
    
$sql "SELECT active FROM ".$prefix."_modules WHERE title='$module'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$act $row[active];
    
$act intval($act);
    if (!
$result OR $act == 0) {
    return 
0;
    } else {
    return 
1;
    }
}

function 
render_blocks($side$blockfile$title$content$bid$url) {
    if (
$url == "") {
        if (
$blockfile == "") {
            if (
$side == "c") {
                
themecenterbox($title$content);
            } elseif (
$side == "d") {
                
themecenterbox($title$content);
            } else {
                
themesidebox($title$content);
            }
        } else {
            if (
$side == "c") {
                
blockfileinc($title$blockfile1);
            } elseif (
$side == "d") {
                
blockfileinc($title$blockfile1);
            } else {
                
blockfileinc($title$blockfile);
            }
        }
    } else {
        if (
$side == "c" OR $side == "d") {
            
headlines($bid,1);
        } else {
               
headlines($bid);
        }
    }
}

function 
blocks($side) {
    global 
$storynum$prefix$multilingual$currentlang$db$admin$user;
    if (
$multilingual == 1) {
        
$querylang "AND (blanguage='$currentlang' OR blanguage='')";
    } else {
        
$querylang "";
    }
    if (
strtolower($side[0]) == "l") {
        
$pos "l";
    } elseif (
strtolower($side[0]) == "r") {
        
$pos "r";
    }  elseif (
strtolower($side[0]) == "c") {
        
$pos "c";
    } elseif  (
strtolower($side[0]) == "d") {
        
$pos "d";
    }
    
$side $pos;
    
$sql "SELECT bid, bkey, title, content, url, blockfile, view, expire, action, subscription FROM ".$prefix."_blocks WHERE bposition='$pos' AND active='1' $querylang ORDER BY weight ASC";
    
$result $db->sql_query($sql);
    while(
$row $db->sql_fetchrow($result)) {
        
$bid $row[bid];
        
$bid intval($bid);
        
$title $row[title];
        
$content $row[content];
        
$url $row[url];
        
$blockfile $row[blockfile];
        
$view $row[view];
        
$expire $row[expire];
        
$action $row[action];
        
$now time();
        
$sub $row[subscription];
        if (
$sub == OR ($sub == AND !paid())) {
            if (
$expire != AND $expire <= $now) {
                if (
$action == "d") {
                    
$db->sql_query("UPDATE ".$prefix."_blocks SET active='0', expire='0' WHERE bid='$bid'");
                    return;
                } elseif (
$action == "r") {
                    
$db->sql_query("DELETE FROM ".$prefix."_blocks WHERE bid='$bid'");
                    return;
                }
            }
            if (
$row[bkey] == admin) {
                
adminblock();
            } elseif (
$row[bkey] == userbox) {
                
userblock();
            } elseif (
$row[bkey] == "") {
                if (
$view == 0) {
                    
render_blocks($side$blockfile$title$content$bid$url);
                } elseif (
$view == AND is_user($user) || is_admin($admin)) {
                    
render_blocks($side$blockfile$title$content$bid$url);
                } elseif (
$view == AND is_admin($admin)) {
                    
render_blocks($side$blockfile$title$content$bid$url);
                } elseif (
$view == AND !is_user($user) || is_admin($admin)) {
                    
render_blocks($side$blockfile$title$content$bid$url);
                }
            }
        }
    }
}

function 
message_box() {
    global 
$bgcolor1$bgcolor2$user$admin$cookie$textcolor2$prefix$multilingual$currentlang$db;
    if (
$multilingual == 1) {
        
$querylang "AND (mlanguage='$currentlang' OR mlanguage='')";
    } else {
        
$querylang "";
    }
    
$sql "SELECT mid, title, content, date, expire, view FROM ".$prefix."_message WHERE active='1' $querylang";
    
$result $db->sql_query($sql);
    if (
$numrows $db->sql_numrows($result) == 0) {
        return;
    } else {
    while (
$row $db->sql_fetchrow($result)) {
        
$mid $row[mid];
            
$mid intval($mid);
        
$title $row[title];
        
$content $row[content];
        
$mdate $row[date];
        
$expire $row[expire];
            
$expire intval($expire);
        
$view $row[view];
            
$view intval($view);
    if (
$title != "" && $content != "") {
        if (
$expire == 0) {
        
$remain _UNLIMITED;
        } else {
        
$etime = (($mdate+$expire)-time())/3600;
        
$etime = (int)$etime;
        if (
$etime 1) {
            
$remain _EXPIRELESSHOUR;
        } else {
            
$remain ""._EXPIREIN.$etime "._HOURS."";
        }
        }
        if (
$view == AND paid()) {
            
OpenTable();
            echo 
"<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
                
."<font class=\"content\">$content</font>";
            if (
is_admin($admin)) {
                echo 
"<br><br><center><font class=\"content\">[ "._MVIEWSUBUSERS." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
            }
            
CloseTable();
            echo 
"<br>";
        } elseif (
$view == AND is_admin($admin)) {
                
OpenTable();
                echo 
"<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
            
."<font class=\"content\">$content</font>"
            
."<br><br><center><font class=\"content\">[ "._MVIEWADMIN." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
        
CloseTable();
        echo 
"<br>";
        } elseif (
$view == AND is_user($user) || is_admin($admin)) {
                
OpenTable();
                echo 
"<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
            
."<font class=\"content\">$content</font>";
        if (
is_admin($admin)) {
            echo 
"<br><br><center><font class=\"content\">[ "._MVIEWUSERS." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
        }
            
CloseTable();
        echo 
"<br>";
        } elseif (
$view == AND !is_user($user) || is_admin($admin)) {
                
OpenTable();
                echo 
"<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
            
."<font class=\"content\">$content</font>";
        if (
is_admin($admin)) {
            echo 
"<br><br><center><font class=\"content\">[ "._MVIEWANON." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
        }
        
CloseTable();
        echo 
"<br>";
        } elseif (
$view == 1) {
                
OpenTable();
                echo 
"<center><font class=\"option\" color=\"$textcolor2\"><b>$title</b></font></center><br>\n"
            
."<font class=\"content\">$content</font>";
        if (
is_admin($admin)) {
            echo 
"<br><br><center><font class=\"content\">[ "._MVIEWALL." - $remain - <a href=\"admin.php?op=editmsg&mid=$mid\">"._EDIT."</a> ]</font></center>";
        }
        
CloseTable();
        echo 
"<br>";
        }
        if (
$expire != 0) {
            
$past time()-$expire;
        if (
$mdate $past) {
            
$db->sql_query("UPDATE ".$prefix."_message SET active='0' WHERE mid='$mid'");
        }
        }
        }
    }
    }
}

function 
online() {
    global 
$user$cookie$prefix$db;
    
cookiedecode($user);
    
$ip $_SERVER["REMOTE_ADDR"];
    
$uname $cookie[1];
    if (!isset(
$uname)) {
        
$uname "$ip";
        
$guest 1;
    }
    
$past time()-3600;
    
$sql "DELETE FROM ".$prefix."_session WHERE time < $past";
    
$db->sql_query($sql);
    
$sql "SELECT time FROM ".$prefix."_session WHERE uname='$uname'";
    
$result $db->sql_query($sql);
    
$ctime time();
    if (
$row $db->sql_fetchrow($result)) {
    
$sql "UPDATE ".$prefix."_session SET uname='$uname', time='$ctime', host_addr='$ip', guest='$guest' WHERE uname='$uname'";
    
$db->sql_query($sql);
    } else {
    
$sql "INSERT INTO ".$prefix."_session (uname, time, host_addr, guest) VALUES ('$uname', '$ctime', '$ip', '$guest')";
    
$db->sql_query($sql);
    }
}

function 
blockfileinc($title$blockfile$side=0) {
    
$blockfiletitle $title;
    
$file = @file("blocks/$blockfile");
    if (!
$file) {
    
$content _BLOCKPROBLEM;
    } else {
    include(
"blocks/$blockfile");
    }
    if (
$content == "") {
    
$content _BLOCKPROBLEM2;
    }
    if (
$side == 1) {
    
themecenterbox($blockfiletitle$content);
    } elseif (
$side == 2) {
    
themecenterbox($blockfiletitle$content);
    } else {
    
themesidebox($blockfiletitle$content);
    }
}

function 
selectlanguage() {
    global 
$useflags$currentlang;
    if (
$useflags == 1) {
    
$title _SELECTLANGUAGE;
    
$content "<center><font class=\"content\">"._SELECTGUILANG."<br><br>";
    
$langdir dir("language");
    while(
$func=$langdir->read()) {
    if(
substr($func05) == "lang-") {
            
$menulist .= "$func ";
    }
    }
    
closedir($langdir->handle);
    
$menulist explode(" "$menulist);
    
sort($menulist);
    for (
$i=0$i sizeof($menulist); $i++) {
        if(
$menulist[$i]!="") {
        
$tl ereg_replace("lang-","",$menulist[$i]);
        
$tl ereg_replace(".php","",$tl);
        
$altlang ucfirst($tl);
        
$content .= "<a href=\"index.php?newlang=$tl\"><img src=\"images/language/flag-$tl.png\" border=\"0\" alt=\"$altlang\" title=\"$altlang\" hspace=\"3\" vspace=\"3\"></a> ";
    }
    }
    
$content .= "</font></center>";
    
themesidebox($title$content);
    } else {
    
$title _SELECTLANGUAGE;
    
$content "<center><font class=\"content\">"._SELECTGUILANG."<br><br></font>";
    
$content .= "<form action=\"index.php\" method=\"get\"><select name=\"newlanguage\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">";
        
$handle=opendir('language');
        while (
$file readdir($handle)) {
        if (
preg_match("/^lang\-(.+)\.php/"$file$matches)) {
                
$langFound $matches[1];
                
$languageslist .= "$langFound ";
            }
        }
        
closedir($handle);
        
$languageslist explode(" "$languageslist);
        
sort($languageslist);
        for (
$i=0$i sizeof($languageslist); $i++) {
        if(
$languageslist[$i]!="") {
    
$content .= "<option value=\"index.php?newlang=$languageslist[$i]\" ";
        if(
$languageslist[$i]==$currentlang$content .= " selected";
    
$content .= ">".ucfirst($languageslist[$i])."</option>\n";
        }
    }
    
$content .= "</select></form></center>";
    
themesidebox($title$content);
    }
}

function 
ultramode() {
    global 
$prefix$db;
    
$ultra "ultramode.txt";
    
$file fopen("$ultra""w");
    
fwrite($file"General purpose self-explanatory file with news headlines\n");
    
$sql "SELECT sid, aid, title, time, comments, topic FROM ".$prefix."_stories ORDER BY time DESC LIMIT 0,10";
    
$result $db->sql_query($sql);
    while (
$row $db->sql_fetchrow($result)) {
    
$sql "select topictext, topicimage from ".$prefix."_topics where topicid='$row[topic]'";
    
$result2 $db->sql_query($sql);
    
$row2 $db->sql_fetchrow($result2);
    
$topictext $row2[topictext];
    
$topicimage $row2[topicimage];
    
$content "%%\n$row[title]\n/modules.php?name=News&file=article&sid=$row[sid]\n$row[time]\n$row[aid]\n$row2[topictext]\n$row[comments]\n$row2[topicimage]\n";
    
fwrite($file$content);
    }
    
fclose($file);
}

function 
cookiedecode($user) {
    global 
$cookie$prefix$db$user_prefix;
    
$user base64_decode($user);
    
$cookie explode(":"$user);
    
$sql "SELECT user_password FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$pass $row[user_password];
    if (
$cookie[2] == $pass && $pass != "") {
    return 
$cookie;
    } else {
    unset(
$user);
    unset(
$cookie);
    }
}

function 
getusrinfo($user) {
    global 
$userinfo$user_prefix$db;
    
$user2 base64_decode($user);
    
$user3 explode(":"$user2);
    
$sql "SELECT * FROM ".$user_prefix."_users WHERE username='$user3[1]' AND user_password='$user3[2]'";
    
$result $db->sql_query($sql);
    if (
$db->sql_numrows($result) == 1) {
        
$userinfo $db->sql_fetchrow($result);
    }
    return 
$userinfo;
}

function 
FixQuotes ($what "") {
    
$what ereg_replace("'","''",$what);
    while (
eregi("\\\\'"$what)) {
    
$what ereg_replace("\\\\'","'",$what);
    }
    return 
$what;
}

/*********************************************************/
/* text filter                                           */
/*********************************************************/

function check_words($Message) {
    global 
$EditedMessage;
    include(
"config.php");
    
$EditedMessage $Message;
    if (
$CensorMode != 0) {
    if (
is_array($CensorList)) {
        
$Replace $CensorReplace;
        if (
$CensorMode == 1) {
        for (
$i 0$i count($CensorList); $i++) {
            
$EditedMessage eregi_replace("$CensorList[$i]([^a-zA-Z0-9])","$Replace\\1",$EditedMessage);
        }
        } elseif (
$CensorMode == 2) {
        for (
$i 0$i count($CensorList); $i++) {
            
$EditedMessage eregi_replace("(^|[^[:alnum:]])$CensorList[$i]","\\1$Replace",$EditedMessage);
        }
        } elseif (
$CensorMode == 3) {
        for (
$i 0$i count($CensorList); $i++) {
            
$EditedMessage eregi_replace("$CensorList[$i]","$Replace",$EditedMessage);
        }
        }
    }
    }
    return (
$EditedMessage);
}

function 
delQuotes($string){
    
/* no recursive function to add quote to an HTML tag if needed */
    /* and delete duplicate spaces between attribs. */
    
$tmp="";    # string buffer
    
$result=""# result string
    
$i=0;
    
$attrib=-1# Are us in an HTML attrib ?   -1: no attrib   0: name of the attrib   1: value of the atrib
    
$quote=0;   # Is a string quote delimited opened ? 0=no, 1=yes
    
$len strlen($string);
    while (
$i<$len) {
    switch(
$string[$i]) { # What car is it in the buffer ?
        
case "\""#"       # a quote.
        
if ($quote==0) {
            
$quote=1;
        } else {
            
$quote=0;
            if ((
$attrib>0) && ($tmp != "")) { $result .= "=\"$tmp\""; }
            
$tmp="";
            
$attrib=-1;
        }
        break;
        case 
"=":           # an equal - attrib delimiter
        
if ($quote==0) {  # Is it found in a string ?
            
$attrib=1;
            if (
$tmp!=""$result.=$tmp";
            
$tmp="";
        } else 
$tmp .= '=';
        break;
        case 
" ":           # a blank ?
        
if ($attrib>0) {  # add it to the string, if one opened.
            
$tmp .= $string[$i];
        }
        break;
        default:            
# Other
        
if ($attrib<0)    # If we weren't in an attrib, set attrib to 0
        
$attrib=0;
        
$tmp .= $string[$i];
        break;
    }
    
$i++;
    }
    if ((
$quote!=0) && ($tmp != "")) {
    if (
$attrib==1$result .= "=";
    
/* If it is the value of an atrib, add the '=' */
    
$result .= "\"$tmp\"";  /* Add quote if needed (the reason of the function ;-) */
    
}
    return 
$result;
}

function 
check_html ($str$strip="") {
    
/* The core of this code has been lifted from phpslash */
    /* which is licenced under the GPL. */
    
include("config.php");
    if (
$strip == "nohtml")
        
$AllowableHTML=array('');
    
$str stripslashes($str);
    
$str eregi_replace("<[[:space:]]*([^>]*)[[:space:]]*>",'<\\1>'$str);
            
// Delete all spaces from html tags .
    
$str eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?[[:space:]]*([^\" >]*)[[:space:]]*\"?[^>]*>",'<a href="\\1">'$str);
            
// Delete all attribs from Anchor, except an href, double quoted.
    
$str eregi_replace("<[[:space:]]* img[[:space:]]*([^>]*)[[:space:]]*>"''$str);
        
// Delete all img tags
    
$str eregi_replace("<a[^>]*href[[:space:]]*=[[:space:]]*\"?javascript[[:punct:]]*\"?[^>]*>"''$str);
        
// Delete javascript code from a href tags -- Zhen-Xjell @ [url]http://nukecops.com[/url]
    
$tmp "";
    while (
ereg("<(/?[[:alpha:]]*)[[:space:]]*([^>]*)>",$str,$reg)) {
        
$i strpos($str,$reg[0]);
        
$l strlen($reg[0]);
        if (
$reg[1][0] == "/"$tag strtolower(substr($reg[1],1));
        else 
$tag strtolower($reg[1]);
        if (
$a $AllowableHTML[$tag])
            if (
$reg[1][0] == "/"$tag "</$tag>";
            elseif ((
$a == 1) || ($reg[2] == "")) $tag "<$tag>";
            else {
              
# Place here the double quote fix function.
              
$attrb_list=delQuotes($reg[2]);
              
// A VER
              
$attrb_list ereg_replace("&","&amp;",$attrb_list);
              
$tag "<$tag$attrb_list ">";
            } 
# Attribs in tag allowed
        
else $tag "";
        
$tmp .= substr($str,0,$i) . $tag;
        
$str substr($str,$i+$l);
    }
    
$str $tmp $str;
    return 
$str;
    exit;
    
/* Squash PHP tags unconditionally */
    
$str ereg_replace("<\?","",$str);
    return 
$str;
}

function 
filter_text($Message$strip="") {
    global 
$EditedMessage;
    
check_words($Message);
    
$EditedMessage=check_html($EditedMessage$strip);
    return (
$EditedMessage);
}

/*********************************************************/
/* formatting stories                                    */
/*********************************************************/

function formatTimestamp($time) {
    global 
$datetime$locale;
    
setlocale (LC_TIME$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})"$time$datetime);
    
$datetime strftime(""._DATESTRING.""mktime($datetime[4],$datetime[5],$datetime[6],$datetime[2],$datetime[3],$datetime[1]));
    
$datetime ucfirst($datetime);
    return(
$datetime);
}

function 
formatAidHeader($aid) {
    global 
$prefix$db;
    
$sql "SELECT url, email FROM ".$prefix."_authors WHERE aid='$aid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$url $row[url];
    
$email $row[email];
    if (isset(
$url)) {
    
$aid "<a href=\"$url\">$aid</a>";
    } elseif (isset(
$email)) {
    
$aid "<a href=\"mailto:$email\">$aid</a>";
    } else {
    
$aid $aid;
    }
    echo 
"$aid";
}

function 
get_author($aid) {
    global 
$prefix$db;
    
$sql "SELECT url, email FROM ".$prefix."_authors WHERE aid='$aid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    if (isset(
$row[url])) {
    
$aid "<a href=\"$row[url]\">$aid</a>";
    } elseif (isset(
$row[email])) {
    
$aid "<a href=\"mailto:$row[email]\">$aid</a>";
    } else {
    
$aid $aid;
    }
    return(
$aid);
}

function 
themepreview($title$hometext$bodytext=""$notes="") {
    echo 
"<b>$title</b><br><br>$hometext";
    if (
$bodytext != "") {
    echo 
"<br><br>$bodytext";
    }
    if (
$notes != "") {
    echo 
"<br><br><b>"._NOTE."</b> <i>$notes</i>";
    }
}

function 
adminblock() {
    global 
$admin$prefix$db;
    if (
is_admin($admin)) {
    
$sql "SELECT title, content FROM ".$prefix."_blocks WHERE bkey='admin'";
    
$result $db->sql_query($sql);
    while (
$row $db->sql_fetchrow($result)) {
        
$content "<font class=\"content\">$row[content]</font>";
        
themesidebox($row[title], $row[content]);
    }
    
$title ""._WAITINGCONT."";
    
$num $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_queue"));
    
$content "<font class=\"content\">";
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=submissions\">"._SUBMISSIONS."</a>: $num<br>";
    
$num $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews_add"));
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=reviews\">"._WREVIEWS."</a>: $num<br>";
    
$num $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_newlink"));
    
$brokenl $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='1'"));
    
$modreql $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_links_modrequest WHERE brokenlink='0'"));
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=Links\">"._WLINKS."</a>: $num<br>";
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=LinksListModRequests\">"._MODREQLINKS."</a>: $modreql<br>";
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=LinksListBrokenLinks\">"._BROKENLINKS."</a>: $brokenl<br>";
    
$num $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_newdownload"));
    
$brokend $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='1'"));
    
$modreqd $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_downloads_modrequest WHERE brokendownload='0'"));
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=downloads\">"._UDOWNLOADS."</a>: $num<br>";
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=DownloadsListModRequests\">"._MODREQDOWN."</a>: $modreqd<br>";
    
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"admin.php?op=DownloadsListBrokenDownloads\">"._BROKENDOWN."</a>: $brokend<br></font>";
    
themesidebox($title$content);
    }
}

function 
loginbox() {
    global 
$user;
    if (!
is_user($user)) {
    
$title _LOGIN;
    
$boxstuff "<form action=\"modules.php?name=Your_Account\" method=\"post\">";
    
$boxstuff .= "<center><font class=\"content\">"._NICKNAME."<br>";
    
$boxstuff .= "<input type=\"text\" name=\"username\" size=\"8\" maxlength=\"25\"><br>";
    
$boxstuff .= ""._PASSWORD."<br>";
    
$boxstuff .= "<input type=\"password\" name=\"user_password\" size=\"8\" maxlength=\"20\"><br>";
    
$boxstuff .= "<input type=\"hidden\" name=\"op\" value=\"login\">";
    
$boxstuff .= "<input type=\"submit\" value=\""._LOGIN."\"></font></center></form>";
    
$boxstuff .= "<center><font class=\"content\">"._ASREGISTERED."</font></center>";
    
themesidebox($title$boxstuff);
    }
}

function 
userblock() {
    global 
$user$cookie$db$user_prefix;
    if((
is_user($user)) AND ($cookie[8])) {
    
$sql "SELECT ublock FROM ".$user_prefix."_users WHERE user_id='$cookie[0]'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$title ""._MENUFOR.$cookie[1]";
    
themesidebox($title$row[ublock]);
    }
}

function 
getTopics($s_sid) {
    global 
$topicname$topicimage$topictext$prefix$db;
    
$sid $s_sid;
    
$sid intval($sid);
    
$sql "SELECT topic FROM ".$prefix."_stories WHERE sid='$sid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$sql "SELECT topicid, topicname, topicimage, topictext FROM ".$prefix."_topics WHERE topicid='$row[topic]'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$topicid $row[topicid];
    
$topicname $row[topicname];
    
$topicimage $row[topicimage];
    
$topictext $row[topictext];
}

function 
headlines($bid$cenbox=0) {
    global 
$prefix$db;
    
$bid intval($bid);
    
$sql "SELECT title, content, url, refresh, time FROM ".$prefix."_blocks WHERE bid='$bid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$title $row[title];
    
$content $row[content];
    
$url $row[url];
    
$refresh $row[refresh];
    
$otime $row[time];
    
$past time()-$refresh;
    if (
$otime $past) {
    
$btime time();
    
$rdf parse_url($url);
    
$fp fsockopen($rdf['host'], 80$errno$errstr15);
    if (!
$fp) {
        
$content "";
        
$sql "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
        
$db->sql_query($sql);
        
$cont 0;
        if (
$cenbox == 0) {
        
themesidebox($title$content);
        } else {
        
themecenterbox($title$content);
        }
        return;
    }
    if (
$fp) {
        if (
$rdf['query'] != '')
            
$rdf['query'] = "?" $rdf['query'];

        
fputs($fp"GET " $rdf['path'] . $rdf['query'] . " HTTP/1.0\r\n");
        
fputs($fp"HOST: " $rdf['host'] . "\r\n\r\n");
        
$string    "";
        while(!
feof($fp)) {
            
$pagetext fgets($fp,300);
            
$string .= chop($pagetext);
        }
        
fputs($fp,"Connection: close\r\n\r\n");
        
fclose($fp);
        
$items explode("</item>",$string);
        
$content "<font class=\"content\">";
        for (
$i=0;$i<10;$i++) {
        
$link ereg_replace(".*<link>","",$items[$i]);
        
$link ereg_replace("</link>.*","",$link);
        
$title2 ereg_replace(".*<title>","",$items[$i]);
        
$title2 ereg_replace("</title>.*","",$title2);
        
$title2 stripslashes($title2);
        if (
$items[$i] == "" AND $cont != 1) {
            
$content "";
            
$sql "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
            
$db->sql_query($sql);
            
$cont 0;
            if (
$cenbox == 0) {
            
themesidebox($title$content);
            } else {
            
themecenterbox($title$content);
            }
            return;
        } else {
            if (
strcmp($link,$title2) AND $items[$i] != "") {
            
$cont 1;
            
$content .= "<strong><big>&middot;</big></strong><a href=\"$link\" target=\"new\">$title2</a><br>\n";
            }
        }
        }

    }
    
$sql "UPDATE ".$prefix."_blocks SET content='$content', time='$btime' WHERE bid='$bid'";
    
$db->sql_query($sql);
    }
    
$siteurl ereg_replace("http://","",$url);
    
$siteurl explode("/",$siteurl);
    if ((
$cont == 1) OR ($content != "")) {
    
$content .= "<br><a href=\"http://$siteurl[0]\" target=\"blank\"><b>"._HREADMORE."</b></a></font>";
    } elseif ((
$cont == 0) OR ($content == "")) {
    
$content "<font class=\"content\">"._RSSPROBLEM."</font>";
    }
    if (
$cenbox == 0) {
    
themesidebox($title$content);
    } else {
    
themecenterbox($title$content);
    }
}

function 
automated_news() {
    global 
$prefix$multilingual$currentlang$db;
    if (
$multilingual == 1) {
    
$querylang "WHERE (alanguage='$currentlang' OR alanguage='')"/* the OR is needed to display stories who are posted to ALL languages */
    
} else {
    
$querylang "";
    }
    
$today getdate();
    
$day $today[mday];
    if (
$day 10) {
    
$day "0$day";
    }
    
$month $today[mon];
    if (
$month 10) {
    
$month "0$month";
    }
    
$year $today[year];
    
$hour $today[hours];
    
$min $today[minutes];
    
$sec "00";
    
$sql "SELECT anid, time FROM ".$prefix."_autonews $querylang";
    
$result $db->sql_query($sql);
    while (
$row $db->sql_fetchrow($result)) {
    
$anid $row[anid];
    
$time $row[time];
    
ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})"$time$date);
    if ((
$date[1] <= $year) AND ($date[2] <= $month) AND ($date[3] <= $day)) {
        if ((
$date[4] < $hour) AND ($date[5] >= $min) OR ($date[4] <= $hour) AND ($date[5] <= $min)) {
        
$sql2 "SELECT * FROM ".$prefix."_autonews WHERE anid='$anid'";
        
$result2 $db->sql_query($sql2);
        while (
$row2 $db->sql_fetchrow($result2)) {
            
$title stripslashes(FixQuotes($row2[title]));
            
$hometext stripslashes(FixQuotes($row2[hometext]));
            
$bodytext stripslashes(FixQuotes($row2[bodytext]));
            
$notes stripslashes(FixQuotes($row2[notes]));
            
$sql "INSERT INTO ".$prefix."_stories VALUES (NULL, '$row2[catid]', '$row2[aid]', '$title', '$row2[time]', '$hometext', '$bodytext', '0', '0', '$row2[topic]', '$row2[informant]', '$notes', '$row2[ihome]', '$row2[alanguage]', '$row2[acomm]', '0', '0', '0', '0', '$row2[associated]')";
            
$db->sql_query($sql);
            
$sql "DELETE FROM ".$prefix."_autonews WHERE anid='$anid'";
            
$db->sql_query($sql);
        }
        }
    }
    }
}

function 
themecenterbox($title$content) {
    
OpenTable();
    echo 
"<center><font class=\"option\"><b>$title</b></font></center><br>"
    
."$content";
    
CloseTable();
    echo 
"<br>";
}

function 
public_message() {
    global 
$prefix$user_prefix$db$user$admin$p_msg$cookie$broadcast_msg;
    if (
$broadcast_msg == 1) {
    if (
is_user($user)) {
        
cookiedecode($user);
    
$sql "SELECT broadcast FROM ".$user_prefix."_users WHERE username='$cookie[1]'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$upref $row[broadcast];
    if (
$upref == 1) {
        
$t_off "<br><p align=\"right\">[ <a href=\"modules.php?name=Your_Account&amp;op=edithome\"><font color=\"FFFFFF\" size=\"2\">"._TURNOFFMSG."</font></a> ]</font>";
        
$pm_show 1;
    } else {
        
$pm_show 0;
    }
    } else {
    
$t_off "";
    }
    if (!
is_user($user) OR (is_user($user) AND ($pm_show == 1))) {
    
$c_mid base64_decode($p_msg);
    
$sql "SELECT mid, content, date, who FROM ".$prefix."_public_messages WHERE mid > '$c_mid' ORDER BY date ASC LIMIT 1";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$mid $row[mid];
    
$content $row[content];
    
$tdate $row[date];
    
$who $row[who];
    if ((!isset(
$c_mid)) OR ($c_mid $mid)) {
            
$public_msg "<br><table width=\"90%\" border=\"1\" cellspacing=\"2\" cellpadding=\"0\" bgcolor=\"FFFFFF\" align=\"center\"><tr><td>\n";
            
$public_msg .= "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"2\" bgcolor=\"FF0000\"><tr><td>\n";
            
$public_msg .= "<font color=\"FFFFFF\" size=\"3\"><b>"._BROADCASTFROM." <a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$who\"><font color=\"FFFFFF\" size=\"3\">$who</font></a>: \"$content\"</b>";
        
$public_msg .= "$t_off";
        
$public_msg .= "</td></tr></table>";
            
$public_msg .= "</td></tr></table>";
        
$ref_date $tdate+600;
        
$actual_date time();
        if (
$actual_date >= $ref_date) {
        
$public_msg "";
        
$numrows $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_public_messages"));
        if (
$numrows == 1) {
            
$db->sql_query("DELETE FROM ".$prefix."_public_messages");
            
$mid 0;
        } else {
            
$db->sql_query("DELETE FROM ".$prefix."_public_messages WHERE mid='$mid'");
        }
        }
        if (
$mid == OR $mid == "") {
        
setcookie("p_msg");
        } else {
            
$mid base64_encode($mid);
        
setcookie("p_msg",$mid,time()+600);
        }
    }
    }
    } else {
        
$public_msg "";
    }
    return(
$public_msg);
}

function 
get_theme() {
    global 
$user$cookie$Default_Theme;
    if(
is_user($user)) {
    
$user2 base64_decode($user);
    
$t_cookie explode(":"$user2);
    if(
$t_cookie[9]==""$t_cookie[9]=$Default_Theme;
    if(isset(
$theme)) $t_cookie[9]=$theme;
    if(!
$tfile=@opendir("themes/$t_cookie[9]")) {
        
$ThemeSel $Default_Theme;
    } else {
        
$ThemeSel $t_cookie[9];
    }
    } else {
    
$ThemeSel $Default_Theme;
    }
    return(
$ThemeSel);
}

function 
removecrlf($str) {
    
// Function for Security Fix by Ulf Harnhammar, VSU Security 2002
    // Looks like I don't have so bad track record of security reports as Ulf believes
    // He decided to not contact me, but I'm always here, digging on the net
    
return strtr($str"\015\012"' ');
}

function 
paid() {
    global 
$db$user$cookie$adminmail$sitename$nukeurl$subscription_url$user_prefix$prefix;
    if (
is_user($user)) {
        if (
$subscription_url != "") {
            
$renew ""._SUBRENEW.$subscription_url";
        } else {
            
$renew "";
        }
        
cookiedecode($user);
        
$sql "SELECT * FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]'";
        
$result $db->sql_query($sql);
        
$numrows $db->sql_numrows($result);
        
$row $db->sql_fetchrow($result);
        if (
$numrows == 0) {
            return 
0;
        } elseif (
$numrows != 0) {
            
$time time();
            if (
$row[subscription_expire] <= $time) {
                
$db->sql_query("DELETE FROM ".$prefix."_subscriptions WHERE userid='$cookie[0]' AND id='$row[id]'");
                
$from "$sitename <$adminmail>";
                
$subject "$sitename: "._SUBEXPIRED."";
                
$body ""._HELLO.$cookie[1]:\n\n"._SUBSCRIPTIONAT.$sitename "._HASEXPIRED."\n$renew\n\n"._HOPESERVED."\n\n$sitename "._TEAM."\n$nukeurl";
                
$row $db->sql_fetchrow($db->sql_query("SELECT user_email FROM ".$user_prefix."_users WHERE id='$cookie[0]' AND nickname='$cookie[1]' AND password='$cookie[2]'"));
                
mail($row[user_email], $subject$body"From: $from\nX-Mailer: PHP/" phpversion());
            }
            return 
1;
        }
    } else {
        return 
0;    
    }
}

?> 
ADMIN.PHP

PHP Code:

<?php


/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* [url]http://phpnuke.org[/url]                                                   */
/*                                                                      */
/* 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.       */
/************************************************************************/
$checkurl $_SERVER['REQUEST_URI']; 

if (
preg_match("/\?admin/""$checkurl")) { 
echo 
"die"
exit; 
}
require_once(
"mainfile.php");
get_lang(admin);

function 
create_first($name$url$email$pwd$user_new) {
    global 
$prefix$db$user_prefix;
    
$first $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
    if (
$first == 0) {
    
$pwd md5($pwd);
    
$the_adm "God";
    
$sql "INSERT INTO ".$prefix."_authors VALUES ('$name', '$the_adm', '$url', '$email', '$pwd', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1', '')";
    
$db->sql_query($sql);
    if (
$user_new == 1) {
        
$user_regdate date("M d, Y");
        
$user_avatar "blank.gif";
        
$commentlimit 4096;
        if (
$url == "http://") { $url ""; }
        
$sql "INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_website, user_avatar, user_regdate, user_password, theme, commentmax, user_level, user_lang, user_dateformat) VALUES (NULL,'$name','$email','$url','$user_avatar','$user_regdate','$pwd','$Default_Theme','$commentlimit', '2', 'english','D M d, Y g:i a')";
        
$db->sql_query($sql);
    }
    
login();
    }
}

$the_first $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_authors"));
if (
$the_first == 0) {
    if (!
$name) {
    include(
"header.php");
    
title("$sitename: "._ADMINISTRATION."");
    
OpenTable();
    echo 
"<center><b>"._NOADMINYET."</b></center><br><br>"
    
."<form action=\"admin.php\" method=\"post\">"
    
."<table border=\"0\">"
    
."<tr><td><b>"._NICKNAME.":</b></td><td><input type=\"text\" name=\"name\" size=\"30\" maxlength=\"25\"></td></tr>"
    
."<tr><td><b>"._HOMEPAGE.":</b></td><td><input type=\"text\" name=\"url\" size=\"30\" maxlength=\"255\" value=\"http://\"></td></tr>"
    
."<tr><td><b>"._EMAIL.":</b></td><td><input type=\"text\" name=\"email\" size=\"30\" maxlength=\"255\"></td></tr>"
    
."<tr><td><b>"._PASSWORD.":</b></td><td><input type=\"password\" name=\"pwd\" size=\"11\" maxlength=\"10\"></td></tr>"
    
."<tr><td colspan=\"2\">"._CREATEUSERDATA."  <input type=\"radio\" name=\"user_new\" value=\"1\" checked>"._YES."&nbsp;&nbsp;<input type=\"radio\" name=\"user_new\" value=\"0\">"._NO."</td></tr>"
    
."<tr><td><input type=\"hidden\" name=\"fop\" value=\"create_first\">"
    
."<input type=\"submit\" value=\""._SUBMIT."\">"
    
."</td></tr></table></form>";
    
CloseTable();
    include(
"footer.php");
    }
    switch(
$fop) {
    case 
"create_first":
    
create_first($name$url$email$pwd$user_new);
    break;
    }
    die();
}

require(
"auth.php");

if(!isset(
$op)) { $op "adminMain"; }
$pagetitle "- "._ADMINMENU."";

/*********************************************************/
/* Login Function                                        */
/*********************************************************/

function login() {
    global 
$gfx_chk;
    include (
"header.php");
    
mt_srand ((double)microtime()*1000000);
    
$maxran 1000000;
    
$random_num mt_rand(0$maxran);
    
OpenTable();
    echo 
"<center><font class=\"title\"><b>"._ADMINLOGIN."</b></font></center>";
    
CloseTable();
    echo 
"<br>";
    
OpenTable();
    echo 
"<form action=\"admin.php\" method=\"post\">"
        
."<table border=\"0\">"
    
."<tr><td>"._ADMINID."</td>"
    
."<td><input type=\"text\" NAME=\"aid\" SIZE=\"20\" MAXLENGTH=\"25\"></td></tr>"
    
."<tr><td>"._PASSWORD."</td>"
    
."<td><input type=\"password\" NAME=\"pwd\" SIZE=\"20\" MAXLENGTH=\"18\"></td></tr>";
    if (
extension_loaded("gd") AND ($gfx_chk == OR $gfx_chk == OR $gfx_chk == OR $gfx_chk == 7)) {
    echo 
"<tr><td colspan='2'>"._SECURITYCODE.": <img src='admin.php?op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>"
        
."<tr><td colspan='2'>"._TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\"></td></tr>";
    }
    echo 
"<tr><td>"
    
."<input type=\"hidden\" NAME=\"random_num\" value=\"$random_num\">"
    
."<input type=\"hidden\" NAME=\"op\" value=\"login\">"
    
."<input type=\"submit\" VALUE=\""._LOGIN."\">"
    
."</td></tr></table>"
    
."</form>";
    
CloseTable();
    include (
"footer.php");
}

function 
gfx($random_num) {
    global 
$prefix$db;
    require(
"config.php");
    
$datekey date("F j");
    
$rcode hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey $random_num $datekey));
    
$code substr($rcode26);
    
$image ImageCreateFromJPEG("images/admin/code_bg.jpg");
    
$text_color ImageColorAllocate($image808080);
    
Header("Content-type: image/jpeg");
    
ImageString ($image5122$code$text_color);
    
ImageJPEG($image''75);
    
ImageDestroy($image);
    die();
}

function 
deleteNotice($id$table$op_back) {
    global 
$db;
    
$db->sql_query("DELETE FROM $table WHERE id = '$id'"); 
    
Header("Location: admin.php?op=$op_back");
}

/*********************************************************/
/* Administration Menu Function                          */
/*********************************************************/

function adminmenu($url$title$image) {
    global 
$counter$admingraphic$Default_Theme;
    
$ThemeSel get_theme();
    if (
file_exists("themes/$ThemeSel/images/admin/$image")) {
    
$image "themes/$ThemeSel/images/admin/$image";
    } else {
    
$image "images/admin/$image";
    }
    if (
$admingraphic == 1) {
    
$img "<img src=\"$image\" border=\"0\" alt=\"$title\" title=\"$title\"></a><br>";
    
$close "";
    } else {
    
$img "";
    
$close "</a>";
    }
    echo 
"<td align=\"center\" valign=\"top\" width=\"16%\"><font class=\"content\"><a href=\"$url\">$img<b>$title</b>$close<br><br></font></td>";
    if (
$counter == 5) {
    echo 
"</tr><tr>";
    
$counter 0;
    } else {
    
$counter++;
    }
}

function 
GraphicAdmin() {
    global 
$aid$admingraphic$language$admin$prefix$db;
    
$newsubs $db->sql_numrows($db->sql_query("SELECT qid FROM ".$prefix."_queue"));
    
$sql "SELECT * FROM ".$prefix."_authors WHERE aid='$aid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$radminarticle $row[radminarticle];
    
$radmintopic $row[radmintopic];
    
$radminuser $row[radminuser];
    
$radminsurvey $row[radminsurvey];
    
$radminsection $row[radminsection];
    
$radminlink $row[radminlink];
    
$radminephem $row[radminephem];
    
$radminfaq $row[radminfaq];
    
$radmindownload $row[radmindownload];
    
$radminreviews $row[radminreviews];
    
$radminnewsletter $row[radminnewsletter];
    
$radminforum $row[radminforum];
    
$radmincontent $row[radmincontent];
    
$radminency $row[radminency];
    
$radminsuper $row[radminsuper];
    
OpenTable();
    echo 
"<center><a href=\"admin.php\"><font class='title'>"._ADMINMENU."</font></a>";
    echo 
"<br><br>";
    echo
"<table border=\"0\" width=\"100%\" cellspacing=\"1\"><tr>";
    
$linksdir dir("admin/links");
    while(
$func=$linksdir->read()) {
        if(
substr($func06) == "links.") {
            
$menulist .= "$func ";
    }
    }
    
closedir($linksdir->handle);
    
$menulist explode(" "$menulist);
    
sort($menulist);
    for (
$i=0$i sizeof($menulist); $i++) {
    if(
$menulist[$i]!="") {
        
$counter 0;
        include(
$linksdir->path."/$menulist[$i]");
    }
    }
    
adminmenu("admin.php?op=logout"""._ADMINLOGOUT."""logout.gif");
    echo
"</tr></table></center>";
    
CloseTable();
    echo 
"<br>";
}

/*********************************************************/
/* Administration Main Function                          */
/*********************************************************/

function adminMain() {
    global 
$language$admin$aid$prefix$file$db$sitename$user_prefix;
    include (
"header.php");
    
$dummy 0;
    
$Today getdate();
    
$month $Today['month'];
    
$mday $Today['mday'];
    
$year $Today['year'];
    
$pmonth $Today['month'];
    
$pmday $Today['mday'];
    
$pmday $mday-1;
    
$pyear $Today['year'];
    if (
$pmonth=="January") { $pmonth=1; } else
    if (
$pmonth=="February") { $pmonth=2; } else
    if (
$pmonth=="March") { $pmonth=3; } else
    if (
$pmonth=="April") { $pmonth=4; } else
    if (
$pmonth=="May") { $pmonth=5; } else
    if (
$pmonth=="June") { $pmonth=6; } else
    if (
$pmonth=="July") { $pmonth=7; } else
    if (
$pmonth=="August") { $pmonth=8; } else
    if (
$pmonth=="September") { $pmonth=9; } else
    if (
$pmonth=="October") { $pmonth=10; } else
    if (
$pmonth=="November") { $pmonth=11; } else
    if (
$pmonth=="December") { $pmonth=12; };
    
$test mktime (0,0,0,$pmonth,$pmday,$pyear,1);
    
$curDate2 "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";
    
$preday strftime ("%d",$test);
    
$premonth strftime ("%B",$test);
    
$preyear strftime ("%Y",$test);
    
$curDateP "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";
    
GraphicAdmin();
    
$sql "SELECT radminarticle, radminsuper, admlanguage FROM ".$prefix."_authors WHERE aid='$aid'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$radminarticle $row[radminarticle];
    
$radminsuper $row[radminsuper];
    
$admlanguage $row[admlanguage];
    if (
$admlanguage != "" ) {
    
$queryalang "WHERE alanguage='$admlanguage' ";
    } else {
    
$queryalang "";
    }
    
$sql "SELECT main_module from ".$prefix."_main";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$main_module $row[main_module];
    
OpenTable();
    echo 
"<center><b>$sitename: "._DEFHOMEMODULE."</b><br><br>"
    
.""._MODULEINHOME." <b>$main_module</b><br>[ <a href=\"admin.php?op=modules\">"._CHANGE."</a> ]</center>";
    
CloseTable();
    echo 
"<br>";
    
OpenTable();
    
$guest_online_num $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='1'"));
    
$member_online_num $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='0'"));
    
$who_online_num $guest_online_num $member_online_num;
    
$who_online "<center><font class=\"option\">"._WHOSONLINE."</font><br><br><font class=\"content\">"._CURRENTLY.$guest_online_num "._GUESTS.$member_online_num "._MEMBERS."<br>";
    
$sql "SELECT COUNT(user_id) AS userCount from $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$userCount $row[userCount];
    
$sql "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$userCount2 $row[userCount];
    echo 
"<center>$who_online<br>"
    
.""._BTD.": <b>$userCount</b> - "._BYD.": <b>$userCount2</b></center>";
    
CloseTable();
    echo 
"<br>";
    
OpenTable();
    echo 
"<center><b>"._AUTOMATEDARTICLES."</b></center><br>";
    
$count 0;
    
$sql "SELECT anid, aid, title, time, alanguage FROM ".$prefix."_autonews $queryalang ORDER BY time ASC";
    
$result $db->sql_query($sql);
    while (
$row $db->sql_fetchrow($result)) {
    
$anid $row[anid];
    
$said $row[aid];
    
$title $row[title];
    
$time $row[time];
    
$alanguage $row[alanguage];
    if (
$alanguage == "") {
        
$alanguage ""._ALL."";
    }
    if (
$anid != "") {
        if (
$count == 0) {
        echo 
"<table border=\"1\" width=\"100%\">";
        
$count 1;
        }
        
$time ereg_replace(" ""@"$time);
        if ((
$radminarticle==1) OR ($radminsuper==1)) {
        if ((
$radminarticle==1) AND ($aid == $said) OR ($radminsuper==1)) {
                echo 
"<tr><td nowrap>&nbsp;(<a href=\"admin.php?op=autoEdit&amp;anid=$anid\">"._EDIT."</a>-<a href=\"admin.php?op=autoDelete&amp;anid=$anid\">"._DELETE."</a>)&nbsp;</td><td width=\"100%\">&nbsp;$title&nbsp;</td><td align=\"center\">&nbsp;$alanguage&nbsp;</td><td nowrap>&nbsp;$time&nbsp;</td></tr>"/* Multilingual Code : added column to display language */
        
} else {
            echo 
"<tr><td>&nbsp;("._NOFUNCTIONS.")&nbsp;</td><td width=\"100%\">&nbsp;$title&nbsp;</td><td align=\"center\">&nbsp;$alanguage&nbsp;</td><td nowrap>&nbsp;$time&nbsp;</td></tr>"/* Multilingual Code : added column to display language */
        
}
        } else {
        echo 
"<tr><td width=\"100%\">&nbsp;$title&nbsp;</td><td align=\"center\">&nbsp;$alanguage&nbsp;</td><td nowrap>&nbsp;$time&nbsp;</td></tr>"/* Multilingual Code : added column to display language */
        
}
    }
    }
    if ((
$anid == "") AND ($count == 0)) {
    echo 
"<center><i>"._NOAUTOARTICLES."</i></center>";
    }
    if (
$count == 1) {
        echo 
"</table>";
    }
    
CloseTable();
    echo 
"<br>";
    
OpenTable();
    echo 
"<center><b>"._LAST." 20 "._ARTICLES."</b></center><br>";
    
$sql "SELECT sid, aid, title, time, topic, informant, alanguage FROM ".$prefix."_stories $queryalang ORDER BY time DESC LIMIT 0,20";
    
$result $db->sql_query($sql);
    echo 
"<center><table border=\"1\" width=\"100%\" bgcolor=\"$bgcolor1\">";
    while (
$row $db->sql_fetchrow($result)) {
    
$sid $row['sid'];
    
$said $row[aid];
    
$title $row[title];
    
$time $row[time];
    
$topic $row[topic];
    
$informant $row[informant];
    
$alanguage $row[alanguage];
    
$sql "SELECT topicname FROM ".$prefix."_topics WHERE topicid='$topic'";
    
$ta $db->sql_query($sql);
    
$row $db->sql_fetchrow($ta);
    
$topicname $row[topicname];
    if (
$alanguage == "") {
        
$alanguage ""._ALL."";
    }
    
formatTimestamp($time);
    echo 
"<tr><td align=\"right\"><b>$sid</b>"
        
."</td><td align=\"left\" width=\"100%\"><a href=\"modules.php?name=News&file=article&sid=$sid\">$title</a>"
        
."</td><td align=\"center\">$alanguage"
        
."</td><td align=\"right\">$topicname";
    if ((
$radminarticle==1) OR ($radminsuper==1)) {
        if ((
$radminarticle==1) AND ($aid == $said) OR ($radminsuper==1)) {
        echo 
"</td><td align=\"right\" nowrap>(<a href=\"admin.php?op=EditStory&sid=$sid\">"._EDIT."</a>-<a href=\"admin.php?op=RemoveStory&sid=$sid\">"._DELETE."</a>)"
            
."</td></tr>";
        } else {
        echo 
"</td><td align=\"right\" nowrap><font class=\"content\"><i>("._NOFUNCTIONS.")</i></font>"
            
."</td></tr>";
        }
    } else {
        echo 
"</td></tr>";
    }
    }
    echo 
"</table>";
    if ((
$radminarticle==1) OR ($radminsuper==1)) {
    echo 
"<center>"
        
."<form action=\"admin.php\" method=\"post\">"
        
.""._STORYID.": <input type=\"text\" NAME=\"sid\" SIZE=\"10\">"
        
."<select name=\"op\">"
        
."<option value=\"EditStory\" SELECTED>"._EDIT."</option>"
        
."<option value=\"RemoveStory\">"._DELETE."</option>"
        
."</select>"
        
."<input type=\"submit\" value=\""._GO."\">"
        
."</form></center>";
    }
    
CloseTable();
    
$sql "SELECT pollID, pollTitle FROM ".$prefix."_poll_desc WHERE artid='0' ORDER BY pollID DESC LIMIT 1";
    
$result $db->sql_query($sql);
    
$row $db->sql_fetchrow($result);
    
$pollID $row[pollID];
    
$pollTitle $row[pollTitle];
    echo 
"<br>";
    
OpenTable();
    echo 
"<center><b>"._CURRENTPOLL.":</b> $pollTitle [ <a href=\"admin.php?op=polledit&pollID=$pollID\">"._EDIT."</a> | <a href=\"admin.php?op=create\">"._ADD."</a> ]</center>";
    
CloseTable();
    include (
"footer.php");
}

if(
$admintest) {

    switch(
$op) {

    case 
"do_gfx":
    
do_gfx();
    break;

    case 
"deleteNotice":
    
deleteNotice($id$table$op_back);
    break;

    case 
"GraphicAdmin":
        
GraphicAdmin();
        break;

    case 
"adminMain":
    
adminMain();
    break;

    case 
"logout":
    
setcookie("admin");
    
$admin "";
    include(
"header.php");
    
OpenTable();
    echo 
"<center><font class=\"title\"><b>"._YOUARELOGGEDOUT."</b></font></center>";
    
CloseTable();
    include(
"footer.php");
    break;

    case 
"login";
    unset(
$op);

    default:
    
$casedir dir("admin/case");
    while(
$func=$casedir->read()) {
        if(
substr($func05) == "case.") {
        include(
$casedir->path."/$func");
        }
    }
    
closedir($casedir->handle);
    break;

    }

} else {

    switch(
$op) {

    case 
"gfx":
    
gfx($random_num);
    break;
    
    default:
    
login();
    break;

    }

}

?>

Last edited by Fairnie; 06-26-04 at 02:59 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-26-04, 02:59 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

It says that PHP is not expecting the keyword "function" there, and most likely because of this, you get the second error.

It's likely that your codes BEFORE line 192 has syntax error(s), such as fortgetting a semi colon at the end of line. Can you post 5~10 lines before this line? That may help a lot.
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-26-04, 03:03 AM
Fairnie Fairnie is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Middle-east
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I'v added the whole 2 documents for you there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-26-04, 03:08 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi again,

PHP Code:

function get_lang($module) {

    global 
$currentlang$language;
    if (
file_exists("modules/$module/language/lang-$currentlang.php")) {
    if (
$module == admin) {
        include_once(
"admin/language/lang-$currentlang.php");
    } else {
        include_once(
"modules/$module/language/lang-$currentlang.php");
    }
    } else {
    if (
$module == admin) {
        include_once
//("admin/language/lang-$currentlang.php");
    
        
include_once//("modules/$module/language/lang-$language.php"); 
This function needs three more } to close. PLUS include_once somehow gets commented out, hence the semicolons at the end of each include_once gets ignored. If you want to comment out the include_once, then do it BEFORE "include_once" keyword like so:

PHP Code:

// Notice the source-highlighting color is different now?

//include_once("modules/$module/language/lang-$language.php"); 
After these parts are fixed, there shouldn't be any problem reported from this part, but I've never used this script, and the may be a good reason why it is presented like this, and in that case, though, sorry, but I can't help ya.

Hope this solves your problem.
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 06-26-04, 03:16 AM
Fairnie Fairnie is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Middle-east
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I very new to this PHP stuff, but where do I add }}} ???

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 06-26-04, 03:23 AM
Fairnie Fairnie is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Middle-east
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
I have MSN if you care to help me there? :MSN:Kilt_man11@hotmail.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 06-26-04, 03:29 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi again,

You can place anywhere right after the part I excerpted and before the next line:

PHP Code:

function get_lang($module) {

    global 
$currentlang$language;
    if (
file_exists("modules/$module/language/lang-$currentlang.php")) {
    if (
$module == admin) {
        include_once(
"admin/language/lang-$currentlang.php");
    } else {
        include_once(
"modules/$module/language/lang-$currentlang.php");
    }
    } else {
    if (
$module == admin) {
        include_once
//("admin/language/lang-$currentlang.php");
    
        
include_once//("modules/$module/language/lang-$language.php");
    
// 1
    
// 2
// 3 
Still, you need to either comment out the include_once completely like I said or take out the // from the "include_once//(..." lines. HOWEVER, as I said, there may be a reason for this, which I do not know and cannot be responsible for, so I strongly recommend that you check this with the developer of this script to be absolutely sure that it is okay to take // out or comment out the lines.

I have to go now. Good luck!
__________________
Blavv =|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 06-26-04, 03:35 AM
Fairnie Fairnie is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Middle-east
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Okay, Thanks a Lot for your kind help!!!

Fairnie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #9 (permalink)  
Old 06-26-04, 08:15 AM
dihan dihan is offline
Coding Addict
 
Join Date: Jan 2004
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
What the hell does all that code do..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unusual error in script after PHP upgraded, help! santoalt PHP 1 04-20-04 10:46 PM
php or mysql parse error ( ? ) jrave PHP 8 03-09-04 02:14 PM
error when creating database tables with php script spiroth10 PHP 4 01-06-04 04:59 PM
php error plz help darkcarnival PHP 2 11-19-03 09:14 PM
php error i never seen please help darkcarnival PHP 4 11-15-03 12:28 PM


All times are GMT -5. The time now is 06:14 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.