runnable and ranking page with new ugrades

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Enthusiast eqoxsykes is offline
    MemberRank
    Apr 2010 Join Date
    ArgentinaLocation
    29Posts

    runnable and ranking page with new ugrades

    so here is the admin panel with an add by me to change the user grades
    when you change a ugrade you could see at the ranking page and inside the game with this runnable

    (runnable&AdminPanel)
    MEGAUPLOAD - The leading online storage and file delivery service


    also you have to open your "_functions.php" or "functions.php" in your www folder and search for a lines like these:

    Code:
    case 255:
    return "<font color='#FF0000'>$name</font>";
    break;
    case 254:
    return "<font color='#00FF00'>$name</font>";
    break;
    so here is when you add the colours on ranking page,

    here:

    Code:
        {
            case 255:
                return "<font color='#F71824'>$name</font>";
            break;
            case 254:
                return "<font color='#00FF00'>$name</font>";
            break;
            case 253:
                return "<font color='#1F1B1B'>$name</font>";
            break;
            case 252:
                return "<font color='#FF8040'>$name</font>";
            break;
            case 1:
                return "<font color='#131A7A'>$name</font>";
            break;
            case 2:
                return "<font color='#FFFBFB'>$name</font>";
            break;
            case 3:
                return "<font color='#C7129F'>$name</font>";
            break;
            case 4:
                return "<font color='#80797E'>$name</font>";
            break;
            case 5:
                return "<font color='#883974'>$name</font>";
            break;
            case 6:
                return "<font color='#38ACE6'>$name</font>";
            break;
            case 7:
                return "<font color='#4FC3C7'>$name</font>";
            break;
            case 8:
                return "<font color='#E0EC3D'>$name</font>";
            break;
            case 9:
                return "<font color='#F99822'>$name</font>";
            break;
            case 10:
                return "<font color='#81541C'>$name</font>";
            break;
            case 11:
                return "<font color='#D985DB'>$name</font>";
            break;
            default:
                return $name;
            break;
        }
    }
    or if you have the nolife_x website here is my _functions.php

    Code:
    <?
    @session_start();
    function makepoststring($string) {
        if (strlen($string) > 17){
            return ucfirst(substr($string,0,17) . "...");
        }else{
            return ucfirst($string);
        }
    }
    
    function clean($value)
    {
            $check = $value;
    
            $search = array('chr(', 'chr=', 'chr%20', '%20chr', 'wget%20', '%20wget', 'wget(',
            'cmd=', '%20cmd', 'cmd%20', 'rush=', '%20rush', 'rush%20',
            'union%20', '%20union', 'union(', 'union=', 'echr(', '%20echr', 'echr%20', 'echr=',
            'esystem(', 'esystem%20', 'cp%20', '%20cp', 'cp(', 'mdir%20', '%20mdir', 'mdir(',
            'mcd%20', 'mrd%20', 'rm%20', '%20mcd', '%20mrd', '%20rm',
            'mcd(', 'mrd(', 'rm(', 'mcd=', 'mrd=', 'mv%20', 'rmdir%20', 'mv(', 'rmdir(',
            'chmod(', 'chmod%20', '%20chmod', 'chmod(', 'chmod=', 'chown%20', 'chgrp%20', 'chown(', 'chgrp(',
            'locate%20', 'grep%20', 'locate(', 'grep(', 'diff%20', 'kill%20', 'kill(', 'killall',
            'passwd%20', '%20passwd', 'passwd(', 'telnet%20', 'vi(', 'vi%20',
            'insert%20into', 'select%20', 'fopen', 'fwrite', '%20like', 'like%20',
            '$_request', '$_get', '$request', '$get', '.system', 'HTTP_PHP', '&aim', '%20getenv', 'getenv%20',
            'new_password', '&icq','/etc/password','/etc/shadow', '/etc/groups', '/etc/gshadow',
            'HTTP_USER_AGENT', 'HTTP_HOST', '/bin/ps', 'wget%20', 'uname\x20-a', '/usr/bin/id',
            '/bin/echo', '/bin/kill', '/bin/', '/chgrp', '/chown', '/usr/bin', 'g\+\+', 'bin/python',
            'bin/tclsh', 'bin/nasm', 'perl%20', 'traceroute%20', 'ping%20', '.pl', 'lsof%20',
            '/bin/mail', '.conf', 'motd%20', 'HTTP/1.', '.inc.php', 'config.php', 'cgi-', '.eml',
            'file\://', 'window.open', '<script>', 'javascript\://','img src', 'img%20src','.jsp','ftp.exe',
            'xp_enumdsn', 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', 'nc.exe', '.htpasswd',
            'servlet', '/etc/passwd', 'wwwacl', '~root', '~ftp', '.js', '.jsp', 'admin_', '.history',
            'bash_history', '.bash_history', '~nobody', 'server-info', 'server-status', 'reboot%20', 'halt%20',
            'powerdown%20', '/home/ftp', '/home/www', 'secure_site, ok', 'chunked', 'org.apache', '/servlet/con',
            '<script', 'UPDATE', 'SELECT', 'DROP', '/robot.txt' ,'/perl' ,'mod_gzip_status', 'db_mysql.inc', '.inc', 'select%20from',
            'select from', 'drop%20', 'getenv', 'http_', '_php', 'php_', 'phpinfo()', '<?php', '?>', 'sql=');
    
            $value = str_replace($search, '', $value);
            $value = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$value);
            $value = trim($value);
            $value = strip_tags($value);
            $value = addslashes($value);
            $value = str_replace("'", "''", $value);
    
            if( $check != $value )
            {
                $logf = fopen("logs/Hacklogs.txt", "a+");
                fprintf($logf, "Date: %s IP: %s Code: %s, Fixed: %s\r\n", date("d-m-Y h:i:s A"), $_SERVER['REMOTE_ADDR'], $check, $value );
                fclose($logf);
    alertbox("Your IP has been saved. Admin will check it soon!","index.php");
            }
    
            return( $value );
    }
    
    function mssql_query_logged($query)
    {
    
        //$f = fopen("logs/Querylogs.txt", "a+");
        //fprintf($f, "%s (mod_%s.php) - [AID=%s] %s [%s] - %s\r\n", $_SERVER[PHP_SELF],$_GET['do'], $_SESSION['AID'],  date("d-m-y - H:i:S"), $_SERVER['REMOTE_ADDR'], $query);
        //fclose($f);
    
        return mssql_query($query);
    }
    
    function ChangeTitle($title) {
        echo "<script language='JavaScript'>
    document.title='".$title."';
    </script>";
    }
    
    function mTrim($cadena){
        return str_replace(" ","",$cadena);
       }
    
    function ErrorBox($data) {
        return "                               <tr>
    											<td width='434' colspan='2'>
    											<div align='center'>
    												<table border='1' width='90%' height='90%' style='border-collapse: collapse' bordercolor='#FF0000' bgcolor='#FF9191' class='errorbox'>
    													<tr>
    														<td>
    														<table border='0' width='100%' height='100%' style='border-collapse: collapse'>
    															<tr>
    																<td valign='bottom' width='434' colspan='2'>
    														<img border='0' src='images/icon_error.gif' width='16' height='17'>
    														<font size='1'><b>An error occurred!</b></font></td>
    															</tr>
    															<tr>
    																<td width='19'>&nbsp;</td>
    																<td width='434' valign='top'><b>$data</b></td>
    															</tr>
    														</table>
    														</td>
    													</tr>
    												</table>
    											</div>
    											</td>
    											<td width='8'>&nbsp;</td>
    										</tr>
    										<tr>
    											<td width='145'>
    											&nbsp;</td>
    											<td width='289'>
    											&nbsp;</td>
    											<td width='8'>&nbsp;</td>
    										</tr>";
    }
    
    function msgbox($text, $url){
    echo "<body  bgcolor='#000000'><script>alert('$text');document.location = '$url'</script></body>"; 
    }
    
    
    
    function re_dir($url){
    echo "<body  bgcolor='#000000'><script>document.location = '$url'</script></body>";
    
    }
    
    function MakePercent($Value, $Total)
    {
        return ($Value * $Total) / 100;
    }
    
    function GetKDRatio($kills, $deaths)
    {
        $total = $kills + $deaths;
    
        $percent = @round((100 * $kills) / $total, 2);
    
        if($kills == 0 && $deaths == 0)
        {
            return "0/0 (100%)";
        }else{
            return sprintf("%d/%d (%d%%)", $kills, $deaths, $percent);
        }
    }
    
    function GetCharNameByCID($cid)
    {
        $ncid = clean($cid);
        $a = mssql_fetch_assoc(mssql_query("SELECT Name FROM Character(nolock) WHERE CID = '$ncid'"));
        return $a[Name];
    }
    
    function FormatCharName($cid)
    {
        $ncid = clean($cid);
        $res = mssql_fetch_row(mssql_query("SELECT ac.UGradeID, ch.Name From Character(nolock) ch INNER JOIN Account ac ON ac.AID = ch.AID WHERE ch.CID = '$ncid'"));
    
        $name = $res[1];
    
        switch($res[0])
        {
            case 255:
                return "<font color='#F71824'>$name</font>";
            break;
            case 254:
                return "<font color='#00FF00'>$name</font>";
            break;
            case 253:
                return "<font color='#1F1B1B'>$name</font>";
            break;
            case 252:
                return "<font color='#FF8040'>$name</font>";
            break;
            case 1:
                return "<font color='#131A7A'>$name</font>";
            break;
            case 2:
                return "<font color='#FFFBFB'>$name</font>";
            break;
            case 3:
                return "<font color='#C7129F'>$name</font>";
            break;
            case 4:
                return "<font color='#80797E'>$name</font>";
            break;
            case 5:
                return "<font color='#883974'>$name</font>";
            break;
            case 6:
                return "<font color='#38ACE6'>$name</font>";
            break;
            case 7:
                return "<font color='#4FC3C7'>$name</font>";
            break;
            case 8:
                return "<font color='#E0EC3D'>$name</font>";
            break;
            case 9:
                return "<font color='#F99822'>$name</font>";
            break;
            case 10:
                return "<font color='#81541C'>$name</font>";
            break;
            case 11:
                return "<font color='#D985DB'>$name</font>";
            break;
            default:
                return $name;
            break;
        }
    }
    
    function GetClanPercent($Wins, $Losses)
    {
        $total = $Wins + $Losses;
    
        return ($total == 0) ? "0%" : round((100 * $Wins) / $total, 2) . "%";
    }
    
    ?>
    hope you like it, and sorry for my english:D
    credits: emisand (admin panel) Eqo(me) for the little edit:D
    Attached Thumbnails Attached Thumbnails dibujo.bmp   grey.bmp   changegrades.jpg  
    Last edited by eqoxsykes; 05-02-11 at 03:29 AM. Reason: forgot credits


  2. #2
    Proficient Member AlgozXD is offline
    MemberRank
    Jan 2009 Join Date
    São Paulo, BraLocation
    157Posts

    Re: runnable and ranking page with new ugrades

    Cool it makes the life ez *-*

  3. #3
    @ your moms bed thajj is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    647Posts

    Re: runnable and ranking page with new ugrades

    Wow Could actually be handy! thanks man

  4. #4
    Enthusiast eqoxsykes is offline
    MemberRank
    Apr 2010 Join Date
    ArgentinaLocation
    29Posts

    Re: runnable and ranking page with new ugrades

    Quote Originally Posted by thajj View Post
    Wow Could actually be handy! thanks man
    thank you, dude
    next time i'll share with you guys how to send more than 1 item from the panel, (maybe 5 in one time) a little thing but handy for lazy people like me :D hahaha
    Last edited by eqoxsykes; 05-02-11 at 09:47 AM.

  5. #5
    Account Upgraded | Title Enabled! ProGunz is offline
    MemberRank
    Oct 2010 Join Date
    226Posts

    Re: runnable and ranking page with new ugrades

    Thanks dude good job

  6. #6
    Account Upgraded | Title Enabled! BGRick is offline
    MemberRank
    Oct 2010 Join Date
    The NetherlandsLocation
    437Posts

    Re: runnable and ranking page with new ugrades

    So nice!!!
    Posted via Mobile Device

  7. #7
    Proficient Member Analise is offline
    MemberRank
    Oct 2010 Join Date
    181Posts

    Re: runnable and ranking page with new ugrades

    this runnable is for archives 08 or 07 ?

  8. #8
    <?="Hello World.";?> wutyes is offline
    MemberRank
    Feb 2008 Join Date
    251Posts

    Re: runnable and ranking page with new ugrades

    Gone.
    Last edited by wutyes; 27-03-16 at 12:07 AM.

  9. #9
    Enthusiast eqoxsykes is offline
    MemberRank
    Apr 2010 Join Date
    ArgentinaLocation
    29Posts

    Re: runnable and ranking page with new ugrades

    Quote Originally Posted by Analise View Post
    this runnable is for archives 08 or 07 ?
    i have 2007 and it works perfectly,

    @**********, i didn't touch those lines, that's the nolife_x _functions, I just added the colours.
    Last edited by eqoxsykes; 05-02-11 at 07:50 PM.

  10. #10
    hey Irahnik is offline
    MemberRank
    Mar 2010 Join Date
    127.0.0.1Location
    1,680Posts

    Re: runnable and ranking page with new ugrades

    Quote Originally Posted by ********** View Post
    Are you paranoid?

    Code:
    function clean($value)
    {
            $check = $value;
    
            $search = array('chr(', 'chr=', 'chr%20', '%20chr', 'wget%20', '%20wget', 'wget(',
            'cmd=', '%20cmd', 'cmd%20', 'rush=', '%20rush', 'rush%20',
            'union%20', '%20union', 'union(', 'union=', 'echr(', '%20echr', 'echr%20', 'echr=',
            'esystem(', 'esystem%20', 'cp%20', '%20cp', 'cp(', 'mdir%20', '%20mdir', 'mdir(',
            'mcd%20', 'mrd%20', 'rm%20', '%20mcd', '%20mrd', '%20rm',
            'mcd(', 'mrd(', 'rm(', 'mcd=', 'mrd=', 'mv%20', 'rmdir%20', 'mv(', 'rmdir(',
            'chmod(', 'chmod%20', '%20chmod', 'chmod(', 'chmod=', 'chown%20', 'chgrp%20', 'chown(', 'chgrp(',
            'locate%20', 'grep%20', 'locate(', 'grep(', 'diff%20', 'kill%20', 'kill(', 'killall',
            'passwd%20', '%20passwd', 'passwd(', 'telnet%20', 'vi(', 'vi%20',
            'insert%20into', 'select%20', 'fopen', 'fwrite', '%20like', 'like%20',
            '$_request', '$_get', '$request', '$get', '.system', 'HTTP_PHP', '&aim', '%20getenv', 'getenv%20',
            'new_password', '&icq','/etc/password','/etc/shadow', '/etc/groups', '/etc/gshadow',
            'HTTP_USER_AGENT', 'HTTP_HOST', '/bin/ps', 'wget%20', 'uname\x20-a', '/usr/bin/id',
            '/bin/echo', '/bin/kill', '/bin/', '/chgrp', '/chown', '/usr/bin', 'g\+\+', 'bin/python',
            'bin/tclsh', 'bin/nasm', 'perl%20', 'traceroute%20', 'ping%20', '.pl', 'lsof%20',
            '/bin/mail', '.conf', 'motd%20', 'HTTP/1.', '.inc.php', 'config.php', 'cgi-', '.eml',
            'file\://', 'window.open', '<script>', 'javascript\://','img src', 'img%20src','.jsp','ftp.exe',
            'xp_enumdsn', 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', 'nc.exe', '.htpasswd',
            'servlet', '/etc/passwd', 'wwwacl', '~root', '~ftp', '.js', '.jsp', 'admin_', '.history',
            'bash_history', '.bash_history', '~nobody', 'server-info', 'server-status', 'reboot%20', 'halt%20',
            'powerdown%20', '/home/ftp', '/home/www', 'secure_site, ok', 'chunked', 'org.apache', '/servlet/con',
            '<script', 'UPDATE', 'SELECT', 'DROP', '/robot.txt' ,'/perl' ,'mod_gzip_status', 'db_mysql.inc', '.inc', 'select%20from',
            'select from', 'drop%20', 'getenv', 'http_', '_php', 'php_', 'phpinfo()', '<?php', '?>', 'sql=');
    
            $value = str_replace($search, '', $value);
            $value = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$value);
            $value = trim($value);
            $value = strip_tags($value);
            $value = addslashes($value);
            $value = str_replace("'", "''", $value);
    
            if( $check != $value )
            {
                $logf = fopen("logs/Hacklogs.txt", "a+");
                fprintf($logf, "Date: %s IP: %s Code: %s, Fixed: %s\r\n", date("d-m-Y h:i:s A"), $_SERVER['REMOTE_ADDR'], $check, $value );
                fclose($logf);
    alertbox("Your IP has been saved. Admin will check it soon!","index.php");
            }
    
            return( $value );
    }
    winnnnnnnnnnnn

  11. #11
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: runnable and ranking page with new ugrades

    Nice job. Keep up the good work.

  12. #12
    Banned FlyingHigh is offline
    BannedRank
    Jun 2010 Join Date
    67Posts

    Re: runnable and ranking page with new ugrades

    Nice work with the runnables.

  13. #13
    I am THE DON Joe9099 is offline
    MemberRank
    Jan 2007 Join Date
    England, UkLocation
    3,655Posts

    Re: runnable and ranking page with new ugrades

    Quote Originally Posted by ********** View Post
    Are you paranoid?

    Code:
    function clean($value)
    {
            $check = $value;
    
            $search = array('chr(', 'chr=', 'chr%20', '%20chr', 'wget%20', '%20wget', 'wget(',
            'cmd=', '%20cmd', 'cmd%20', 'rush=', '%20rush', 'rush%20',
            'union%20', '%20union', 'union(', 'union=', 'echr(', '%20echr', 'echr%20', 'echr=',
            'esystem(', 'esystem%20', 'cp%20', '%20cp', 'cp(', 'mdir%20', '%20mdir', 'mdir(',
            'mcd%20', 'mrd%20', 'rm%20', '%20mcd', '%20mrd', '%20rm',
            'mcd(', 'mrd(', 'rm(', 'mcd=', 'mrd=', 'mv%20', 'rmdir%20', 'mv(', 'rmdir(',
            'chmod(', 'chmod%20', '%20chmod', 'chmod(', 'chmod=', 'chown%20', 'chgrp%20', 'chown(', 'chgrp(',
            'locate%20', 'grep%20', 'locate(', 'grep(', 'diff%20', 'kill%20', 'kill(', 'killall',
            'passwd%20', '%20passwd', 'passwd(', 'telnet%20', 'vi(', 'vi%20',
            'insert%20into', 'select%20', 'fopen', 'fwrite', '%20like', 'like%20',
            '$_request', '$_get', '$request', '$get', '.system', 'HTTP_PHP', '&aim', '%20getenv', 'getenv%20',
            'new_password', '&icq','/etc/password','/etc/shadow', '/etc/groups', '/etc/gshadow',
            'HTTP_USER_AGENT', 'HTTP_HOST', '/bin/ps', 'wget%20', 'uname\x20-a', '/usr/bin/id',
            '/bin/echo', '/bin/kill', '/bin/', '/chgrp', '/chown', '/usr/bin', 'g\+\+', 'bin/python',
            'bin/tclsh', 'bin/nasm', 'perl%20', 'traceroute%20', 'ping%20', '.pl', 'lsof%20',
            '/bin/mail', '.conf', 'motd%20', 'HTTP/1.', '.inc.php', 'config.php', 'cgi-', '.eml',
            'file\://', 'window.open', '<script>', 'javascript\://','img src', 'img%20src','.jsp','ftp.exe',
            'xp_enumdsn', 'xp_availablemedia', 'xp_filelist', 'xp_cmdshell', 'nc.exe', '.htpasswd',
            'servlet', '/etc/passwd', 'wwwacl', '~root', '~ftp', '.js', '.jsp', 'admin_', '.history',
            'bash_history', '.bash_history', '~nobody', 'server-info', 'server-status', 'reboot%20', 'halt%20',
            'powerdown%20', '/home/ftp', '/home/www', 'secure_site, ok', 'chunked', 'org.apache', '/servlet/con',
            '<script', 'UPDATE', 'SELECT', 'DROP', '/robot.txt' ,'/perl' ,'mod_gzip_status', 'db_mysql.inc', '.inc', 'select%20from',
            'select from', 'drop%20', 'getenv', 'http_', '_php', 'php_', 'phpinfo()', '<?php', '?>', 'sql=');
    
            $value = str_replace($search, '', $value);
            $value = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$value);
            $value = trim($value);
            $value = strip_tags($value);
            $value = addslashes($value);
            $value = str_replace("'", "''", $value);
    
            if( $check != $value )
            {
                $logf = fopen("logs/Hacklogs.txt", "a+");
                fprintf($logf, "Date: %s IP: %s Code: %s, Fixed: %s\r\n", date("d-m-Y h:i:s A"), $_SERVER['REMOTE_ADDR'], $check, $value );
                fclose($logf);
    alertbox("Your IP has been saved. Admin will check it soon!","index.php");
            }
    
            return( $value );
    }
    wahahhaha he must be very paranoid, but heh at least hes being protective against attacks which is a great thing, specially when dealing with GunZ Servers ZZzzz...

    Good job

  14. #14
    Account Upgraded | Title Enabled! TheCodeOfGunz is offline
    MemberRank
    Oct 2010 Join Date
    PhilippinesLocation
    532Posts

    Re: runnable and ranking page with new ugrades

    oh nice ty

  15. #15
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: runnable and ranking page with new ugrades

    Quote Originally Posted by Joe9099 View Post
    wahahhaha he must be very paranoid, but heh at least hes being protective against attacks which is a great thing, specially when dealing with GunZ Servers ZZzzz...

    Good job
    If it gets the job done and he has less attacks than most people then I don't think it matters much.



Page 1 of 2 12 LastLast

Advertisement