Jump to content
GIGN Forum

Top5 Admini


Recommended Posts

Man gan liekas ka tas bija kads cits, bet jaa worm`s tur pabija diezgan.. Es personigi gign.lv serveri nekad nesmu banots un ceshos to ari nepanakt, bet ja spele iet tad iet un sakarigi admini to redz, bet runajot par to top5 vnk uzliec amx_banus un visa maksla divi vienā. Gan bani un vari vieglak sekot lidzi banotajiem... Pamaciba šeit

Link to comment
Share on other sites

  • 9 months later...

Karoce !!!

Pamaaciiba:

1. Tew vajadziigs amxbans ( 5.0 ) Pamaaciiba te !!

2. kad ir uztaisiits tad mapee www/amxbans uztaisi failu admintop.php var arii savaadaaku!! (peec izveelees)

3. admintop.php raksti so ieksaa!!

<style type="text/css">
/*-------------admintop---------------*/
#admintop {
font-size: 15px;
color: #B22222;
}

#admintop td{
border: dotted;
border-width: 1 0 0 0;
padding-right: 20px;
}

#admintop th{
text-align: left;
}
</style>

<?php

echo "<table id='admintop'>
<tr>
<th>Admins</th>
<th>Bani</th>
</tr>";

$con = mysql_connect("mysql_hosts","mysql_useris","mysql_parole");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("amxbans", $con);

$result = mysql_query("SELECT count(*), admin_nick FROM amx_bans GROUP BY admin_nick ORDER BY count(*) DESC LIMIT 5"); // DESC LIMIT 5 noziimee, ka vinjsh paraadiis 5 aktiivaakos

while($row = mysql_fetch_array($result))
{
$admins = $row['admin_nick'];
$skaits = $row['count(*)'];
echo "<tr>
<td>$admins</td>
<td>$skaits</td>
</tr>";
}
mysql_close($con);
?>
</table>

editeejam

mysql_hosts : labojam uz localhost

mysql_useris : labojam uz juusu datubaazes useri

mysql_parole : labojam uz datubaazes usera paroli

4. taalaak Veram ciet un saglabaajam!!

5.Varam paaarbaudiit vai straadaa! http://localhost/amxbans/admintop.php (tacu ja datubaazee nebuus neviena bana tad nekas neraadiisies)

6. Ja gribi lai atveras mazaa skaistaa lodzinaa tad dari taa

6.1 Atver failu ban_list.php mapee www/amxbans

6.2 Un pasaa apakasaa iekopee so ( var arii gaugsaa: peec izveeles)

<html>
<head>
<script type="text/javascript">
function linkTo(y)
{
var x=window.open("admintop.php","","scrollbars=yes,width=275,height=200")
x.location.hash=y
}
</script>
</head>

<body>
<h1 align="center"><big><input type="button" value="Admintop" onclick="linkTo(0)"></big></h1>

</body>

</html>

6.3 Veram ciet un saglabaajam

P.s sito taisiiju pats atskirsies no citiem web ( atveersies uzspiezot uz pogas )

7. itkaa viss gatavs!! Ieej http://localhost/amxbans un skaties!!!

8. Ja gribi lai mazais lodzins buute veel skaistaaks vari uzlikt tam bacgraud kraasu vai kaadu bildi fonaa!!!

8.1 Dari taa!! Atkal atver admintop.php un apaksaaa iekopee so!

8.2.1 Fona bilde:

<body background="links_uz_tavu_bildi">
</body>

8.2.2 Bet ieveero bildes izmeerus ja taa buus par lielu vai par mazu tad nebuus diezko smuki!!

8.2.3 Ieteicamie bildes izmeeri platums 275pix augstims200pix

8.3.1 Backgraund kraasa:

<html>
<body bgcolor="#d0d0d0">
</body>
</html>

8.3.2 Kraasu var nomainiit nomainot #d0d0d0 pret kaadu no sejienes

Tas arii viss vari priecaaties !! ;)

Edited by lazda2
Link to comment
Share on other sites

man gan nē ! =[[

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\AppServ\www\top-banotaji.php on line 36

EDIT: šitā rindiņa laikam --- while($row = mysql_fetch_array($result))

EDIT2: ja jums savādāks nosaukums ir amxbaniem tad jāizlabo arī šī rindiņa ;) mysql_select_db("*******", $con);

Edited by ChiganS
Link to comment
Share on other sites

  • 9 months later...
mysql_select_db("amxbans", $con);

Šajā gadījumā no amxbans uz to kura ir tev.

Nu man jau arī ir amxbans DB, taču tik un taa radaaas tas stulbais errrors.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\program files\appserv\www\amxbans\admintop.php on line 36

Admins Bani

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...