Parašė liferulex· 2007 Lie. 13 14:07:49
#1
Gal kas galit padeti istaysyti sita chato klaida?? ka uzeinu i chata raso kad klaida yra 484 eilej o ten kai istaysau atsiranda klaida paskutinej eilej kur yra ?>
Va sc klaidas pazymesiu kur rodo
<?php
//include("bapsauga.php");
header("Content-type: text/vnd.wap.wml");
header("Cache-Control: no-store, no-cache, must-revalidate");
header('Pragma: no-cache');
include("../header.php");
require_once("db.php");
require_once("configas.php");
if($nn=="neo")
{
function getMicroTime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float) $usec + (float) $sec);
}
$pradzia = getMicroTime();
}
echo "<wml>";
if(!$nn){
echo "<card title=\"Klaida\">";
echo "<p align=\"center\">";
echo "Jus esate neprisijunge!<br/><img src=\"../b/foot.wbmp\" alt=\"...\"/><br/>";
echo "<a title=\"Toliau\" href=\"log.php?k=forum\">[+Prisijungti+]</a><br/>";
echo "<a title=\"Toliau\" href=\"reg.php?k=forum\">[+Registruotis+]</a><br/><img src=\"../b/foot.wbmp\" alt=\"...\"/><br/>";
echo "</p>";
echo "</card></wml>"; exit;}
$result = $db->sql_query("SELECT config,id,rangas,aktyvus FROM fastwap_person where username='$nn' and password='$pas' order by id asc limit 1");
while ($row = $db->sql_fetchrow($result))
//$result = mysql_query("SELECT config,id,rangas,aktyvus FROM fastwap_person where username='$nn' and password='$pas' order by id asc limit 1");
//while ( $row = mysql_fetch_array($result) )
{ $yra=taip;
$configas= $row["config"];
$aktyvus= $row["aktyvus"];
$ids = $row["id"];
$rangas = $row["rangas"];
}
if($rangas<5){include("bapsauga.php");}
//echo "fdffd:: $aktyvus:: $ids :: $nn<br/>sss";
//exit;
//$yra=taip;
//$aktyvus=1;
//$configas=15101;
//$rangas=10;
$zinsk=substr($configas,2,2);
$reftime=substr($configas,0,2)*10;
$smailiukai=substr($configas,4,2);
if($yra !=taip)
{
echo "
<card id=\"WAPchat\" title=\"Klaida\">
<onevent type=\"ontimer\">
<go href=\"index.php\"/>
</onevent><timer value=\"10\"/>
<p>
Toks Vardas Neregistruotas arba duomenys neteisingi.
</p>
</card>
</wml>";
exit;
}
if($aktyvus==0)
{
echo"
<card>
<p align=\"center\">
--------------<br/>
Jusu nickas nera aktyvuotas, Ji gali aktyvuoti
<a href=\"aktyvuoti.php?$kas\">Cia</a>
<br/>--------------</p>
</card>
</wml>";
exit;
}
//$rows=$db->sql_numrows($db->sql_query("SELECT * FROM ban where ban='$nn'"));
//echo "fdffd:: $asd<br/>sss";
//exit;
$query = "SELECT COUNT(*) AS num FROM ban where ban='$nn'";
$result = mysql_query($query);
$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
if($rows>0)
{
if($nn !=neo)
{
$banu=1;
}
}
//$result = mysql_query("SELECT ban,info FROM ban where ban='$nn' or info='$info' limit 1");
//$row = mysql_fetch_array($result);
//$banas = $row["ban"];
// $aaa = $row["info"];
// if($nn !=neo)
// {
// if($banas == $nn) {$banu=1;}
// if($aaa == $info) {$banu=1;}
// }
if($banu =="1"){
echo "<card title=\"Banas!\"><onevent type=\"ontimer\"><go href=\"ban.php?$kas\"/>
</onevent><timer value=\"10\"/><p>Tu Gavai bana!<br/></p><do type=\"prev\" label=\"Atgal\">
<go href=\"ban.php?$kas\"/></do></card></wml>";exit;
}
if ($log=="new")
{
/*
session_register('sesnickname');
session_register('sespass');
session_register('sesid');
$sesid=session_id();
$sesnickname=$nn;
$sespass=$pas;
*/
echo "<card title=\"-=neo.666.lt=-\"><p align=\"center\">";
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas != 'saitas' and kanalas !='forum' order by ip"; $result = mysql_query($query);$rowson = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'bendras'"; $result = mysql_query($query);$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'baras'"; $result = mysql_query($query);$rows1 = ($result) ? mysql_result($result, 0, 'num') : 0;
//$rows1=$db->sql_numrows($db->sql_query("SELECT * FROM count where kanalas = 'baras'"));
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'blevyzgos'"; $result = mysql_query($query);$rows2 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'senbuviai'"; $result = mysql_query($query);$rows3 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'pazintys'"; $result = mysql_query($query);$rows4 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = '2a15as'"; $result = mysql_query($query);$rows5 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'sportas'"; $result = mysql_query($query);$rows6 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'party'"; $result = mysql_query($query);$rows7 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'sex'"; $result = mysql_query($query);$rows8 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'viktorina'"; $result = mysql_query($query);$rows9 = ($result) ? mysql_result($result, 0, 'num') : 0;
//$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'pensionatas'"; $result = mysql_query($query);$rows10 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'gsm'"; $result = mysql_query($query);$rows11 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'naujokai'"; $result = mysql_query($query);$rows12 = ($result) ? mysql_result($result, 0, 'num') : 0;
$query = "SELECT COUNT(ip) AS num FROM ".$dbname.".count where kanalas = 'Forumieciai'"; $result = mysql_query($query);$rows13 = ($result) ? mysql_result($result, 0, 'num') : 0;
//$laikas=time(); $sqlDel="delete from ban where messtime < $laikas";
//mysql_query($sqlDel) or die(mysql_error());
$result = $db->sql_query("SELECT topic,kas from topic limit 1");
$row = $db->sql_fetchrow($result);
//$ip = $row['ip'];
//$query = "SELECT topic,kas from topic limit 1";
//$result = mysql_query($query);
//$row=mysql_fetch_array($result);
$topic=$row[topic] ;
$kaaa=$row[kas];
echo "$topic";
if($kaaa){echo "[$kaaa]";}
echo "<br/>";
echo "<a href=\"dispMess.php?$kas&id=rules\">[Taisykles]</a><br/><a href=\"dispMess.php?$kas&id=online\">[Online $rowson]</a><br/>--------------</p><p>";
if($rangas>4){echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=2a15as\">#@Adminai($rows5)</a><br/>";}
if($rangas>3){echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=senbuviai\">#*Senbuviai($rows3)</a><br/>";}
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=Baras\">#Baras($rows1)</a><br/>";
if($rows < 30){echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=bendras\">#Bendras($rows)</a><br/>";}
else{echo "#Bendras($rows) Pilnas <br/>";}
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=Forumieciai\">#Forumieciai($rows13)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=naujokai\">#Naujokai($rows12)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=gsm\">#GSM($rows11)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=party\">#Party($rows7)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=sex\">#SEX($rows8)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=pazintys\">#Pazintys($rows4)</a><br/>";
//echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=pensionatas\">#Pensionatas($rows10)</a><br/>";
echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=sportas\">#Sportas($rows6)</a><br/>";
if($rows9 < 30){echo "<a href=\"dispMess.php?$kas&log=new2&kanalas=viktorina\">#Viktorina($rows9)</a><br/>";}
else{echo "#Viktorina($rows9) Pilnas <br/>";}
if($nn=="neo"){echo "Skripto vykdymas truko ".(getMicroTime() - $pradzia)." s.";}
echo "</p>
<p align=\"center\">--------------<br/>
<a href=\"../index.php?$kas\">[Pagrindinis]</a></p></card></wml>";exit;
}
if ($kanalas=="2a15as")
{
if($rangas<5)
{
echo "<card title=\"Tik admin!\">";
echo "<p>";
echo "Iejimas Tik Moderatoriam!<br/>";
echo "</p>";
echo "</card></wml>";exit;
}
}
if ($kanalas=="senbuviai")
{
if($rangas<4)
{
echo "<card title=\"Tik admin!\">";
echo "<p>";
echo "Iejimas Tik Senbuviam!<br/>";
echo "</p>";
echo "</card></wml>";exit;
}
}
if ($id=="foto")
{ echo "<card id=\"WAPchat\" title=\"-=FOTO=-\">";
echo "<p align=\"center\">";
//$result = mysql_query("SELECT foto,vardas,username FROM fastwap_person where id='$asd2' limit 1");
//$row = mysql_fetch_array($result);
$result = $db->sql_query("SELECT foto,vardas,username FROM fastwap_person where id='$asd2' limit 1");
$row = $db->sql_fetchrow($result);
$foto= $row["foto"];
$vardas= $row["vardas"];
$nickas= $row["username"];
echo "<b>$nickas</b><br/>";
if($foto!= ""){echo "<img src=\"$foto\" alt=\"$nickas\"/><br/>";}
/*
$palaikos=$_SERVER['HTTP_ACCEPT'];
$wordss = explode("gif", $palaikos);
$kik= count($wordss);
$galune=gif;
if($kik=="1"){$folder="$folder/nespalvoti";$galune=wbmp;}
echo "<a href=\"$folder/$asd2.gif\"><img src=\"$folder/$asd2.$galune\" alt=\"$asd2\"/></a>
*/
echo "----------------<br/>
<a title=\"Balsuok!\" href=\"galerija.php?id=balsuok&ids=$asd2&$kas\">[Balsuok uz foto!]</a><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=fotoinfo\">Kaip ideti?</a><br/> ----------------<br/>
<a title=\"Back\" href=\"dispMess.php?$kas\">[+Chat+]</a><br/><do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";
}
if($id == "rules")
{
?>
<card id="WAPchat" title="Taisykles">
<p align="center">
Taisykles, kurios galioja<br/>-=neoW@Pchat=- </p>
<p>1.Yra banu sistema!</p>
<p>2.Jokiu keiksmazodziu!</p>
<p>3.Jokios diskrimininacijos!</p>
<p>4.Rashyti WISA TEKSTA DIDZ RAIDEM DRAUDZIAMA! </p>
<p>5.Dabartiniai moderatoriai:
<?
$result = $db->sql_query("SELECT username,rangas from fastwap_person where rangas >4 order by username limit 50");
$row = $db->sql_fetchrow($result);
// $query = "SELECT username,rangas from fastwap_person where rangas >4 order by username ";
// $result = mysql_query($query);
while ($row=mysql_fetch_array($result)){
$asd2=$row[username] ;
$asd=$row[rangas] ;
echo $asd2."[".$asd."],"; }
?>
</p>
<p>6.Gasdinti banais ir apsimetineti adminais draudziama!</p>
<p>7.Chate negali buti jokios reklamos!</p>
<p>8.Jei 3 ir daugiau zmoniu prasho ishmesti wiena zmogu del netinkamo elgesio, jis bus ishmestas!</p>
<p>9.Baninti adminus galima tik krashtutiniu atveju!</p>
<p>10.Praneshti apie "orinius" banus galite forume skyriuje Adminai?</p>
<p align="center">
<a title="Atgal" href="dispMess.php?<? echo "$kas"; ?>&log=new">Atgal</a></p>
</card>
<?
}
if ($id=="balsavimas")
{
$praneshim = $_POST["redagavimas"];
echo "<card id=\"WAPchat\" title=\"-=Balsavimas=-\">";
echo "<p align=\"center\">Ko truksta puslapiui?<br/>
<select name=\"pasirinkimas\" multiple=\"false\" tabindex=\"2\">
<option value=\"Siuntuniu\">Siuntuniu</option>
<option value=\"Irankiu\">Irankiu</option>
<option value=\"Pramogu\">Pramogu</option>
<option value=\"Nieko\">Nieko</option>
</select><br/>";
echo "<anchor >[+Balsuoti+]";
echo "<go method=\"post\" href=\"dispMess.php?$kas&id=balsavimas2\">
<postfield name=\"pasirinkimas\" value=\"$(pasirinkimas)\"/></go></anchor><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=balsavimas3\">[+Rezultatai+]</a><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[I Chata]</a><br/></p></card>";
}
if ($id=="balsavimas2")
{$pasirinkimas = $_POST["pasirinkimas"];
$query = "SELECT COUNT(*) AS num FROM balsavimas where kas='$nn' limit 1";
$result = $db->sql_query($query);
$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
//$result = mysql_query("SELECT kas FROM balsavimas where kas='$nn' limit 1");
//while ( $row = mysql_fetch_array($result) )
if($rows>0) {
echo "<card title=\"Error\">";
echo "<onevent type=\"ontimer\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</onevent>";
echo "
<timer value=\"20\"/>
<p align=\"center\">Jus jau balsavote!</p>
</card>
</wml>";
exit;
}
echo "<card id=\"WAPchat\" title=\"-=Balsavimas=-\"><p align=\"center\">Aciu, kad balsavote.<br/>
--------------<br/> Jusu pasirinkimas:$pasirinkimas<br/>
<a title=\"Back\" href=\"dispMess.php?$kas&id=balsavimas3\">[Rezultatai]</a><br/>--------------<br/>
<a title=\"Back\" href=\"dispMess.php?$kas\">[I Chata]</a><br/></p></card>";
$db->sql_query("insert DELAYED into balsavimas (atsakymas,kas) values ('$pasirinkimas','$nn')");
//$sqllogin ="insert DELAYED into balsavimas (atsakymas,kas) values ('$pasirinkimas','$nn')";
//mysql_query($sqllogin) or die(mysql_error());
}
if ($id=="balsavimas3")
{
echo "<card id=\"WAPchat\" title=\"-=Balsavimas=-\">
<p align=\"center\">Ko truksta puslapiui?<br/>
Rezultatai:<br/>--------------<br/>";
$query = "SELECT COUNT(id) AS num FROM ".$dbname.".balsavimas where atsakymas = 'Siuntuniu'";
$result = mysql_query($query);$total = ($result) ? mysql_result($result, 0, 'num') : 0;
echo "Siuntuniu:[$total]<br/>";
$query = "SELECT COUNT(id) AS num FROM ".$dbname.".balsavimas where atsakymas = 'Irankiu'";
$result = mysql_query($query);$total = ($result) ? mysql_result($result, 0, 'num') : 0;
echo "Irankiu:[$total]<br/>";
$query = "SELECT COUNT(id) AS num FROM ".$dbname.".balsavimas where atsakymas = 'Pramogu'";
$result = mysql_query($query);$total = ($result) ? mysql_result($result, 0, 'num') : 0;
echo "Pramogu:[$total]<br/>";
$query = "SELECT COUNT(id) AS num FROM ".$dbname.".balsavimas where atsakymas = 'Nieko'";
$result = mysql_query($query);$total = ($result) ? mysql_result($result, 0, 'num') : 0;
echo "Nieko:[$total]<br/>";
echo "
--------------<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[I Chata]</a><br/></p></card>";
}
if ($id=="fotoinfo")
{
echo "<card id=\"WAPchat\" title=\"-=Info=-\">";
echo "<p align=\"center\">";
echo "<b>Del nuotrauku talpinimo.</b><br/>";
echo "Jei norite kad ir jusu nuotrauka butu patalpinta chate, prashome siusti ja adresu neocracker@one.lt(galite ir per mms) su savo nicku(Didziosios ir maz. raides swarbios!)
ir tema(subject) \"nuotrauka\". Geriausiai jei nuotraukos dydis butu apie 128x128 ;) Jei jum pasiseks nuotrauka bus ideta ta pacia diena ;)<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">-=Chat=-</a><br/>";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo "</p>";
echo "</card>";
}
if ($id=="topic")
{
echo "<card id=\"WAPchat\" title=\"-=Info=-\">";
echo "<p align=\"center\">";
echo "Norite pakeisti topica chate? Siuskite sms nr 1654(2Lt) su tokiu tekstu: NEO topic jusu tekstas (pvz neo topic -=neo.666.lt=- tavo pamogu portalas! [naujokas])<br/>
Jusu topico nieks negales pakeisti maziausiai 3valandas, taciau nebutinai po 3valandu jis bus pakiestas, jei jum pasiseks jis ishliks daug ilgiau.<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[+Chat+]</a><br/>";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo "</p>";
echo "</card>";
}
if ($id=="banm")
{
echo "<card id=\"WAPchat\" title=\"-=Info=-\">";
echo "<p align=\"center\">";
echo "Norite nusiimti bana? Jau galite tai padaryti! Siuskite sms nr 1654(2Lt) su tokiu tekstu: NEO unban nickas (pvz neo unban naujokas)<br/>
Tuoj pat gausite ataskaita ir banas bus nuimtas ;).<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[+Chat+]</a><br/>";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo "</p>";
echo "</card>";
if ($id == top24)
{
echo "<card id=\"WAPchat\" title=\"-=Nustatymai=-\">";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo"$dbhost $dbuname $dbpass";
echo"<a href=\"dispMess.php?$kas\">[+Chatas+]</a> </p></card>";
}
if ($id=="funkcijos")
{
$asd = date("H");
$asd2 = $asd+$laikasss;
if ($asd2 >23) { $asd2 = $asd2-24;}
$tijd = date("i-s");
echo "<card id=\"WAPchat\" title=\"-=Funkcijos=-\">";
echo "<p align=\"center\">";
$result = $db->sql_query("SELECT topic,kas from topic limit 1");
$row = $db->sql_fetchrow($result);
$topic=$row[topic] ;
$kaaa=$row[kas];
echo "$topic";
if($kaaa){echo "[$kaaa]";}
echo "<br/>--------------<br/>";
echo "<a href=\"memoserv.php?$kas\">[+Jusu Zinutes+]</a><br/>";
if($rangas<5)
{
//echo "<a href=\"dispMess.php?$kas&id=banm\">[+Ban Minus!+]</a><br/>";
echo "<a href=\"dispMess.php?$kas&id=topic\">[+Keisti Topica+]</a><br/>";
}
echo "<a href=\"dispMess.php?$kas&id=balsavimas\">[+Balsavimas+]</a><br/>";
echo "<a href=\"dispMess.php?$kas&id=config\">[+Nustatymai+]</a><br/>";
echo "<a href=\"rules.php?$kas\">[+Taisykles+]</a><br/>";
echo "<a href=\"dispMess.php?$kas&id=bbcode\">[+BBcodas+]</a><br/>";
//echo "<a href=\"logout.php?$kas\">[+Pagalba+]</a><br/>";
echo "<a href=\"smiles.php?$kas\">[+Smiles+]</a><br/>";
echo "<a href=\"kas.php?$kas\">[+Online+]</a><br/>";
echo "<a title=\"Back\" href=\"logout.php?$kas\">[-EXIT-]</a><br/>";
echo "--------------<br/>";
echo "$asd2-$tijd<br/><a title=\"Back\" href=\"dispMess.php?$kas\">[-I Chata-]</a><br/></p></card>";
}
if ($id=="config")
{
echo "<card id=\"WAPchat\" title=\"-=Nustatymai=-\">";
echo "<p align=\"center\">Refresh (sek.):<br/>
<select name=\"refresh\" multiple=\"false\" tabindex=\"2\">
<option value=\"15\">15</option>
<option value=\"20\">20</option>
<option value=\"25\">25</option>
</select><br/>";
echo "Zinuciu sk:<br/>
<select name=\"zinutes\" multiple=\"false\" tabindex=\"1\">
<option value=\"05\">5</option>
<option value=\"08\">8</option>
<option value=\"10\">10</option>
</select><br/>";
echo "Smailai: (ishsijungus smailus viskas veiks daug greiciau)<br/>
<select name=\"smailai\" multiple=\"false\" tabindex=\"1\">
<option value=\"1\">Taip</option>
<option value=\"0\">Ne</option>
</select><br/>";
echo "<anchor title=\"Rashyti\">[+Keisti+]";
echo "<go method=\"post\" href=\"dispMess.php?$kas&id=config2\"><postfield name=\"refresh\" value=\"$(refresh)\"/>
<postfield name=\"zinutes\" value=\"$(zinutes)\"/><postfield name=\"smailai\" value=\"$(smailai)\"/></go></anchor>
<br/>--------------<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[I Chata]</a><br/></p></card>";
}
if ($id=="config2")
{$refresh = $_POST["refresh"];
$zinutes = $_POST["zinutes"];
$smailai = $_POST["smailai"];
$config=$refresh.$zinutes.$smailai;
if ($smailai=="1"){$smailai2="Taip";}else{$smailai2="Ne";}
echo "<card id=\"WAPchat\" title=\"-=Balsavimas=-\"><p align=\"center\">Nustatymai pakeisti<br/><img src=\"../b/foot.wbmp\" alt=\"...\"/><br/>Refresh:$refresh s.<br/>Zinuciu sk:$zinutes<br/>Smailai:$smailai2<br/><img src=\"../b/foot.wbmp\" alt=\"...\"/><br/><a title=\"Back\" href=\"dispMess.php?$kas\">[I Chata]</a><br/></p></card>";
//$querys = "update fastwap_person set config = '$config' where id='$ids'";
$db->sql_query("update LOW_PRIORITY fastwap_person set config = '$config' where id='$ids'");
}
if ($id == bbcode)
{
echo "<card id=\"WAPchat\" title=\"-=Nustatymai=-\">";
echo"
<p align=\"center\">
--------------<br/>
<b>Zinute</b><br/>
Zinute<br/>
--------------<br/>
<i>Zinute</i><br/>
Zinute<br/>
--------------<br/>
<u>Zinute</u><br/>
Zinute<br/>
--------------<br/>
<a href=\"dispMess.php?$kas\">[+Chatas+]</a> </p></card>";
}
if($id == "online"){
echo "<card id=\"WAPchat\" title=\"Online\">";
echo "<p align=\"center\" mode=\"nowrap\">";
echo "Dabar chate:<br/>";
//$query = "SELECT ip,kanalas from count where kanalas != 'saitas' and kanalas !='forum' order by ip ";
//$result = mysql_query($query);
//while ($row=mysql_fetch_array($result))
$result = $db->sql_query("SELECT ip,kanalas from count where kanalas != 'saitas' and kanalas !='forum' order by ip");
while ($row = $db->sql_fetchrow($result))
{
$asd2=$row[ip] ;
$kanaliuga=$row[kanalas];
KKKKKKKKKKKKKLLLLLAIIIDA CCCCCCIIIA$kanaliugas=private;
if($kanaliuga=="2a15as"){$kanaliugas=adminai;}
if($kanaliuga=="bendras"){$kanaliugas=bendras;}
if($kanaliuga=="viktorina"){$kanaliugas=viktorina;}
if($kanaliuga=="blevyzgos"){$kanaliugas=blevyzgos;}
if($kanaliuga=="paplepek"){$kanaliugas=paplepek;}
if($kanaliuga=="party"){$kanaliugas=party;}
if($kanaliuga=="sex"){$kanaliugas=sex;}
if($kanaliuga=="pazintys"){$kanaliugas=pazintys;}
if($kanaliuga=="sportas"){$kanaliugas=sportas;}
if($kanaliuga=="pensionatas"){$kanaliugas=pensionatas;}
if($kanaliuga=="gsm"){$kanaliugas=gsm;}
if($kanaliuga=="naujokai"){$kanaliugas=naujokai;}
if($kanaliuga=="new"){$kanaliugas=jungiasi;}
if($kanaliuga=="Forumieciai"){$kanaliugas=forumieciai;}
if($kanaliuga=="Baras"){$kanaliugas=baras;}
if($kanaliuga=="senbuviai"){$kanaliugas=senbuviai;}
echo "[$asd2:$kanaliugas]<br/>"; }
$query = "SELECT COUNT(ip) AS num FROM count where kanalas != 'saitas' and kanalas !='forum' order by ip";
$result = mysql_query($query);
$rowson = ($result) ? mysql_result($result, 0, 'num') : 0;
if($nn=="neo"){echo "truko ".(getMicroTime() - $pradzia)." s.";}
echo "<b>Online: $rowson</b><br/>";
echo "<a href=\"dispMess.php?$kas&log=new\">Atgal</a></p></card>";}
if ($id=="aprashymas")
{
echo "<card id=\"WAPchat\" title=\"-=Aprashymas=-\">";
echo "<p align=\"center\">";
echo "<b>Apie $useris</b><br/>--------------<br/>";
//$result = mysql_query("SELECT username,aprashymas FROM fastwap_person where username='$useris' limit 1");
// while ( $row = mysql_fetch_array($result) )
$result = $db->sql_query("SELECT username,aprashymas FROM fastwap_person where username='$useris' limit 1");
$row = $db->sql_fetchrow($result);
$user_verify = $row["username"];
$asd=$row[aprashymas] ;
if($asd){echo "$asd";}
else{echo "Vartotojo aprashymo nera";}
echo "<br/>--------------<br/><a title=\"Back\" href=\"dispMess.php?$kas\">[+Chatas+]</a><br/>";
echo "<do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";
}
if ($id=="aprashymas2")
{
echo "<card id=\"WAPchat\" title=\"-=Keitimas=-\">";
echo "<p align=\"center\">";
echo "<b> $useris aprashymo keitimas</b><br/>";
$result = $db->sql_query("SELECT username,aprashymas FROM fastwap_person where username='$useris' limit 1");
$row = $db->sql_fetchrow($result);
$user_verify = $row["username"];
$asd=$row[aprashymas] ;
echo "<input name=\"aprashymas\" maxlength=\"120\" value=\"$asd\" type=\"text\"/><br/>";
echo " <anchor title=\"Rashyti\">[+Pakeisti+]";
echo "<go method=\"post\" href=\"dispMess.php?$kas&id=aprashymas3\">
<postfield name=\"useris\" value=\"$useris\"/>
<postfield name=\"aprashymas\" value=\"$(aprashymas)\"/>
</go>
</anchor>";
echo "<br/><a title=\"Back\" href=\"dispMess.php?$kas\">[+ Chat +]</a><br/>
<do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";
}
if ($id=="aprashymas3")
{
echo "<card id=\"WAPchat\" title=\"-=Keitimas=-\">";
echo "<p align=\"center\">";
echo "<b> $useris</b> aprashymas pakeistas<br/> Dabartinis aprashymas:$aprashymas<br/>";
//$querys = "update fastwap_person set aprashymas='$aprashymas' where ID='$ids'";
//mysql_query($querys) or die(mysql_error());
$db->sql_query("update fastwap_person set aprashymas='$aprashymas' where id='$ids'");
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[+ Chat +]</a><br/>";
echo "<do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";
}
////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
if ($log=="new2")
{ $mymess="<i>Atejo</i> ".$nn;
$messtime=time();
//$sqlDel="delete from wapchat where mymess = '$mymess' limit 1";
$db->sql_query("delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1");
//mysql_query($sqlDel) or die(mysql_error());
$db->sql_query("insert DELAYED into wapchat (mynick,mymess,messtime,kanalas) values ('$nn','$mymess','$messtime','$kanalas')");
//mysql_query($sqllogin) or die(mysql_error());
//$expiremess=time()-150;
//$sqlDel="delete from wapchat where messtime < $expiremess";
//mysql_query($sqlDel) or die(mysql_error());
echo "<card title=\"La\">";
echo "<onevent type=\"onenterforward\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</onevent>";
echo "<p align=\"center\">";
echo "<a href=\"dispMess.php?$kas\">Jungtis</a><br/>";
echo "</p>";
echo "</card></wml>"; exit;
}
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
if ($kanalas=="viktorina")
{
$result = $db->sql_query("SELECT taip,sk,laikas,laikas2 FROM viktorina limit 1");
$row = $db->sql_fetchrow($result);
//$result = mysql_query("SELECT taip,sk,laikas,laikas2 FROM viktorina limit 1");
//$row = mysql_fetch_array($result);
$taips = $row["taip"];
$nr = $row["sk"];
$laikas= $row["laikas"];
$laikasvik= $row["laikas2"];
$laikas2=time();
$laikas3=$laikas2-$laikas;
$laikasvik2=$laikasvik-$laikas2;
if($laikasvik<$laikas2)
{
$db->sql_query("update LOW_PRIORITY viktorina set taip=0");
$taips=0;
}
if($taips=="1")
{
if($laikas>$laikas2)
{
$db->sql_query("update LOW_PRIORITY viktorina set laimejo=0, laikas='$laikas2'");
}
$result = $db->sql_query("SELECT klausimas,atsakymas FROM vikklaus where nr='$nr' limit 1 ");
$row = $db->sql_fetchrow($result);
$klausimas = $row["klausimas"];
$atsakymas = $row["atsakymas"];
$ilgis= strlen($atsakymas);
$klausimas="<b>Viktorina</b><br/>$klausimas";
$pos=$laikas3/$new;
if($pos==0){$pos=1;}
for ($i = 0; $i<$pos; $i++)
{$atsakymas=substr($atsakymas,0,$pos);}
for ($i = 0; $i<$ilgis-$pos; $i++)
{$atsakymas=$atsakymas."*";}
$vik=$klausimas."<br/>$atsakymas<br/>----------------<br/>";
$naujas=$ilgis*$new;
$nzn=$laikas3-$naujas;
$nzn2=$po-$nzn;
if($laikas3>$naujas)
{
$laikasvik3=$laikasvik-time();
$fv=floor($laikasvik3/3600);
$fm=floor($laikasvik3/60-$fv*60);
$fs=floor($laikasvik3-$fv*3600-$fm*60);
if($fv){$fv="$fv h. ";}
else{$fv="";}
if($fm){$fm="$fm min. ";}
else{$fm="";}
if($fs){$fs="$fs sek. ";}
else{$fs="";}
$vik="Ruošiamas Klausimas ($nzn2 s.)<br/>Viktorina dar dirbs $fv $fm $fs<br/>----------------<br/>";
}
if($nzn>$po)
{
$vik="Klausimas Paruoštas<br/>----------------<br/>";
$sk=rand(1,$klausimu);
$db->sql_query("update LOW_PRIORITY viktorina set sk=$sk,laimejo=0, laikas='$laikas2'");
}
}
}
if($id == "vikrez"){
$puslapis = $_POST["puslapis"];
$max_entries = "10";
$query = "SELECT COUNT(*) AS num FROM fastwap_person where vsk!=0 ";
$result = $db->sql_query($query);
$total = ($result) ? mysql_result($result, 0, 'num') : 0;
if (!$puslapis)
{
$puslapis=1;
}
$start=($max_entries * $puslapis)-$max_entries;
if ($total <= $max_entries)
{
$num_page=1;
}
else if (($total % $max_entries)==0)
{
$num_page=$total/$max_entries; }
else {
$num_page=$total/$max_entries + 1;
}
echo "<card id=\"WAPchat\" title=\"[-=Rezultatai=-]\">";
echo "<p align=\"left\" mode=\"nowrap\">";
$sks=($puslapis-1)*$max_entries;
$query = "select username,vsk from fastwap_person where vsk!=0 ORDER BY vsk desc LIMIT $start, $max_entries";
$result = $db->sql_query($query);
while ($row = mysql_fetch_array($result))
{
$mid = $row["username"];
$kb = $row["vsk"];
$i++;
$i2=$i+$sks;
echo "<b>$i2</b>.".$mid."[$kb]<br/>";
}
$totalas = $total / $max_entries;
$sekantis = $puslapis + 1;
$buves = $puslapis - 1;
echo "</p><p align=\"center\" mode=\"wrap\">Viso:$total</p>";
if($total > 5)
{ if($totalas > $puslapis)
{
echo "<p align=\"center\"><anchor title=\"Pirmyn\">[+Toliau+]";
echo "<go method=\"post\" href=\"dispMess.php?id=vikrez&$kas\">";
echo "<postfield name=\"puslapis\" value=\"$sekantis\"/>";
echo "</go>";
echo "</anchor></p>";
}
}
if($puslapis > 1)
{
echo "<p align=\"center\"><anchor title=\"Pirmyn\">[-Atgal-]";
echo "<go method=\"post\" href=\"dispMess.php?id=vikrez&$kas\">";
echo "<postfield name=\"puslapis\" value=\"$buves\"/>";
echo "</go>";
echo "</anchor></p>";
}
echo "
<p align=\"center\">----------------<br/>
<a href=\"dispMess.php?$kas\">[-Chatas-]</a></p>";
echo "</card>";}
if($id == "vikinf"){
echo "<card id=\"WAPchat\" title=\"Informacija\">";
echo "<p align=\"center\">";
echo "<b>Viktorina</b><br/>Jau $klausimu klausimai!<br/> Uzsakes gauna 200+<br/>----------------<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=vikinf3\">[+Kaip uzleisti?+]</a><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=vikinf2\">[+Informacija+]</a><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=vikrez\">[+Topas+]</a><br/>";
//echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=vikrez2\">-=Rezultatai=-</a><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas&id=vikklaus\">[Sukurk klausima]</a><br/>----------------<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">[-Atgal-]</a><br/>";
echo "</p></card>";}
if($id == "vikinf2"){
echo "<card id=\"WAPchat\" title=\"Informacija\">";
echo "<p align=\"center\">";
echo "<b>Viktorina-</b>tai interaktyvus zaidimas, sistema uzduoda klausimus,o jus turite stengtis atsakyti i juos. Kiekvienas atsakymas vertinamas 5+!
Visi jusu atsakymai fiksuojami ir vedama statistika bei top10.Dabar yra $klausimu klausimai.<br/>
----------------<br/>
Nenaudokite lietuvishku raidziu, atsakymus galite rashyti tiek mazosiom tiek ir didziosiom raidemis.<br/>
";
echo "----------------<br/><a title=\"Back\" href=\"dispMess.php?$kas\">[-Atgal-]</a><br/>";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo "</p>";
echo "</card>";}
if($id == "vikinf3"){
echo "<card id=\"WAPchat\" title=\"Informacija\">";
echo "<p align=\"center\">";
echo "<b>Kaip palesiti viktorina?</b><br/>1 valanda viktorinos zaidimo kainuoja 1lt. Vienas atsakytas viktorinos klausimas=10+.
Noredami paleisti viktorina siuskite sms numeriu 1656(1lt=1val.), 1654(2lt=2val.), 1679(3lt=3val.), su tokiu tekstu: neo viktorina nickas (pvz neo viktorina naujokas).
Gausite 200+.Viktorinos laikas yra pliusuojamas, jei ishsiusite 3 sms atitinkamai ir zaisite 3 kart ilgiau.
<br/>
";
echo "----------------<br/><a title=\"Back\" href=\"dispMess.php?$kas\">[-Atgal-]</a><br/>";
echo "<do type=\"prev\" label=\"Back\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</do>";
echo "</p>";
echo "</card>";}
if($id == "vikklaus"){
echo "<card id=\"WAPchat\" title=\"Informacija\">";
echo "<p align=\"center\">";
echo "Klausimas:";
echo "<input name=\"klausimas\" maxlength=\"100\" type=\"text\"/><br/>";
echo "Atsakymas:";
echo "<input name=\"atsakymas\" maxlength=\"15\"/><br/>";
echo " <anchor title=\"Pirmyn\">:Ishsaugoti:";
echo "<go method=\"post\" href=\"dispMess.php?$kas&id=vikklauss\">";
echo "<postfield name=\"klausimas\" value=\"$(klausimas)\"/>";
echo "<postfield name=\"atsakymas\" value=\"$(atsakymas)\"/>";
echo "<postfield name=\"vardas\" value=\"$nn\"/>";
echo "</go>";
echo "</anchor><br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">Atgal</a><br/><do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";}
if($id == "vikklauss"){
$klausimas = $_POST['klausimas'];
$atsakymas= $_POST['atsakymas'];
echo "<card id=\"WAPchat\" title=\"Informacija\">";
echo "<p align=\"center\">";
$klausimas=$klausimas. " (Aut.$nn)";
$result = mysql_query("SELECT klausimas FROM vikklaus2");
while ( $row = mysql_fetch_array($result) )
{ $zion = $row["klausimas"];
if($klausimas == $zion){
$kartojasi=1;
}}
if($kartojasi !=1){
$sqllogin ="insert delayed into vikklaus2 (klausimas,atsakymas) values ('$klausimas','$atsakymas')";
mysql_query($sqllogin) or die(mysql_error());
}
echo "Klausimas:$klausimas<br/>";
echo "Atsakymas:$atsakymas<br/>Buvo sekmingai ishsaugoti! Aciu.<br/>";
echo "<a title=\"Back\" href=\"dispMess.php?$kas\">Atgal</a><br/>";
echo "<do type=\"prev\" label=\"Back\"><go href=\"dispMess.php?$kas\"/></do></p></card>";}
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////Viktorina/////////////////////////////////////////////////////////////////
if ($id == game)
{
echo "<card id=\"WAPchat\" title=\"-=Zaidimas=-\">";
echo"
<p align=\"center\">
Sekmes akimirka!<br/>
--------------<br/>
Pirmas atsiuntes sms gauna 500+!<br/>
Siusk sms numeriu 1656(1lt) su tekstu neo game nickas (pvz neo game naujokas).<br/>
Pirmas atsiuntes sms gauna 500+! Skubek! Kiti gauna po 50+. Zaidimas vyksta po kelis kartus per diena!<br/>
Visus zinutes registruojamas ir vedamas topas, aktyviausi taip pat neliks nuskriausti ;)<br/>
--------------<br/>
<a href=\"dispMess.php?$kas\">[+Chatas+]</a> </p></card>";
}
if ($id==privatas)
{
echo "<card title=\"Palaukite..\">";
echo "<onevent type=\"ontimer\">";
echo "<go href=\"dispMess.php?nn=$nn&pas=$pas&kanalas=$kanal\"/>";
echo "</onevent>";
echo "<timer value=\"1\"/>";
echo "<p align=\"center\">";
echo "Sukuriamas Kambarys..";
echo "</p>";
$sqlDel="delete LOW_PRIORITY from count where ip = '$nn' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$time=time();
$sqllogin ="insert DELAYED into privatas (kviecia,ka,kanalas,laikas) values ('$nn','$asd2','$a','$time')";
mysql_query($sqllogin) or die(mysql_error());
$mymess="<i>Atejo</i> ".$nn;
$messtime=time();
$sqlDel="delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$sqllogin ="insert into wapchat (mymess,messtime,kanalas) values ('$mymess','$messtime','$kanal')";
mysql_query($sqllogin) or die(mysql_error());
$mymess="$nn <i>ishejo i privata</i> ";
$sqlDel="delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$sqllogin ="insert DELAYED into wapchat (mymess,messtime,kanalas) values ('$mymess','$messtime','$kanalas')";
mysql_query($sqllogin) or die(mysql_error());
echo "</card></wml>"; exit;
}
if ($id==sutinka)
{
echo "<card title=\"Palaukite..\">";
echo "<onevent type=\"ontimer\">";
echo "<go href=\"dispMess.php?nn=$nn&pas=$pas&kanalas=$kanal\"/>";
echo "</onevent>";
echo "<timer value=\"1\"/>";
echo "<p>";
echo "Prijungiama..";
echo "</p>";
$sqlDel="delete LOW_PRIORITY from count where ip = '$nn' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$mymess="<i>Atejo</i> ".$nn;
$sqlDel="delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$messtime=time();
$sqllogin ="insert DELAYED into wapchat (mymess,messtime,kanalas) values ('$mymess','$messtime','$kanal')";
mysql_query($sqllogin) or die(mysql_error());
$mymess="$nn <i>ishejo i privata</i>";
$sqlDel="delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$sqllogin ="insert DELAYED into wapchat (mymess,messtime,kanalas) values ('$mymess','$messtime','$kanalas')";
mysql_query($sqllogin) or die(mysql_error());
echo "</card>";
}
if ($id==nesutinka)
{
echo "<card title=\"Palaukite..\">";
echo "<onevent type=\"ontimer\">";
echo "<go href=\"dispMess.php?$kas\"/>";
echo "</onevent>";
echo "<timer value=\"2\"/>";
echo "<p>";
echo "Atsisakoma..";
echo "</p>";
$time=time();
$mymess="$nn <i>Atsisako</i> ";
$sqlDel="delete LOW_PRIORITY from wapchat where mymess = '$mymess' limit 1";
mysql_query($sqlDel) or die(mysql_error());
$messtime=time();
$sqllogin ="insert DELAYED into wapchat (mymess,messtime,kanalas) values ('$mymess','$messtime','$kanal')";
mysql_query($sqllogin) or die(mysql_error());
echo "</card>";
}
if (!$id)
{
$query = "SELECT COUNT(ka) AS num From privatas where ka='$nn'";
$result = mysql_query($query);
$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
//if($rows>"0")
//{
//$rows=$db->sql_numrows($db->sql_query("SELECT ka FROM privatas where ka='$nn'"));
if($rows>"0")
{
$result = $db->sql_query("SELECT kviecia,ka,kanalas FROM privatas where ka='$nn' limit 1");
$row = $db->sql_fetchrow($result);
//$ip = $row['ip'];
//$result = mysql_query("SELECT kviecia,ka,kanalas FROM privatas where ka='$nn' limit 1");
//$row = mysql_fetch_array($result);
$ka = $row["ka"];
$kask = $row["kviecia"];
$kanale=$row["kanalas"];
if($ka == $nn)
{
echo "<card title=\"Privatas\">";
echo "<p align=\"center\">";
echo "$kask tave kviecia privatui<br/>";
$sqllogin ="delete LOW_PRIORITY from privatas where ka = '$nn'";
mysql_query($sqllogin) or die(mysql_error());
echo "<a title=\"Enter\" href=\"dispMess.php?nn=$nn&pas=$pas&kanal=$kanale&id=sutinka&kanalas=$kanalas\">[+Sutinku+]</a><br/>";
echo "<a title=\"Enter\" href=\"dispMess.php?$kas&kanal=$kanale&id=nesutinka\">[-Nesutinku-]</a><br/>";
echo "</p>";
echo "<do type=\"prev\" label=\"Atgal\">";
echo "<go href=\"#\"/>";
echo "</do>";
echo "</card></wml>"; exit;
}
}
if($rangas >2)
{ $nn = "*".$nn;}
if($rangas >4)
{$nn = str_replace("*","",$nn); $nn = "@".$nn;}
////////online
$time1=time() ;
$time = time() - 120;
$ip = $nn;
$query = "SELECT COUNT(ip) AS num FROM count where ip = '$nn' and kanalas='$kanalas' limit 1";
$result = mysql_query($query);
$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
//$rows=$db->sql_numrows($db->sql_query("SELECT * from count where ip = '$nn' and kanalas='$kanalas'"));
if($rows=="0")
{
include("browser.php");
$info="[Tinklas:".$tinklas."]<br/>[Tel.:".$browser."]";/*<br/>[IP:".$_SERVER['HTTP_X_NETWORK_INFO']."]*/
//$sqlDel="delete from count where ip = '$nn' or time < '$time'";
$result = $db->sql_query("delete LOW_PRIORITY from count where ip = '$nn' or time < '$time'");
//mysql_query($sqlDel) or die(mysql_error());
// $sqlDel="DELETE FROM count where time < '$time' and kanalas!='site' and kanalas!='forumas' ";
// mysql_query($sqlDel) or die(mysql_error());
$result = $db->sql_query("INSERT delayed into count (ip,time,kanalas,info) values('$ip','$time1','$kanalas','$info')");
//$query = "INSERT delayed into count (ip,time,kanalas,info) values('$ip','$time1','$kanalas','$info')";
//mysql_query($query);
}
//$query = "show_status count";
//$result= mysql_query($query);
//echo "$result dddddddd";
// while ($row=mysql_fetch_row($result)) {
// $asd=$row[0];}
////////online
$query = "SELECT COUNT(ip) AS num FROM count where kanalas = '$kanalas' ";
$result = mysql_query($query);
$rows = ($result) ? mysql_result($result, 0, 'num') : 0;
//$rows=$db->sql_numrows($db->sql_query("SELECT * from count where kanalas = '$kanalas'"));
$asd = date("H");
$asd2 = $asd +$laikasss;
if ($asd2 >23)
{ $asd2 = $asd2-24;}
$sek=date("s");
$tijd = date("i-s");
$tijd2 = date("i");
echo "<card ontimer=\"dispMess.php?$kas&i=$sek\" title=\"-=$asd2-$tijd2-=-On:$rows=-\">
<timer value=\"$reftime\"/><p align=\"center\">";
$asd3 = str_replace("*","",$asd2);
$asd3 = str_replace("@","",$asd3);
if ($kanalas!="viktorina")
{ //$query = "SELECT COUNT(*) AS num FROM ms where skaite = 0 and kam='$ids'";
//$result = $db->sql_query($query);
//$rows2 = ($result) ? mysql_result($result, 0, 'num') : 0;
//$rows=$db->sql_numrows($db->sql_query("SELECT * from ms where skaite = 0 and kam='$ids'"));
}
//$result = mysql_query("SELECT skaite FROM ms where kam='$ids' ORDER BY laikas desc LIMIT 3");
// while ( $row = mysql_fetch_array($result) )
// {$timas = $row["laikas2"];
// $timas2 = $row["laikas"];
// }
////////////////////////game
/*
$query = "SELECT HIGH_PRIORITY laimejo,time,started,starttime from game ORDER BY laimejo desc limit 1";
$result = mysql_query($query);
$row=mysql_fetch_array($result);
$laimejo=$row[laimejo] ;
$times=$row[time];
$starttime=$row[starttime];
$started=$row[started];
$time=time();
if($times==0)
{
$query = "update game set time=$time,laimejo=0,kas='',started=1,starttime=$time";
$result = mysql_query($query);
}
if($started==0)//nieks nepradejo
{
$times2=$time-14453;
if($times2>$times)
{
$query = "update game set started=1,starttime=$time,laimejo=0,kas=''";
$result = mysql_query($query);
}
}
if($started==1)
{
$times3=$starttime+120;
if($times3>$time)
{
$msg="<a href=\"dispMess.php?$kas&id=game\">-Sekmes akimirka-</a><br/>";
}
else
{
$query = "update game set started=0,time=$time,laimejo=0,kas=''";
$result = mysql_query($query);}
}
*/
////////////////////////game
// $result = mysql_query("SELECT * FROM fastwap_person where username='neo' limit 1");
//while (list($id, $user, $password) = mysql_fetch_row($result)) {
// echo "$id::::$user $password) ";
//}
if ($vik) { echo $vik;}
else
{
if ($msg) { echo $msg;}
else
{
if ($rows2 > 0)
{echo "<a href=\"memoserv.php?$kas&id=inbox\">-=Privati Zinute=-</a>";}
else{
if ($sek < 21)
{
if ($kanalas=="viktorina"){echo "<b>Viktorina Sustabdyta</b>";}
else{echo "<b>-=neo.666.lt=-</b>";}
}
if ($sek > 20)
{ if ($sek < 41)
{ echo "<b>-=Online:$rows=-</b>";}
if ($sek > 40)
{
if ($kanalas=="viktorina")
{echo "<b>Kaip paleisti ziuretike informacija.</b>";}
else{echo "<b>-=$asd2-$tijd=-</b>";}
}
}
}
}
}
echo "</p><p>";
//if ($kanalas=="viktorina"){ echo "<b>::: </b>".$klausimas."<br/>";}
//include ("functionChat.php");
$gaus = $_GET['g'];
if(!$gaus){$gaus=time();}
$sestimelogin=$gaus;
function dispMess($timelogin,$kanalas,$zinsk)
{
//$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
global $db;
// $result = mysql_query("SELECT * FROM fastwap_person where username='neo' limit 1");
//while (list($id, $user, $password) = mysql_fetch_row($result)) {
// echo "$id::::$user $password) &
Redagavo ___· 2007 Lie. 13 14:07:04