Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Intellij
/.idea/

# Instalation information
/includes/installed.php
/includes/mmw_cache.dat

# Log files
!/logs/
/logs/*.php
6 changes: 3 additions & 3 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

# Max File Upload / Session Security
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value post_max_size 16M
php_flag register_globals off
php_flag session.use_trans_sid off
php_flag session.use_cookies on

# Config Security
<FilesMatch "config.php">
Order deny,allow
deny from all
Order deny,allow
Deny from all
</FilesMatch>
18 changes: 7 additions & 11 deletions ADS.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<!--
* MyMuWeb ADS/Banners Body
* By Vaflan
* Use All HTML Teg.
* Use HTML here.
-->


<center>
<a href="http://top.mymuweb.ru/">Top.MyMuWeb.Ru</a><br>
<a href="http://www.mymuweb.ru/">MyMuWeb Support</a><br>
<a href="http://www.red-angel.ru/">RedAngel MuOnline</a><br>
<a href="http://www.podriv.ru/">Podriv Project</a><br>
</center>


<div id="main" style="position: absolute; left: 520px; top: 32px;"><?statisitcs('main');?></div>
<a href="http://mmw.clan.su/" target="_blank">MyMuWeb Support</a><br>
<a href="http://x-mu.net/" target="_blank">X-MU Community</a><br>
<a href="https://muonlinefanz.com/" target="_blank">Mu Online Fanz</a><br>
<a href="http://www.podriv.net/" target="_blank">Podriv Project</a><br>
<a href="http://tfu.lv/" target="_blank">TFU.LV</a><br>
</center>
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Open source MuOnline website

Name: MyMuWeb <MMW>
Created: 2009-03-17
Repository: https://github.com/Vaflan/MyMuWeb
Author: Ruslans Jermakovics <Vaflan>
Contacts: http://mymuweb.ru


## Instruction
*********************************************************************
First step, you need to set up your php environment:
* Minimum PHP version must be 5.3 (extreme low 5.2)
* On Windows system ~ C:\WINDOWS\php.ini (extensions with .dll)
* On a Linux system ~ /etc/php/phpX.X/php.ini

extension = gd2
extension = pdo
extension = odbc
extension = pdo_odbc
error_reporting = E_ALL & ~E_NOTICE

*********************************************************************
Second step, add the library if the database uses MD5.
* Copy "WZ_MD5_MOD.dll" from project to Microsoft SQL "Server\MSSQL\Binn\"
*********************************************************************
The third step is to change socks.
* Customize the file `config.php` and variable $mmw['sql'] replace '127.0.0.1', 'USER', 'PASSWORD'
* If you will be installing from a non-local ip, you set CUSTOM_IP_ADDRESS in install.php
* Open install http://localhost/install.php
*********************************************************************
Running the CLI Web Server from Remote Computers
* Open the site folder in the console where index.php is located
* Run the command below and you will have a PHP site up and running (minimum 5.4)
* If your php is not available in the global environment, write instead of `php` - the full path to `C:\php54\php.exe`
* You can also specify your own configuration file for php `-c php.ini`
* More information about [Built-in web server](https://www.php.net/manual/en/features.commandline.webserver.php)

php -S 0.0.0.0:8000

*********************************************************************


## FAQ
* How to add features?
* add `someFunction.php` to 'includes/func/' folder.
* How to add MP3 to the player?
* add `song.mp3` to 'media/' folder.
* How to add new language?
* add `language_name.php` to 'lang/' folder.
* How to add theme?
* extract `theme.zip` to 'themes/' folder and change `$mmw['theme']` in config.php.
*********************************************************************


### Thanks for using MyMuWeb by Vaflan!
Special thanks to the **x-Mu** community: https://x-mu.net/?board=84.0
44 changes: 0 additions & 44 deletions ReadMe.txt

This file was deleted.

139 changes: 7 additions & 132 deletions admin.php
Original file line number Diff line number Diff line change
@@ -1,132 +1,7 @@
<?PHP
// This is modified Admin area
// Creator =Master=, Edit by Vaflan
// For MyMuWeb Engine

session_start();
header("Cache-control: private");
header("Cache-control: max-age=3600");
include("config.php");
include("includes/banned.php");
include("includes/sql_check.php");
include("includes/xss_check.php");
include("includes/mmw-func.php");
include("includes/format.php");
include("admin/engine.php");

// Check Admin Panel
if($mmw[check_admin_panel] == 'yes') {
writelog("a_check_admin_panel","Admin Panel: <b>".urldecode('http://'.$_SERVER["SERVER_ADDR"].$_SERVER["REQUEST_URI"])."</b>");
}

if(is_file("themes/$mmw[theme]/admin.css")) {$css = "themes/$mmw[theme]/admin.css";}
else {$css = "images/admin.css";}
?>
<html>
<head>
<title>MyMuWeb Administrator</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="<?echo $css;?>" rel="stylesheet" type="text/css">
<script>var mmw_version = '<?echo $mmw[version];?>';</script>
</head>
<body>
<div align="center">

<?if(isset($_SESSION['a_admin_login'],$_SESSION['a_admin_password'],$_SESSION['a_admin_security'],$_SESSION['a_admin_level'])){?>
<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" height="50">
<div class="login_stats">
<form action='' method='post' name='admin_logout' id='admin_logout'>
<?echo $warning_red;?> You are loged in <b><?echo "$_SESSION[a_admin_login] ".$mmw[status_rules][$_SESSION[a_admin_level]][name]." (Level: $_SESSION[a_admin_level])";?></b>
<input name='admin_logout' type='hidden' id='admin_logout' value='admin_logout'>
<input name='Logout' type='submit' id='Logout' title='Logout' value='Logout'>
</form>
</div>
</td>
</tr>
<tr>
<td align="center" height="20">
<a href="?op=home">Home</a> |
<a href="?op=sqlquery">SQL Query</a> |
<a href="?op=backup">Back Up</a> |
<a href="?op=server">Server</a> |
<a href="?op=news">News</a> |
<a href="?op=downloads">Downloads</a> |
<a href="?op=votes">Votes</a> |
<a href="?op=forum">Forum</a> |
<a href="?op=ads">ADS</a> |
<a href="?op=request">Request</a><br>
<a href="?op=rename">Rename Character</a> |
<a href="?op=char">Search Character</a> |
<a href="?op=acc">Search Account</a> |
<a href="?op=acclist">Account List</a> |
<a href="?op=banip">Ban IP</a> |
<a href="?op=findip">Find IP</a> |
<a href="?op=logs">Logs</a> </td>
</tr>
<tr>
<td align="center">
<br>
<?
if(is_file("admin/$_GET[op].php")) {include("admin/$_GET[op].php");}
elseif(is_file("admin/$_GET[op].mmw")) {mmw("admin/$_GET[op].mmw");}
else {include("admin/home.php");}
?>
</td>
</tr>
</table>
<?}else{?>
<script language='Javascript'>
function check_admin_form() {
if(document.admin_form.adminusername.value == '') {
alert('Please Enter Admin Username.');
return false;
}
if(document.admin_form.adminpassword.value == '') {
alert('Please Enter Admin Password.');
return false;
}
if(document.admin_form.securitycode.value == '') {
alert('Please Enter Admin SecurityCode.');
return false;
}
document.admin_form.submit();
}
</script>
<p>&nbsp;</p>
<table width='302' border='0' align='center' cellpadding='0' cellspacing='4'>
<tr>
<td width='294'><div align='center'><?echo $warning_red;?> Welcome <?echo $_SERVER[REMOTE_ADDR];?></div></td>
</tr>
</table>
<table width='200' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td><form action='' method='post' name='admin_form' id='admin_form'>
<table width='292' border='0' align='center' cellpadding='0' cellspacing='4'>
<tr>
<td width='126' align='right'>Admin Account</td>
<td width='144'><input name='account' type='text' size='15' maxlength='10'></td>
</tr>
<tr>
<td align='right'>Admin Password</td>
<td><input name='password' type='password' size='15' maxlength='10'></td>
</tr>
<tr>
<td align='right'>Admin SecurityCode</td>
<td><input name='securitycode' type='password' size='8' maxlength='10'> <input name='admin_login' type='hidden' id='admin_login' value='admin_login'></td>
</tr>
<tr>
<td align='right'> </td>
<td align='left'><input name='Login' type='submit' id='Login' value='Login' onclick='return check_admin_form()'> <input name='Reset' type='reset' id='Reset' value='Reset'></td>
</tr>
</table>
</form></td>
</tr>
</table>
<?}?>

<br><span class="copyright">MyMuWeb <?echo $mmw[version];?>. Design and PHP+SQL by Vaflan.</span>
</div>
</body>
</html>
<?php
/**
* @see ./admin
* @deprecated
*/
header('Location: ./admin');
die('Moved to admin directory');
10 changes: 4 additions & 6 deletions admin/.htaccess
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
Options -MultiViews
Options -Indexes

ErrorDocument 400 /error.php?go=400
ErrorDocument 403 /error.php?go=403
ErrorDocument 404 /error.php?go=404
ErrorDocument 500 /error.php?go=500

Deny from all
ErrorDocument 400 ../error.php?go=400
ErrorDocument 403 ../error.php?go=403
ErrorDocument 404 ../error.php?go=404
ErrorDocument 500 ../error.php?go=500
Loading