Glaciar-Strike
Bun Venit pe Glaciar-Strike.Comunity ...
V-as ruga sa va faceti cont , sa incercati unele subiecte si sa lasati mesaje Smile
Dar cel mai important este sa va distrati Smile


Counter-Strike
 
AcasaCalendarFAQCautareMembriGrupuriInregistrareConectare

Distribuiţi | 
 

 Scripturi Website

In jos 
AutorMesaj
pustiul
Admin
Admin
avatar

masculin Mesaje : 216
Data nasterii : 14/09/1994
Data de inscriere : 22/02/2011
Varsta : 24
Localizare : Baia-Sprie
Joburi/Distractii : CS , Sa-mp , Scoala
Stare de spirit : Owner

MesajSubiect: Scripturi Website   Lun Mar 21, 2011 7:51 am

Server Status:

Cod:
< ?
$fp = @fsockopen("127.0.0.1", 55901, $errno, $errstr, 1);
if($fp >= 1){
echo '<font color=00FF00>Online</font>';}
else{ echo '<font color=990000>Offline</font>'; }
?>


Nr. de useri banati:

Cod:
< ?php $sql = mssql_query("SELECT count(*) FROM Character where ctlcode=1");
echo mssql_result($sql, 0, 0); ?>


Nr. de useri Online:

Cod:
<? Php
$ Sql = mssql_query ("SELECT count (*) FROM WHERE MEMB_STAT ConnectStat = 1");
if (mssql_result ($ sql, 0, 0) <= 50) (/ / this script to set the color of the numbers
echo "<font color=black>" / / 00-50 is black 50-100 is orange
mssql_result echo ($ sql, 0, 0);) / / and up to 100 turns red
elseif (mssql_result ($ sql, 0, 0)> = 50 AND mssql_result ($ sql, 0, 0) <= 100) (
echo "<font color=FF6600>";
mssql_result echo ($ sql 0, 0);)
elseif (mssql_result ($ sql, 0, 0)> 100) (
echo "<font color=990000>";
mssql_result echo ($ sql, 0, 0);)>


Nr. de conturi:

Cod:
< ?php
$tacountresult= mssql_query("select memb___id from MEMB_INFO");
$tacount = mssql_num_rows ($tacountresult);
?>
< ?php print "$tacount"; ?>

Nr. de caractere :

Cod:
< ?php
$tcharsresult = mssql_query("select Name from Character");
$tchars = mssql_num_rows ($tcharsresult);
?>
< ?php print "$tchars"; ?>


Arata timpul de la eventurile BC si DS:

Cod:
<Td width = "134" class = "text" bgcolor = "# 000000"> <span class="texto"> Devil Square: </ span> <span class="textoR"> <span id=timespan> </ span>
<script>
var czas;
<?
echo "var minute =". date ("i ").";";
echo "var sekund =". date ("s ").";";
?>
/ / Document.write (55-minute);
danagodzina = minute * 60 + sekund;
changetimea function ()
(
danagodzina = danagodzina + 1;
czas = 55 * 60 - danagodzina;
min = Math.floor (czas/60)
czas% sec = 60;
if (czas <0)
(
document.getElementById ("timespan"). innerHTML = "<? echo 'Aberto';?>";
)
else
(
if (min <10) min = "0" + min;
if (sec <10) sec = "0" + sec;
document.getElementById ("timespan"). innerHTML = min + ":" + sec;
)
window.setTimeout ("changetimea ()", 1000);
)
changetimea ();
</ script>
</ Font> </ td>
</ Tr>
<Tr>
<Td width = "115"> <font style=""> <span class="texto"> Blood Castle: </ span> <span class="textoR"> <span id=timespan2> </ span>
<script>
<?
echo "var minuta2 =". date ("i ").";";
echo "var sekunda2 =". date ("s ").";";
?>
danagodzina2 = minuta2 * 60 + sekunda2;
if (minuta2> 30) dopelnej = 3600 - danagodzina2;
=-danagodzina2 dopelnej else;
dobc = dopelnej + 25 * 60;
changetimea2 function ()
(
dobc = dobc - 1;
if (dobc <-5 * 60)
(
dobc = 3600 + 30 * 60;
dobc = dobc-1;
)
min2 = Math.floor (dobc/60)
sec2 = dobc% 60;
if (min2 <0)
(
document.getElementById ("timespan2). innerHTML =" <? echo 'Aberto';?> ";
)
else
(
if (min2 <10) min2 = "0" + min2;
if (sec2 <10) sec2 = "0" + sec2;
document.getElementById ("timespan2). +":"+ innerHTML = min 2 sec2;
)
window.setTimeout ("changetimea2 ()", 1000);
)
changetimea2 ();
</ script>

Reset:

Cod:
<? Php
$ Alogin = sa;
$ Apassimento = "SQL password";
$ Db = 'MuOnline';
$ Host = "Your IP Here";
$ Msconnect = mssql_connect ($ host, $ alogin, $ apassimento);
$ Msdb = mssql_select_db ("$ db", $ msconnect)
$ Query = 'select Name, Class, cLevel, Strength, Dexterity, Vitality, Ener gy, LevelUpPoint, CtlCode, resets
Character from order by resets desc cLevel desc ';
$ Result = mssql_query ($ query);
echo '<html>';
echo "<head> \ n";
echo '<body>';
echo '<font face=Verdana>';
echo '<center> <table cellSpacing=1 width=100% align=center>';
echo '<tr>
<Td bgcolor = F5F5F5> <center> <b> Rank </ td>
<Td bgcolor = F5F5F5> <b> Character </ td>
<Td bgcolor = F5F5F5> <b> Class </ td>
<Td bgcolor = F5F5F5> <b> Level </ td>
<Td bgcolor = F5F5F5> <b> Strength </ td>
<Td bgcolor = F5F5F5> <b> Agility </ td>
<Td bgcolor = F5F5F5> <b> Vitality </ td>
<Td bgcolor = F5F5F5> <b> Energy </ font> </ td>
<Td bgcolor = F5F5F5> <b> Resets </ font> </ td> ';
/ / Here you put the number of rank
/ / In this case top 100
/ / If you want to change you're just swap the 100 for the desired number
for ($ i = 0, $ i <100; + + $ i)
(
$ Row = mssql_fetch_row ($ result);
$ Personage = htmlentities ($ row [0]);
echo '<tr> <td width=5% bgcolor=F5F5F5> <center> <b>';
echo $ i + 1;
echo 'º </ td> <td width=21% bgcolor=F5F5F5> <table>';
echo $ character;
echo '</ table> </ td> <td width=19% bgcolor=F5F5F5>';
if ($ row [8] == 8) (
echo 'Game Master';
)
else (
if ($ row [1] == 0) (
echo 'Dark Wizard';
)
if ($ row [1] == 1) (
echo 'Soul Master';
)
if ($ row [1] == 16) (
echo 'Dark Knight';
)
if ($ row [1] == 17) (
echo 'Blade Knight';
)
if ($ row [1] == 32) (
echo 'Elf';
)
if ($ row [a] == 33) (
echo 'Muse Elf';
)
if ($ row [1] == 48) (
echo 'Magic Gladiator';
)
if ($ row [1] == 64) (
echo 'Dark Lord';
)
)
echo '</ td> <td width=8% bgcolor=F5F5F5>';
echo $ row [2];
echo '</ td> <td width=9% bgcolor=F5F5F5>';
echo $ row [3];
echo '</ td> <td width=9% bgcolor=F5F5F5>';
echo $ row [4];
echo '</ td> <td width=9% bgcolor=F5F5F5>';
echo $ row [5];
echo '</ td> <td width=9% bgcolor=F5F5F5>';
echo $ row [6];
echo '</ td> <td width=9% bgcolor=F5F5F5>';
echo $ row [9];
echo '</ td> </ tr>';
)
echo '</ table>';
echo '</ body>';
echo '</ html>';
$ Conn = mssql_close ();
?>.
Sus In jos
Vezi profilul utilizatorului http://glaciar-strike.forumers.ro
 
Scripturi Website
Sus 
Pagina 1 din 1

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Glaciar-Strike :: Mu Online :: Tutoriale :: Tutoriale Site-
Mergi direct la:  
Parteneri : Image and video hosting by TinyPicImage and video hosting by TinyPicClaudiu Forum Virtual-Server Counter Strike. Click Here! Glaciar-Strike Top66 StatisticiTradeMarkImage and video hosting by TinyPic
creeaza un forum | © phpBB | Forum gratuit de suport | Contact | Semnaleaza un abuz | Poti avea un blog gratuit