Bravo List
Register
Go Back   > Bravo List > P2P > Forum > Downloads
Reply
Thread Tools
  #1  
Old 26th June 2013, 12:33
gaba89 gaba89 is offline
Member
 
Join Date: Apr 2012
Hungary
Posts: 12
Default New Generation torrent
NewGeneration Torrent v1.2
Attached Files
File Type: zip ngt_v1.2.zip (12.99 MB, 291 views)
Reply With Quote
The Following 3 Users Say Thank You to gaba89 For This Useful Post:
gogo999 (26th June 2013), ND47 (12th July 2014), romano1 (28th July 2013)
  #2  
Old 26th June 2013, 13:16
joeroberts's Avatar
joeroberts joeroberts is offline
BT.Manager Owner
 
Join Date: Jan 2008
United States
Posts: 2,113
Default
attention

Attention

this Code needs a little securing




Your Way open for a sql injection on this so bad
PHP Code:
if ($_GET["act"] == "Arcade") {

    switch (
$_POST['gname'])
    {
        case 
"asteroids":
            
$game 1;
            
$level 1;
            
$score $_POST['score'];
            break;

        case 
"breakout":
            
$game 2;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"hexxagon":
            
$game 3;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"invaders":
            
$game 4;
            
$level 1;
            
$score $_POST['score'];
            break;

        case 
"moonlander":
            
$game 5;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"pacman":
            
$game 6;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"psol":
            
$game 7;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"simon":
            
$game 8;
            
$level 1;
            
$score $_POST['gscore'];
            break;

        case 
"snake":
            
$game 9;
            if(
$_POST['levelName'] == "LEVEL: SLUG"$level 1;
                elseif(
$_POST['levelName'] == "LEVEL: WORM"$level 2;
                    elseif(
$_POST['levelName'] == "LEVEL: PYTHON"$level 3;
            
$score $_POST['score'];
            break;

        case 
"tetris":
            
$game 10;
            
$level $_POST['level'];
            
$score $_POST['gscore'];
            break;
    }

    
db::run("SELECT count(*), min(score) FROM flashscores WHERE game = $game");
    
$arr db::firstrow(MYSQL_NUM);
    if (
$arr[0] < 15 or $arr[1] < $score) {
        
db::run("INSERT INTO flashscores (game , user , level , score, date) VALUES ('".$game."', '".$CURUSER['id']."', '".$level."', '".$score."', NOW())");
        if (
$arr[0] >= 15
            
db::run("DELETE FROM flashscores WHERE game = $game AND score = $arr[1]");
        
header("Location: games.php?gametype=7&act=win&gameid=$game");
    } else
        
header("Location: games.php?gametype=7&act=notwin&gameid=$game");

    die;
}

//Szavazas megkapása

if (is_valid_id($_GET["pollid"])) {
    
$choice $_GET["choice"];
    
$pollid $_GET["pollid"];
    
    
header("Content-Type: text/html; charset=iso-8859-2");

    if ((
$choice 100) || !is_numeric($choice) || !(round($choice) == $choice))
        die(
"Rossz szavazat!");

    if (!
db::count("polls WHERE id = $pollid"))
        die(
"Rossz szavazás ID.");

    if (
db::count("pollanswers WHERE pollid = $pollid and userid = ".$CURUSER['id']))
        die(
"Már szavaztál ebben a szavazásban.");

    
db::run("INSERT INTO pollanswers VALUES($pollid, ".$CURUSER['id'].", $choice)");
    
    if (!
db::$aff)
        die(
"Hiba lépett fel.");

    
db::run("UPDATE users SET new_poll = 0 WHERE id = ".$CURUSER["id"]);
    
bonus("+2");

    
polltable($pollid);

    die;

__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in BT.Manager™ forum
My Current Demo is here http://demo.btmanager.org/
Reply With Quote
The Following User Says Thank You to joeroberts For This Useful Post:
romano1 (28th July 2013)
  #3  
Old 26th June 2013, 13:36
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
Screen or something?
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
romano1 (28th July 2013)
Reply

Tags
generation , torrent


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 09:50. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.