MuCore 1.0.8 Agmcp

Results 1 to 9 of 9
  1. #1
    Account Inactive mRpLaYbOy is offline
    InactiveRank
    Jan 2012 Join Date
    RomaniaLocation
    95Posts

    MuCore 1.0.8 Agmcp

    MuCore 1.0.8 Agmcp
    When i enter the username and password the agmcp shows this ->

    Click image for larger version. 

Name:	agmcp.JPG 
Views:	97 
Size:	42.1 KB 
ID:	107053
    Last edited by mRpLaYbOy; 15-06-12 at 09:19 PM.


  2. #2
    Account Inactive mRpLaYbOy is offline
    InactiveRank
    Jan 2012 Join Date
    RomaniaLocation
    95Posts

    Re: MuCore 1.0.8 Agmcp

    Up!:(

  3. #3
    Ultimate Member Alexell is offline
    MemberRank
    Oct 2008 Join Date
    160Posts

    Re: MuCore 1.0.8 Agmcp

    try to change index.php from agmcp with this one:
    Code:
    <?
    
    session_start();
    ob_start();
    require('../config.php');
    require('../engine/custom_variables.php');
    require('../engine/global_functions.php');
    require('../engine/global_config.php');
    require("../engine/adodb/adodb.inc.php");
    if ($core['debug'] == '1') {
        error_reporting(E_ERROR | E_WARNING | E_PARSE);
    } else {
        error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_WARNING);
    }
    if ($_GET['get'] == 'logout') {
        $_SESSION['logout'] = '1';
        header('Location: index.php');
        exit;
    }
    if ($_SESSION['logout'] == '1') {
        unset($_SERVER['PHP_AUTH_USER']);
        unset($_SERVER['PHP_AUTH_PW']);
        unset($_SESSION['agm_login_auth']);
        unset($_SESSION['logout']);
    }
    
    
    $agm_username  = safe_input($_SERVER['PHP_AUTH_USER'], '');
    $agm_passsword = md5(safe_input($_SERVER['PHP_AUTH_PW'], ''));
    $agm_ip        = $_SERVER['REMOTE_ADDR'];
    
    
    $agmusers = file('../engine/agm.users/agmcp.users');
    foreach ($agmusers as $agm) {
        $agm_info = explode("Ā¦", $agm);
        if (!empty($agm_info[10])) {
            if ($agm_info[1] == $agm_username && $agm_info[2] == $agm_passsword && $agm_info[10] == $agm_ip) {
                $found          = '1';
                $agm_id          = $agm_info[0];
                $agm_user_id     = $agm_info[1];
                $agm_user_pwd    = $agm_info[2];
                $nickname       = $agm_info[3];
                $agm_ban_manager = $agm_info[4];
                $agm_ban_mucoins = $agm_info[5];
                
                $agm_amount_coins    = $agm_info[6];
                $agm_coins_day       = $agm_info[7];
                $agm_coins_days_left = $agm_info[8];
                $agm_preset_mucoins  = $agm_info[9];
                $agm_ip_dat          = $agm_info[10];
                break;
            }
        } else {
            if ($agm_info[1] == $agm_username && $agm_info[2] == $agm_passsword) {
                $found          = '1';
                $agm_id          = $agm_info[0];
                $agm_user_id     = $agm_info[1];
                $agm_user_pwd    = $agm_info[2];
                $nickname       = $agm_info[3];
                $agm_ban_manager = $agm_info[4];
                $agm_ban_mucoins = $agm_info[5];
                
                $agm_amount_coins    = $agm_info[6];
                $agm_coins_day       = $agm_info[7];
                $agm_coins_days_left = $agm_info[8];
                $agm_preset_mucoins  = $agm_info[9];
                $agm_ip_dat          = $agm_info[10];
                break;
            }
        }
    }
    
    
    
    if ($found == '1') {
        if (!isset($_SESSION['agm_login_auth'])) {
            write_log('../engine/logs/agmcp/agmcp_access', '' . $nickname . ' logged in Game Master Control Panel.');
        }
        $_SESSION['agm_login_auth'] = '1';
        require('../engine/core.php');
        $core['version'] = crypt_it($engine, '', '1');
        
        require('../admincp/script/global_functions.php');
        include("../engine/connect_core.php");
        echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rel="stylesheet" type="text/css" href="styles/default/panel.css" />
    <script type="text/javascript" src="script/global.js"></script>
    <script type="text/javascript" src="script/helptip.js"></script>
    <title>' . $core['config']['websitetitle'] . ' - Game Master Control Panel</title></head>
    
    <body>';
        
        if (!isset($_GET['get'])) {
            $no_module_selected = 1;
            #$m_am = 'ban_manager';
        } else {
            $m_am = safe_input($_GET['get'], '_');
        }
        include("modules/header.php");
        echo '<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>
         <td align="left" width="230" valign="top">';
        include("modules/left_side.php");
        echo '</td><td valign="top"><div align="center" style="margin-top: 20px; margin-bottom: 20px;">
         <!--
         <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
         <tr>
         <td align="right" class="module_title">' . htmlentities(strtoupper(str_replace("_", " ", $m_am))) . '</td>
         </tr>
         </table>
         -->
        
         ';
        if ($no_module_selected != 1) {
            if (is_file('modules/' . $m_am . '.php')) {
                include('modules/' . $m_am . '.php');
            } else {
                echo 'Module ' . $m_am . '.php could not be found.';
            }
        }
        
        
        
        
        echo '</div></td>
         </tr>
         </table></body></html>';
        
        
    } else {
        unset($_SESSION['agm_login_auth']);
        unset($_SESSION['logout']);
        header('WWW-Authenticate: Basic realm="' . $core['config']['websitetitle'] . '"');
        header('HTTP/1.0 401 Unauthorized');
        echo '<?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <title>Authentication required!</title>
    <link rev="made" href="mailto:postmaster@localhost" />
    <style type="text/css"><!--/*--><![CDATA[/*><!--*/ 
        body { color: #000000; background-color: #FFFFFF; }
        a:link { color: #0000CC; }
        p, address {margin-left: 3em;}
        span {font-size: smaller;}
    /*]]>*/--></style>
    </head>
    
    <body>
    <h1>Authentication required!</h1>
    </body>
    </html>';
        exit;
    }
    ob_end_flush();
    
    ?>

  4. #4
    Account Inactive mRpLaYbOy is offline
    InactiveRank
    Jan 2012 Join Date
    RomaniaLocation
    95Posts

    Re: MuCore 1.0.8 Agmcp

    does not work :(

  5. #5
    Don Corleone Cryingsoul is offline
    True MemberRank
    Mar 2009 Join Date
    DenmarkLocation
    708Posts

    Re: MuCore 1.0.8 Agmcp

    I am guessing that you are using old version of xampp? Try the latest version and it might help.

  6. #6

    Re: MuCore 1.0.8 Agmcp

    atleast 1.7.1 will help

  7. #7
    Account Inactive mRpLaYbOy is offline
    InactiveRank
    Jan 2012 Join Date
    RomaniaLocation
    95Posts

    Re: MuCore 1.0.8 Agmcp

    Thank You 4 All!:)

  8. #8

    Re: MuCore 1.0.8 Agmcp

    np if u need anything just ask !

  9. #9
    Account Inactive mRpLaYbOy is offline
    InactiveRank
    Jan 2012 Join Date
    RomaniaLocation
    95Posts

    Re: MuCore 1.0.8 Agmcp

    Quote Originally Posted by karLi View Post
    np if u need anything just ask !
    Thank You karLi :)



Advertisement