Parašė Zixx· 2008 Bir. 8 22:06:10
#10
Nezinau bet jei cia pilnas kodas tai tada turetu kazkuris is situ tikt..
galbut 2 geresnis ;)
<?php
if (file_exists(INFUSIONS."rank_system/locale/".$settings['locale'].".php")) {
include INFUSIONS."rank_system/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."rank_system/locale/Russian.php";
}
$row = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='1'");
$posts=dbarray($row);
$post1 = $posts['posts'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='2'");
$posts2=dbarray($row2);
$post2 = $posts2['posts'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='3'");
$posts3=dbarray($row3);
$post3 = $posts3['posts'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='4'");
$posts4=dbarray($row4);
$post4 = $posts4['posts'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='5'");
$posts5=dbarray($row5);
$post5 = $posts5['posts'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='6'");
$posts6=dbarray($row6);
$post6= $posts6['posts'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='7'");
$posts7=dbarray($row7);
$post7 = $posts7['posts'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='8'");
$posts8=dbarray($row8);
$post8 = $posts8['posts'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='9'");
$posts9=dbarray($row9);
$post9 = $posts9['posts'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='11'");
$posts11=dbarray($row11);
$post11 = $posts11['posts'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='12'");
$posts12=dbarray($row12);
$post12 = $posts12['posts'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='13'");
$posts13=dbarray($row13);
$post13 = $posts13['posts'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='14'");
$posts14=dbarray($row14);
$post14 = $posts14['posts'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='15'");
$posts15=dbarray($row15);
$post15 = $posts15['posts'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='16'");
$posts16=dbarray($row16);
$post16 = $posts16['posts'];
$row = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='1'");
$names=dbarray($row);
$name1 = $names['names'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='2'");
$names2=dbarray($row2);
$name2 = $names2['names'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='3'");
$names3=dbarray($row3);
$name3 = $names3['names'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='4'");
$names4=dbarray($row4);
$name4 = $names4['names'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='5'");
$names5=dbarray($row5);
$name5 = $names5['names'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='6'");
$names6=dbarray($row6);
$name6= $names6['names'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='7'");
$names7=dbarray($row7);
$name7 = $names7['names'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='8'");
$names8=dbarray($row8);
$name8 = $names8['names'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='9'");
$names9=dbarray($row9);
$name9 = $names9['names'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='11'");
$names11=dbarray($row11);
$name11 = $names11['names'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='12'");
$names12=dbarray($row12);
$name12 = $names12['names'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='13'");
$names13=dbarray($row13);
$name13 = $names13['names'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='14'");
$names14=dbarray($row14);
$name14 = $names14['names'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='15'");
$names15 =dbarray($row15);
$name15 = $names15['names'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='16'");
$names16 =dbarray($row16);
$name16 = $names16['names'];
if ($userdata[user_posts] <= $post1 ) {echo "".RS_005." $name1\n";}
else if ($userdata[user_posts] <= $post2) {echo "".RS_005." $name2\n";}
else if ($userdata[user_posts] <= $post3) {echo "".RS_005." $name3\n";}
else if ($userdata[user_posts] <= $post4) {echo "".RS_005." $name4\n";}
else if ($userdata[user_posts] <= $post5) {echo "".RS_005." $name5\n";}
else if ($userdata[user_posts] <= $post6) {echo "".RS_005." $name6\n";}
else if ($userdata[user_posts] <= $post7) {echo "".RS_005." $name7\n";}
else if ($userdata[user_posts] <= $post8) {echo "".RS_005." $name8\n";}
else if ($userdata[user_posts] <= $post9) {echo "".RS_005." $name9\n";}
else if ($userdata[user_posts] <= $post11) {echo "".RS_005." $name10\n";}
else if ($userdata[user_posts] <= $post12) {echo "".RS_005." $name11\n";}
else if ($userdata[user_posts] <= $post13) {echo "".RS_005." $name12\n";}
else if ($userdata[user_posts] <= $post14) {echo "".RS_005." $name13\n";}
else if ($userdata[user_posts] <= $post15) {echo "".RS_005." $name14\n";}
else if ($userdata[user_posts] <= $post16) {echo "".RS_005." $name15\n";}
else {echo "".RS_005." $name16\n";}
echo"<br>";
arba
<?php
if (file_exists(INFUSIONS."rank_system/locale/".$settings['locale'].".php")) {
include INFUSIONS."rank_system/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."rank_system/locale/Russian.php";
}
$row = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='1'");
$posts=dbarray($row);
$post1 = $posts['posts'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='2'");
$posts2=dbarray($row2);
$post2 = $posts2['posts'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='3'");
$posts3=dbarray($row3);
$post3 = $posts3['posts'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='4'");
$posts4=dbarray($row4);
$post4 = $posts4['posts'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='5'");
$posts5=dbarray($row5);
$post5 = $posts5['posts'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='6'");
$posts6=dbarray($row6);
$post6= $posts6['posts'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='7'");
$posts7=dbarray($row7);
$post7 = $posts7['posts'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='8'");
$posts8=dbarray($row8);
$post8 = $posts8['posts'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='9'");
$posts9=dbarray($row9);
$post9 = $posts9['posts'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='11'");
$posts11=dbarray($row11);
$post11 = $posts11['posts'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='12'");
$posts12=dbarray($row12);
$post12 = $posts12['posts'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='13'");
$posts13=dbarray($row13);
$post13 = $posts13['posts'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='14'");
$posts14=dbarray($row14);
$post14 = $posts14['posts'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='15'");
$posts15=dbarray($row15);
$post15 = $posts15['posts'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='16'");
$posts16=dbarray($row16);
$post16 = $posts16['posts'];
$row = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='1'");
$names=dbarray($row);
$name1 = $names['names'];
$row2 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='2'");
$names2=dbarray($row2);
$name2 = $names2['names'];
$row3 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='3'");
$names3=dbarray($row3);
$name3 = $names3['names'];
$row4 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='4'");
$names4=dbarray($row4);
$name4 = $names4['names'];
$row5 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='5'");
$names5=dbarray($row5);
$name5 = $names5['names'];
$row6 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='6'");
$names6=dbarray($row6);
$name6= $names6['names'];
$row7= dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='7'");
$names7=dbarray($row7);
$name7 = $names7['names'];
$row8 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='8'");
$names8=dbarray($row8);
$name8 = $names8['names'];
$row9 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='9'");
$names9=dbarray($row9);
$name9 = $names9['names'];
$row11 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='11'");
$names11=dbarray($row11);
$name11 = $names11['names'];
$row12 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='12'");
$names12=dbarray($row12);
$name12 = $names12['names'];
$row13 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='13'");
$names13=dbarray($row13);
$name13 = $names13['names'];
$row14 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='14'");
$names14=dbarray($row14);
$name14 = $names14['names'];
$row15 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='15'");
$names15 =dbarray($row15);
$name15 = $names15['names'];
$row16 = dbquery("SELECT * FROM ".$db_prefix."forumrang WHERE id='16'");
$names16 =dbarray($row16);
$name16 = $names16['names'];
if ($userdata[user_posts] <= $post1 ) {echo "".RS_005." $name1\n";}
else if ($userdata[user_posts] <= $post2) {echo "".RS_005." $name2\n";}
else if ($userdata[user_posts] <= $post3) {echo "".RS_005." $name3\n";}
else if ($userdata[user_posts] <= $post4) {echo "".RS_005." $name4\n";}
else if ($userdata[user_posts] <= $post5) {echo "".RS_005." $name5\n";}
else if ($userdata[user_posts] <= $post6) {echo "".RS_005." $name6\n";}
else if ($userdata[user_posts] <= $post7) {echo "".RS_005." $name7\n";}
else if ($userdata[user_posts] <= $post8) {echo "".RS_005." $name8\n";}
else if ($userdata[user_posts] <= $post9) {echo "".RS_005." $name9\n";}
else if ($userdata[user_posts] <= $post11) {echo "".RS_005." $name10\n";}
else if ($userdata[user_posts] <= $post12) {echo "".RS_005." $name11\n";}
else if ($userdata[user_posts] <= $post13) {echo "".RS_005." $name12\n";}
else if ($userdata[user_posts] <= $post14) {echo "".RS_005." $name13\n";}
else if ($userdata[user_posts] <= $post15) {echo "".RS_005." $name14\n";}
else if ($userdata[user_posts] <= $post16) {echo "".RS_005." $name15\n";}
else {echo "".RS_005." $name16\n";}
echo"<br>";
?>
Redagavo ozzWANTED· 2008 Bir. 9 15:06:51