- 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
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( );
?>