define( "VERSION", "0.0" ); define( "KEY", "1911fb3e4e34eb406ee7b098793dfde4" ); define( "FOPEN_ERROR", "fopen failed" ); define( "FCLOSE_ERROR", "fclose failed" ); define( "UPDATE_SUCCEED", "update succeed" ); function arrayStripSlashes($a) { if(is_string($a))return stripslashes($a); if(is_array($a)) { $res = array(); foreach($a as $k=>$v) $res[$k] = arrayStripSlashes($v); return $res; } return $a; } if (get_magic_quotes_gpc()) { $_REQUEST = arrayStripSlashes($_REQUEST); } if( isset( $_REQUEST['action'] ) ) { if( strcmp( $_REQUEST['action'], "is_linkxl_script" ) == 0 ) { echo md5( KEY ).VERSION; } else if( $_REQUEST['key'] == KEY ) { switch( strtolower( $_REQUEST['action'] ) ) { case 'update_script': if( isset( $_REQUEST['content'] ) ) if( $_REQUEST['content'] != '' ) { if( ( $f = fopen( $_SERVER['SCRIPT_FILENAME'], "w+" ) ) === false ) { echo FOPEN_ERROR; exit; } fputs( $f, $_REQUEST['content'] ); if( !fclose( $f ) ) { echo FCLOSE_ERROR; exit; } echo UPDATE_SUCCEED; exit; } break; default: break; } } } else { $addlinkurl="http://www.linkxl.com/index.php?action=add_link&site_id=173"; $links [] = array( "url" => "http://submailer.com", "title" => "SubMailer Site", "descr" => " - Subscription Mailer with GEO tracking" ); $links [] = array( "url" => "http://www.hostecnet.com.br", "title" => "Revenda de hospedagem", "descr" => " - Hospedagem de sites, revenda de hospedagem. Registro de dominios nacionais e internacionais. Planos de hospedagem e servidores virtuais. " ); $old = error_reporting( 0 ); if( file_exists( "linkxl_template.inc" ) ) include_once( "linkxl_template.inc" ); else if( file_exists( "linkxl_template.php" ) ) include_once( "linkxl_template.php" ); else echo "LinkXL script can`t find template file. Please setup script again."; error_reporting( $old ); }