hi

i have a cms

and i decode yahoo.php from cms (base64)

this code use for show yahoo messenger online or offline.

i upload them : 2code ( befor decode ) (after decode)

but i upload every file Replace with yahoo.php

i see this error ==> user not specified.

befor decode

Code:
<?php @Zend;
3272;
/*  ٌ!This is not a text file!قي   */
print "<html><body>\n";
print "<a href=\"http://www.zend.com/store/products/zend-safeguard-suite.php\"><img border=\"0\" src=\"http://www.zend.com/images/store/safeguard_icon_nover_64.jpg\" align=\"right\"></a>\n";
print "<center><h1>Zend Optimizer not installed</h1></center>";
print "<p>This file was encoded by the <a href=\"http://www.zend.com/store/products/zend-encoder.php\">Zend Encoder</a> / <a href=\"http://www.zend.com/store/products/zend-safeguard-suite.php\">Zend SafeGuard Suite</a></p>\n";
print "<p>In order to run it, please install the freely available <a href=\"http://www.zend.com/store/products/zend-optimizer.php\">Zend Optimizer</a>, version 2.1.0 or later.</p>\n";
print "<h2>What is the Zend Optimizer?</h2>
";
print <<<EOM
<p>The Zend Optimizer is one of the most popular PHP plugins for performance-improvement, and has been freely available since the early days of PHP 4.  It improves performance by taking PHP's intermediate code through multiple Optimization Passes, which replace inefficient code patterns with efficient code blocks.  The replacement code blocks perform exactly the same operations as the original code, only faster.</p>
<p>In addition to performance-improvement, the Zend Optimizer also enables PHP to transparently load files encoded by the Zend Encoder or Zend SafeGuard Suite.</p>
<p>The Zend Optimizer is a freely-available product from <a href="http://www.zend.com">Zend Technologies</a>.  Zend Technologies is the company that develops the scripting engine of PHP, also known as the <a href="http://www.zend.com/store/products/zend-engine.php">Zend Engine</a>.</p>
EOM;
print "</body></html>\n";
exit();
?>

2003120701 1 769 1143 xù
ں2mXغژ¢Hîl&ظ9ىCô=™p(N&س3A…Bn&ذ¸ک'کçفëصضv5»•J*¤¾ü)*كلO*حك    rے™ددAS=؟چث¯فîنَˆ–`O{k¾
ù3…د‏ث¹نè)’<Lف:ّ‚“,N¸ٍœ²*{hٍ§œkےُا خز€ء/D»{ëiˆ§‏م…îïث'œ Xٹdˆ§›ً‏¾Aً;EفA‏üx¯¦4yتVGُھو„™غ’4Kٹ؛®JRپ5‡+®pذکXY05…hv Œ‘Rf‎n¨د:¬gEَضچ ف&ب0ن¹¶ٹأ:فTˆ×sآشN³ف+ïë,÷M·ِ]؟‹ài5qCP‹fء!8’†إln³pہBHىiدہ"J*
ثB3ھعگإ ¹Hع¦@Uک    گصƒirv/9b»ڑتخr،گگى¹Yَ*tؤ1W%ہ§1ٹQ6bٹغü(س؛`Mوشh§}I Tvز    ƒn6حHW¶ىç(ڈe[؛گ0!s°ٌژs[ـ¦<.ُüحQï_َ
8^fùwW³    ل½â}pصگىپ¶ل[ت·¶=´ئف’--{خi%د³iQْR9_•bمfj>‰و`¨\ƒو™j7‡¢-´L¶[OzcکˆژB¾Z”范أ&^نU3¢QMگˆl½|£XD½ھا~©ىu,ِ[¯îC,أqخثéN^ïp$6¤e!*:هصى¸'¹Ur*•\؛–¥بہْT›@¼L´„جنيn«أ:H
*5ugX·    WS†-Dٍ    i¢u Zءذcsوڑگ‰ؤ–6C¹*îَgZ¸6Bيگغ´TSٹ2£طَ²2ë•(Cظî%خe¶‹M"_^®¬=û‏i±جى?Z¹زّ2_؟îن*ًغGS¼سâC    ûٌiپxٌْ‎أحTN[؟[َ[}ûQؤإَS\ïڈے9|×فƒ÷؟ï^ûw‏طg€
after decode

Code:
<?php$id = _getSettingOptionValue('CONF_YAHOO_ID');if ($id) {$status = yahoo($id);    }function yahoo($id) {    $sockets = fsockopen ('opi.yahoo.com', 80, $errno, $errstr, 40);    if ($sockets) {        $head  = "GET http://opi.yahoo.com/online?u=$id HTTP/1.1\r\n";        $head .= "HOST: opi.yahoo.com\r\n" ;         $head .= "Content-Type: application/x-www-form-urlencoded\r\n";        $head .= "Connection: close\r\n\r\n";        $result = '';        fwrite($sockets, $head);        while (!feof($sockets)) {            $result .= fgets($sockets, 128);        }        fclose($sockets);        if(strlen($result) == 559) {            $status = '<a href="ymsgr:sendim?'.$id.'"><img border="0" src="images/online.gif" align="bottom"></a>';        }elseif(strlen($result) == 503) {            $status = '<a href="ymsgr:sendim?'.$id.'"><img border="0" src="images/offline.gif" align="bottom"></a>';        }else {            $status = 'user not specified.';        }        return $status;    }}    $smarty->assign( "status", $status );?>
now please test .

where is my code is wrong

tnx

BEst regards KKR