Parašė Use Google· 2010 Kov. 29 13:03:56
#1
Sveiki. Kad neterst forumo (nes ir taip jau priterses esu) padariau savo klausimu tema.
Taigi, 1 klausimas: Kas per erroras?
Notice: Constant DB_BANAI already defined in /home/modai/domains/NesakysiuSavoSaito.lt/public_html/fusion7/infusions/ban_time_panel/ban_time_panel.php on line 3
ban_time_panel.php
<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }
define("DB_BANAI", DB_PREFIX."banai");
$result = dbquery("SELECT * FROM ".DB_USERS." tn LEFT JOIN ".DB_BANAI." tu ON tn.user_id=tu.ban_id
WHERE ban_time < ".time()."");
while($data = dbarray($result)){
$query=dbquery("UPDATE ".DB_USERS." SET user_status='0' WHERE user_id='".$data['user_id']."'");
$query=dbquery("DELETE FROM ".DB_BANAI." WHERE ban_time < ".time()."");
}
?>
Redagavo Use Google· 2010 Kov. 29 13:03:19