Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Ispejimu sistema v7

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&amp;thread_id=".$data['thread_id']."&amp;veiksmas=warn&amp;id=".$data['user_id']."&amp;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&amp;thread_id=".$data['thread_id']."&amp;veiksmas=ban&amp;id=".$data['user_id']."&amp;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&amp;thread_id=".$data['thread_id']."&amp;veiksmas=unwarn&amp;id=".$data['user_id']."&amp;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