
 .  WAP .

http://blade.fklab.com
blade17@rambler.ru


:
1.    ,  PHP   ().
2.  1.htaccess  .htaccess ( ).
3.    game.php ($admin),    forum.php ($admin_login)   ()
4.   $gm_id  game.php    (      ..). ( ,      ). !     ,            !
4.     game.php.        WAP   - : "   ", "  ", " 416"  ..,        windows-1251 (     ). ,      ,    .
5.      http://blade.fklab.com  ,   blade17@rambler.ru (,       ).
6.      (    game.php)  ,  PHP        ( ,      ).    FTP  Internet Explorer,             6 .   ,     6,        -    ,          . 
7.          admin   .        ,      ,       .

 :
game.php 	-  
*.dat		-    PHP 
f_blank.dat	-   ,       .
f_speakall.dat	-    NPC.
game.dat	- ,         .     wap 
loc_offline.dat	-     ,       
flag_update	-    ,      " ,    ".     ,    -  .
flag_debug	-    ,       Internet Explorer ( ,   ,    ,     ,   WML   HTML).

! 
     .  ,          game.dat,   -         (   ,        ).

:
1.     ,    12    :    2     ,            .
2.   Internet Explorer game.php?gm=XXX,  XXX -  $gm_id,     game.php.            (  ).        flag_update (  "set flag"),       . !      eval,      $gm_id,     ,       PHP    ,         ..


     ... ,  ...             game.php,    .          serialize().       ,   ,    ..,    .    -     , ,  NPC on_die, on_speak  ..,    on_take, on_use, on_drop  ..          php ,    eval() ,        game.php!       - ,        ,  ,    ..,        on_use       game.php.

      -       :    400 ,    game.php 130 .       wap     (  game.php)      ,        (   300   100%).       .

        -         "|"   implode(): $item = "|1|100".       ,   (1 )     (100 ).           $item=split("\|",$item).    $item[2].

       ,       .     ,   ..     ,       eval(implode('',file("f_filename.dat"))).             .         40 ,    game.php  40 ,          -   300     40%.

,      ,                    ,        ,    .       ,     (  )       2- ,   ,       2- .

     300-400 ,     .      ,       ,         ,    ..         -             ...          ,       . 

-,   ,       -   ,     (, ),    ... ,    :

1.      ,        ,   "|".           (     ,      ).
2.   " PHP"  http://php.spb.ru    (   70%):  array_keys()   foreach(),    ,      5   ..
3.   ,    ,     NPC.

            ,         (shared memory),          ...   PHP     ( shared memory  Windows  ).   MySQL HEAP ,     ,           ..

     PHP

   Internet Explorer   game.php?gm=xxx,   -   , .   game.php,        (,   ).  View   ,     ,   Eval       PHP (   eval()).        ,      "set flag",     ,       (  "delete flag").
    : ,    $game["test"].   $game["test"]["new"]="hello";         "test",  "hello". ..            ..   PHP!
      ,  unset($game["test"]["new"]);    "new"   "test".     "test", : unset($game["test"]);   .

 

    ,       .          ,    ,  -     .         ,       . 

          (  "user.", : user.xxx),  NPC (npc.xxx),  (npc.guard.xxx),  (npc.crim.xxx)   (item.xxx).     (item.weapon.),  (item.food.xxx)  .., .   _SDK.txt.

      _SDK.txt     _templates.txt.    , ,   .. -  .  f_blank.dat       NPC,   .   ,      .


!





