Jump to content
GIGN Forum

Top Admins!


Recommended Posts

ta ir mana pamaciba :P

<?php
############################
# uber pro                 #
# script by duplets, visit #
# http://cs.hackers.lv     #
#                          #
############################
// Ievadam datus, lai varam sakonekteeties pie mysql DB
mysql_connect("localhost", "root", "pass") or die(mysql_error());
mysql_select_db("amxbans") or die(mysql_error());

// Panjemam visus datus no noteiktaas tabulas shajaa gadijumaa amx_amxadmins
$result = mysql_query("SELECT * FROM amx_amxadmins") 
or die(mysql_error());  

echo "<table border='1'>";
echo "<tr> <th>Admins</th> <th>Pieejamie flagi</th> </tr>";
while($row = mysql_fetch_array( $result )) {
   // Izvadam datus aaraa no tabulas
   echo "<tr><td>";
   if ($row['username'] > 1) { 
   echo "". $row['nickname'] ." (". $row['username']  .")";
   } else {
   echo $row['username'];
   }
   echo "</td><td>"; 
   echo $row['access'];
   echo "</td></tr>"; 
} 
echo "</table>";
?>

veidotajs DUPLETS

+ nakosreiz mekle labak

es ierakstiju servha AMX ADMINS UN OTRAJA LAPA ATRADA!

Ups parpratu tavu domu

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

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

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

<?php

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

$con = mysql_connect("hosts","lietotajvards","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 10"); // 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);
?>

Edited by tipa elvis
Link to comment
Share on other sites

bet skriptu iedeva duplets.

Mana pamaciba bija uzraktiti vairaki varianti par amx admins!

aha, pasaki vēl ka tu to otro arī pats taisīji, tu vienkārši uzspiedi uz linka ko es iedevu, un tad tur ļevi nokopēji codu, pat neielikot speciālajos tagos..ēzels#2

Link to comment
Share on other sites

<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>

Atveras sitais kad uztaisiju pec pamacibas + protams tos ilzaboju msql bet spiezos admintop atveras kods.

Link to comment
Share on other sites

:superlol:

piekam es editoeju savu postu pirms tu iedevi to linku uz adresi!

1cfac37e0d800cf4e82e3900925c1bce.jpg

o rly?

un nesauc mani par loh**, tu mazgadīgais āmar!

Es nekur neredzu ka tur kaut kas līdzinātos pamācībai, tam scriptam jau iekšā ir viss sarakstīts kur kā jābūt. Un ja gribi vēl teikt ka tas biji tu kas rakstīja pamācību tad būtu scripted by duplets tutorialized by tipo_elvis, tākā mēs visi gribam būtu kruti zem citu pamācībām un scriptiem...scid scid beng beng nigga!

Link to comment
Share on other sites

Es pec ta vel editeju :lolza:

Uztaisiju to pamacibu tiem kas vispar neko nesaprot,mana paamciba bija detalizeta,un bishki izlabota ,taja radija gan admina niku gan flegus gan ip adresi (to es pats uztaisju lai visu kopa rada)

Nenologsu ka skripts ir dupleta ,un tiesi tadel sava posta baigas uzraktiju ka skripts pieder dupletam. :thumbsup:

Un spriezot pec tava teksta ,un centibas pieradit ka tev ir taisniba (tur kur ta nav) es varu secinat ka tev pasam ir ne vairak ka 10 gadi

Sorry par offtopic!

Link to comment
Share on other sites

o rly?

un nesauc mani par loh**, tu mazgadīgais āmar!

Es nekur neredzu ka tur kaut kas līdzinātos pamācībai, tam scriptam jau iekšā ir viss sarakstīts kur kā jābūt. Un ja gribi vēl teikt ka tas biji tu kas rakstīja pamācību tad būtu scripted by duplets tutorialized by tipo_elvis, tākā mēs visi gribam būtu kruti zem citu pamācībām un scriptiem...scid scid beng beng nigga!

haha gl elvi :P

Link to comment
Share on other sites

Nu gan gudri , izlasiji manu ieprieksejo postu?

Es to pirmo postu editeju kadas 10 reizes!

Es uzskatu ka so topicu var slegt ,jo te jau viss sak aizziet spama!+ topika autors sanjema atbildi

Edited by tipa elvis
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...