Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

Earlyer today i decided to make the whole site run via HTTPS

this was the code I used.

Add to Functions.php

function secure_page() 

{

if ( !isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) !== 'on' )

{

header ('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);

exit();

}

}
In header.php

where you see <?php at the top add just after




secure_page();



Some problems do come up tho so you need to set the site URL in the config to [url="https://www.yoursite.com/"]https://www.yoursite.com/[/url]  <  I stress the https part.

You can get a SSL certificate from Namecheap.com for $9.99  or if you order Whois Guard you get a free 1 year SSL certificate for $0.99  with the offer code WGspecial or if you transfer or buy a domain you can get a domain for $8.88 with the code SUMMERTIME, with 1 year Whois Guard and a 1 year SSL certificate. (Offers and codes correct as of 9/6/10)
"mistero, post: 63705":
Warning to all I have recently discovered the guy that used to run my site with me is nothing but a feeving **** he stole ALL the donations from site and done a runner changed passwords for paypal Username : iceo1968

email : iceo1968@hotmail.com

Name : Mark Ireland

Location : Rhyl, Wales

Just a warning to one and all about this guy.

p.s. if anyone has him on there site I am in need of his IP Address as he deleted his account before I had chance to get it I want/need it to protect my site

Regards

mistero

Gutted mate, hence I am the only one to deal with donations on my site.  Another site I know went down but quickly because of shared passwords. Change your passwords asap,  this means all your own and server accounts.

In future DO NOT SHARE PASSWORDS,  make sub accounts on servers for coders.  Protect files you don't what changing,  eg backend folder make it access to only 1 user,  if changes need making then its your responsibility to keep up to date,  if you have a paypal.php file make it get settings info from config file in backend etc....  Its my proven way to stay better safe than sorry.

If he cleaver he wont use that account name and sign up again with it.  So watch out for common traits he had like spelling mistakes on forums, comments, etc....

And even if you get his IP address it probably so easy to change by unplugging the modem and plugging it back in.
Welcome back,  wow not been on here much in ages, tracker went down like a whore,  looking at doing a bit of code again,  like to see what you come up with,  and this time don't get banged up.
"daffy, post: 51652":
[spoiler]BOO



nice but i wont find no use for it lol
[/spoiler]

The spoiler tag on these forums are different to the one above.   You may think you don't need it but one day you find out you may need it, just add it to the functions.php let your users decide.
[url="http://www.websiteoutlook.com/www.scifitorrents.net"]http://www.websiteoutlook.com/www.scifitorrents.net[/url]

Net Worth :  $4526

Nope still dont beat you
FLS — 2009-01-16 04:55:58 in v2 Only Mods Complete
Ok heres my mod that works with v2 you may need to format it a little on the staff.php part

Add this to database

ALTER TABLE users ADD(support enum ('yes','no') NOT NULL default 'no');

ALTER TABLE `users` ADD `supportfor` TEXT NOT NULL;
In Account-Details.php



Find


print("<tr><td>Mod Comment</td><td align=left><textarea cols=50 rows=10 name=modcomment>$modcomment</textarea></td></tr>\n");





Add Below



///// First Line Support Mod Start

 $supportfor = htmlspecialchars($user["supportfor"]);

print("<tr><td class=rowhead>Support</td><td colspan=2 align=left><input type=radio name=support value=yes" .($user["support"] == "yes" ? " checked" : "").">Yes <input type=radio name=support value=no" .($user["support"] == "no" ? " checked" : "").">No</td></tr>\n");

print("<tr><td class=rowhead>Support for:</td><td colspan=2 align=left><textarea cols=60 rows=6 name=supportfor>$supportfor</textarea></td></tr>\n");

////// First Line Support Mod Stop[/codebox]



Admin-Modtask.php



Find

[code]mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded',





add after





supportfor='$supportfor', support='$support'

,



staff.php



Find



<?

end_frame();

stdfoot();

?>





Add above



<?

if (!$act) {

$dt = gmtime() - 180;

$dt = sqlesc(get_date_time($dt));

// LIST ALL FIRSTLINE SUPPORTERS

// Search User Database for Firstline Support and display in alphabetical order

$res = mysql_query("SELECT * FROM users WHERE support='yes' AND status='confirmed' ORDER BY username LIMIT 10") or sqlerr();

while ($arr = mysql_fetch_assoc($res))

{

$land = mysql_query("SELECT name,flagpic FROM countries WHERE id=$arr[country]") or sqlerr();

$arr2 = mysql_fetch_assoc($land);

$firstline .= "<tr height=15><td class=embedded><a class=altlink href=account-details.php?id=".$arr['id'].">".$arr['username']."</a></td>

<td class=embedded> ".("'".$arr['last_access']."'">$dt?"<img src=".$pic_base_url."images/button_online.gif border=0 alt=\"online\">":"<img src=".$pic_base_url."images/button_offline.gif border=0 alt=\"offline\">" )."</td>".

"<td class=embedded><a href=account-inbox.php?receiver=".$arr['username'].">"."<img src=".$pic_base_url."images/button_pm.gif border=0></a></td>".

"<td class=embedded>".$arr['supportfor']."</td></tr>\n";

}



begin_frame("Firstline Support");

?>



<table>

<tr>

<td class=embedded colspan=11>General support questions should preferably be directed to these users. Note that they are volunteers, giving away their time and effort to help you.

Treat them accordingly. <br></td></tr>

<!-- Define table column widths -->

<tr>

<td class=embedded width="30"><b>Username</b></td>

<td class=embedded width="5"><b>Active</b></td>

<td class=embedded width="5"><b>Contact</b></td>

<td class=embedded width="400"><b>Support for:</b></td>

</tr>





<tr>

<tr><td class=embedded colspan=11><hr color="#4040c0" size=1></td></tr>



<?=$firstline?>



</tr>

</table>

<?

end_frame();

}

?>



And Upload and Enjoy
IRC !PRE — 2009-01-15 23:53:29 in v2 Only Mods Complete
Hi i`ve come across a TCL script that allows you to do a !pre search on [url="http://pre.scnsrc.net/"]http://pre.scnsrc.net/[/url]

The person who runs the database is a gr8 chap and wants to share the love for his bot.

Now this bot does not announce to be clear and nor does he want you to use a script to constantly query his database to get a announce.

I've been trying to get this bot to work on [url="http://www.torrenttrader.org/index.php?showtopic=7410&hl=eggdrop"]http://www.torrenttrader.org/index.php?sho...&hl=eggdrop[/url] And for the life in me cant get it to work, even read up on the tbdev post.

If you just need a !pre command and no feed,  (or add this to a relayed channel with a modified relay bot which has !pre command)

Download [url="http://pre.scnsrc.net/scripts/tcl/pretimes-scnsrc-v0.6.4.tcl"]http://pre.scnsrc.net/scripts/tcl/pretimes-scnsrc-v0.6.4.tcl[/url] for eggdrop tcl

Download [url="http://pre.scnsrc.net/scripts/mrc/pretimes-scnsrc-mirc-v1.0.mrc"]http://pre.scnsrc.net/scripts/mrc/pretimes...c-mirc-v1.0.mrc[/url] for mirc (less advaned than the eggdrop tcl)

In order for this script to work you need a username and password which you can get by PM'ing shiny on the scnsrcIRC channel in irc.link-net.org

6667 (or ssl 7000). Without a username and password this script is useless!  (you can try the script there as whist you wait)

BTW shiny is sleeping when yanks are awake so if you PM him and he doesnt respond its cause she's sleeping... or eating... again what a fat bast...

Dont ask anyone else for a username and password. That includes other scnsrc staffers. Asking others and annoying them will just mean you wont get one. period.

Commands for the script are simple !pre search.title gives the last result or !pre [-n=x] search.title replace x with a number from 2 to 20 to give you x amount of results.

I`ve edited my own script so it outputs like this if you want to have it look like mine then feel free to use this eggdrop tcl.

[23:51:44] [~TheDoctorUK] !pre [-n=7] Stargate.Atlantis

[23:51:48] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E20.German.Custom.Subbed.720p.HDTV.x264.iNTERNAL-BaCKToRG ] [ released 1d 7h 53m 19s ago. ]

[23:51:50] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E20.HDTV.XVID-aAF ] [ released 5d 18h 32m 10s ago. ]

[23:51:50] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E20.720p.HDTV.x264-CTU ] [ released 5d 20h 0m 22s ago. ]

[23:51:50] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E19.German.Custom.Subbed.720p.HDTV.x264.iNTERNAL-BaCKToRG ] [ released 1w 4d 9h 24m 12s ago. ]

[23:51:50] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E19.720p.HDTV.x264-aAF ] [ released 1w 5d 14h 42m 22s ago. ]

[23:52:41] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E17.German.Custom.Subbed.WS.HDTV.XViD.iNTERNAL-BaCKToRG ] [ released 5w 4d 13h 6m 17s ago. ] [ NUKED: out.of.sync_get.repack ]

[23:52:43] [&TorrentServ]  [PRED]  [ TV ] [ Stargate.Atlantis.S05E17.Infection.PROPER.HDTV.XviD-FQM ] [ released 5w 4d 14h 27m 42s ago. ] [ It was UNNUKED: fine_aAF.release.is.out.of.sync ]

# INFORMATION:

# scnsrc pretimes script

# written by dlx on a cold saturday

# bugfixes in v0.6.3 by dr0pknutz

# predb accounts are being maintained by the scnsrc staff (pre.scnsrc.net)

# if your account gets revoked, youre out of luck.

# i cannot be held responsible for any damage this script causes to your lovelife.

#

# tested on eggdrop v1.6.7+. Windrops wont work, its the devs fault not ours.

#

# future releases should include the !dupe command, and the abilty to add a switch to

# enable PM

#

# VERSIONS:

# v0.1 initial release

# v0.2 added usage option

# v0.3 added nukes/unnukes

# v0.4 dalys added available chans/silent chans. nice work! thx!

# v0.5 added -n= option

# v0.5.1 fixed some types + lots of descriptions and other stuff

# v0.6 auto update checks on rehashes! woohoo

# v0.6.1 added color codes and bold as default

# v0.6.2 adjusted script to fit new tcl location

# v0.6.3 dr0pknutz fixed -n= option only searching first search parameter & fixed url not being encoded bug

# v0.6.4 ImYourVirus added option to change command prefix/suffix



package require http

set scnsrc_pre_version "0.6.4"



# CONFIGURATION



# Put the username you got from shiny here

set pre(username) "username"



# Put the password you got from shiny here

set pre(password) "password"



# By default the bot will respond to the !pre command by prefixing [PRE] to the begining of printed lines. You can remove this or change it to another word or colour etc.

set pre(prefix) "\[PRED\]"



# The channels you wish the bot to listen for the !pre command and then print the results in that channel. You can add as many channels as you want. You can have "" for the bot not to post in public channels at all.

set pre(availchans) "#pre #pre2"



# The channels you wish the bot to listen for the !pre command and then PM the results to the user. You can have "" for the bot not to PM result to users at all.

set pre(quietchans) "#pre3"



# The prefix goes before like '!' or '.'

set pre(cmdprefix) "!"



# The suffix comes after like 'pre'

set pre(cmdsuffix) "pre"



# END CONFIG



bind pub - $pre(cmdprefix)$pre(cmdsuffix) dlx:pretimes:scnsrc



# SCRIPT START



proc dlx:pretimes:scnsrc { nick host hand chan arg } {

global pre

set got_custom_number [regexp {\-n=([0-9]+)} $arg gothit custom_number]

if {$got_custom_number} { set arg [lrange $arg 1 end] }

set arg [string map { " " "%" } $arg]

set arg [string map { "*" "%" } $arg]

set urlEncodeArg [http::formatQuery search $arg]

if {([lsearch -exact $pre(availchans) $chan] == -1) && ($chan != "privmsg")} {return}

if {([lsearch -exact $pre(quietchans) $chan] != -1) || ($chan == "privmsg")} {set chan $nick}

if {$got_custom_number} {

set url "http://scnsrc.net/pre/bots.php?user=$pre(username)&pass=$pre(password)&$urlEncodeArg&results=$custom_number"

} else {

set url "http://scnsrc.net/pre/bots.php?user=$pre(username)&pass=$pre(password)&$urlEncodeArg"

}



set page [http::data [http::geturl $url]]

if { $arg == "" } {

putquick "PRIVMSG $chan :Usage: !pre \[-n=number\]<keywords or releasename>"

} else {

if { $page == "Stay out." } {

putquick "PRIVMSG $chan :PREDB: Your account got revoked. Tough luck fool! This script is now useless!"

} else {

if { $page == "" } { putquick "PRIVMSG $chan :$pre(prefix) Got 0 hits to your query." } else {

foreach release [split $page "\n"] {

if { [string first "^" $release] != -1 } {

set item [split $release "^"]

set releasename [lindex $item 1]

set section [lindex $item 2]

set time [lindex $item 0]

set nuked [lindex $item 3]

set reason [lindex $item 4]

if { $nuked == "" } {

putquick "PRIVMSG $chan :\002 $pre(prefix) \002 \[ $section \] \[ $releasename \] \[ released $time ago. \]"

} elseif { $nuked == "nuked" } {

putquick "PRIVMSG $chan :\002 $pre(prefix) \002 \[ $section \] \[ $releasename \] \[ released $time ago. \] \[\0034 NUKED: $reason \003\]"

} elseif { $nuked == "unnuked" } {

putquick "PRIVMSG $chan :\002 $pre(prefix) \002 \[ $section \] \[ $releasename \] \[ released $time ago. \] \[\0033 It was UNNUKED: $reason \003\]"

}

}

}

}

}

}

}



# UPDATE CHECK



set url "http://www.scnsrc.net/pre/script_version.nfo"

set page [http::data [http::geturl $url]]

regexp {Latest@([0-9\.a-z]+)} $page gotlatest latest

regexp {URI@(.*)} $page goturi uri

regexp {Changelog@(.*)} $page gotlog changelog

if {$latest > $scnsrc_pre_version} {

putlog "scnsrc-pre New version out: v$latest (you have v$scnsrc_pre_version)"

putlog "scnsrc-pre Get it while its hot: $uri"

putlog "scnsrc-pre Changelog: $changelog"

} else {

putlog "scnsrc-pre loaded.. you just got pwned by dlx. and youre up to date (v$scnsrc_pre_version)"

}



# Change the putlog message and the world will end
GOOD LUCK DJHOWARTH — 2009-01-15 23:28:06 in General Chat
Now behave and if your going to be a bad boy here are a couple of rules the surviavl guide i wrote.  In fact its the whole guide.

  • 1. DONT GET CAUGT!

  • 2. IF IN DOUBT REFER TO RULE 1
  • Quick edit to the code i made it look a little tider and and box for the hidden text

    //[spoiler]TEXT[/spoiler]

    $s = preg_replace("/\[spoiler\]((\s|.)+?)\[\/spoiler\]/", "<div class=\"smallfont\" align=\"center\">

    <small><b><blink>Click the button to show/hide Spoiler.</blink><br></b></small><input type=\"button\" value=\"Show\" style=\"width:75px;font-size:10px;margin:0px;padding:0px;\" onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';this.innerText = ''; this.value = 'Hide'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'Show'; }\">

    <div style=\"margin: 10px; padding: 10px; border: 1px inset;\" align=\"left\"><div style=\"display: none;\">\\1</div></div></div>", $s);


    Looks a little better.
    GOOD LUCK DJHOWARTH — 2009-01-15 05:49:28 in General Chat
    Good luck hope you get out with a slaped wrist and new fashon asscory on your ankle.
    Its nice to see that the mod is comming on well,  when will there be a update?

    I`m looking at getting more games asap,  my VIP's are enjoying it and want to give them more.

    Are all the games got stats you have DJ

    I`m thinking of expanding this keeping the games within the site theme as i like to track there movements, i use phpmystats and it give me what popular and not, so i can decide whether or not i should make it VIP, Power User or keep it at member level.
    "djhowarth, post: 50921":
    This Is The Same As The One I Got Here That Has A Few More Games, And The Stats Can Be Hacked, there no point in posting because i got about 200 games to add to this one

    This code is complete tho,  just lost the mostboardaward.php that reminds me to link the png.
    Just installed into V2

    [TTClassic All Versions] ARCADE HACK

    [url="http://www.torrenttrader.org/index.php?showtopic=2608"]http://www.torrenttrader.org/index.php?showtopic=2608[/url]

    Just changed a few bits around and commented out the old bits from each page, works fine.

    I`m going to post a full instructions on how to install in v2.0x in this post. Should be up in about 30 mins after my posting time.

    OK

    Download and unrar and upload this into your root directory where your index.php is.

    [url="http://www.torrenttrader.org/index.php?act=attach&type=post&id=2068"]http://www.torrenttrader.org/index.php?act...ost&id=2068[/url]

    SQL

    CREATE TABLE `flashscores` (

    `ID` int(11) NOT NULL auto_increment,

    `game` int(11) NOT NULL default '0',

    `user` int(11) NOT NULL default '0',

    `level` int(11) NOT NULL default '0',

    `score` int(11) NOT NULL default '0',

    `date` datetime NOT NULL default '0000-00-00 00:00:00',

    PRIMARY KEY  (`ID`)

    ) TYPE=MyISAM AUTO_INCREMENT=13;
    arcade.php




    <?



    require_once("backend/functions.php");

    dbconn(false);

    loggedinonly();



    stdhead("ARCADE");



    begin_frame("Games");

    ?>

    <table align=center width=60% border=2 cellspacing=0 cellpadding=10>

    <div align=center>

    <p><h2><b>TT 2.05 Flash Arcade</b></h2></p>

    <hr>

    <tr>

    <td align=center><b><a href=flash.php?gameURI=asteroids.swf&gamename=Asteroids&gameid=1><img src="flash/asteroids.gif"></img></b><p><b>Play Asteroids</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=breakout.swf&gamename=Breakout&gameid=2><img src="flash/breakout.gif"></img></b><p><b>Play Breakout</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=hexxagon.swf&gamename=Hexxagon&gameid=3><img src="flash/hexxagon.gif"></img></b><p><b>Play Hexxagon</b></p></a></td>

    </tr>

    <tr>

    <td align=center><b><a href=flash.php?gameURI=DAbuddy_latest.swf&gamename=Buddy><img src="flash/Buddy.jpg"></img></b><p><b>Play Interactive Buddy</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=invaders.swf&gamename=Invaders&gameid=4><img src="flash/space.gif"></img></b><p><b>Play Invaders</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=moonlander.swf&gamename=Moonlander&gameid=5><img src="flash/moonlander.gif"></img></b><p><b>Play Moonlander</b></p></a></td>

    </tr>

    <tr>

    <td align=center><b><a href=flash.php?gameURI=pacman.swf&gamename=Pac-Man&gameid=6><img src="flash/pacman.gif"></img></b><p><b>Play Pac-Man</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=psol.swf&gamename=Solitaire&gameid=7><img src="flash/psol.gif"></img></b><p><b>Play Solitaire</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=simon.swf&gamename=Simon&gameid=8><img src="flash/simon.gif"></img></b><p><b>Play Simon</b></p></a></td>

    </tr>

    <tr>

    <td align=center><b><a href=flash.php?gameURI=snake.swf&gamename=Snake&gameid=9><img src="flash/snake.gif"></img></b><p><b>Play Snake</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=stanjames.swf&gamename=Freekick><img src="flash/stanjames.gif"></img></b><p><b>Play James Original Free-kick Challenge</b></p></a></td>

    <td align=center><b><a href=flash.php?gameURI=starcraftfa3.swf&gamename=Starcraft><img src="flash/starcraft.gif"></img></b><p><b>Play Starcraft Flash Action 3</b></p></a></td>

    </tr>

    <tr>

    <td align=center><b><a href=flash.php?gameURI=tetris.swf&gamename=tetris&gameid=10><img src="flash/tetris.gif"></img></b><p><b>Play Tetris</b></p></a></td>

    <td align=center>&nbsp;</td>

    <td align=center>&nbsp;</td>

    </tr>

    </form>

    </div>

    </table>

    <p><center><b><a href=flashscores.php><h3><b>View Highscores</b></h3></a></center></p>

    <p><center><b><a href=flashscores2.php><h3><b>View Highscores stats </b></h3></a></center></p>

    <?

    end_frame();

    stdfoot();

    ?>





    flashscores.php





    <?

    require_once("backend/functions.php");

    dbconn(false);

    loggedinonly();



    stdhead("Flash Scores");



    begin_frame("HighScores");

    ?>

    <div align=center>

    <table width=60% border=1 cellspacing=0 cellpadding=10><tr><td class=text>

    <div align=center><B>HighScores Ranking</B>

    <P>

    <A HREF=flashscores2.php>Go to HighScores Stats</a><P>

    <?

    for($gameID=1;$gameID<11;$gameID++)

    {

    if($gameID==1)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Asteroids</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==2)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Breakout</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==3)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Hexxagon</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==4)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Invaders</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==5)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Moonlander</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==6)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Pacman</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==7)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Solitaire</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==8)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=3 bgcolor=#0099FF><center><B>Simon</B></center></TD></TR>");

    print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Score</TD></TR>");

    }

    if($gameID==9)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=4 bgcolor=#0099FF><center><B>Snake</B></center></TD></TR>");

     print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Niveau</TD><TD>Score</TD></TR>");

    }

    if($gameID==10)

    {

     print("<TABLE WIDTH=100% border=1><TR><TD COLSPAN=4 bgcolor=#0099FF><center><B>Tetris</B></center></TD></TR>");

     print("<TR><TD>Rank</TD><TD WIDTH=75% align=center>Name</TD><TD>Niveau</TD><TD>Score</TD></TR>");

    }

    $result = MySQL_QUERY("SELECT * FROM flashscores GROUP BY user;");

    while($populate = MySQL_FETCH_ARRAY($result))

    {

    if(!isset($totalscore[$populate["user"]]))

    {

    $totalscore[$populate["user"]]=0;

    }

    }

    $result = MySQL_QUERY("SELECT * FROM flashscores WHERE game = ".$gameID." ORDER BY score DESC;");

    while($scores = MySQL_FETCH_ARRAY($result))

    {

      $ranking = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE game = ".$gameID." AND score > ".$scores["score"].";") OR DIE(MySQL_ERROR());

    if($rankrow = mysql_fetch_row($ranking))

    {

    $rank = $rankrow[0]+1;

    }else{

    $rank = 1;

    }

    if($rank<6)

    {

    $totalscore[$scores["user"]]+=(10-(($rank-1)*2));

    }

    }

    $result = MySQL_QUERY("SELECT * FROM flashscores WHERE game = ".$gameID." ORDER BY score DESC LIMIT 5;");

    while($scores = MySQL_FETCH_ARRAY($result))

    {

    $userresult = MySQL_QUERY("SELECT * FROM users WHERE id = ".$scores["user"].";");

    $user = MySQL_FETCH_ARRAY($userresult);

    $username = $user["username"];

      $ranking = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE game = ".$gameID." AND score > ".$scores["score"].";") OR DIE(MySQL_ERROR());

    if($rankrow = mysql_fetch_row($ranking))

    {

    $rank = $rankrow[0]+1;

    }else{

    $rank = 1;

    }

    if($gameID < 9)

    {

     if($scores["user"]==$CURUSER["id"])

     {

    print("<TR style=\"background-color: #BBBBBB\"><TD>".$rank."</TD><TD WIDTH=75%>".$username."</TD><TD><div style=\"text-align:right;width:100%;\">".$scores["score"]."</div></TD></TR>");

     }else{

    print("<TR><TD>".$rank."</TD><TD>".$username."</TD><TD><div style=\"text-align:right;width:100%;\">".$scores["score"]."</div></TD></TR>");

     }

    }else{

     if($scores["user"]==$CURUSER["id"])

     {

    print("<TR style=\"background-color: #BBBBBB\"><TD>".$rank."</TD><TD WIDTH=75%>".$username."</TD><TD>".$scores["level"]."</TD><TD><div style=\"text-align:right;width:100%;\">".$scores["score"]."</div></TD></TR>");

     }else{

    print("<TR><TD>".$rank."</TD><TD>".$username."</TD><TD>".$scores["level"]."</TD><TD><div style=\"text-align:right;width:100%;\">".$scores["score"]."</div></TD></TR>");

     }

    }

    }

    $yourresult = MySQL_QUERY("SELECT * FROM flashscores WHERE game = ".$gameID." AND user = ".$CURUSER["id"]." ORDER BY score DESC LIMIT 1;") OR DIE(MySQL_ERROR());

    if($yourscore = MySQL_FETCH_ARRAY($yourresult))

    {

    $yourhighscore = $yourscore["score"];

    $yourlevel = $yourscore["level"];

      $yourranking = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE game = ".$gameID." AND score > ".$yourhighscore.";") OR DIE(MySQL_ERROR());

    if($ranking = mysql_fetch_row($yourranking))

    {

    $yourrank = $ranking[0]+1;

    }else{

    $yourrank = 1;

    }

    if($yourrank>5)

    {

    if($gameID < 9)

    {

    print("<TR style=\"background-color: #BBBBBB\"><TD>".$yourrank."</TD><TD WIDTH=75% align=center>".$CURUSER["username"]."</TD><TD><div style=\"text-align:right;width:100%;\">".$yourhighscore."</div></TD></TR>");

    }else{

    print("<TR style=\"background-color: #BBBBBB\"><TD>".$yourrank."</TD><TD WIDTH=75% align=center>".$CURUSER["username"]."</TD><TD>".$yourlevel."</TD><TD><div style=\"text-align:right;width:100%;\">".$yourhighscore."</div></TD></TR>");

    }

    }

    }

    print("</TABLE><P>");

    }

    $maxplayed = 0;

    $userplayed = 0;

    $result = MySQL_QUERY("SELECT * FROM flashscores GROUP BY user;");

    while($flashuser = MySQL_FETCH_ARRAY($result))

    {

      $totalresult = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE user = '".$flashuser["user"]."';");

      if($totaluser = MySQL_FETCH_ROW($totalresult))

      {

     if($totaluser[0]>$maxplayed)

     {

    $userplayed = $flashuser["user"];

    $maxplayed = $totaluser[0];

     }

    }

    }

    $result = MySQL_QUERY("SELECT * FROM users WHERE id = ".$userplayed.";");

    if($user = MySQL_FETCH_ARRAY($result))

    {

    $username = $user["username"];

    }else{

    $username = "Unknown?!";

    }

      $yourtotalresult = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE user = '".$CURUSER["id"]."';");

      if($yourtotal = MySQL_FETCH_ROW($yourtotalresult))

      {

     $yourtotalgames = $yourtotal[0];

    }else{

    $yourtotalgames = 0;

    }

    $maxscore=0;

    $maxscoreuser=0;

    $result = MySQL_QUERY("SELECT * FROM flashscores GROUP BY user;");

    while($check = MySQL_FETCH_ARRAY($result))

    {

    if($totalscore[$check["user"]]>$maxscore)

    {

      $maxscore=$totalscore[$check["user"]];

      $maxscoreuser=$check["user"];

    }

    }

    $result = MySQL_QUERY("SELECT * FROM users WHERE id = ".$maxscoreuser.";");

    if($user = MySQL_FETCH_ARRAY($result))

    {

    $usernamescore = $user["username"];

    }else{

    $usernamescore = "Unknown?!";

    }

    $yourscore=$totalscore[$CURUSER["id"]];

    ?>

    You Have Played <?=$yourtotalgames?> Games!<P>

    Your Total Score are <?=$yourscore?>!<P>

    <TABLE>

    <TR><TD><B><CENTER>Most Bored Award</CENTER></B></TD><TD><B><CENTER>Highest Score Award</CENTER></B></TD></TR>

    <TR><TD><CENTER><IMG SRC=images/board.png></CENTER></TD>

    <TD><CENTER>You are the best, make your own cup Yourself...</CENTER></TD></TR>

    <TR><TD><CENTER>Most Bored award goes to: <B><?=$username?></B><BR/>Avec <?=$maxplayed?> games played!<BR/><B>Congratulations!</B></CENTER></TD>

    <TD><CENTER>The highest score award goes to:<B><?=$usernamescore?></B><BR/>With a score of <?=$maxscore?>!<BR/><B>Congratulations!</B/></CENTER></TD></TR>

    </table>

    </td></tr>

    </table>

    </form>

    <br/>

    <center><a href=arcade.php><h2>Return to Games Choice</h2></a></center>

    </div>

    <?

    end_frame();

    stdfoot();

    ?>



    flashscores2.php

    <?
    require_once("backend/functions.php");

    dbconn(false);

    loggedinonly();

    stdhead("TTClassic Flash scores - Stats");

    begin_frame("Scores Stats");

    ?>

    <table width=100% border=1 cellspacing=0 cellpadding=10><tr><td class=text>

    <div align=center><CENTER><I>STILL UNDER DEVELOPMENT</CENTER>

    <?

    $ID=0;

    $result = MySQL_QUERY("SELECT * FROM flashscores GROUP BY user;");

    while($populate = MySQL_FETCH_ARRAY($result))

    {

    $ID++;

    if(!isset($gamesplayed[$ID]))

    {

    $gamesplayed[$ID]=0;

    }

    if(!isset($totalscore[$ID]))

    {

    $totalscore[$ID]=0;

    }

    if(!isset($megascore[$ID]))

    {

    $megascore[$ID]=0;

    }

    if(!isset($losspoints[$ID]))

    {

    $losspoints[$ID]=0;

    }

    if(!isset($averagerank[$ID]))

    {

    $averagerank[$ID]=0;

    }

    if(!isset($user[$populate["user"]]))

    {

    $user[$populate["user"]]=$ID;

    }

    if(!isset($IDofuser[$ID]))

    {

    $IDofuser[$ID]=$populate["user"];

    }

    }

    $result = MySQL_QUERY("SELECT * FROM flashscores ORDER BY score DESC;");

    while($scores = MySQL_FETCH_ARRAY($result))

    {

    $ranking = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE game = ".$scores["game"]." AND score > ".$scores["score"].";") OR DIE(MySQL_ERROR());

    if($rankrow = mysql_fetch_row($ranking))

    {

    $rank = $rankrow[0]+1;

    }else{

    $rank = 1;

    }

    $losspoints[$user[$scores["user"]]]+=$rank;

    if($rank<6)

    {

    $totalscore[$user[$scores["user"]]]+=(10-(($rank-1)*2));

    }

    $megascore[$user[$scores["user"]]]+=$scores["score"];

    }

    $result = MySQL_QUERY("SELECT * FROM flashscores GROUP BY user;");

    while($scores = MySQL_FETCH_ARRAY($result))

    {

    $result2 = MySQL_QUERY("SELECT COUNT(*) FROM flashscores WHERE user = ".$scores["user"].";");

    if($gamesamount = MYSQL_FETCH_ROW($result2))

    {

    $amountofgames = $gamesamount[0];

    }

    $gamesplayed[$user[$scores["user"]]]=$amountofgames;

    }

    arsort ($totalscore);

    reset ($totalscore);

    print("<TABLE><TR><TD COLSPAN=2><B><CENTER>Scores bas

    Not really needed on mailbox TBH,  but block on forums, torrents, shoutbox,  etc...

    Going to add a little bit on account-details.php admin should be able to edit status as well as some users may be noobs and just ask in irc.

    account-details.php

    Find

    Last Seen(Location): <?=htmlspecialchars($user["page"]);?><BR>
    add below




    Parked : <?=htmlspecialchars($user["parked"]);?><BR>





    Find





    $enabled = $user["enabled"] == 'yes';





    add below





    $parked = $user["parked"] == 'yes';







    Find





    print("<tr><td>Account:</td><td align=left><input name=enabled value=yes type=radio" . ($enabled ? " checked" : "") . ">Enabled <input name=enabled value=no type=radio" . (!$enabled ? " checked" : "") . ">Disabled</td></tr>\n");





    add below





    print("<tr><td>Parked: </td><td align=left><input name=parked value=yes type=radio" . ($parked ? " checked" : "") . ">Yes <input name=parked value=no type=radio" . (!$parked ? " checked" : "") . ">No</td></tr>\n");





    admin-modtasks.php

    Find





    $warned = $_POST["warned"];





    add below





    $parked= $_POST["parked"];





    Find





    warned='$warned',





    add after





    parked='$parked',



    that will enable you to park accounts for members who you know will be away and wont get caught by the cleanup.php or any manual cleanup scripts you may run.
    mod works a treat  :D  thanks

    little tip

    i put the .js in themes directory and made a bloon.php  with the bit you swap </head> with in same folder

    then in all headers for all themes just replace </head> with <? include("themes/bloon.php") ?>

    i do a little theme editing so that all themes use same parts so i dont have to edit all themes when i add sumthing  :D

    I just edit a file and all themes change  :D  its not lazy its efficancy!
    Merry Christmas

    Keep up the good work

    From all the Staff @ SciFiTorrents.net
    i`ve written another mod but it ouputs this when i click submit

    ( &TorrentServ )  New News: (  ) Link: ( [url="http://www.scifitorrents.net/comments.php?type=news&id="]http://www.scifitorrents.net/comments.php?type=news&id=[/url] )

    here is the code i`ve used

    Find in admincp.php

    if ($action=="news" && $do=="add"){
    stdhead("News Management");

    navmenu();

    begin_frame("Add News");

    print("<CENTER><form method=post action=admincp.php name=news>\n");

    print("<input type=hidden name=action value=news>\n");

    print("<input type=hidden name=do value=takeadd>\n");

    print("<center><B>News Title:</B> <input type=text name=title><br>\n");

    echo "<BR>".textbbcode("news","body")."<br>";

    print("<br><br><div align=center><input type=submit value='Submit' class=btn></div>\n");

    print("</form><br><br></CENTER>\n");

    end_frame();

    stdfoot();

    add below that

    // start irc announce hack
    if ($IRCANNOUNCE) {

    $msg_newsadd = chr(3)."2 New News: (".chr(3)."10 $title".chr(3)."2 ) Link: (".chr(3)."10 {$site_config['SITEURL']}/comments.php?type=news&id=$id".chr(3)."2 )\r\n";

    $fs = fsockopen($ANNOUNCEIP, $ANNOUNCEPORT, $errno, $errstr);

    if($fs) {

    sleep(1);

    fwrite($fs, stripslashes($msg_newsadd));

    fclose($fs);

    }

    }

    // end irc announce hack

    i think i put it in the wrong place
    ok got script running but it posts 5 lines with the shoutbox mod added and dont work for 15 mins, is there a setting i need to change in my ircd or eggdrop configs to prevent it from being spam filtered?

    **** FIXED *****

    Next Below :)
    If working with a v1 database thats been conveted to v2 you dont need to run the sql query and it works a charm  :blink:   Thanks for another fantastic mod,  maybe this should be in the v2.05 build,  its a fantastic mod!
    Fantastic just what i was looking for!!!
    Users online

    No users online

    Search



    Statistics

      Torrents

    • Tracking: 3
    • Todays torrents: 0
    • Seeders: 0
    • Leechers: 0
    • Peers: 0
    • Downloaded: 89.96 GB
    • Uploaded: 9.86 GB

    • Members

    • We have: 838
    • New today: 0
    • Guest today: 9

    • Online

    • Total online: 9
    • Members: 0
    • Guests online: 9
    • Comments: 3
    • Messages: 1,728