Parašė jokaz· 2008 Lie. 17 12:07:58
#8
MAnjack parašė:
Taip. Pabandyk. Jeigu neveiks, padėsim kitaip.
Neveikia :| Ta pacia klaida meta...
Stai kaip dabar atrodo wip_panel.php
<?php
opentable("VIP narystë");
echo "<center><img src='".IMAGES."wip.gif'></center>";
$result = dbquery("SELECT * FROM ".$db_prefix."wip WHERE nario_id='".$userdata['user_id']."'");
echo "<center> <b><br>Tavo VIP narystë galioja dar ";
if (dbrows($result) != 0 AND !iGUEST) {
while ($data = dbarray($result)) {
$lastseen = time() - $data['laikas'];
$iD=sprintf("%2d",floor($lastseen/(60*60*24)));
echo 30 - $iD;
echo " dienas";
echo "<center><a href='".BASEDIR."wipas.php'>Kà að galiø naudotis turëdamas VIP narystæ?</a></a></center>";
if($iD > 30)
{
$ret = dbquery("DELETE FROM ".$db_prefix."wip WHERE nario_id='".$userdata['user_id']."' ");
}
}
}
else
{
if(iGUEST)
{
echo "Tu dar nesi narys, tapti nariu reikia spausti <a href='".BASEDIR."register.php'>èia</a>";
}
else
{
echo "<br><br>Tu dar nesi VIP narys tapti VIP nariu reikia spausti <a href='".BASEDIR."wipas.php'>èia</a></b>";
}
}
closetable();
?>
Redagavo jokaz· 2008 Lie. 17 12:07:13