Webmaster общности: Predpriemach.com | SearchEngines.bg

    Online Game – Torrent System

    Автор: kpacuTo

    В този урок ще ви покажа как да си направите Online Games за вашата торент система Btit Torrent Tracker!!!

    Първо правим games.php и слагаме това :

    <?
    require_once ("include/functions.php");
    require_once ("include/config.php");
    dbconn();
    standardheader('Games');
    block_begin("Games");
    global $CURUSER, $STYLEPATH;
    ?>
    
    <?
    print("<table border=1 cellspacing=0 cellpadding=0 align=center><tr>");
    
    print("<td width=502 valign=top>");
    
    print("<table width=502 border=1>");
    ?>
    <style type="text/css">
    <!--
    .style3 {font-size: 12px}
    -->
    </style>
    
    
    
    
    <center>
    <p>Games<br>
    <span class="style3">Please Choose A Game From The Right</span> </p>
    </center>
    <tr><td
    
    <br>
    <tr><td>
    </form> <iframe src="" name="games" width="570" height="570" scrolling="no"></iframe></td></tr>
    <marquee onmouseover=this.stop() onmouseout=this.start() scrollAmount=2.0 direction=across width='100%' height='75'>
    </table></td>
    
    <?
    
    //print("</table></td>");
    print("<td width=150 valign=top><table border=1>");
    
    print("<tr><td class=colhead width=150 height=18>$CURUSER[username]'s Avatar</td></tr>");
    if ($CURUSER[avatar])
    print("<tr><td><img width=125 src=" . htmlspecialchars($CURUSER["avatar"]) . "></td></tr>");
    else
    print("<tr><td><img width=125 src=pic/default_avatar.gif></td></tr>");
    print("<tr><td class=colhead width=150 height=18>Games</td></tr>");
    
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/commando.swf target=games>Play commando</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/sonic.swf target=games>Play sonic</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/battlefield2.swf target=games>Play battlefield2</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/dirtbike.swf target=games>Play dirtbike</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/kittencannon.swf target=games>Play kittencannon</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/supermariobros.swf target=games>Play supermariobros</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/miniputt.swf target=games>Play MiniPutt</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/basejumping.swf target=games>Play Base Jumping</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/gridlock.swf target=games>Play Gridlock</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/flashpoker.swf target=games>Play Poker</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/3dworm.swf target=games>Play 3D Worm</td></tr>");
    print("<tr><td align=left> <a href=http://gamesloth.us/hosted/classicbreakout.swf target=games>Play Breakout</td></tr>");
    print("</table>");
    print("</td></tr></table>");
    
    block_end();
    stdfoot();
    ?>

    После :

    Отворете blocks/mainmenu_blocks.php

    Намерете :

    if ($CURUSER["can_upload"]=="yes")
    print("<td class=header align=center><a href=upload.php>".MNU_UPLOAD."</a></td>\n");

    И После Сложете :

    if ($CURUSER["view_torrents"]=="yes")
    print("<td class=header align=center><a href=games.php>Games</a></td>\n");

    Успех!

    Оставете коментар