====================================================
  : DimKA (: AlexBen) Dle.in.ua
----------------------------------------------------
 : ICQ: 5160909. Email:dimka@dim.co.ua
----------------------------------------------------
  1.1
----------------------------------------------------
 :   Nexgame.
----------------------------------------------------
 Demo: http://test.dim.co.ua/game/
----------------------------------------------------
     
====================================================
  : DLE >= 8.0, PHP>=5.2.0 (     php_prce_json)
----------------------------------------------------
  DLE:
----------------------------------------------------
1)    nextgame   .
1.1)   777  /engine/data/nextgame.config.php (chmod 777)
2)    /templates/Default/      .
2.1)    <link media="screen" href="{THEME}/nextgame/nextgame.style.css" type="text/css" rel="stylesheet" />
3)   /engine/engine.php
:
====================================================
	case "comments" :
		include ENGINE_DIR . '/modules/comments.php';
		break;
----------------------------------------------------
 :
----------------------------------------------------
	case "game" :
		include ENGINE_DIR . '/modules/nextgame/nextgame.php';
    break;
====================================================	
3)   .   .htaccess

 
RewriteEngine On
----------------------------------------------------
 
----------------------------------------------------
#NextGame
RewriteRule ^game(/?)$ index.php?do=game [L]
RewriteRule ^game/page/([0-9+])(/?)$ index.php?do=game&page=$1 [L]
RewriteRule ^game/([0-9]+)(/?)$ index.php?do=game&about_app=$1 [L,QSA]
#NextGame
----------------------------------------------------
4)    http://./nextgame_install.php
   .
       : " NextGame".
   " ", "Id "    .
             .
----------------------------------------------------
5)       NextGame.Ru    " " 
   -              :
"    ,   ,          :"
  ""  "       API.."
   
    getProfile.  URL,     : http://./engine/modules/nextgame/nextgame.xml.php?method=getProfile
URL     (sendMessage): http://./engine/modules/nextgame/nextgame.xml.php?method=sendmessage
URL      (sendInvite):http://./engine/modules/nextgame/nextgame.xml.php?method=sendinvite 
     .
----------------------------------------------------
       : 
http://./game/ -  
http://./?do=game -  
----------------------------------------------------
       
 DLE >= 8.0
  main.tpl      
  : {include file="engine/modules/nextgame/nextgame.new.php"} 
  : {include file="engine/modules/nextgame/nextgame.recommend.php"} 
      block_new_game.tpl  block_recomend_game.tpl(. )

====================================================	
 :
----------------------------------------------------
               /templates/Default/nextgame/
          .
: block_new_game.tpl (block_recomend_game.tpl)-      () .
    :
{title} -   
{logo} -     
[game_link] -      
[/game_link] -       ( [game_link]  [/game_link]
----------------------------------------------------
: game_info.tpl -     .
    :
{title} -   
{logo} -     
{description} -  
{screenshots} -   (. screen.tpl)
{play-link} -  (  Iframe   760px)
----------------------------------------------------
: game.tpl -     .
    :
{title} -   
{logo} -     
{description} -  
{about-link} -    (. http://site.ru/game/42)
----------------------------------------------------
: screens.tpl -  .
    :
{screen-link} -     (.  http://nextgame.ru/images/screen.jpg)
====================================================


