<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified:".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control:no-cache,must-revalidate");
header("Pragma:no-cache");
//CONNECTION TO THE DATABASE
$do_wsdc = mysql_connect("localhost","root","");
$do_wsds = mysql_select_db("wapside");
// DEFINES WAPSIDE TABLES
$ws_ext = "wst_";
define('WS_SESSIONS' , $ws_ext."sessionvars");
define('WS_RSS' , $ws_ext."rss");
define('WS_BUDDIES' , $ws_ext."buddies");
define('WS_IGNORED' , $ws_ext."ignored");
define('WS_OPS' , $ws_ext."ops");
define('WS_CLUBDATA' , $ws_ext."clubdata");
define('WS_CLUBMEMBERS', $ws_ext."clubmembers");
define('WS_CLUBS' , $ws_ext."clubs");
define('WS_CROOMS' , $ws_ext."crooms");
define('WS_CTEXT' , $ws_ext."ctext");
define('WS_FILECATS' , $ws_ext."filecats");
define('WS_FILES' , $ws_ext."files");
define('WS_FORUMCATS' , $ws_ext."forumcats");
define('WS_HELPDESK' , $ws_ext."helpdesk");
define('WS_PMS' , $ws_ext."pms");
define('WS_POSTS' , $ws_ext."posts");
define('WS_SETTINGS' , $ws_ext."settings");
define('WS_SHOUTS' , $ws_ext."shouts");
define('WS_USERS' , $ws_ext."users");
define('WS_QUOTES' , $ws_ext."quotes");
define('WS_BUDGROUPS' , $ws_ext."budgroups");
define('WS_TEMPS' , $ws_ext."templates");
define('WS_FLAGS' , $ws_ext."flags");
function ws_sesvar($name,$with="",$type=""){
if(isset($_REQUEST["$with"])){
$with = ws_entities(trim($_REQUEST["$with"]));
}
if(isset($_REQUEST["$name"])){
$var = ws_entities(trim($_REQUEST["$name"]));
}
global $wsid;
$uid = md5($wsid);
$now= time();
if(wsd_query("* WSIN ".WS_SESSIONS." WSIS sesid='$wsid' AND uid='$uid' AND name='$name'","c")=="0"){
wsd_query("".WS_SESSIONS." VALUES('0','$var','$wsid','$uid','$name','$now')","i");
}
if($type=="ud"){
wsd_query("".WS_SESSIONS." SET var='$with',lseen='$now' WSIS name='$name'","u");
}
if(wsd_query("* WSIN ".WS_SESSIONS." WSIS sesid='$wsid' AND uid='$uid' AND name='$name'","c")!=="0"){
$ressql = wsd_query("* WSIN ".WS_SESSIONS." WSIS sesid='$wsid' AND uid='$uid' AND name='$name'","f");
$resii = $ressql["var"];
}
return $resii;
}
function ws_fields( $query ) {
while ($line = mysql_fetch_array($query, MYSQL_ASSOC)) {
$i=0;
foreach ($line as $col_value) {
$field=mysql_field_name($query,$i);
$array[$field] = $fieled;
$i++;
}
}
return $array;
}
function ws_check_sessions(){
$sesofftime = 500;
$seslseen = time()-$sesofftime;
wsd_delete("".WS_SESSIONS." WSIS lseen < $seslseen");
}
function ws_checkvar($name){
global $wsid;
$var = wsd_query("* WSIN ".WS_SESSIONS." WSIS sesid='$wsid' AND name='$name'","c");
return $var;
}
function get_rnd_iv($iv_len){
$iv = '';
while ($iv_len-- > 0) {
$iv .= chr(mt_rand() & 0xff);
}
return $iv;
}
function ws_md5_encrypt($plain_text, $password, $iv_len = 16){
$plain_text .= "\x13";
$n = strlen($plain_text);
if ($n % 16) $plain_text .= str_repeat("\0", 16 - ($n % 16));
$i = 0;
$enc_text = get_rnd_iv($iv_len);
$iv = substr($password ^ $enc_text, 0, 512);
while ($i < $n) {
$block = substr($plain_text, $i, 16) ^ pack('H*', md5($iv));
$enc_text .= $block;
$iv = substr($block . $iv, 0, 512) ^ $password;
$i += 16;
}
return base64_encode($enc_text);
}
function ws_md5_decrypt($enc_text, $password, $iv_len = 16){
$enc_text = base64_decode($enc_text);
$n = strlen($enc_text);
$i = $iv_len;
$plain_text = '';
$iv = substr($password ^ substr($enc_text, 0, $iv_len), 0, 512);
while ($i < $n) {
$block = substr($enc_text, $i, 16);
$plain_text .= $block ^ pack('H*', md5($iv));
$iv = substr($block . $iv, 0, 512) ^ $password;
$i += 16;
}
return preg_replace('/\\x13\\x00*$/', '', $plain_text);
}
function ws_currentpage() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
function ws_page($page){
if(empty($page) || !is_numeric($page)){
$page = 1;
} else {
$page = $page;
}
return $page;
}
function ws_date($date,$time){
if(!$time==""){
$mydate = date($date,$time);
}else{
$now = time();
$mydate = date($date,$now);
}
return $mydate;
}
function ws_file_ext($filename){
return end(explode(".", $filename));
}
function ws_flag_img($country){
$flagimg = wsd_query("flag_image WSIN ".WS_FLAGS." WSIS flag_name='$country'","f");
$img = "<img src=\"./flags/".$flagimg[0]."\" alt=\"$country\"/>";
return $img;
}
function ws_entities($str){
$str = str_replace("&","&",$str);
$str = str_replace("\'","'",$str);
$str = str_replace(">",">",$str);
$str = str_replace("<","<",$str);
$str = str_replace("\"",""",$str);
$str = str_replace("$","$$",$str);
$str = urldecode($str);
return $str;
}
function ws_ipinrange($ip, $range1, $range2)
{
$ip=ip2long($ip);
$range1=ip2long($range1);
$range2=ip2long($range2);
return (($ip >= $range1) && ($ip <= $range2));
}
function ws_getop($ip){
$result = wsd_query("* WSIN ".WS_OPS." ORDER BY subone,subtwo","n");
while($ranges = mysql_fetch_array($result)){
if(ws_ipinrange($ip, $ranges["subone"], $ranges["subtwo"])){
return $ranges["name"];
}
}
}
function ws_getopsubone($ip){
$result = wsd_query("* WSIN ".WS_OPS." ORDER BY subone,subtwo","n");
while($ranges = mysql_fetch_array($result)){
if(ws_ipinrange($ip, $ranges["subone"], $ranges["subtwo"])){
return $ranges["subone"];
}
}
}
function ws_ignored($proid){
global $uid;
$ign = wsd_query("* WSIN ".WS_IGNORED." WSIS bid='$uid' AND uid='$proid'","c");
$user = ws_userfromid($proid);
if($ign!==0){
ws_err("".$user." as added you to here ban list!!");
}
}
function ws_nav(){
global $self, $mode,$wsm, $page,$total,$tots,$pf;
$btn = "";
if($total>$tots){
$pagen = $page + 1;
$title = "»»»";
$btn .= "<a href=\"".$self."".$mode."".$wsm."&page=".$pagen."".$pf."\">".$title."</a><br/>";
}
if($page > 1){
$pagen = $page - 1;
$title = "«««";
$btn .= "<a href=\"".$self."".$mode."".$wsm."&page=".$pagen."".$pf."\">".$title."</a><br/>";
}
return $btn;
}
function ws_fileimg($ext){
$ext = strtolower($ext);
switch($ext){
case "jpg":
case "gif":
case "png":
case "bmp":
case "jpeg";
$string = "img.gif";
break;
case "zip":
case "rar":
case "z7";
$string = "pack.gif";
break;
case "amr":
case "wav":
case "mp3":
case "ogg";
$string = "music.gif";
break;
case "mpg":
case "3gp":
case "mp4";
$string = "video.gif";
break;
default:
$string = "other.gif";
break;
}
return $string;
}
function ws_getsign($day,$month){
if(($month==1 && $day>20)||($month==2 && $day<20)){
$mysign = "Aquarius";
}
if(($month==2 && $day>18 )||($month==3 && $day<21)){
$mysign = "Pisces";
}
if(($month==3 && $day>20)||($month==4 && $day<21)){
$mysign = "Aries";
}
if(($month==4 && $day>20)||($month==5 && $day<22)){
$mysign = "Taurus";
}
if(($month==5 && $day>21)||($month==6 && $day<22)){
$mysign = "Gemini";
}
if(($month==6 && $day>21)||($month==7 && $day<24)){
$mysign = "Cancer";
}
if(($month==7 && $day>23)||($month==8 && $day<24)){
$mysign = "Leo";
}
if(($month==8 && $day>23)||($month==9 && $day<24)){
$mysign = "Virgo";
}
if(($month==9 && $day>23)||($month==10 && $day<24)){
$mysign = "Libra";
}
if(($month==10 && $day>23)||($month==11 && $day<23)){
$mysign = "Scorpio";
}
if(($month==11 && $day>22)||($month==12 && $day<23)){
$mysign = "Sagittarius";
}
if(($month==12 && $day>22)||($month==1 && $day<21)){
$mysign = "Capricorn";
}
return $mysign;
}
function ws_prolink($myid,$title){
global $self;
global $mode;
$prolink = "<a href=\"".$self."".$mode."profile&proid=".$myid."&type=pro\">$title</a>";
return $prolink;
}
function ws_timertop(){
$mtime = microtime();
$mtime = explode(' ', $mtime);
$mtime = $mtime[1] + $mtime[0];
$starttime = $mtime;
}
function ws_timerbotton(){
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = $mtime[1] + $mtime[0];
$endtime = $mtime;
$totaltime = ($endtime - $starttime);
return 'This page was created in ' .$totaltime. ' seconds.';
}
function ws_getcontents_temp($temp){
global $mysitetemp;
$url = "./themes/$mysitetemp/$temp.wml";
$nfurl = "./themes/wap/notfound.wml";
if(file_exists($url)){
$data = file_get_contents($url);
} else {
$data = file_get_contents($nfurl);
}
return $data;
}
function ws_temp($temp,$errmsg=""){
global $use_curl,$global_whati,$global_with,$what,$with,$mymodesarray;
$whati = $what;
$with = $with;
$what = Array();
if(empty($errmsg)){
$data = ws_getcontents_temp($temp);
}else{
$data = ws_getcontents_temp("wserror");
}
$left = "{";
$right = "}";
foreach($global_whati as $sillyvar){
$global_what[] = $left.$sillyvar.$right;
}
$data = str_replace($global_what,$global_with, $data);
foreach($whati as $sillyvar){
$what[] = $left.$sillyvar.$right;
}
$data = str_replace($what,$with, $data);
$data = trim($data);
print $data;
}
function ws_admincheck(){
global $level;
if($level!=="admin"){
$what = Array("errmsg");
$with = Array($errmsg);
ws_temp("wsnotadmin");
exit();
}
}
function ws_is_clubadmin($clubid){
global $uid;
if(wsd_query("* WSIN ".WS_CLUBMEMBERS." WSIS uid='$uid' AND cid='$clubid' AND cadmin='1'","c")==1){
$ret = 1;
} else {
$ret = 0;
}
return $ret;
}
function ws_done($msg){
global $what;
global $with;
$what = Array("msg");
$with = Array($msg);
ws_temp("wsdone");
exit();
}
function wssd($wsid,$c){
$wsscsql = "* WSIN ".WS_USERS." WSIS wsid='$wsid'";
$a = wsd_query($wsscsql,"f");
$b = $a["$c"];
return $b;
}
function ws_getstatus($wsid){
global $sitename;
$info = wsd_query("* WSIN ".WS_USERS." WSIS wsid='$wsid'","f");
$forumm = $info["chatm"];
$chatm = $info["chatm"];
$shouts = $info["shouts"];
$level = $info["level"];
$tot = $forumm + $chatm + $shouts;
if($level=="admin"){
return "./images/administrator.gif";
}
if($tot<10){
return "./images/1-star.gif";
}
if($tot<25){
return "./images/2-star.gif";
}
if($tot<50){
return "./images/3-star.gif";
}
if($tot<75){
return "./images/4-star.gif";
}
if($tot<250){
return "./images/5-star.gif";
}
if($tot<500){
return "./images/6-star.gif";
}
if($tot<750){
return "./images/7-star.gif";
}
if($tot<1000){
return "./images/8-star.gif";
}
if($tot<1500){
return "./images/9-star.gif";
}
if($tot<2000){
return "./images/10-star.gif";
}
}
function ws_updatestatus($wsid,$status){
wsd_query("".WS_USERS." SET userstat='$status' WSIS wsid='$wsid'","u");
}
function wsd_query($mysql,$type,$nc=""){
$mysql = str_replace("WSIN","FROM",$mysql);
$mysql = str_replace("WSIS","WHERE",$mysql);
$sql = "";
if($type=="sum"){
$sql .= "SELECT ".$mysql."";
}
if($type=="c"){
$sql .= "SELECT ".$mysql."";
}
if($type=="i"){
$sql .= "INSERT INTO ".$mysql."";
}
if($type=="u"){
$sql .= "UPDATE ".$mysql."";
}
if($type=="t"){
$sql .= "TRUNCATE ".$mysql."";
}
if($type=="n"){
$sql .= "SELECT ".$mysql."";
}
if($type=="f"){
$sql .= "SELECT ".$mysql."";
}
$a = mysql_query($sql);
if(mysql_errno()){
ws_err("</b><b>Mysql Error:</b><br/> ".htmlentities(mysql_error())."<br/><b>Error Number:</b><br/> ".htmlentities(mysql_errno())."<br/><b>");
}
if($type=="f" || $type=="sum"){
$row = mysql_fetch_array($a);
}
if($nc=="c"){
$count = mysql_num_rows($a);
}
if($type=="c"){
$row = mysql_num_rows($a);
}
if($type=="u" || $type=="i" || $type=="n"){
$row = $a;
}
if(empty($nc)){
return $row;
} else {
return array($row,$count);
}
}
function wsd_delete($mysql){
$mysql = str_replace("WSIN","FROM",$mysql);
$mysql = str_replace("WSIS","WHERE",$mysql);
$sql = "DELETE FROM ".$mysql."";
$a = mysql_query($sql) OR ws_err("</b><b>Mysql Error:</b><br/> ".htmlentities(mysql_error())."<br/><b>Error Number:</b><br/> ".htmlentities(mysql_errno())."<br/><b>");
if($a==TRUE){
$ret = TRUE;
}else{
$ret = FALSE;
}
return $ret;
}
function ws_userfromid($id){
$uidsql = "* WSIN ".WS_USERS." WSIS id='$id'";
$a = wsd_query($uidsql,"f");
$b = $a["user"];
return $b;
}
function ws_idfromuser($id){
$uidsql = "* WSIN ".WS_USERS." WSIS user='$id'";
$a = wsd_query($uidsql,"f");
$b = $a["id"];
return $b;
}
function ws_parse($data,$postid=""){
global $wsid;
$page = NULL;
$data = preg_replace("/\[b\](.*?)\[\/b\]/i","<b>\\1</b>", $data);
$data = preg_replace("/\[i\](.*?)\[\/i\]/i","<i>\\1</i>", $data);
$data = preg_replace("/\[u\](.*?)\[\/u\]/i","<u>\\1</u>", $data);
$data = preg_replace("/\[big\](.*?)\[\/big\]/i","<big>\\1</big>", $data);
$data = preg_replace("/\[small\](.*?)\[\/small\]/i","<small>\\1</small>", $data);
$data = preg_replace("/\[url\=(.*?)\](.*?)\[\/url\]/is","<a href=\"$1\">$2</a>",$data);
$data = preg_replace("/\[topic\=(.*?)\](.*?)\[\/topic\]/is","<a href=\"index.php?w=".$wsid."&s=viewpost&pid=$1\">$2</a>",$data);
$data = preg_replace("/\[club\=(.*?)\](.*?)\[\/club\]/is","<a href=\"index.php?w=".$wsid."&s=viewclub&id=$1\">$2</a>",$data);
$data = str_replace("[br/]","<br/>",$data);
if(!($dp = opendir("./smilies"))) die ("Cannot open smilies folder ");
$file_array = array();
while ($file = readdir ($dp)){
if(substr($file,0,1) != '.' and $file != "index.php"){
$file_array[] = $file;
}
}
$file_count = count ($file_array);
sort ($file_array);
if ($file_count > 0){
$limit = $file_count;
$first_record = $page * $limit;
$last_record = $first_record + $limit;
while (list($fileIndexValue, $file_name) = each ($file_array)){
if (($fileIndexValue >= $first_record) AND ($fileIndexValue < $last_record)){
$ifile = explode(".",$file_name);
$smilename = $ifile["0"];
$data = str_replace(":".$smilename.":","<img src=\"smilies/".$file_name."\" alt=\"-\"/>",$data);
}
}
}
closedir($dp);
return $data;
}
function ws_sesgen($user,$pass){
$mysesuser = md5($user);
$mysespass = md5($pass);
$mysesuserbase = base64_encode(md5($user));
$mysespassbase = base64_encode(md5($pass));
$time = time();
$amyses = md5($mysesuser.$mysespass.$mysesuserbase.$mysespassbase.$time);
$myses = substr($amyses,1,5);
return $myses;
}
function ws_get_var($var){
if(isset($_REQUEST["$var"])){
$myvar = $_REQUEST["$var"];
} else {
$myvar = NULL;
}
if(is_array($myvar)){
$var = $myvar[0];
} else {
if(isset($_REQUEST["$var"])){
$var = ws_entities(trim($_REQUEST["$var"]));
}
}
if($myvar==NULL){
$var = NULL;
}
return $var;
}
function ws_dob($dd,$mm,$yyyy){
$mytits = time();
$age = date("Y",$mytits);
$age = $age - $yyyy;
if($mm > date("m") || $dd > date("d") ){
$age = $age - 1;
}
return $age;
}
function ws_ulastseen($wsid,$loc){
$now = time();
global $fid;
global $wsid;
global $clubid;
wsd_query("".WS_SESSIONS." SET lseen='$now' WSIS sesid='$wsid'","u");
wsd_query("".WS_USERS." SET lseen='$now' WSIS wsid='$wsid'","u");
wsd_query("".WS_USERS." SET userlocation='$loc' WSIS wsid='$wsid'","u");
wsd_query("".WS_USERS." SET userlocationfid='$fid' WSIS wsid='$wsid'","u");
wsd_query("".WS_USERS." SET cluserlocation='$clubid' WSIS wsid='$wsid'","u");
}
function count_client($client){
$no = wsd_query("* WSIN ".WS_USERS." WSIS client='$client'","c");
return $no;
}
function ws_is_online($uid){
$offtime = 300;
$now = time();
$lseen = time()-$offtime;
$total = wsd_query("* WSIN ".WS_USERS." WSIS lseen>=".$lseen." AND id='$uid' LIMIT 1","c");
if($total=="1"){
$var = "<img src=\"./images/online.gif\" alt=\"Online\"/>";
} else {
$var = "<img src=\"./images/offline.gif\" alt=\"Offline\"/>";
}
return $var;
}
function superheroname($nameseed) {
$superhero = array(
"Lightening Bolt",
"Solar Eclipse",
"The Sonic Kid",
"The Red Streak",
"Captain Cold",
"The Human Laser",
"The Stone Chamelion",
"Fire Walker",
"The Masked Avenger",
"Storm Bringer",
"The Crimson Ghost",
"The Purple Knight",
"Kid Electro",
"Hydro Fist",
"The Blue Tiger",
"Ice Master",
"Steel Fury",
"Quantum Force",
"Blizzard",
"Wind Rider");
return $superhero[$nameseed];
}
$files = "";
if(!($dp = opendir("./themes/wap"))) die ("Cannot find templates folder");
$file_array = array();
while ($file = readdir ($dp)){
if(substr($file,0,1) != '.' and $file != "index.php"){
$mymodesarray[] = $file;
}
}
if(isset($_REQUEST["s"])){
$wsm = ws_get_var("s");
}
if(isset($_REQUEST["w"])){
$wsid = ws_get_var("w");
}
if(!empty($wsm)){
$wsm = ws_get_var("s");
} else {
$wsm = "landing";
}
if(empty($wsid)){
$iitime = time();
$mywsid = md5($iitime);
$wsid = "gid_".substr($mywsid,0,5);
} else {
$wsid = ws_get_var("w");
}
$sitename = "Wapside";
$time = time();
$copy = "© ".$sitename." 97 - ".date("y", $time);
$self = "index.php";
$mode = "?w=$wsid&s=";
$public_pages = Array("landing","safety","index","login2","join","join2","terms","flags","confirm","updateit","forgotpw","forgotpw2","forgotpw3");
$sidetime = ws_date("H:i:s","");
$sidedate = ws_date("d.m.y","");
$rand_logo = array("./images/logo.gif","./images/logo.gif","./images/logo.gif");
$tot = count($rand_logo) - 1;
$mylogo = rand(0,$tot);
$logo = $rand_logo[$mylogo];
if(ws_checkvar("tvar")=="1"){
$tvar = ws_sesvar("tvar");
} else {
if(empty($_REQUEST["tvar"])){
$tvar = 1;
} else {
$tvar = ws_sesvar("tvar");
}
}
if($tvar=="1"){
header('Content-type: text/vnd.wap.wml');
} else {
header('Content-type: text/html');
}
$quote_on = "0";
if($quote_on=="1"){
$rand_quote = wsd_query("* WSIN ".WS_QUOTES." WSIS id!='' ORDER by rand() LIMIT 1","f");
$quote = "<small><b>Random Quotes:</b></small><br/>".ws_userfromid($rand_quote["uid"]).":".$rand_quote["quote"]."<br/>";
$quote .= "<a href=\"".$self."".$mode."addquote\">[Add]</a><a href=\"".$self."".$mode."quotes\">[All]</a><br/>";
} else {
$quote = "";
}
$sitetemp = wsd_query("name WSIN ".WS_TEMPS." WSIS id='$tvar'","f");
$mysitetemp = $sitetemp[0];
if($tvar == 2){
$css = file_get_contents("themes/$mysitetemp/css/wapside.css");
} else {
$css = "";
}
$global_with = Array($css,$siteuser,$copy,$sitename,$self,$mode,"&","",$user,$uid,$sidetime,$sidedate,$wsid,$logo,$quote,"./images/globe.gif",$tvar,$rand_slogon);
$empty_temps = Array("addbudgroup","services","cpass","games","cpanel","helpdesk","shout","status","bbcode","submittick","index","index","landing","terms","forgotpw","calc","compose","shn","addrss");
function wssc($myuser,$mypass){
global $what, $with, $self, $mode;
$wsscsql = "* WSIN ".WS_USERS." WSIS user='$myuser' AND pass='$mypass'";
$a = wsd_query($wsscsql,"c");
if($a=="0"){
$title = "You Not Logged In!!!";
$msg = "You are not logged in or you have been booted<br/><a href=\"index.php?s=index\">Login</a><br/>";
$what = Array("msg","sitename");
$with = Array($msg,"Autheniction Prompt");
@ws_temp("nli");
exit();
}
}
if(!in_array($wsm,$public_pages)){
$uid = wssd($wsid,"id");
$user = wssd($wsid,"user");
$pass = wssd($wsid,"pass");
$banned = wssd($wsid,"banned");
$level = wssd($wsid,"level");
wssc($user,$pass);
$sstat = ws_getstatus($wsid);
ws_updatestatus($wsid,$sstat);
ws_ulastseen($wsid,$wsm);
}
$slogons = Array(
"".$sitename." - In a class of it's own",
"".$sitename." - it's as simple as that!",
"Think different, think ".$sitename.".",
"".$sitename." - go for it!",
"".$sitename." - living innovation");
$rand = rand(0,4);
$rand_slogon = $slogons[$rand];
$siteuser = ws_prolink($uid,$user);
$global_whati = Array("css","siteuser","copyright","sitename","self","mode","and","mysql_error","user","uid","time","date","wsid","logo","quote","globe","mytvar","slogon");
$admin_empty_temps = Array("additforumcats","sitegeneral","sitegeneral","additchat","admin2k","admindata","adminhelpdesk","adminsite");
if($banned=="1"){
$what = Array();
$with = Array();
ws_temp("banned");
exit();
}
function ws_err($errmsg){
global $what, $with;
$what = Array("errmsg");
$with = Array($errmsg);
ws_temp("wserror");
exit();
}
?>