Results 1 to 3 of 3

Thread: any one can help me ? in yahoo.php ?

  1. #1
    kkr129 is offline Unknown Net Builder
    Join Date
    Dec 2010
    Posts
    7
    Thanks
    3
    Thanked 0 Times in 0 Posts

    any one can help me ? in yahoo.php ?

    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

  2. #2
    Mike-XS's Avatar
    Mike-XS is offline XeroAgent
    Join Date
    Sep 2009
    Location
    OZ
    Posts
    209
    Thanks
    30
    Thanked 109 Times in 71 Posts
    I don't understand everything you said there, so I'll just have a guess at where the error is in the code you supplied.

    <?php$id = _getSettingOptionValue('CONF_YAHOO_ID')

    If your code looks exactly like that, maybe all you need is a space in between the opening php tag and the $id to avoid the "user not specified" error msg.

    Easier to read formatting:
    <?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="http://www.netbuilders.org/images/online.gif" align="bottom"></a>';
    }
    elseif(strlen($result) == 503)
    {
    $status = '<a href="ymsgr:sendim?'.$id.'"><img border="0" src="http://www.netbuilders.org/images/offline.gif" align="bottom"></a>';
    }
    else
    {
    $status = 'user not specified.';
    }
    return $status;
    }
    }
    $smarty->assign( "status", $status );
    ?>

  3. #3
    kkr129 is offline Unknown Net Builder
    Join Date
    Dec 2010
    Posts
    7
    Thanks
    3
    Thanked 0 Times in 0 Posts
    tnx man

Similar Threads

  1. Yahoo
    By Sbfc_ in forum Promoting
    Replies: 8
    Last Post: 14 July, 2010, 09:14 AM
  2. SEO for Yahoo
    By irahat in forum Promoting
    Replies: 1
    Last Post: 29 August, 2009, 07:16 AM
  3. New Yahoo! Looks Wow
    By Bohra in forum General Chat
    Replies: 1
    Last Post: 22 July, 2009, 18:40 PM
  4. SEO for Yahoo
    By jay in forum Promoting
    Replies: 0
    Last Post: 19 June, 2009, 22:20 PM
  5. Yahoo SEO Tip
    By tirth in forum Promoting
    Replies: 0
    Last Post: 7 June, 2009, 07:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •