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

Parašė Spiritas· 2010 Spa. 29 19:10:27
#6

sitai dar kita koda radau ant v6

		//show warnings\\
 
if (file_exists(LOCALE.LOCALESET."warns.php")) {
	include LOCALE.LOCALESET."warns.php";
} else {
	include LOCALE."English/warns.php";
}
$warnings=dbquery("SELECT tw.*, tu.user_id,user_name FROM ".$db_prefix."warnings tw
LEFT JOIN ".$db_prefix."users tu ON tw.give_user=tu.user_id WHERE tw.user_id='".$data['user_id']."' ORDER BY warning_number ASC");
if (dbrows($warnings)) {
$warns=dbrows($warnings);
} else {$warns='0'; }
 
		if ($data['user_level'] == 101) {
echo "<img src='".IMAGES."warns/$warns.gif' alt='".$locale['warns_04']." $warns ".$locale['warns_05']."' title='".$locale['warns_04']." $warns ".$locale['warns_05']."' border='0'><br>";
}
 
		//--------\\