[Release] Bless Scrypt

ReSpEc7

Well-Known Member
Joined
Sep 27, 2008
Messages
1,224
Reaction score
259
Bless Scrypt

След като сложите този скрипт във вашият уеб сайт той ще ви показва колко % е блеса в момента на Darks & Lights

За да подкарате скрипта трябва да напишете вашата информация както следва:

Code:
[LEFT] 
$Server = "localhost";
$User = "SQLUSER";
$Pass = "SQLPASS";


Как изглежда скрипта като цяло:

Code:
<?php
$Server = "localhost";
$User = "SQLUSER";
$Pass = "SQLPASS";
$selected = @mssql_connect($Server,$User,$Pass) or die("Konnte keine Verbindung mit der Datenbank herstellen.");
$result1=mssql_query("SELECT GodBless_Light FROM PS_GameData.dbo.WorldInfo") or die;
$result2=mssql_query("SELECT GodBless_Dark FROM PS_GameData.dbo.WorldInfo") or die;

$row0 = mssql_fetch_array($result1);
$row1 = mssql_fetch_array($result2);


$row0[0]=$row0[0]/100; //100 or 1000 or others value
$row1[0]=$row1[0]/100; //100 or 1000 or others value


echo " <body bgcolor=black topmargin=0>
<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td style=\"width:100px;height:8px;\"><font size=-2 color=FFFFFF face=Tahoma>LightBless:</font>
</td></tr><td><img src=\"light.png\" style=\"width:".$row0[0]."px; height:5px;\" />
</td></tr><tr><td style=\"width:100px;height:8px;\"><font size=-2 color=FFFFFF face=Tahoma>DarkBless:</font>
</td></tr><td><img src=\"dark.png\" style=\"width:".$row1[0]."px;height:5px;\" />
          </td>
</tr>
</table>";
?>



[/LEFT]

Credits: Twilight
 

Attachments

  • bless_dark_light.rar
    6.7 KB · Views: 1