Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php goto h4hQz; h4hQz: $HOSTNAME = "\x6c\157\x63\141\x6c\x68\157\163\164"; goto zNwmR; ..

Decoded Output download

<?php
 goto h4hQz; h4hQz: $HOSTNAME = "localhost"; goto zNwmR; QFD1S: function echoQueryResult() { global $queryStr, $errMsg; if ($errMsg == '') { $errMsg = "Success"; } if ($queryStr != '') { echo "<table cellpadding=5>
"; echo "<tr><td>Query</td><td>{$queryStr}</td></tr>\xa"; echo "<tr><td>Result</td><td>{$errMsg}</td></tr>
"; echo "</table><p>
"; } } goto bSPhQ; S5r2w: function logon_submit() { global $username, $password, $PHP_SELF; setcookie("mysql_web_admin_username", $username); setcookie("mysql_web_admin_password", $password); echo "<html>"; echo "<head>"; echo "<META HTTP-EQUIV=Refresh CONTENT='0; URL={$PHP_SELF}?action=listDBs'>"; echo "</head>"; echo "</html>"; } goto QFD1S; ngWAe: function createDatabase() { global $mysqlHandle, $dbname, $PHP_SELF; mysql_create_db($dbname, $mysqlHandle); listDatabases(); } goto cw_uR; rDA5Z: function manageField($cmd) { global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF; if ($cmd == "add") { echo "<h1>Add Field</h1>
"; } else { if ($cmd == "edit") { echo "<h1>Edit Field</h1>\xa"; $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, " (,)\xa"); if (strpos($fieldtype, "(")) { if ($type == "enum" | $type == "set") { $valuelist = strtok(" ()\xa"); } else { $M = strtok(" (,)\xa"); if (strpos($fieldtype, ",")) { $D = strtok(" (,)
"); } } } } } echo "<p class=location>{$dbname} &gt; {$tablename}</p>
"; echo "<form action={$PHP_SELF}>
"; if ($cmd == "add") { echo "<input type=hidden name=action value=addField_submit>
"; } else { if ($cmd == "edit") { echo "<input type=hidden name=action value=editField_submit>
"; echo "<input type=hidden name=old_name value={$fieldname}>
"; } } echo "<input type=hidden name=dbname value={$dbname}>\xa"; echo "<input type=hidden name=tablename value={$tablename}>
"; echo "<h3>Name</h3>
"; echo "<input type=text name=name value={$fieldname}><p>\xa"; ?>

<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" <?php  if ($type == "tinyint") { echo "checked"; } ?>
>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" <?php  if ($type == "smallint") { echo "checked"; } ?>
>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" <?php  if ($type == "mediumint") { echo "checked"; } ?>
>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" <?php  if ($type == "int") { echo "checked"; } ?>
>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" <?php  if ($type == "bigint") { echo "checked"; } ?>
>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" <?php  if ($type == "float") { echo "checked"; } ?>
>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" <?php  if ($type == "double") { echo "checked"; } ?>
>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" <?php  if ($type == "decimal") { echo "checked"; } ?>
>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" <?php  if ($type == "date") { echo "checked"; } ?>
>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" <?php  if ($type == "datetime") { echo "checked"; } ?>
>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" <?php  if ($type == "timestamp") { echo "checked"; } ?>
>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" <?php  if ($type == "time") { echo "checked"; } ?>
>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" <?php  if ($type == "year") { echo "checked"; } ?>
>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" <?php  if ($type == "char") { echo "checked"; } ?>
>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" <?php  if ($type == "varchar") { echo "checked"; } ?>
>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" <?php  if ($type == "tinytext") { echo "checked"; } ?>
>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" <?php  if ($type == "text") { echo "checked"; } ?>
>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" <?php  if ($type == "mediumtext") { echo "checked"; } ?>
>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" <?php  if ($type == "longtext") { echo "checked"; } ?>
>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" <?php  if ($type == "tinyblob") { echo "checked"; } ?>
>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" <?php  if ($type == "blob") { echo "checked"; } ?>
>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" <?php  if ($type == "mediumblob") { echo "checked"; } ?>
>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" <?php  if ($type == "longblob") { echo "checked"; } ?>
>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" <?php  if ($type == "enum") { echo "checked"; } ?>
>ENUM</td>
<td colspan=5><center>value list</center></td>
</tr>
<tr>
<td><input type=radio name=type value="SET" <?php  if ($type == "set") { echo "checked"; } ?>
>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 <?php  if ($M != '') { echo "value={$M}"; } ?>
></td>
<td align=center><input type=text size=4 name=D <?php  if ($D != '') { echo "value={$D}"; } ?>
></td>
<td align=center><input type=checkbox name=unsigned value="UNSIGNED" <?php  if (strpos($fieldtype, "unsigned")) { echo "checked"; } ?>
></td>
<td align=center><input type=checkbox name=zerofill value="ZEROFILL" <?php  if (strpos($fieldtype, "zerofill")) { echo "checked"; } ?>
></td>
<td align=center><input type=checkbox name=binary value="BINARY" <?php  if (strpos($fieldtype, "binary")) { echo "checked"; } ?>
></td>
<td align=center><input type=text size=60 name=valuelist <?php  if ($valuelist != '') { echo "value="{$valuelist}""; } ?>
></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" <?php  if ($fieldnull != "YES") { echo "checked"; } ?>
></td>
<td align=center><input type=text name=default_value <?php  if ($fielddefault != '') { echo "value={$fielddefault}"; } ?>
></td>
<td align=center><input type=checkbox name=auto_increment value="AUTO_INCREMENT" <?php  if ($fieldextra == "auto_increment") { echo "checked"; } ?>
></td>
<td align=center><input type=checkbox name=primary_key value="PRIMARY KEY" <?php  if ($fieldkey == "PRI") { echo "checked"; } ?>
></td>
</tr>
</table>

<p>

<?php  if ($cmd == "add") { echo "<input type=submit value='Add Field'>\xa"; } else { if ($cmd == "edit") { echo "<input type=submit value='Edit Field'>\xa"; } } echo "<input type=button value=Cancel onClick='history.back()'>
"; echo "</form>
"; } goto IS5IW; cw_uR: function dropDatabase() { global $mysqlHandle, $dbname, $PHP_SELF; mysql_drop_db($dbname, $mysqlHandle); listDatabases(); } goto NuomT; cgOtR: function viewData($queryStr) { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby; echo "<h1>Data in Table</h1>\xa"; if ($tablename != '') { echo "<p class=location>{$dbname} &gt; {$tablename}</p>\xa"; } else { echo "<p class=location>{$dbname}</p>
"; } $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> | 
"; echo "<a href='{$PHP_SELF}?action=viewSchema&dbname={$dbname}&tablename={$tablename}'>Schema</a>
"; } $pResult = mysql_db_query($dbname, $queryStr); $errMsg = mysql_error(); $GLOBALS[queryStr] = $queryStr; if ($pResult == false) { echoQueryResult(); return; } if ($pResult == 1) { $errMsg = "Success"; echoQueryResult(); return; } echo "<hr>
"; $row = mysql_num_rows($pResult); $col = mysql_num_fields($pResult); if ($row == 0) { echo "No Data Exist!"; return; } if ($rowperpage == '') { $rowperpage = 20; } if ($page == '') { $page = 0; } else { $page--; } mysql_data_seek($pResult, $page * $rowperpage); echo "<table cellspacing=1 cellpadding=2>\xa"; echo "<tr>
"; for ($i = 0; $i < $col; $i++) { $field = mysql_fetch_field($pResult, $i); echo "<th>"; echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&orderby=" . $field->name . "'>" . $field->name . "</a>\xa"; echo "</th>\xa"; } echo "<th colspan=2>Action</th>\xa"; echo "</tr>
"; for ($i = 0; $i < $rowperpage; $i++) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } echo "<tr>\xa"; $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) > 20) { $data = substr($data, 0, 20) . "..."; } $data = htmlspecialchars($data); echo "<td>
"; echo "{$data}
"; echo "</td>
"; } if ($key == '') { echo "<td colspan=2>no Key</td>
"; } else { echo "<td><a href='{$PHP_SELF}?action=editData&dbname={$dbname}&tablename={$tablename}{$key}'>Edit</a></td>\xa"; echo "<td><a href='{$PHP_SELF}?action=deleteData&dbname={$dbname}&tablename={$tablename}{$key}' onClick="return confirm('Delete Row?')">Delete</a></td>
"; } echo "</tr>
"; } echo "</table>
"; echo "<font size=2>
"; echo "<form action='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}' method=post>
"; echo "<font color=green>\xa"; echo $page + 1 . "/" . (int) ($row / $rowperpage + 1) . " page"; echo "</font>\xa"; echo " | "; if ($page > 0) { echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&page=" . $page; if ($orderby != '') { echo "&orderby={$orderby}"; } echo "'>Prev</a>
"; } else { echo "Prev"; } echo " | "; if ($page < $row / $rowperpage - 1) { echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}&page=" . ($page + 2); if ($orderby != '') { echo "&orderby={$orderby}"; } echo "'>Next</a>\xa"; } else { echo "Next"; } echo " | "; if ($row > $rowperpage) { echo "<input type=text size=4 name=page>\xa"; echo "<input type=submit value='Go'>
"; } echo "</form>
"; echo "</font>\xa"; } goto cqpb4; fLmHB: function utils() { global $PHP_SELF, $command; echo "<h1>Utilities</h1>
"; if ($command == '' || substr($command, 0, 5) == "flush") { echo "<hr>
"; echo "Show
"; echo "<ul>\xa"; echo "<li><a href='{$PHP_SELF}?action=utils&command=show_status'>Status</a>\xa"; echo "<li><a href='{$PHP_SELF}?action=utils&command=show_variables'>Variables</a>
"; echo "<li><a href='{$PHP_SELF}?action=utils&command=show_processlist'>Processlist</a>
"; echo "</ul>
"; echo "Flush
"; echo "<ul>
"; echo "<li><a href='{$PHP_SELF}?action=utils&command=flush_hosts'>Hosts</a>\xa"; 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>\xa"; 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>
"; 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>\xa"; 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>
"; 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>
"; } 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>\xa"; echo "<hr>
"; echo "<table cellspacing=1 cellpadding=2 border=0>\xa"; echo "<tr>\xa"; for ($i = 0; $i < $col; $i++) { $field = mysql_fetch_field($pResult, $i); echo "<th>" . $field->name . "</th>\xa"; } echo "</tr>
"; while (1) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } echo "<tr>\xa"; for ($j = 0; $j < $col; $j++) { echo "<td>" . htmlspecialchars($rowArray[$j]) . "</td>\xa"; } echo "</tr>
"; } echo "</table>
"; } } goto KjUbv; NW76J: 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; } } $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; } } echo "<!--"; $mysqlHandle = mysql_pconnect($HOSTNAME, $USERNAME, $PASSWORD); echo "-->"; if ($mysqlHandle == false) { echo "<html>\xa"; echo "<head>\xa"; echo "<title>MySQL Web Interface</title>\xa"; echo "</head>\xa"; echo "<body>\xa"; echo "<table width=100% height=100%><tr><td><center>
"; echo "<h1>Wrong Password!</h1>
"; echo "<a href='{$PHP_SELF}?action=logon'>Logon</a>
"; echo "</center></td></tr></table>
"; echo "</body>\xa"; echo "</html>\xa"; } 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(); } } } } goto h2NvZ; SJei_: function dump() { global $PHP_SELF, $USERNAME, $PASSWORD, $action, $dbname, $tablename; if ($action == "dumpTable") { $filename = $tablename; } else { $filename = $dbname; } header("Content-disposition: filename={$filename}.sql"); header("Content-type: application/octetstream"); header("Pragma: no-cache"); header("Expires: 0"); $pResult = mysql_query("show variables"); while (1) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } if ($rowArray[0] == "basedir") { $bindir = $rowArray[1] . "bin/"; } } passthru($bindir . "mysqldump --user={$USERNAME} --password={$PASSWORD} {$dbname} {$tablename}"); } goto fLmHB; zNwmR: function logon() { global $PHP_SELF; setcookie("mysql_web_admin_username"); setcookie("mysql_web_admin_password"); echo "<html>\xa"; echo "<head>\xa"; echo "<title>Mysql interface</title>
"; echo "</head>\xa"; echo "<body>\xa"; echo "<table width=100% height=100%><tr><td><center>\xa"; echo "<table cellpadding=2><tr><td bgcolor=#0090FF><center>
"; echo "<table cellpadding=20><tr><td bgcolor=#ffffff><center>\xa"; echo "<h1><b><font color=#FF0000>Mysql Interface v1.0</font></b></h1>\xa"; echo "<form action='{$PHP_SELF}'>\xa"; echo "<input type=hidden name=action value=logon_submit>\xa"; echo "<table cellpadding=5 cellspacing=1>
"; echo "<tr><td>Username </td><td> <input type=text name=username></td></tr>\xa"; echo "<tr><td>Password </td><td> <input type=password name=password></td></tr>\xa"; echo "</table><p>
"; echo "<input type=submit value='Enter'>
"; echo "<input type=reset value='Clear'><br>
"; echo "</form>
"; echo "</center></td></tr></table>
"; echo "</center></td></tr></table>\xa"; echo "<p><hr width=300>
"; echo "<font size=2>\xa"; echo "Copyright &copy; 2005\xa <br>"; echo "</font>\xa"; echo "</center></td></tr></table>
"; echo "</body>
"; echo "</html>\xa"; } goto S5r2w; IS5IW: 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(); $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>\xa" . $q; $errMsg .= "<br>\xa" . mysql_error(); $q = "ALTER TABLE {$tablename} ADD PRIMARY KEY( {$primary} )"; mysql_query($q); $queryStr .= "<br>
" . $q; $errMsg .= "<br>
" . mysql_error(); } viewSchema(); } goto GHkHQ; GHkHQ: 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(); } goto cgOtR; KjUbv: function header_html() { global $PHP_SELF; ?>
<html>
<head>
<title>MySQL Web Interface</title>
<style type="text/css">
<!--
p.location {
color: #FF6000;
font-size: small;
}
h1 {
color: #0090FF;
}
th {
background-color: #34A725;
color: #FFFFFF;
font-size: x-small;
}
td {
background-color: #5DB1FF;
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:#FF0000;
text-decoration:none             
}
//-->
</style>
</head>
<body>
<?php  } goto ZXI5e; cqpb4: function manageData($cmd) { global $mysqlHandle, $dbname, $tablename, $PHP_SELF; if ($cmd == "add") { echo "<h1>Add Data</h1>\xa"; } else { if ($cmd == "edit") { echo "<h1>Edit Data</h1>
"; $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>\xa"; echo "<form action='{$PHP_SELF}' method=post>\xa"; if ($cmd == "add") { echo "<input type=hidden name=action value=addData_submit>\xa"; } else { if ($cmd == "edit") { echo "<input type=hidden name=action value=editData_submit>
"; } } echo "<input type=hidden name=dbname value={$dbname}>
"; echo "<input type=hidden name=tablename value={$tablename}>\xa"; echo "<table cellspacing=1 cellpadding=2>
"; echo "<tr>
"; echo "<th>Name</th>\xa"; echo "<th>Type</th>\xa"; echo "<th>Function</th>
"; echo "<th>Data</th>\xa"; echo "</tr>\xa"; $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>
"; echo "<select name={$fieldname}_function>\xa"; echo "<option>
"; echo "<option>ASCII
"; echo "<option>CHAR\xa"; echo "<option>SOUNDEX\xa"; echo "<option>CURDATE
"; echo "<option>CURTIME\xa"; echo "<option>FROM_DAYS\xa"; echo "<option>FROM_UNIXTIME\xa"; echo "<option>NOW\xa"; echo "<option>PASSWORD\xa"; echo "<option>PERIOD_ADD\xa"; echo "<option>PERIOD_DIFF\xa"; echo "<option>TO_DAYS
"; echo "<option>USER
"; echo "<option>WEEKDAY
"; echo "<option>RAND
"; echo "</select>
"; echo "</td>
"; $value = htmlspecialchars($data[$i]); if ($cmd == "add") { $type = strtok($fieldtype, " (,)\xa"); if ($type == "enum" || $type == "set") { echo "<td>\xa"; if ($type == "enum") { echo "<select name={$fieldname}>\xa"; } else { if ($type == "set") { echo "<select name={$fieldname} size=4 multiple>
"; } } echo strtok("'"); while ($str = strtok("'")) { echo "<option>{$str}
"; strtok("'"); } echo "</select>
"; echo "</td>
"; } else { if ($len < 40) { echo "<td><input type=text size=40 maxlength={$len} name={$fieldname}></td>
"; } else { echo "<td><textarea cols=40 rows=3 maxlength={$len} name={$fieldname}></textarea>\xa"; } } } else { if ($cmd == "edit") { $type = strtok($fieldtype, " (,)
"); if ($type == "enum" || $type == "set") { echo "<td>\xa"; if ($type == "enum") { echo "<select name={$fieldname}>
"; } else { if ($type == "set") { echo "<select name={$fieldname} size=4 multiple>
"; } } echo strtok("'"); while ($str = strtok("'")) { if ($value == $str) { echo "<option selected>{$str}\xa"; } else { echo "<option>{$str}\xa"; } strtok("'"); } echo "</select>
"; echo "</td>\xa"; } else { if ($len < 40) { echo "<td><input type=text size=40 maxlength={$len} name={$fieldname} value="{$value}"></td>
"; } else { echo "<td><textarea cols=40 rows=3 maxlength={$len} name={$fieldname}>{$value}</textarea>
"; } } } } echo "</tr>"; } echo "</table><p>\xa"; if ($cmd == "add") { echo "<input type=submit value='Add Data'>
"; } else { if ($cmd == "edit") { echo "<input type=submit value='Edit Data'>\xa"; } } echo "<input type=button value='Cancel' onClick='history.back()'>\xa"; echo "</form>\xa"; } goto CK6tH; bSPhQ: function listDatabases() { global $mysqlHandle, $PHP_SELF; echo "<h1>Database List</h1>
"; echo "<form action='{$PHP_SELF}'>
"; echo "<input type=hidden name=action value=createDB>
"; echo "<input type=text name=dbname>
"; echo "<input type=submit value='Create Database'>\xa"; echo "</form>\xa"; echo "<hr>\xa"; echo "<table cellspacing=1 cellpadding=5>\xa"; $pDB = mysql_list_dbs($mysqlHandle); $num = mysql_num_rows($pDB); for ($i = 0; $i < $num; $i++) { $dbname = mysql_dbname($pDB, $i); echo "<tr>
"; echo "<td>{$dbname}</td>\xa"; echo "<td><a href='{$PHP_SELF}?action=listTables&dbname={$dbname}'>Table</a></td>\xa"; echo "<td><a href='{$PHP_SELF}?action=dropDB&dbname={$dbname}' onClick="return confirm('Drop Database \'{$dbname}\'?')">Drop</a></td>
"; echo "<td><a href='{$PHP_SELF}?action=dumpDB&dbname={$dbname}'>Dump</a></td>
"; echo "</tr>\xa"; } echo "</table>
"; } goto ngWAe; WoUrL: 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(''); } goto SJei_; aOc_S: function viewSchema() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg; echo "<h1>Table Schema</h1>
"; echo "<p class=location>{$dbname} &gt; {$tablename}</p>
"; echoQueryResult(); echo "<a href='{$PHP_SELF}?action=addField&dbname={$dbname}&tablename={$tablename}'>Add Field</a> | \xa"; echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}'>View Data</a>\xa"; echo "<hr>\xa"; $pResult = mysql_db_query($dbname, "SHOW fields FROM {$tablename}"); $num = mysql_num_rows($pResult); echo "<table cellspacing=1 cellpadding=5>
"; echo "<tr>
"; echo "<th>Field</th>
"; echo "<th>Type</th>\xa"; echo "<th>Null</th>\xa"; echo "<th>Key</th>
"; echo "<th>Default</th>\xa"; echo "<th>Extra</th>
"; echo "<th colspan=2>Action</th>\xa"; echo "</tr>\xa"; for ($i = 0; $i < $num; $i++) { $field = mysql_fetch_array($pResult); echo "<tr>
"; echo "<td>" . $field["Field"] . "</td>
"; echo "<td>" . $field["Type"] . "</td>
"; echo "<td>" . $field["Null"] . "</td>
"; echo "<td>" . $field["Key"] . "</td>
"; echo "<td>" . $field["Default"] . "</td>\xa"; echo "<td>" . $field["Extra"] . "</td>
"; $fieldname = $field["Field"]; echo "<td><a href='{$PHP_SELF}?action=editField&dbname={$dbname}&tablename={$tablename}&fieldname={$fieldname}'>Edit</a></td>
"; echo "<td><a href='{$PHP_SELF}?action=dropField&dbname={$dbname}&tablename={$tablename}&fieldname={$fieldname}' onClick="return confirm('Drop Field \'{$fieldname}\'?')">Drop</a></td>
"; echo "</tr>
"; } echo "</table>\xa"; } goto rDA5Z; NuomT: function listTables() { global $mysqlHandle, $dbname, $PHP_SELF; echo "<h1>Table List</h1>
"; echo "<p class=location>{$dbname}</p>\xa"; echoQueryResult(); echo "<form action='{$PHP_SELF}'>
"; echo "<input type=hidden name=action value=createTable>\xa"; echo "<input type=hidden name=dbname value={$dbname}>\xa"; echo "<input type=text name=tablename>\xa"; echo "<input type=submit value='Create Table'>
"; echo "</form>\xa"; echo "<form action='{$PHP_SELF}'>
"; echo "<input type=hidden name=action value=query>\xa"; echo "<input type=hidden name=dbname value={$dbname}>
"; echo "<input type=text size=40 name=queryStr>
"; echo "<input type=submit value='Query'>
"; echo "</form>
"; echo "<hr>\xa"; $pTable = mysql_list_tables($dbname); if ($pTable == 0) { $msg = mysql_error(); echo "<h3>Error : {$msg}</h3><p>
"; return; } $num = mysql_num_rows($pTable); echo "<table cellspacing=1 cellpadding=5>\xa"; for ($i = 0; $i < $num; $i++) { $tablename = mysql_tablename($pTable, $i); echo "<tr>\xa"; echo "<td>
"; echo "{$tablename}
"; echo "</td>\xa"; echo "<td>
"; echo "<a href='{$PHP_SELF}?action=viewSchema&dbname={$dbname}&tablename={$tablename}'>Schema</a>
"; echo "</td>
"; echo "<td>\xa"; echo "<a href='{$PHP_SELF}?action=viewData&dbname={$dbname}&tablename={$tablename}'>Data</a>
"; echo "</td>
"; echo "<td>
"; echo "<a href='{$PHP_SELF}?action=dropTable&dbname={$dbname}&tablename={$tablename}' onClick="return confirm('Drop Database \'{$dbname}\'?')">Drop</a>
"; echo "</td>\xa"; echo "<td>\xa"; echo "<a href='{$PHP_SELF}?action=dumpTable&dbname={$dbname}&tablename={$tablename}'>Dump</a>\xa"; echo "</td>\xa"; echo "</tr>
"; } echo "</table>"; } goto BbFo8; BbFo8: 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(); } goto AfYFV; AfYFV: 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(); } goto aOc_S; CK6tH: 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(''); } goto WoUrL; ZXI5e: function footer_html() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $USERNAME; echo "<hr>\xa"; echo "<font size=2>
"; echo "<font color=blue>[{$USERNAME}]</font> - 
"; echo "<a href='{$PHP_SELF}?action=listDBs'>Database List</a> | 
"; 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> |
"; echo "<a href='{$PHP_SELF}?action=logout'>Logout</a>
"; echo "</font>
"; echo "</body>
"; echo "</html>\xa"; } goto NW76J; h2NvZ: ?>

Did this file decode correctly?

Original Code

<?php
 goto h4hQz; h4hQz: $HOSTNAME = "\x6c\157\x63\141\x6c\x68\157\163\164"; goto zNwmR; QFD1S: function echoQueryResult() { global $queryStr, $errMsg; if ($errMsg == '') { $errMsg = "\x53\x75\143\x63\x65\163\163"; } if ($queryStr != '') { echo "\74\x74\141\142\x6c\x65\x20\x63\145\x6c\154\160\141\144\x64\151\x6e\x67\75\65\x3e\12"; echo "\74\x74\x72\76\74\x74\144\x3e\x51\x75\x65\162\171\74\x2f\164\144\x3e\74\164\x64\x3e{$queryStr}\74\x2f\x74\x64\x3e\x3c\57\164\162\76\xa"; echo "\x3c\164\x72\x3e\x3c\164\x64\x3e\122\x65\163\x75\x6c\164\x3c\x2f\164\x64\76\x3c\x74\144\76{$errMsg}\x3c\57\x74\x64\76\x3c\x2f\x74\x72\76\12"; echo "\74\x2f\x74\x61\x62\x6c\145\76\74\160\x3e\12"; } } goto bSPhQ; S5r2w: function logon_submit() { global $username, $password, $PHP_SELF; setcookie("\x6d\x79\163\x71\154\137\167\x65\142\137\x61\144\155\151\x6e\x5f\165\163\145\x72\156\141\155\145", $username); setcookie("\155\171\163\x71\x6c\x5f\x77\145\142\x5f\141\x64\x6d\x69\x6e\x5f\160\141\x73\163\167\x6f\x72\x64", $password); echo "\74\x68\x74\x6d\154\76"; echo "\74\x68\x65\x61\x64\x3e"; echo "\x3c\115\105\x54\x41\x20\110\x54\x54\120\x2d\x45\121\x55\x49\x56\x3d\122\x65\146\x72\145\163\150\x20\103\117\x4e\124\105\116\x54\75\x27\60\x3b\40\125\122\114\x3d{$PHP_SELF}\77\141\x63\x74\151\157\156\75\x6c\x69\x73\x74\x44\x42\x73\47\x3e"; echo "\x3c\57\x68\145\141\144\x3e"; echo "\74\x2f\x68\164\x6d\154\x3e"; } goto QFD1S; ngWAe: function createDatabase() { global $mysqlHandle, $dbname, $PHP_SELF; mysql_create_db($dbname, $mysqlHandle); listDatabases(); } goto cw_uR; rDA5Z: function manageField($cmd) { global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF; if ($cmd == "\141\144\144") { echo "\x3c\150\x31\x3e\x41\144\x64\40\106\151\145\x6c\144\x3c\57\150\61\76\12"; } else { if ($cmd == "\x65\x64\x69\164") { echo "\x3c\x68\x31\76\105\144\x69\x74\x20\x46\151\145\154\x64\74\x2f\x68\x31\76\xa"; $pResult = mysql_db_query($dbname, "\x53\x48\117\x57\40\146\x69\x65\154\144\163\40\106\x52\x4f\x4d\x20{$tablename}"); $num = mysql_num_rows($pResult); for ($i = 0; $i < $num; $i++) { $field = mysql_fetch_array($pResult); if ($field["\106\x69\x65\x6c\144"] == $fieldname) { $fieldtype = $field["\124\x79\x70\145"]; $fieldkey = $field["\x4b\x65\x79"]; $fieldextra = $field["\x45\x78\x74\x72\141"]; $fieldnull = $field["\x4e\165\154\x6c"]; $fielddefault = $field["\x44\145\146\x61\x75\154\x74"]; break; } } $type = strtok($fieldtype, "\x20\50\54\51\xa"); if (strpos($fieldtype, "\x28")) { if ($type == "\x65\x6e\x75\x6d" | $type == "\163\145\x74") { $valuelist = strtok("\x20\x28\x29\xa"); } else { $M = strtok("\40\x28\54\x29\xa"); if (strpos($fieldtype, "\x2c")) { $D = strtok("\40\x28\54\51\12"); } } } } } echo "\x3c\x70\x20\x63\x6c\x61\x73\x73\x3d\154\157\x63\141\x74\x69\157\156\x3e{$dbname}\x20\46\147\164\73\40{$tablename}\74\x2f\x70\x3e\12"; echo "\x3c\x66\157\162\x6d\x20\141\x63\x74\x69\157\x6e\x3d{$PHP_SELF}\76\12"; if ($cmd == "\141\144\144") { echo "\x3c\151\156\x70\x75\x74\x20\164\x79\160\145\x3d\150\x69\x64\x64\145\x6e\40\x6e\141\155\x65\75\x61\x63\x74\151\157\156\40\166\x61\x6c\165\145\x3d\141\x64\x64\106\151\145\154\x64\137\163\165\x62\x6d\151\164\x3e\12"; } else { if ($cmd == "\x65\x64\151\x74") { echo "\x3c\151\x6e\x70\165\x74\40\164\171\x70\x65\x3d\x68\x69\144\x64\x65\x6e\x20\156\x61\x6d\145\75\x61\x63\164\151\x6f\x6e\40\166\141\x6c\x75\x65\75\x65\x64\151\164\106\151\145\154\x64\137\163\165\x62\x6d\151\x74\x3e\12"; echo "\74\x69\x6e\x70\x75\x74\x20\164\171\x70\145\75\150\x69\144\144\145\156\40\156\x61\155\x65\x3d\x6f\154\144\x5f\x6e\x61\155\x65\x20\x76\141\x6c\x75\x65\x3d{$fieldname}\76\12"; } } echo "\74\151\x6e\x70\165\164\40\164\x79\x70\x65\75\150\151\x64\144\145\156\40\156\141\155\145\75\x64\142\x6e\x61\x6d\x65\40\166\141\154\x75\145\x3d{$dbname}\76\xa"; echo "\74\x69\x6e\160\165\164\x20\x74\x79\160\145\x3d\150\x69\144\x64\145\156\40\156\141\155\x65\x3d\164\141\142\x6c\145\156\x61\155\145\40\166\141\154\165\x65\75{$tablename}\x3e\12"; echo "\x3c\150\63\x3e\x4e\141\x6d\x65\74\x2f\150\x33\x3e\12"; echo "\x3c\x69\x6e\160\165\164\40\164\x79\160\145\75\x74\x65\x78\164\40\156\141\x6d\x65\75\x6e\x61\x6d\x65\x20\x76\x61\x6c\165\x65\75{$fieldname}\x3e\x3c\x70\76\xa"; ?>

<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" <?php  if ($type == "\164\151\x6e\x79\151\x6e\x74") { echo "\x63\x68\145\143\x6b\x65\x64"; } ?>
>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" <?php  if ($type == "\x73\x6d\141\x6c\x6c\151\x6e\x74") { echo "\x63\150\x65\x63\x6b\x65\144"; } ?>
>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" <?php  if ($type == "\155\x65\144\151\165\x6d\151\x6e\164") { echo "\143\150\145\143\x6b\x65\144"; } ?>
>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" <?php  if ($type == "\151\x6e\x74") { echo "\143\x68\x65\143\x6b\x65\x64"; } ?>
>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" <?php  if ($type == "\142\151\x67\151\x6e\x74") { echo "\x63\x68\x65\143\x6b\x65\144"; } ?>
>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" <?php  if ($type == "\146\154\157\x61\164") { echo "\x63\150\145\x63\153\x65\144"; } ?>
>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" <?php  if ($type == "\144\x6f\x75\x62\x6c\145") { echo "\x63\150\x65\x63\x6b\x65\x64"; } ?>
>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" <?php  if ($type == "\x64\145\x63\x69\155\141\154") { echo "\143\x68\x65\143\x6b\145\144"; } ?>
>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" <?php  if ($type == "\x64\x61\x74\x65") { echo "\x63\150\x65\143\153\x65\x64"; } ?>
>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" <?php  if ($type == "\x64\x61\164\145\164\151\x6d\x65") { echo "\143\150\x65\143\153\x65\x64"; } ?>
>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" <?php  if ($type == "\164\x69\155\x65\163\164\x61\155\x70") { echo "\x63\x68\145\143\153\x65\144"; } ?>
>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" <?php  if ($type == "\x74\x69\155\x65") { echo "\x63\150\x65\x63\x6b\x65\144"; } ?>
>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" <?php  if ($type == "\171\x65\141\162") { echo "\x63\150\x65\x63\153\145\144"; } ?>
>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" <?php  if ($type == "\143\x68\x61\x72") { echo "\x63\150\x65\x63\153\x65\x64"; } ?>
>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" <?php  if ($type == "\x76\x61\x72\x63\x68\x61\x72") { echo "\143\150\x65\143\153\145\144"; } ?>
>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" <?php  if ($type == "\x74\x69\x6e\171\164\145\x78\164") { echo "\x63\x68\x65\143\153\145\144"; } ?>
>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" <?php  if ($type == "\x74\145\x78\164") { echo "\x63\150\145\143\153\x65\144"; } ?>
>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" <?php  if ($type == "\x6d\145\144\x69\165\x6d\164\x65\170\164") { echo "\x63\x68\145\x63\x6b\x65\x64"; } ?>
>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" <?php  if ($type == "\154\x6f\x6e\x67\x74\x65\x78\x74") { echo "\x63\x68\145\143\x6b\145\x64"; } ?>
>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" <?php  if ($type == "\x74\x69\156\171\x62\x6c\157\x62") { echo "\x63\150\145\143\153\145\x64"; } ?>
>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" <?php  if ($type == "\142\x6c\157\x62") { echo "\143\x68\145\143\x6b\145\x64"; } ?>
>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" <?php  if ($type == "\155\x65\x64\x69\x75\155\142\x6c\157\x62") { echo "\x63\150\145\x63\153\145\144"; } ?>
>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" <?php  if ($type == "\x6c\157\156\147\142\154\x6f\x62") { echo "\x63\x68\145\143\x6b\x65\x64"; } ?>
>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" <?php  if ($type == "\145\156\x75\x6d") { echo "\x63\x68\145\x63\x6b\145\144"; } ?>
>ENUM</td>
<td colspan=5><center>value list</center></td>
</tr>
<tr>
<td><input type=radio name=type value="SET" <?php  if ($type == "\163\x65\164") { echo "\x63\x68\x65\143\153\145\144"; } ?>
>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 <?php  if ($M != '') { echo "\x76\x61\x6c\x75\145\x3d{$M}"; } ?>
></td>
<td align=center><input type=text size=4 name=D <?php  if ($D != '') { echo "\x76\141\x6c\x75\x65\75{$D}"; } ?>
></td>
<td align=center><input type=checkbox name=unsigned value="UNSIGNED" <?php  if (strpos($fieldtype, "\x75\156\163\151\x67\156\145\144")) { echo "\x63\x68\x65\143\153\145\x64"; } ?>
></td>
<td align=center><input type=checkbox name=zerofill value="ZEROFILL" <?php  if (strpos($fieldtype, "\172\145\162\157\x66\x69\154\x6c")) { echo "\x63\x68\145\143\x6b\145\x64"; } ?>
></td>
<td align=center><input type=checkbox name=binary value="BINARY" <?php  if (strpos($fieldtype, "\x62\x69\x6e\x61\x72\x79")) { echo "\143\x68\145\x63\x6b\145\144"; } ?>
></td>
<td align=center><input type=text size=60 name=valuelist <?php  if ($valuelist != '') { echo "\x76\x61\154\x75\x65\75\42{$valuelist}\42"; } ?>
></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" <?php  if ($fieldnull != "\131\x45\123") { echo "\x63\150\145\143\153\x65\x64"; } ?>
></td>
<td align=center><input type=text name=default_value <?php  if ($fielddefault != '') { echo "\166\x61\x6c\x75\145\x3d{$fielddefault}"; } ?>
></td>
<td align=center><input type=checkbox name=auto_increment value="AUTO_INCREMENT" <?php  if ($fieldextra == "\x61\165\x74\157\137\151\156\x63\x72\145\x6d\145\156\164") { echo "\143\x68\145\143\153\145\144"; } ?>
></td>
<td align=center><input type=checkbox name=primary_key value="PRIMARY KEY" <?php  if ($fieldkey == "\120\122\111") { echo "\143\x68\145\x63\153\145\x64"; } ?>
></td>
</tr>
</table>

<p>

<?php  if ($cmd == "\141\144\x64") { echo "\74\151\x6e\x70\x75\164\40\x74\x79\x70\x65\x3d\163\165\x62\x6d\151\164\x20\166\x61\154\165\x65\75\x27\x41\144\144\40\x46\151\145\154\x64\x27\x3e\xa"; } else { if ($cmd == "\145\144\151\x74") { echo "\x3c\x69\156\x70\x75\164\x20\x74\171\x70\x65\x3d\x73\165\x62\x6d\151\x74\40\x76\141\154\165\145\x3d\47\105\144\151\x74\40\106\151\145\154\144\47\76\xa"; } } echo "\x3c\151\156\x70\165\164\x20\164\x79\160\145\75\142\165\164\164\157\x6e\x20\166\x61\154\x75\x65\x3d\103\x61\156\143\145\x6c\x20\x6f\156\103\154\x69\x63\x6b\x3d\x27\150\x69\163\164\157\162\171\56\142\x61\143\x6b\50\x29\x27\76\12"; echo "\x3c\x2f\x66\x6f\162\155\x3e\12"; } goto IS5IW; cw_uR: function dropDatabase() { global $mysqlHandle, $dbname, $PHP_SELF; mysql_drop_db($dbname, $mysqlHandle); listDatabases(); } goto NuomT; cgOtR: function viewData($queryStr) { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $errMsg, $page, $rowperpage, $orderby; echo "\74\x68\61\x3e\104\x61\164\x61\40\151\156\40\x54\x61\142\x6c\145\x3c\57\x68\x31\76\xa"; if ($tablename != '') { echo "\74\x70\40\143\x6c\x61\x73\x73\x3d\154\x6f\143\141\164\x69\157\x6e\76{$dbname}\x20\x26\147\164\73\40{$tablename}\74\57\160\76\xa"; } else { echo "\x3c\160\x20\x63\154\141\163\163\x3d\154\x6f\143\141\x74\x69\x6f\x6e\76{$dbname}\74\x2f\160\76\12"; } $queryStr = stripslashes($queryStr); if ($queryStr == '') { $queryStr = "\123\105\114\105\x43\x54\40\x2a\x20\x46\x52\x4f\115\x20{$tablename}"; if ($orderby != '') { $queryStr .= "\40\117\122\x44\x45\x52\40\x42\x59\x20{$orderby}"; } echo "\74\141\40\150\x72\145\146\75\47{$PHP_SELF}\77\x61\143\164\151\x6f\156\x3d\x61\144\x64\104\x61\x74\x61\x26\x64\142\156\141\155\x65\x3d{$dbname}\46\x74\x61\x62\x6c\x65\x6e\141\x6d\145\x3d{$tablename}\x27\76\x41\x64\x64\40\x44\x61\x74\x61\74\x2f\x61\x3e\x20\x7c\40\12"; echo "\x3c\x61\40\150\x72\x65\x66\x3d\47{$PHP_SELF}\77\x61\143\x74\x69\x6f\156\75\x76\x69\145\x77\x53\x63\150\145\155\141\46\144\x62\x6e\x61\x6d\x65\x3d{$dbname}\x26\164\x61\x62\x6c\145\x6e\141\155\x65\75{$tablename}\x27\76\123\143\x68\145\x6d\141\74\57\x61\76\12"; } $pResult = mysql_db_query($dbname, $queryStr); $errMsg = mysql_error(); $GLOBALS[queryStr] = $queryStr; if ($pResult == false) { echoQueryResult(); return; } if ($pResult == 1) { $errMsg = "\x53\165\143\x63\145\163\163"; echoQueryResult(); return; } echo "\74\150\x72\76\12"; $row = mysql_num_rows($pResult); $col = mysql_num_fields($pResult); if ($row == 0) { echo "\x4e\157\x20\104\141\x74\141\40\x45\170\151\163\164\x21"; return; } if ($rowperpage == '') { $rowperpage = 20; } if ($page == '') { $page = 0; } else { $page--; } mysql_data_seek($pResult, $page * $rowperpage); echo "\74\x74\141\142\x6c\145\40\143\145\154\154\163\160\x61\143\151\x6e\147\x3d\x31\x20\x63\145\154\x6c\160\141\x64\x64\x69\x6e\147\x3d\62\76\xa"; echo "\74\164\162\76\12"; for ($i = 0; $i < $col; $i++) { $field = mysql_fetch_field($pResult, $i); echo "\74\164\x68\x3e"; echo "\74\141\40\150\162\145\x66\75\47{$PHP_SELF}\x3f\141\143\164\x69\157\156\x3d\166\151\145\x77\x44\x61\x74\x61\x26\144\142\156\141\x6d\x65\x3d{$dbname}\x26\164\141\142\154\145\156\x61\155\145\75{$tablename}\x26\157\x72\x64\x65\162\142\x79\75" . $field->name . "\x27\x3e" . $field->name . "\74\x2f\141\76\xa"; echo "\x3c\57\164\150\x3e\xa"; } echo "\74\164\x68\x20\143\x6f\154\x73\160\141\x6e\x3d\x32\x3e\x41\x63\164\151\x6f\156\74\x2f\x74\x68\76\xa"; echo "\74\x2f\x74\x72\x3e\12"; for ($i = 0; $i < $rowperpage; $i++) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } echo "\74\x74\x72\x3e\xa"; $key = ''; for ($j = 0; $j < $col; $j++) { $data = $rowArray[$j]; $field = mysql_fetch_field($pResult, $j); if ($field->primary_key == 1) { $key .= "\46" . $field->name . "\x3d" . $data; } if (strlen($data) > 20) { $data = substr($data, 0, 20) . "\56\x2e\x2e"; } $data = htmlspecialchars($data); echo "\x3c\x74\144\76\12"; echo "{$data}\12"; echo "\74\x2f\164\144\76\12"; } if ($key == '') { echo "\x3c\x74\144\x20\x63\x6f\154\x73\160\141\156\x3d\x32\76\x6e\x6f\40\113\145\171\x3c\x2f\164\144\76\12"; } else { echo "\74\164\144\76\74\x61\x20\x68\x72\145\146\75\47{$PHP_SELF}\77\141\143\x74\151\157\x6e\x3d\x65\x64\151\x74\104\x61\164\x61\46\144\x62\156\x61\155\x65\75{$dbname}\46\x74\x61\x62\x6c\145\x6e\141\x6d\x65\75{$tablename}{$key}\47\x3e\x45\x64\151\x74\74\x2f\141\x3e\74\57\x74\144\76\xa"; echo "\x3c\x74\x64\x3e\74\x61\40\x68\162\x65\146\x3d\x27{$PHP_SELF}\x3f\141\x63\x74\x69\157\156\75\144\145\154\x65\164\145\x44\141\x74\141\x26\x64\x62\x6e\141\155\x65\x3d{$dbname}\46\x74\141\142\154\145\x6e\141\155\x65\x3d{$tablename}{$key}\x27\x20\157\x6e\x43\x6c\x69\x63\153\x3d\x22\x72\x65\x74\165\x72\x6e\40\143\x6f\156\146\151\162\155\x28\47\104\145\x6c\145\x74\145\x20\122\157\x77\x3f\x27\x29\x22\76\x44\145\x6c\145\164\145\x3c\x2f\x61\x3e\74\57\x74\x64\x3e\12"; } echo "\x3c\57\164\x72\76\12"; } echo "\x3c\57\x74\141\x62\x6c\x65\76\12"; echo "\x3c\146\157\156\164\x20\163\151\172\145\75\x32\x3e\12"; echo "\x3c\146\x6f\162\155\40\141\143\x74\151\157\156\75\47{$PHP_SELF}\x3f\141\x63\164\x69\x6f\x6e\75\x76\151\145\167\x44\x61\x74\141\46\x64\x62\x6e\x61\x6d\145\x3d{$dbname}\46\164\141\142\x6c\145\x6e\141\155\145\75{$tablename}\x27\x20\x6d\145\164\x68\157\x64\75\160\157\163\x74\x3e\12"; echo "\x3c\146\x6f\x6e\164\40\143\x6f\x6c\x6f\162\75\147\162\x65\x65\156\76\xa"; echo $page + 1 . "\x2f" . (int) ($row / $rowperpage + 1) . "\40\160\141\x67\x65"; echo "\74\57\146\x6f\x6e\164\76\xa"; echo "\40\174\40"; if ($page > 0) { echo "\x3c\x61\x20\150\x72\x65\x66\x3d\x27{$PHP_SELF}\x3f\x61\143\164\x69\157\x6e\x3d\166\x69\145\x77\x44\x61\164\141\46\144\142\x6e\141\155\x65\x3d{$dbname}\x26\x74\x61\142\154\x65\x6e\x61\x6d\x65\x3d{$tablename}\46\160\141\147\145\75" . $page; if ($orderby != '') { echo "\46\x6f\x72\144\x65\162\142\171\75{$orderby}"; } echo "\47\x3e\x50\162\x65\166\74\x2f\x61\x3e\12"; } else { echo "\x50\162\145\x76"; } echo "\40\x7c\40"; if ($page < $row / $rowperpage - 1) { echo "\x3c\141\x20\x68\x72\x65\146\75\x27{$PHP_SELF}\77\x61\x63\164\151\157\156\75\x76\x69\x65\167\104\141\x74\141\x26\x64\142\x6e\141\x6d\x65\x3d{$dbname}\46\164\x61\142\x6c\x65\156\141\155\x65\x3d{$tablename}\46\160\x61\x67\145\x3d" . ($page + 2); if ($orderby != '') { echo "\46\157\162\144\145\162\142\171\x3d{$orderby}"; } echo "\47\76\x4e\145\x78\164\x3c\x2f\141\76\xa"; } else { echo "\116\145\170\x74"; } echo "\x20\x7c\40"; if ($row > $rowperpage) { echo "\74\x69\x6e\160\x75\164\x20\x74\x79\160\x65\75\164\145\x78\164\40\x73\x69\172\x65\75\x34\x20\156\x61\x6d\x65\75\x70\x61\x67\145\x3e\xa"; echo "\x3c\151\x6e\x70\x75\x74\40\164\171\x70\145\x3d\163\x75\142\155\x69\x74\x20\166\x61\x6c\165\x65\75\x27\x47\x6f\x27\x3e\12"; } echo "\74\x2f\146\x6f\162\x6d\x3e\12"; echo "\74\57\x66\157\156\164\x3e\xa"; } goto cqpb4; fLmHB: function utils() { global $PHP_SELF, $command; echo "\x3c\150\61\x3e\125\x74\x69\154\x69\x74\151\145\x73\x3c\x2f\150\x31\x3e\12"; if ($command == '' || substr($command, 0, 5) == "\x66\154\165\x73\150") { echo "\x3c\150\162\76\12"; echo "\x53\x68\x6f\167\12"; echo "\74\x75\x6c\76\xa"; echo "\74\154\151\x3e\x3c\x61\x20\150\x72\145\146\x3d\47{$PHP_SELF}\77\x61\143\164\151\157\x6e\x3d\x75\164\151\154\163\x26\x63\x6f\155\155\x61\156\144\x3d\163\x68\x6f\167\137\x73\164\x61\x74\x75\163\47\x3e\x53\164\x61\x74\165\x73\x3c\57\141\x3e\xa"; echo "\74\x6c\151\76\74\x61\x20\150\162\x65\x66\x3d\x27{$PHP_SELF}\x3f\x61\x63\x74\151\x6f\x6e\75\165\164\151\x6c\163\x26\143\x6f\155\155\x61\x6e\x64\x3d\x73\150\x6f\x77\x5f\166\x61\162\x69\x61\142\154\x65\163\x27\76\x56\x61\162\x69\x61\142\x6c\x65\x73\74\x2f\141\76\12"; echo "\74\x6c\x69\x3e\x3c\x61\x20\x68\162\x65\146\75\47{$PHP_SELF}\77\x61\x63\164\x69\157\156\75\165\x74\x69\154\163\x26\143\157\x6d\x6d\141\156\144\x3d\163\x68\x6f\167\x5f\x70\x72\x6f\143\145\x73\163\154\x69\163\164\x27\76\120\x72\157\x63\145\x73\x73\x6c\151\163\x74\74\57\x61\76\12"; echo "\74\x2f\x75\154\76\12"; echo "\x46\x6c\x75\163\x68\12"; echo "\74\x75\x6c\76\12"; echo "\x3c\154\151\x3e\74\141\40\x68\162\145\x66\x3d\x27{$PHP_SELF}\77\141\x63\x74\151\157\156\75\x75\x74\151\154\163\x26\x63\157\155\x6d\141\156\144\x3d\146\x6c\165\x73\x68\x5f\150\157\163\x74\x73\47\76\110\157\x73\164\163\74\x2f\x61\76\xa"; if ($command == "\146\154\165\163\150\x5f\x68\157\x73\x74\x73") { if (mysql_query("\x46\x6c\x75\163\x68\40\150\x6f\x73\x74\163") != false) { echo "\x3c\x66\x6f\156\x74\40\163\x69\172\145\x3d\62\x20\x63\x6f\x6c\157\162\x3d\162\145\144\76\x2d\40\123\x75\x63\x63\x65\x73\x73\x3c\x2f\146\157\x6e\x74\x3e"; } else { echo "\74\146\x6f\156\164\x20\x73\x69\172\x65\x3d\x32\40\x63\157\154\x6f\162\x3d\x72\x65\144\x3e\55\40\x46\x61\151\x6c\74\57\146\157\156\x74\x3e"; } } echo "\74\x6c\151\76\x3c\x61\40\x68\x72\x65\x66\x3d\47{$PHP_SELF}\77\141\x63\x74\151\x6f\156\75\x75\x74\151\154\163\46\143\157\155\x6d\141\156\x64\x3d\x66\154\165\163\150\x5f\154\157\147\163\47\x3e\114\x6f\x67\163\x3c\x2f\x61\76\xa"; if ($command == "\146\154\165\x73\x68\137\154\157\147\x73") { if (mysql_query("\106\x6c\165\x73\x68\x20\154\157\x67\x73") != false) { echo "\74\x66\x6f\x6e\164\x20\x73\151\x7a\145\75\x32\40\143\x6f\x6c\x6f\x72\x3d\162\145\x64\x3e\x2d\x20\123\x75\143\x63\145\163\x73\74\x2f\x66\x6f\x6e\164\x3e"; } else { echo "\x3c\146\157\156\164\40\x73\x69\172\145\75\x32\x20\x63\x6f\154\157\162\x3d\162\145\x64\76\55\x20\x46\x61\151\x6c\x3c\57\146\157\156\x74\76"; } } echo "\x3c\x6c\151\x3e\74\141\x20\150\162\x65\x66\x3d\47{$PHP_SELF}\x3f\141\x63\164\x69\x6f\x6e\x3d\x75\x74\x69\154\163\x26\143\x6f\x6d\x6d\x61\x6e\144\x3d\x66\x6c\x75\x73\150\137\x70\x72\151\166\151\x6c\x65\x67\x65\163\47\x3e\x50\162\151\x76\151\154\145\x67\145\163\x3c\57\x61\x3e\12"; if ($command == "\x66\x6c\x75\x73\x68\137\160\162\x69\x76\151\x6c\145\x67\145\163") { if (mysql_query("\x46\x6c\165\x73\x68\40\160\162\x69\166\151\x6c\145\x67\145\163") != false) { echo "\x3c\146\x6f\156\x74\x20\163\x69\172\x65\75\x32\40\143\x6f\x6c\157\x72\x3d\x72\x65\144\x3e\x2d\x20\123\x75\x63\x63\145\x73\163\74\x2f\146\157\156\x74\76"; } else { echo "\x3c\x66\x6f\x6e\x74\x20\163\151\172\x65\x3d\x32\40\x63\157\154\157\162\x3d\x72\145\144\x3e\x2d\x20\x46\141\x69\154\x3c\x2f\146\157\156\164\76"; } } echo "\x3c\154\x69\x3e\74\141\40\150\x72\145\146\75\47{$PHP_SELF}\x3f\141\143\164\x69\x6f\156\x3d\x75\164\x69\x6c\x73\x26\143\x6f\x6d\x6d\141\x6e\144\x3d\x66\154\165\x73\x68\137\x74\141\x62\154\x65\x73\x27\76\x54\141\142\154\145\x73\74\x2f\141\x3e\xa"; if ($command == "\146\x6c\165\163\x68\137\164\141\x62\x6c\x65\x73") { if (mysql_query("\x46\154\x75\x73\150\x20\x74\141\142\154\145\x73") != false) { echo "\x3c\x66\x6f\x6e\164\40\163\151\x7a\145\75\x32\x20\143\157\x6c\x6f\x72\x3d\162\x65\144\x3e\55\x20\123\x75\143\143\145\163\163\74\57\x66\x6f\x6e\x74\x3e"; } else { echo "\x3c\x66\157\156\x74\x20\x73\x69\x7a\x65\75\x32\40\143\157\154\157\162\75\x72\x65\144\76\x2d\40\x46\x61\151\x6c\74\x2f\146\157\x6e\x74\x3e"; } } echo "\x3c\154\151\x3e\x3c\141\40\x68\x72\145\x66\x3d\x27{$PHP_SELF}\x3f\x61\143\x74\151\x6f\x6e\x3d\165\x74\151\154\x73\x26\x63\157\x6d\x6d\141\156\x64\75\x66\154\165\163\150\137\163\164\141\x74\165\163\x27\76\123\x74\x61\x74\x75\163\x3c\57\141\76\12"; if ($command == "\x66\x6c\165\x73\x68\x5f\163\164\141\x74\x75\163") { if (mysql_query("\x46\154\x75\163\150\40\x73\x74\141\164\x75\x73") != false) { echo "\x3c\x66\x6f\156\x74\x20\163\151\x7a\x65\75\62\x20\143\157\x6c\x6f\162\x3d\162\145\x64\x3e\x2d\40\123\x75\x63\143\145\x73\x73\x3c\57\146\157\156\x74\x3e"; } else { echo "\74\x66\x6f\x6e\x74\40\163\x69\x7a\145\x3d\62\40\143\157\154\157\162\75\162\x65\x64\x3e\x2d\x20\106\141\151\154\x3c\x2f\146\157\x6e\164\76"; } } echo "\x3c\57\x75\x6c\76\12"; } else { $queryStr = ereg_replace("\137", "\x20", $command); $pResult = mysql_query($queryStr); if ($pResult == false) { echo "\x46\x61\x69\x6c"; return; } $col = mysql_num_fields($pResult); echo "\74\160\x20\143\x6c\141\x73\163\x3d\x6c\157\x63\x61\164\x69\157\x6e\x3e{$queryStr}\x3c\57\160\76\xa"; echo "\74\x68\162\76\12"; echo "\x3c\164\x61\142\154\x65\x20\x63\x65\154\154\x73\160\x61\x63\x69\x6e\147\75\61\x20\x63\145\x6c\x6c\160\141\144\x64\151\156\147\75\62\40\142\x6f\x72\144\145\162\x3d\60\76\xa"; echo "\x3c\x74\162\76\xa"; for ($i = 0; $i < $col; $i++) { $field = mysql_fetch_field($pResult, $i); echo "\74\x74\x68\76" . $field->name . "\74\x2f\164\150\76\xa"; } echo "\x3c\57\x74\x72\76\12"; while (1) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } echo "\74\x74\x72\x3e\xa"; for ($j = 0; $j < $col; $j++) { echo "\74\x74\x64\76" . htmlspecialchars($rowArray[$j]) . "\74\x2f\164\x64\76\xa"; } echo "\74\57\164\x72\x3e\12"; } echo "\x3c\57\x74\x61\142\154\145\76\12"; } } goto KjUbv; NW76J: if ($action == "\x6c\157\147\x6f\x6e" || $action == '' || $action == "\x6c\x6f\x67\157\x75\x74") { logon(); } else { if ($action == "\154\157\147\157\156\x5f\163\165\x62\155\x69\x74") { logon_submit(); } else { if ($action == "\144\165\x6d\x70\x54\141\142\154\145" || $action == "\144\x75\x6d\160\104\x42") { while (list($var, $value) = each($HTTP_COOKIE_VARS)) { if ($var == "\155\x79\x73\x71\x6c\x5f\167\x65\142\137\x61\x64\155\151\x6e\137\165\x73\145\162\156\x61\155\145") { $USERNAME = $value; } if ($var == "\155\171\163\x71\x6c\x5f\x77\x65\142\137\141\x64\155\x69\x6e\x5f\160\141\x73\x73\x77\x6f\x72\x64") { $PASSWORD = $value; } } $mysqlHandle = mysql_pconnect($HOSTNAME, $USERNAME, $PASSWORD); dump(); } else { while (list($var, $value) = each($HTTP_COOKIE_VARS)) { if ($var == "\155\171\x73\161\x6c\137\167\x65\x62\137\x61\144\155\x69\x6e\137\165\x73\x65\x72\156\x61\x6d\145") { $USERNAME = $value; } if ($var == "\155\171\x73\161\154\137\x77\x65\142\x5f\141\x64\x6d\x69\156\x5f\160\141\163\163\167\x6f\162\x64") { $PASSWORD = $value; } } echo "\74\x21\x2d\55"; $mysqlHandle = mysql_pconnect($HOSTNAME, $USERNAME, $PASSWORD); echo "\55\55\76"; if ($mysqlHandle == false) { echo "\74\x68\164\x6d\154\x3e\xa"; echo "\x3c\x68\x65\141\x64\x3e\xa"; echo "\x3c\164\x69\164\x6c\x65\x3e\x4d\171\123\121\114\x20\x57\x65\x62\x20\x49\156\164\145\x72\146\141\x63\145\74\x2f\164\151\x74\x6c\x65\x3e\xa"; echo "\74\x2f\150\145\x61\144\x3e\xa"; echo "\74\142\157\x64\171\76\xa"; echo "\74\x74\141\x62\x6c\145\x20\167\x69\x64\x74\x68\x3d\x31\60\x30\45\40\150\145\x69\x67\x68\x74\75\x31\x30\60\45\76\74\164\162\x3e\74\x74\x64\76\74\143\x65\x6e\164\x65\162\76\12"; echo "\74\x68\x31\76\127\x72\x6f\156\147\40\x50\x61\x73\x73\167\x6f\162\144\x21\x3c\57\150\61\76\12"; echo "\x3c\141\x20\x68\162\x65\146\x3d\x27{$PHP_SELF}\x3f\141\143\164\x69\157\156\x3d\x6c\x6f\147\157\156\47\76\x4c\157\147\x6f\156\74\57\141\76\12"; echo "\x3c\57\x63\x65\x6e\x74\145\x72\x3e\74\x2f\x74\x64\76\74\x2f\164\x72\76\74\57\164\x61\142\154\145\76\12"; echo "\x3c\x2f\142\x6f\144\x79\x3e\xa"; echo "\74\x2f\150\x74\x6d\x6c\x3e\xa"; } else { header_html(); if ($action == "\x6c\x69\x73\x74\x44\102\x73") { listDatabases(); } else { if ($action == "\x63\x72\145\141\164\145\104\102") { createDatabase(); } else { if ($action == "\x64\x72\x6f\x70\x44\102") { dropDatabase(); } else { if ($action == "\x6c\x69\163\164\124\141\142\x6c\x65\x73") { listTables(); } else { if ($action == "\143\162\145\x61\x74\145\x54\141\142\x6c\145") { createTable(); } else { if ($action == "\144\162\x6f\x70\x54\141\142\154\145") { dropTable(); } else { if ($action == "\x76\x69\x65\167\123\x63\x68\x65\x6d\x61") { viewSchema(); } else { if ($action == "\x71\165\x65\x72\171") { viewData($queryStr); } else { if ($action == "\141\144\x64\x46\151\x65\154\144") { manageField("\141\x64\144"); } else { if ($action == "\x61\144\144\x46\151\145\x6c\x64\137\163\x75\142\155\151\x74") { manageField_submit("\141\x64\144"); } else { if ($action == "\x65\x64\x69\164\106\151\145\x6c\144") { manageField("\x65\x64\151\164"); } else { if ($action == "\145\144\x69\164\x46\x69\x65\x6c\x64\x5f\163\x75\x62\155\151\164") { manageField_submit("\x65\x64\151\x74"); } else { if ($action == "\144\162\157\x70\106\151\145\154\x64") { dropField(); } else { if ($action == "\x76\151\145\x77\x44\x61\164\x61") { viewData(''); } else { if ($action == "\x61\144\144\104\141\x74\141") { manageData("\141\144\x64"); } else { if ($action == "\141\x64\x64\104\x61\x74\141\137\163\x75\x62\155\151\x74") { manageData_submit("\x61\144\x64"); } else { if ($action == "\x65\x64\x69\164\x44\x61\164\x61") { manageData("\145\x64\x69\x74"); } else { if ($action == "\x65\x64\x69\164\x44\141\164\x61\x5f\x73\x75\x62\x6d\x69\164") { manageData_submit("\x65\144\x69\x74"); } else { if ($action == "\144\145\x6c\x65\164\x65\104\x61\164\x61") { deleteData(); } else { if ($action == "\165\164\x69\154\163") { utils(); } } } } } } } } } } } } } } } } } } } } mysql_close($mysqlHandle); footer_html(); } } } } goto h2NvZ; SJei_: function dump() { global $PHP_SELF, $USERNAME, $PASSWORD, $action, $dbname, $tablename; if ($action == "\x64\165\155\x70\x54\141\x62\154\x65") { $filename = $tablename; } else { $filename = $dbname; } header("\103\x6f\156\164\145\x6e\164\x2d\x64\x69\163\160\157\x73\151\164\151\157\x6e\x3a\40\146\x69\x6c\x65\156\x61\x6d\x65\x3d{$filename}\56\x73\x71\154"); header("\x43\157\156\x74\x65\156\x74\x2d\164\171\160\x65\72\x20\141\160\160\x6c\151\143\141\164\151\x6f\x6e\x2f\157\143\164\145\164\x73\164\x72\145\x61\155"); header("\x50\x72\x61\147\x6d\141\x3a\x20\156\x6f\x2d\143\141\x63\x68\145"); header("\x45\x78\x70\151\162\x65\163\x3a\40\x30"); $pResult = mysql_query("\x73\x68\157\167\x20\166\x61\x72\x69\141\142\x6c\x65\163"); while (1) { $rowArray = mysql_fetch_row($pResult); if ($rowArray == false) { break; } if ($rowArray[0] == "\142\141\x73\x65\x64\x69\x72") { $bindir = $rowArray[1] . "\x62\151\x6e\57"; } } passthru($bindir . "\x6d\x79\x73\x71\154\144\x75\x6d\160\x20\x2d\x2d\x75\163\x65\162\75{$USERNAME}\40\55\x2d\x70\x61\163\163\x77\157\162\144\x3d{$PASSWORD}\x20{$dbname}\40{$tablename}"); } goto fLmHB; zNwmR: function logon() { global $PHP_SELF; setcookie("\x6d\171\x73\x71\x6c\x5f\x77\145\142\137\x61\x64\155\151\156\x5f\165\163\x65\x72\156\141\155\x65"); setcookie("\155\x79\163\161\x6c\137\x77\145\142\x5f\141\144\x6d\x69\x6e\x5f\x70\141\163\163\x77\157\162\x64"); echo "\x3c\x68\x74\x6d\154\x3e\xa"; echo "\x3c\150\145\141\144\76\xa"; echo "\74\164\151\164\x6c\x65\76\x4d\x79\x73\x71\x6c\x20\x69\x6e\164\x65\162\146\x61\x63\145\74\x2f\x74\x69\164\x6c\x65\76\12"; echo "\74\x2f\150\x65\x61\x64\76\xa"; echo "\74\142\157\x64\x79\76\xa"; echo "\74\164\141\142\x6c\x65\40\167\151\x64\164\x68\75\x31\x30\x30\45\40\150\145\x69\x67\x68\164\x3d\x31\x30\x30\45\76\x3c\164\162\76\74\x74\144\76\74\143\145\x6e\164\145\162\x3e\xa"; echo "\x3c\164\x61\142\x6c\145\40\143\x65\x6c\x6c\160\x61\x64\144\x69\156\147\75\x32\x3e\74\x74\x72\76\74\164\144\x20\x62\x67\143\x6f\x6c\x6f\x72\x3d\x23\x30\60\x39\60\x46\106\x3e\74\x63\x65\156\x74\145\x72\x3e\12"; echo "\x3c\164\141\x62\x6c\145\40\143\x65\x6c\154\x70\141\144\144\x69\x6e\x67\x3d\x32\x30\76\74\x74\x72\x3e\x3c\x74\x64\x20\x62\147\143\157\154\x6f\162\x3d\x23\x66\x66\146\x66\146\146\76\74\143\145\x6e\164\x65\x72\x3e\xa"; echo "\x3c\x68\61\76\x3c\x62\76\x3c\146\157\156\x74\x20\x63\x6f\x6c\x6f\x72\x3d\43\x46\106\60\x30\x30\x30\76\115\171\x73\161\x6c\40\111\156\164\145\x72\x66\x61\143\145\40\166\x31\x2e\x30\x3c\x2f\x66\x6f\x6e\x74\x3e\x3c\x2f\x62\76\74\57\x68\61\76\xa"; echo "\74\146\157\162\x6d\x20\x61\143\x74\151\x6f\x6e\x3d\x27{$PHP_SELF}\47\x3e\xa"; echo "\74\x69\156\160\x75\x74\x20\164\171\x70\x65\75\x68\151\144\x64\145\x6e\x20\156\x61\155\x65\75\x61\x63\164\151\x6f\x6e\x20\x76\141\154\165\145\75\154\157\147\157\x6e\x5f\x73\165\142\155\x69\x74\x3e\xa"; echo "\74\164\x61\142\154\x65\x20\x63\x65\x6c\x6c\x70\x61\x64\x64\151\156\147\x3d\x35\40\x63\x65\154\x6c\x73\160\x61\143\x69\156\147\x3d\x31\x3e\12"; echo "\x3c\x74\x72\76\x3c\x74\144\76\125\x73\145\x72\156\141\x6d\x65\x20\x3c\x2f\x74\x64\x3e\x3c\x74\144\x3e\x20\74\x69\x6e\160\165\x74\40\x74\171\x70\x65\75\x74\x65\170\x74\40\x6e\141\155\145\75\x75\x73\x65\x72\156\141\155\145\76\x3c\57\164\x64\x3e\x3c\x2f\x74\x72\76\xa"; echo "\x3c\164\x72\x3e\74\164\x64\x3e\120\x61\x73\163\167\157\x72\x64\40\x3c\x2f\x74\144\76\74\164\x64\76\40\x3c\151\156\x70\165\164\x20\164\171\x70\x65\x3d\160\x61\x73\163\x77\x6f\162\144\x20\156\141\155\145\75\x70\x61\x73\x73\x77\157\162\144\76\x3c\x2f\x74\144\x3e\74\x2f\164\162\x3e\xa"; echo "\x3c\57\164\141\x62\x6c\x65\76\x3c\160\x3e\12"; echo "\74\151\156\160\165\164\x20\164\171\x70\x65\75\x73\x75\142\x6d\x69\x74\x20\x76\x61\154\x75\145\x3d\47\x45\x6e\x74\145\x72\47\76\12"; echo "\74\151\x6e\x70\165\164\x20\x74\171\x70\145\75\162\x65\163\x65\164\40\166\141\154\x75\x65\x3d\47\103\x6c\x65\x61\162\x27\x3e\x3c\142\162\x3e\12"; echo "\74\x2f\146\x6f\162\155\76\12"; echo "\x3c\57\143\145\x6e\164\145\162\76\74\x2f\x74\144\x3e\74\x2f\164\162\76\74\57\164\141\x62\154\x65\76\12"; echo "\74\57\143\x65\156\164\x65\x72\x3e\74\57\164\144\x3e\74\x2f\164\x72\76\x3c\57\x74\141\142\x6c\145\76\xa"; echo "\x3c\x70\76\x3c\150\162\40\167\151\x64\164\150\75\63\60\60\x3e\12"; echo "\x3c\146\x6f\x6e\x74\40\163\x69\x7a\x65\75\62\76\xa"; echo "\103\157\160\x79\162\151\x67\x68\164\x20\46\x63\x6f\x70\x79\x3b\x20\62\60\60\x35\xa\x20\74\x62\x72\x3e"; echo "\x3c\57\x66\x6f\x6e\164\76\xa"; echo "\74\57\143\x65\156\x74\145\162\x3e\74\57\x74\144\76\74\57\164\x72\76\x3c\57\x74\141\x62\154\x65\x3e\12"; echo "\74\57\142\x6f\x64\171\x3e\12"; echo "\x3c\x2f\150\164\x6d\154\x3e\xa"; } goto S5r2w; IS5IW: 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 == "\x61\x64\144") { $queryStr = "\101\x4c\124\105\x52\40\x54\101\x42\114\x45\40{$tablename}\x20\101\x44\x44\40{$name}\40"; } else { if ($cmd == "\x65\144\151\164") { $queryStr = "\x41\x4c\124\x45\x52\x20\124\x41\x42\114\105\x20{$tablename}\40\x43\110\101\116\x47\105\x20{$old_name}\x20{$name}\40"; } } if ($M != '') { if ($D != '') { $queryStr .= "{$type}\x28{$M}\54{$D}\x29\x20"; } else { $queryStr .= "{$type}\x28{$M}\x29\40"; } } else { if ($valuelist != '') { $valuelist = stripslashes($valuelist); $queryStr .= "{$type}\x28{$valuelist}\x29\x20"; } else { $queryStr .= "{$type}\40"; } } $queryStr .= "{$unsigned}\40{$zerofill}\40{$binary}\40"; if ($default_value != '') { $queryStr .= "\104\x45\x46\101\125\114\x54\x20\x27{$default_value}\x27\x20"; } $queryStr .= "{$not_null}\x20{$auto_increment}"; mysql_select_db($dbname, $mysqlHandle); mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); $keyChange = false; $result = mysql_query("\x53\x48\x4f\x57\x20\x4b\x45\x59\123\x20\x46\122\x4f\115\x20{$tablename}"); $primary = ''; while ($row = mysql_fetch_array($result)) { if ($row["\113\x65\171\x5f\x6e\141\x6d\145"] == "\x50\x52\111\115\101\x52\131") { if ($row[Column_name] == $name) { $keyChange = true; } else { $primary .= "\x2c\40{$row["\x43\x6f\x6c\x75\x6d\156\137\156\x61\x6d\145"]}"; } } } if ($primary_key == "\120\122\x49\x4d\x41\122\x59\40\113\105\131") { $primary .= "\54\x20{$name}"; $keyChange = !$keyChange; } $primary = substr($primary, 2); if ($keyChange == true) { $q = "\101\x4c\x54\x45\x52\40\124\101\102\x4c\105\40{$tablename}\40\104\x52\117\120\x20\x50\x52\x49\x4d\101\122\x59\x20\x4b\105\131"; mysql_query($q); $queryStr .= "\x3c\142\162\x3e\xa" . $q; $errMsg .= "\74\142\x72\x3e\xa" . mysql_error(); $q = "\x41\114\x54\105\122\x20\x54\101\102\x4c\105\40{$tablename}\40\101\104\104\x20\x50\x52\x49\115\x41\x52\x59\x20\x4b\105\131\50\40{$primary}\x20\x29"; mysql_query($q); $queryStr .= "\x3c\142\x72\76\12" . $q; $errMsg .= "\74\x62\162\76\12" . mysql_error(); } viewSchema(); } goto GHkHQ; GHkHQ: function dropField() { global $mysqlHandle, $dbname, $tablename, $fieldname, $PHP_SELF, $queryStr, $errMsg; $queryStr = "\101\114\x54\105\122\40\124\101\102\x4c\105\40{$tablename}\40\x44\x52\x4f\x50\x20\103\x4f\x4c\x55\x4d\116\40{$fieldname}"; mysql_select_db($dbname, $mysqlHandle); mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); viewSchema(); } goto cgOtR; KjUbv: function header_html() { global $PHP_SELF; ?>
<html>
<head>
<title>MySQL Web Interface</title>
<style type="text/css">
<!--
p.location {
color: #FF6000;
font-size: small;
}
h1 {
color: #0090FF;
}
th {
background-color: #34A725;
color: #FFFFFF;
font-size: x-small;
}
td {
background-color: #5DB1FF;
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:#FF0000;
text-decoration:none             
}
//-->
</style>
</head>
<body>
<?php  } goto ZXI5e; cqpb4: function manageData($cmd) { global $mysqlHandle, $dbname, $tablename, $PHP_SELF; if ($cmd == "\141\144\x64") { echo "\x3c\x68\x31\76\x41\144\x64\40\x44\x61\164\x61\74\57\150\61\76\xa"; } else { if ($cmd == "\x65\144\151\x74") { echo "\74\x68\61\x3e\105\144\151\164\40\x44\x61\x74\x61\x3c\x2f\x68\61\76\12"; $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 . "\75" . $GLOBALS[$field->name] . "\x20\x41\116\104\x20"; } else { $key .= $field->name . "\x3d\47" . $GLOBALS[$field->name] . "\x27\40\x41\116\x44\x20"; } } } $key = substr($key, 0, strlen($key) - 4); mysql_select_db($dbname, $mysqlHandle); $pResult = mysql_query($queryStr = "\x53\x45\x4c\x45\103\124\x20\x2a\x20\106\x52\x4f\115\40{$tablename}\x20\x57\x48\x45\122\x45\x20{$key}", $mysqlHandle); $data = mysql_fetch_array($pResult); } } echo "\74\x70\40\143\154\141\x73\x73\x3d\154\157\x63\141\164\151\x6f\x6e\76{$dbname}\x20\x26\x67\164\x3b\40{$tablename}\x3c\57\x70\x3e\xa"; echo "\x3c\146\x6f\x72\155\x20\x61\x63\x74\151\157\156\75\x27{$PHP_SELF}\47\40\x6d\x65\164\150\x6f\144\x3d\x70\x6f\163\164\76\xa"; if ($cmd == "\x61\x64\144") { echo "\74\151\x6e\160\x75\164\40\x74\x79\160\145\x3d\x68\151\x64\x64\145\x6e\x20\x6e\141\x6d\x65\x3d\141\x63\164\151\x6f\156\x20\x76\141\x6c\x75\x65\x3d\x61\x64\144\104\x61\x74\x61\x5f\x73\x75\142\155\x69\164\76\xa"; } else { if ($cmd == "\x65\144\151\x74") { echo "\x3c\x69\156\160\165\x74\40\164\x79\x70\145\75\150\151\x64\x64\x65\156\x20\156\141\x6d\x65\x3d\x61\143\x74\151\x6f\x6e\x20\166\141\x6c\165\x65\x3d\x65\144\x69\x74\x44\141\164\x61\x5f\163\x75\142\155\x69\x74\76\12"; } } echo "\x3c\x69\x6e\x70\x75\x74\40\x74\171\160\x65\75\150\151\x64\144\x65\x6e\x20\x6e\141\155\x65\75\144\x62\x6e\x61\155\145\40\x76\x61\154\x75\145\x3d{$dbname}\x3e\12"; echo "\74\x69\x6e\160\165\164\40\164\x79\x70\x65\75\150\x69\144\144\x65\156\x20\x6e\141\155\145\75\x74\x61\x62\x6c\x65\x6e\141\x6d\x65\x20\x76\x61\154\165\x65\x3d{$tablename}\76\xa"; echo "\x3c\164\x61\x62\x6c\x65\40\x63\x65\154\x6c\163\160\141\143\151\156\147\75\x31\40\x63\145\154\x6c\x70\141\144\144\x69\156\147\75\62\x3e\12"; echo "\74\x74\162\76\12"; echo "\x3c\164\150\x3e\116\141\x6d\145\74\x2f\164\x68\76\xa"; echo "\74\x74\x68\x3e\124\171\x70\145\x3c\x2f\164\x68\x3e\xa"; echo "\x3c\x74\150\76\x46\x75\x6e\x63\x74\151\157\x6e\74\57\164\150\76\12"; echo "\x3c\164\150\x3e\x44\141\x74\141\74\57\x74\150\x3e\xa"; echo "\x3c\57\x74\x72\x3e\xa"; $pResult = mysql_db_query($dbname, "\x53\x48\117\x57\x20\x66\x69\145\154\144\x73\x20\106\x52\x4f\115\x20{$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["\106\x69\x65\x6c\x64"]; $fieldtype = $field["\x54\171\x70\x65"]; $len = mysql_field_len($pResultLen, $i); echo "\74\164\x72\76"; echo "\x3c\164\x64\x3e{$fieldname}\x3c\x2f\164\144\x3e"; echo "\74\164\x64\x3e" . $field["\124\x79\x70\x65"] . "\x3c\57\x74\x64\76"; echo "\x3c\x74\144\x3e\12"; echo "\x3c\x73\x65\x6c\145\x63\164\40\x6e\141\155\145\75{$fieldname}\137\146\x75\x6e\x63\164\x69\157\x6e\x3e\xa"; echo "\74\x6f\160\x74\x69\x6f\156\x3e\12"; echo "\x3c\157\x70\164\x69\157\156\x3e\101\123\103\x49\x49\12"; echo "\74\x6f\x70\x74\151\x6f\x6e\76\x43\110\x41\x52\xa"; echo "\x3c\x6f\160\164\151\157\x6e\x3e\x53\117\125\116\104\105\130\xa"; echo "\74\157\160\164\151\x6f\x6e\x3e\103\x55\x52\x44\x41\124\x45\12"; echo "\x3c\157\x70\x74\x69\157\156\76\x43\125\122\x54\x49\x4d\105\xa"; echo "\74\157\x70\164\x69\157\156\x3e\x46\x52\117\x4d\137\x44\x41\x59\x53\xa"; echo "\74\157\x70\x74\151\157\x6e\76\x46\x52\x4f\x4d\137\125\116\111\130\124\111\115\x45\xa"; echo "\x3c\x6f\160\x74\x69\157\156\76\116\x4f\127\xa"; echo "\74\157\160\164\151\157\156\x3e\x50\101\123\123\x57\x4f\x52\x44\xa"; echo "\x3c\x6f\x70\x74\151\157\156\x3e\x50\x45\122\x49\x4f\104\x5f\101\x44\104\xa"; echo "\x3c\157\160\164\151\157\x6e\x3e\x50\x45\x52\x49\117\104\x5f\104\111\x46\x46\xa"; echo "\74\x6f\x70\164\x69\x6f\x6e\x3e\x54\x4f\137\x44\x41\131\x53\12"; echo "\x3c\157\160\164\151\x6f\x6e\76\x55\x53\x45\x52\12"; echo "\74\157\x70\x74\x69\157\x6e\76\x57\x45\x45\x4b\x44\101\x59\12"; echo "\74\157\x70\x74\151\x6f\x6e\x3e\122\x41\116\104\12"; echo "\x3c\57\163\x65\154\x65\143\164\x3e\12"; echo "\x3c\57\164\x64\x3e\12"; $value = htmlspecialchars($data[$i]); if ($cmd == "\x61\x64\x64") { $type = strtok($fieldtype, "\x20\x28\54\x29\xa"); if ($type == "\x65\x6e\165\x6d" || $type == "\163\145\164") { echo "\74\164\x64\76\xa"; if ($type == "\145\x6e\165\155") { echo "\x3c\163\145\x6c\145\143\x74\x20\156\x61\x6d\145\x3d{$fieldname}\x3e\xa"; } else { if ($type == "\163\x65\164") { echo "\x3c\x73\145\x6c\x65\x63\164\40\156\x61\x6d\145\x3d{$fieldname}\x20\163\x69\172\x65\75\x34\x20\x6d\165\x6c\x74\x69\x70\x6c\145\x3e\12"; } } echo strtok("\x27"); while ($str = strtok("\47")) { echo "\74\157\160\164\151\157\x6e\76{$str}\12"; strtok("\47"); } echo "\x3c\57\x73\145\x6c\145\x63\164\76\12"; echo "\x3c\x2f\164\x64\x3e\12"; } else { if ($len < 40) { echo "\x3c\164\144\76\74\x69\156\160\x75\x74\40\164\171\160\x65\75\x74\x65\170\x74\x20\x73\x69\172\x65\x3d\x34\60\40\x6d\x61\170\154\145\x6e\147\x74\150\x3d{$len}\x20\x6e\x61\x6d\145\75{$fieldname}\x3e\x3c\x2f\164\x64\76\12"; } else { echo "\x3c\164\x64\76\x3c\x74\x65\x78\x74\x61\162\145\141\40\143\157\x6c\x73\x3d\64\x30\40\162\157\x77\x73\75\63\x20\155\141\170\154\145\x6e\147\164\150\75{$len}\x20\x6e\x61\x6d\145\75{$fieldname}\x3e\74\x2f\x74\x65\170\x74\x61\162\145\141\x3e\xa"; } } } else { if ($cmd == "\145\144\151\164") { $type = strtok($fieldtype, "\x20\50\54\x29\12"); if ($type == "\x65\x6e\165\x6d" || $type == "\x73\x65\164") { echo "\74\x74\144\76\xa"; if ($type == "\x65\x6e\165\155") { echo "\x3c\x73\x65\154\145\143\x74\40\156\141\x6d\x65\75{$fieldname}\x3e\12"; } else { if ($type == "\x73\145\164") { echo "\x3c\x73\145\154\145\143\x74\40\156\x61\x6d\x65\x3d{$fieldname}\40\163\x69\x7a\145\x3d\64\40\x6d\x75\x6c\x74\x69\x70\154\145\76\12"; } } echo strtok("\47"); while ($str = strtok("\47")) { if ($value == $str) { echo "\x3c\x6f\x70\164\x69\x6f\156\x20\163\x65\x6c\x65\143\164\145\144\76{$str}\xa"; } else { echo "\74\x6f\x70\164\151\x6f\x6e\76{$str}\xa"; } strtok("\47"); } echo "\74\x2f\x73\x65\154\145\x63\164\x3e\12"; echo "\74\57\x74\144\76\xa"; } else { if ($len < 40) { echo "\74\x74\144\x3e\x3c\x69\156\x70\165\164\40\164\x79\160\x65\x3d\164\x65\x78\164\x20\x73\151\172\145\x3d\64\60\40\155\x61\170\154\145\156\147\x74\x68\x3d{$len}\40\156\141\155\x65\75{$fieldname}\x20\x76\141\154\165\145\75\42{$value}\x22\76\74\57\x74\x64\76\12"; } else { echo "\x3c\x74\x64\76\74\164\x65\x78\x74\141\x72\145\x61\40\143\x6f\154\x73\x3d\x34\x30\x20\x72\157\x77\x73\x3d\x33\40\155\141\x78\x6c\x65\x6e\x67\x74\x68\x3d{$len}\40\156\x61\155\x65\75{$fieldname}\76{$value}\74\57\x74\145\170\x74\141\x72\x65\141\76\12"; } } } } echo "\x3c\x2f\x74\x72\x3e"; } echo "\74\x2f\x74\141\x62\154\145\76\x3c\x70\x3e\xa"; if ($cmd == "\x61\x64\144") { echo "\74\151\x6e\160\x75\x74\x20\x74\171\x70\x65\75\163\165\142\155\151\164\40\166\x61\x6c\x75\145\75\x27\101\x64\x64\40\x44\x61\164\141\x27\x3e\12"; } else { if ($cmd == "\145\x64\x69\x74") { echo "\x3c\x69\156\x70\165\164\40\x74\x79\160\145\x3d\x73\165\x62\x6d\x69\164\x20\166\141\x6c\x75\145\75\47\x45\x64\151\x74\x20\x44\141\164\x61\x27\76\xa"; } } echo "\x3c\151\x6e\x70\165\x74\x20\x74\x79\x70\145\75\x62\165\x74\164\x6f\156\40\166\x61\x6c\x75\145\x3d\x27\x43\141\x6e\x63\x65\x6c\47\x20\x6f\x6e\x43\x6c\151\x63\x6b\x3d\47\x68\x69\x73\x74\157\162\171\56\x62\141\x63\153\x28\x29\47\x3e\xa"; echo "\x3c\x2f\146\157\162\x6d\x3e\xa"; } goto CK6tH; bSPhQ: function listDatabases() { global $mysqlHandle, $PHP_SELF; echo "\x3c\150\61\76\x44\x61\x74\x61\x62\141\163\145\x20\114\x69\x73\x74\74\57\x68\x31\76\12"; echo "\74\146\x6f\x72\x6d\40\141\x63\x74\x69\x6f\x6e\x3d\x27{$PHP_SELF}\x27\x3e\12"; echo "\x3c\x69\x6e\x70\x75\x74\x20\x74\171\160\x65\75\150\151\x64\144\x65\x6e\40\156\x61\x6d\145\x3d\x61\x63\164\x69\x6f\x6e\40\x76\x61\154\x75\145\x3d\x63\x72\x65\x61\x74\145\104\102\76\12"; echo "\x3c\x69\x6e\x70\165\x74\x20\164\171\160\x65\x3d\164\145\170\x74\x20\x6e\141\155\x65\x3d\144\x62\x6e\x61\155\145\x3e\12"; echo "\x3c\151\x6e\x70\x75\164\40\164\x79\160\145\x3d\163\x75\x62\155\x69\x74\x20\166\141\154\x75\x65\75\47\x43\162\x65\x61\x74\x65\40\104\141\164\141\142\141\163\145\x27\76\xa"; echo "\74\57\146\157\162\x6d\76\xa"; echo "\74\x68\162\x3e\xa"; echo "\74\164\x61\142\154\145\40\x63\145\x6c\154\163\160\141\143\151\156\147\75\x31\x20\x63\145\x6c\154\160\141\x64\144\x69\x6e\x67\75\65\76\xa"; $pDB = mysql_list_dbs($mysqlHandle); $num = mysql_num_rows($pDB); for ($i = 0; $i < $num; $i++) { $dbname = mysql_dbname($pDB, $i); echo "\x3c\164\162\76\12"; echo "\74\164\144\x3e{$dbname}\74\x2f\164\144\76\xa"; echo "\x3c\164\x64\x3e\x3c\141\40\150\x72\145\146\x3d\x27{$PHP_SELF}\77\141\143\x74\x69\157\x6e\75\154\x69\x73\x74\124\141\x62\154\x65\x73\46\144\142\156\141\155\145\75{$dbname}\x27\76\x54\141\x62\154\x65\74\57\141\76\x3c\x2f\x74\144\76\xa"; echo "\x3c\164\x64\76\74\141\x20\x68\x72\145\146\75\47{$PHP_SELF}\77\141\143\164\151\157\156\x3d\x64\x72\x6f\x70\104\102\46\144\142\156\141\x6d\145\75{$dbname}\47\x20\x6f\x6e\x43\154\x69\143\x6b\x3d\x22\162\145\164\x75\x72\x6e\x20\x63\x6f\x6e\146\x69\x72\155\50\x27\104\162\157\160\x20\104\x61\x74\x61\142\141\163\x65\x20\134\x27{$dbname}\x5c\47\x3f\x27\x29\x22\x3e\104\162\x6f\x70\74\57\x61\76\x3c\x2f\x74\144\76\12"; echo "\x3c\164\144\x3e\x3c\141\40\150\x72\145\146\75\47{$PHP_SELF}\x3f\141\143\164\x69\157\156\x3d\x64\165\155\160\x44\x42\x26\144\x62\x6e\x61\x6d\145\75{$dbname}\47\x3e\104\165\x6d\x70\74\x2f\141\x3e\x3c\57\164\x64\x3e\12"; echo "\74\57\x74\x72\76\xa"; } echo "\74\57\x74\141\x62\154\145\x3e\12"; } goto ngWAe; WoUrL: 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 . "\75" . $GLOBALS[$field->name] . "\40\101\116\x44\40"; } else { $key .= $field->name . "\x3d\x27" . $GLOBALS[$field->name] . "\x27\x20\x41\116\x44\40"; } } } $key = substr($key, 0, strlen($key) - 4); mysql_select_db($dbname, $mysqlHandle); $queryStr = "\104\x45\x4c\105\x54\x45\x20\x46\x52\117\115\x20{$tablename}\x20\127\110\x45\x52\x45\40{$key}"; mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); viewData(''); } goto SJei_; aOc_S: function viewSchema() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg; echo "\74\150\61\76\124\141\142\x6c\145\40\x53\x63\x68\x65\x6d\x61\74\x2f\x68\61\76\12"; echo "\x3c\160\x20\143\154\x61\x73\x73\x3d\154\157\x63\141\164\151\157\x6e\76{$dbname}\x20\46\147\x74\x3b\x20{$tablename}\x3c\x2f\160\76\12"; echoQueryResult(); echo "\x3c\x61\40\x68\162\145\146\x3d\x27{$PHP_SELF}\x3f\141\143\164\x69\x6f\156\x3d\141\x64\144\x46\151\145\154\x64\x26\x64\x62\x6e\x61\x6d\x65\x3d{$dbname}\x26\164\141\142\154\x65\156\141\155\x65\x3d{$tablename}\47\x3e\101\x64\x64\x20\x46\151\x65\154\x64\74\57\141\x3e\40\x7c\x20\xa"; echo "\74\141\40\150\162\145\x66\x3d\47{$PHP_SELF}\x3f\141\x63\x74\x69\x6f\156\75\x76\151\145\x77\x44\141\164\141\x26\144\142\156\141\155\x65\x3d{$dbname}\46\x74\141\142\x6c\145\x6e\141\155\x65\x3d{$tablename}\47\x3e\x56\x69\145\x77\x20\104\141\164\x61\x3c\57\141\x3e\xa"; echo "\x3c\x68\162\76\xa"; $pResult = mysql_db_query($dbname, "\x53\110\117\x57\40\x66\x69\145\x6c\x64\163\x20\106\x52\x4f\x4d\40{$tablename}"); $num = mysql_num_rows($pResult); echo "\74\x74\141\x62\x6c\x65\x20\143\x65\154\x6c\x73\x70\141\143\151\x6e\x67\75\61\40\143\x65\154\x6c\x70\x61\144\x64\x69\156\x67\x3d\x35\76\12"; echo "\x3c\x74\x72\76\12"; echo "\x3c\x74\150\x3e\x46\151\x65\154\144\x3c\x2f\x74\150\76\12"; echo "\x3c\x74\150\76\124\171\160\145\74\x2f\164\150\76\xa"; echo "\74\164\x68\76\x4e\165\x6c\x6c\x3c\x2f\164\150\76\xa"; echo "\74\164\150\x3e\x4b\x65\x79\74\x2f\x74\x68\x3e\12"; echo "\x3c\x74\150\76\x44\145\146\x61\x75\x6c\164\x3c\x2f\x74\x68\76\xa"; echo "\74\164\150\x3e\x45\x78\x74\162\x61\x3c\x2f\164\150\x3e\12"; echo "\x3c\x74\150\40\x63\x6f\x6c\163\x70\x61\156\x3d\x32\76\x41\143\x74\x69\157\x6e\x3c\x2f\x74\150\x3e\xa"; echo "\74\x2f\164\162\x3e\xa"; for ($i = 0; $i < $num; $i++) { $field = mysql_fetch_array($pResult); echo "\74\164\x72\76\12"; echo "\74\164\x64\x3e" . $field["\x46\151\145\x6c\x64"] . "\x3c\x2f\164\144\76\12"; echo "\x3c\164\x64\x3e" . $field["\124\x79\160\x65"] . "\x3c\x2f\164\144\76\12"; echo "\x3c\x74\144\x3e" . $field["\116\x75\154\154"] . "\x3c\x2f\x74\x64\76\12"; echo "\74\x74\x64\76" . $field["\x4b\145\171"] . "\74\57\164\144\76\12"; echo "\x3c\164\144\x3e" . $field["\104\145\x66\x61\x75\x6c\164"] . "\74\x2f\164\x64\76\xa"; echo "\74\x74\x64\76" . $field["\105\170\164\162\x61"] . "\x3c\57\x74\x64\x3e\12"; $fieldname = $field["\106\151\145\x6c\144"]; echo "\x3c\x74\144\x3e\x3c\x61\40\x68\162\145\146\75\x27{$PHP_SELF}\77\141\x63\164\x69\157\156\x3d\x65\144\151\x74\106\x69\145\x6c\144\x26\x64\142\x6e\141\x6d\x65\75{$dbname}\x26\x74\141\142\154\x65\x6e\141\x6d\x65\x3d{$tablename}\x26\x66\151\145\x6c\144\x6e\x61\155\145\75{$fieldname}\47\76\105\144\x69\164\74\57\x61\x3e\x3c\x2f\164\x64\x3e\12"; echo "\74\x74\144\76\74\x61\40\150\162\x65\x66\75\47{$PHP_SELF}\77\x61\143\164\x69\157\x6e\x3d\x64\162\157\160\x46\151\145\154\x64\x26\144\x62\x6e\141\155\145\75{$dbname}\46\164\x61\142\154\145\x6e\x61\155\x65\x3d{$tablename}\46\x66\151\x65\x6c\144\x6e\141\x6d\145\x3d{$fieldname}\x27\40\x6f\x6e\x43\x6c\151\x63\x6b\x3d\42\162\x65\x74\165\x72\156\40\143\157\156\x66\x69\x72\155\x28\x27\x44\x72\157\160\40\106\x69\145\154\144\x20\134\x27{$fieldname}\134\47\77\47\51\x22\x3e\104\x72\157\x70\x3c\x2f\141\x3e\x3c\x2f\x74\144\76\12"; echo "\x3c\57\164\x72\x3e\12"; } echo "\x3c\x2f\x74\x61\x62\x6c\x65\76\xa"; } goto rDA5Z; NuomT: function listTables() { global $mysqlHandle, $dbname, $PHP_SELF; echo "\x3c\x68\61\76\x54\x61\x62\x6c\x65\x20\x4c\151\163\x74\74\57\150\61\x3e\12"; echo "\x3c\160\x20\x63\x6c\141\163\163\75\x6c\157\143\x61\164\x69\x6f\x6e\76{$dbname}\x3c\x2f\x70\76\xa"; echoQueryResult(); echo "\74\146\x6f\162\155\x20\x61\143\164\151\x6f\156\x3d\x27{$PHP_SELF}\47\76\12"; echo "\x3c\151\x6e\x70\165\x74\x20\x74\x79\x70\x65\x3d\x68\151\x64\x64\x65\x6e\40\x6e\141\155\x65\x3d\x61\x63\x74\151\x6f\156\40\166\141\x6c\x75\x65\75\143\162\145\x61\x74\145\124\x61\x62\x6c\x65\76\xa"; echo "\x3c\x69\x6e\x70\165\x74\x20\x74\171\x70\x65\x3d\x68\x69\144\144\x65\156\40\x6e\x61\x6d\x65\75\144\x62\156\141\x6d\x65\x20\x76\141\154\165\145\75{$dbname}\x3e\xa"; echo "\x3c\x69\156\160\x75\x74\x20\164\171\160\145\x3d\x74\x65\170\164\40\x6e\141\155\x65\x3d\164\x61\142\154\145\x6e\x61\x6d\x65\76\xa"; echo "\74\x69\x6e\160\165\164\x20\164\171\160\145\x3d\x73\165\x62\x6d\151\x74\x20\x76\x61\154\x75\x65\75\47\x43\162\145\141\164\x65\x20\124\141\x62\x6c\x65\x27\76\12"; echo "\74\x2f\146\157\x72\x6d\76\xa"; echo "\x3c\x66\157\162\x6d\40\x61\143\x74\151\157\x6e\75\47{$PHP_SELF}\47\76\12"; echo "\74\151\x6e\160\165\164\40\164\x79\x70\145\75\x68\x69\144\144\x65\156\40\156\141\x6d\145\x3d\141\x63\164\151\x6f\156\40\166\x61\154\165\145\75\161\x75\145\x72\171\76\xa"; echo "\74\151\156\160\165\x74\40\x74\x79\x70\145\75\150\151\144\144\x65\156\40\156\141\x6d\145\75\x64\x62\156\141\x6d\x65\x20\166\x61\x6c\165\145\x3d{$dbname}\x3e\12"; echo "\x3c\151\x6e\x70\x75\164\40\x74\x79\x70\145\75\164\x65\170\x74\x20\163\x69\172\x65\75\x34\x30\40\156\141\x6d\x65\75\x71\x75\x65\162\x79\123\164\x72\x3e\12"; echo "\x3c\x69\x6e\160\x75\164\40\164\171\x70\145\75\x73\165\142\x6d\x69\164\40\x76\141\x6c\165\145\x3d\x27\121\165\145\x72\171\x27\76\12"; echo "\74\x2f\x66\157\162\x6d\x3e\12"; echo "\x3c\150\x72\x3e\xa"; $pTable = mysql_list_tables($dbname); if ($pTable == 0) { $msg = mysql_error(); echo "\x3c\150\63\76\105\162\x72\x6f\162\40\x3a\40{$msg}\x3c\x2f\150\63\x3e\74\x70\76\12"; return; } $num = mysql_num_rows($pTable); echo "\x3c\164\141\x62\154\145\40\143\x65\154\154\163\160\x61\x63\151\156\147\75\x31\40\x63\145\154\154\x70\141\144\x64\151\156\x67\75\x35\x3e\xa"; for ($i = 0; $i < $num; $i++) { $tablename = mysql_tablename($pTable, $i); echo "\x3c\x74\162\x3e\xa"; echo "\x3c\x74\144\x3e\12"; echo "{$tablename}\12"; echo "\74\x2f\x74\144\76\xa"; echo "\74\x74\144\76\12"; echo "\74\141\x20\150\162\x65\146\75\x27{$PHP_SELF}\77\x61\x63\x74\151\x6f\156\75\x76\151\145\167\x53\x63\x68\145\x6d\x61\x26\144\x62\x6e\141\155\145\75{$dbname}\x26\164\x61\142\154\x65\x6e\x61\x6d\145\75{$tablename}\x27\76\123\x63\x68\145\155\x61\x3c\x2f\141\x3e\12"; echo "\x3c\57\164\x64\76\12"; echo "\74\x74\x64\76\xa"; echo "\x3c\141\x20\x68\162\145\x66\75\47{$PHP_SELF}\77\141\143\x74\151\157\x6e\x3d\x76\x69\145\x77\104\141\164\141\x26\144\142\x6e\x61\x6d\x65\75{$dbname}\46\x74\x61\142\154\145\156\x61\155\x65\x3d{$tablename}\x27\x3e\104\141\164\x61\x3c\57\x61\76\12"; echo "\74\57\x74\x64\76\12"; echo "\74\164\x64\x3e\12"; echo "\74\141\x20\x68\x72\x65\x66\x3d\47{$PHP_SELF}\x3f\141\x63\x74\151\157\156\x3d\144\x72\157\160\124\x61\x62\154\145\46\144\142\x6e\x61\155\x65\x3d{$dbname}\46\164\141\x62\154\x65\x6e\141\x6d\x65\x3d{$tablename}\47\x20\157\156\x43\x6c\x69\143\x6b\x3d\x22\162\x65\x74\165\162\156\40\143\157\x6e\146\151\x72\x6d\x28\x27\x44\162\x6f\x70\x20\x44\141\164\141\x62\x61\163\x65\40\134\47{$dbname}\134\x27\77\47\51\42\76\104\x72\157\160\x3c\57\x61\76\12"; echo "\74\x2f\164\x64\x3e\xa"; echo "\x3c\x74\x64\x3e\xa"; echo "\74\x61\40\x68\x72\145\x66\75\x27{$PHP_SELF}\x3f\x61\x63\x74\151\157\156\75\x64\x75\x6d\160\124\141\142\x6c\x65\46\x64\x62\156\141\x6d\x65\x3d{$dbname}\x26\164\141\142\154\145\156\x61\x6d\x65\75{$tablename}\47\76\104\165\x6d\x70\74\x2f\x61\76\xa"; echo "\74\57\x74\144\x3e\xa"; echo "\74\x2f\164\162\x3e\12"; } echo "\74\57\164\141\142\x6c\145\76"; } goto BbFo8; BbFo8: function createTable() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg; $queryStr = "\103\122\x45\x41\x54\105\40\124\101\x42\x4c\x45\40{$tablename}\40\x28\40\x6e\x6f\x20\111\x4e\x54\x20\x29"; mysql_select_db($dbname, $mysqlHandle); mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); listTables(); } goto AfYFV; AfYFV: function dropTable() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $queryStr, $errMsg; $queryStr = "\x44\x52\117\x50\40\x54\101\x42\x4c\105\40{$tablename}"; mysql_select_db($dbname, $mysqlHandle); mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); listTables(); } goto aOc_S; CK6tH: 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 == "\x61\x64\144") { $queryStr = "\111\116\123\105\122\124\40\111\116\124\117\x20{$tablename}\40\x56\101\114\x55\x45\x53\40\50"; } else { if ($cmd == "\145\144\151\x74") { $queryStr = "\x52\x45\120\x4c\101\x43\x45\x20\x49\x4e\x54\117\40{$tablename}\x20\126\101\114\125\x45\123\x20\50"; } } for ($i = 0; $i < $num - 1; $i++) { $field = mysql_fetch_field($pResult); $func = $GLOBALS[$field->name . "\x5f\x66\x75\x6e\143\x74\151\x6f\156"]; if ($func != '') { $queryStr .= "\x20{$func}\x28"; } if ($field->numeric == 1) { $queryStr .= $GLOBALS[$field->name]; if ($func != '') { $queryStr .= "\x29\54"; } else { $queryStr .= "\x2c"; } } else { $queryStr .= "\x27" . $GLOBALS[$field->name]; if ($func != '') { $queryStr .= "\47\x29\54"; } else { $queryStr .= "\x27\54"; } } } $field = mysql_fetch_field($pResult); if ($field->numeric == 1) { $queryStr .= $GLOBALS[$field->name] . "\x29"; } else { $queryStr .= "\x27" . $GLOBALS[$field->name] . "\47\51"; } mysql_query($queryStr, $mysqlHandle); $errMsg = mysql_error(); viewData(''); } goto WoUrL; ZXI5e: function footer_html() { global $mysqlHandle, $dbname, $tablename, $PHP_SELF, $USERNAME; echo "\74\x68\162\x3e\xa"; echo "\74\x66\157\156\x74\40\163\x69\x7a\145\75\62\x3e\12"; echo "\74\146\157\156\x74\40\143\x6f\154\157\162\75\142\154\165\x65\76\133{$USERNAME}\135\74\x2f\x66\157\x6e\x74\x3e\40\55\40\12"; echo "\x3c\x61\x20\x68\x72\145\146\75\x27{$PHP_SELF}\x3f\141\x63\x74\151\x6f\156\x3d\x6c\x69\x73\x74\x44\102\x73\x27\x3e\x44\141\164\141\x62\141\163\145\40\x4c\151\163\164\74\57\x61\76\40\x7c\40\12"; if ($tablename != '') { echo "\74\141\x20\x68\162\145\x66\75\47{$PHP_SELF}\x3f\141\143\164\151\x6f\x6e\75\x6c\x69\163\164\x54\141\142\154\145\163\46\144\142\x6e\141\155\x65\x3d{$dbname}\46\x74\x61\x62\x6c\145\x6e\x61\x6d\145\x3d{$tablename}\47\x3e\124\141\142\154\145\40\114\x69\x73\x74\74\57\141\x3e\40\174\x20"; } echo "\x3c\141\x20\x68\x72\145\146\75\47{$PHP_SELF}\77\141\143\x74\x69\157\x6e\75\165\x74\x69\x6c\163\x27\76\125\164\x69\x6c\x73\74\57\x61\x3e\x20\174\12"; echo "\x3c\x61\40\x68\x72\145\x66\75\x27{$PHP_SELF}\x3f\x61\143\164\x69\157\156\75\154\157\147\x6f\x75\x74\x27\x3e\x4c\157\147\157\x75\164\x3c\57\x61\x3e\12"; echo "\x3c\57\146\x6f\x6e\x74\x3e\12"; echo "\x3c\x2f\x62\x6f\x64\x79\x3e\12"; echo "\74\x2f\x68\164\x6d\154\76\xa"; } goto NW76J; h2NvZ: ?>

Function Calls

None

Variables

None

Stats

MD5 35729bd13fd689c5d89e3e6545c12028
Eval Count 0
Decode Time 118 ms