Jump to content
php.lv forumi

Pabeigt speli


Chupakabra

Recommended Posts

Intereses pēc atvilku to arhīvu un papētīju. Nu kods ir labi strukturēts un vieta reklāmām ir paredzēta. Bet pārējais...

Viss kontents statisks. Vietās, kur ir it kā dinamisks kontents, tiek inklūdoti praktiski statiski faili. Piemēram, login forma:

<form action = "login.php" method = "POST"><center>
   <br>
   <br>
   <table cellpadding = "0" cellspacing = "0" border = "0" width = "90%">
       <tr><td align = "center" colspan = "3"><?php echo "$serverselect"; ?>
               <br>
               <br></td>
       </tr>
       <tr>
           <td align = "center"
               valign = "top"><img src = "img/race1.gif"
                                   alt = "<?php echo "$race1"; ?>"></td>
           <td valign = "top">
               <table width = 100% border = 0 align = center>
                   <tr><td><a style = "color:orangered"
                              href = "./login.php"><?php echo "$server1"; ?></a></td>
                   </tr>
               </table></td>
           <td align = "center"
               valign = "top"><img src = "img/race2.gif" alt = "<?php echo "$race2"; ?>"></td>
       </tr>
   </table>
</form>

Kur mainīgos iegūstam language.php skriptā:

$serverselect  ="Select Server";
//Name Text
$race1         ="Vampire";
$race2         ="Werewolf";
$server1       ="Server 1";

Protams, neeksistējošos login mainīgos nekāds skripts arī nenolasa. Datu bāzes aizpildīšanas SQL failā arī zili brīnumi.... http://paste.php.lv/b168b16de47ed73cf8bda34192584713?lang=sql

Ko lai saka... Tur tā spēle iesākta ir, visticamāk no esošas spēles nodumpots html kods, ielikts failos, un tad minimāls php kods pielikts...

Principā visa spēle jātaisa no jauna. Man liekas, ātrāk varētu atrast jau gatavu skriptu - visādām modifikācijām "Vilkači pret Vampīriem" jābūt pieejamām.

Link to comment
Share on other sites

INSERT INTO users VALUES("2", "ScriptSide", "ScriptSide", "", "", "Styleturk@inbox.com", "1", "", "", "1", "", "0", "1", "", "", "", "0", "2004-11-24", "2", "1111010324", "2005-03-16", "23:58:44", "9");

 

2005!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...