Parašė Spiritas· 2010 Spa. 29 14:10:59
#4
ant v6 toks kodas yra
//show warnings
if ($data['user_level'] == 101) {
echo "<br><img src='".IMAGES."warns/".$data['warnings'].".gif' alt='".$locale['warns_04']." ".$data['warnings']." ".$locale['warns_05']."' title='".$locale['warns_04']." ".$data['warnings']." ".$locale['warns_05']."' border='0'><br>";
}
//for admins
if (iADMIN && checkrights("F")) {
if ($data['user_level'] == 101 && $data['user_status'] != 1) {
if ($data['warnings'] <= 3) {
echo "<form method='post' action='viewthread.php?forum_id=$forum_id&thread_id=".$data['thread_id']."&veiksmas=warn&id=".$data['user_id']."&pid=".$data['post_id']."#post_".$data['post_id']."'>";
echo "<input type='submit' name='warn' value='".$locale['warns_07']."' class='button'>";
echo "</form>";
} else {
echo "<form method='post' action='viewthread.php?forum_id=$forum_id&thread_id=".$data['thread_id']."&veiksmas=ban&id=".$data['user_id']."&pid=".$data['post_id']."#post_".$data['post_id']."'>";
echo "<input type='submit' name='ban' value='".$locale['warns_01']."' class='button'>";
echo "</form>";
}
if ($data['warnings'] != 0) {
echo "<form method='post' action='viewthread.php?forum_id=$forum_id&thread_id=".$data['thread_id']."&veiksmas=unwarn&id=".$data['user_id']."&pid=".$data['post_id']."#post_".$data['post_id']."'>";
echo "<input type='submit' name='unwarn' value='".$locale['warns_08']."' class='button'>";
echo "</form>";
}
}
}
//warnings ends
gal kasnors padarytumet ant v7