• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

links.php decoded and 100% working on any dboor

Status
Not open for further replies.
Joined
May 15, 2009
Messages
799
Reaction score
558
This file annoyed me as the decompiler cant handle some code really stupid
any way here is the new links.php decoded and 100% working on any dboor ;)

remember like if you like this

also im not offically back yet developing just always drawn back for some unknown reason

Links.php

PHP:
<?php
/**
*
* @    Version            :    0.0.0.1 Alpha
* @    Author            :    Advocaite
* @    Release on        :    Friday, 31st August 2012
* @    Official site    :    http://extreemgaming.com
*
*/

require( ".".DIRECTORY_SEPARATOR."app".DIRECTORY_SEPARATOR."boot.php" ); 
require_once( MODEL_PATH."links.php" );       
class GPage extends securegamepage  
{

    public function GPage( )
    {
        parent::securegamepage( );
        $this->viewFile = "links.phtml";
        $this->contentCssClass = "player";
    }

    public function load( )
    {
        parent::load( );
        if ( !$this->data['active_plus_account'] )
        {
            exit( 0 );
        }
        else if ( $this->isPost( ) )
        {
            $this->playerLinks = array( );
            $i = 0;
            $c = sizeof( $_POST['nr'] );
            while ( $i < $c )
            {
                $name = trim( $_POST['linkname'][$i] );
                $url = trim( $_POST['linkurl'][$i] );
                /*
                *
                *  OK the fix was a stupid continue error and no else code
                *  so what i did was make sure if nothing in inputs then
                *  count up and dont add another blank \n\n witch
                *  the links class as new link i also added the else {} 
                *  and put the code in there so would work and added ++$i
                *  in replacement of continue; now the links page works
                *  100% like it did encoded.
                * 
                */
                if ( $url == "" || $name == "" || $_POST['nr'][$i] == "" || !is_numeric( $_POST['nr'][$i] ) )
                {
                    //continue;
                    ++$i;  
                }  else{
                $selfTarget = TRUE;
                if ( substr( $url, strlen( $url ) - 1 ) == "*" )
                {
                    $url = substr( $url, 0, strlen( $url ) - 1 );
                    $selfTarget = FALSE;
                }
                if ( isset( $this->playerLinks[$_POST['nr'][$i]] ) )
                {
                    ++$_POST['nr'][$i];
                }
                $this->playerLinks[$_POST['nr'][$i]] = array(
                    "linkName" => $name,
                    "linkHref" => $url,
                    "linkSelfTarget" => $selfTarget
                );
                   ++$i;  
                }
            }
            ksort( $this->playerLinks );
            $links = "";
            foreach ( $this->playerLinks as $link )
            {
                if ( $links != "" )
                {
                    $links .= "\n\n";
                }
                $links .= $link['linkName']."\n".$link['linkHref']."\n".( $link['linkSelfTarget'] ? "?" : "*" );
            }
            $m = new LinksModel( );
            $m->changePlayerLinks( $this->player->playerId, $links );
            $m->dispose( );
        }
    }

}


$p = new GPage( );
$p->run( );
?>
 

tr1

Newbie Spellweaver
Joined
Aug 4, 2012
Messages
53
Reaction score
4
yes exactly
 
Last edited:
Status
Not open for further replies.
Back
Top