From ae49476b96d1a4be1d68c224736e617ee095c0d7 Mon Sep 17 00:00:00 2001 From: Jamin Blount Date: Sun, 14 Oct 2018 09:20:56 -0500 Subject: [PATCH] Decrypt lib.php --- lib.php | 282 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 279 insertions(+), 3 deletions(-) diff --git a/lib.php b/lib.php index 72053a0..97fb4ae 100644 --- a/lib.php +++ b/lib.php @@ -1,3 +1,279 @@ - -kr9NHenNHenNHe1lFMamb3klFoxiC2APk19gOLlHOa9gkZXJkZwVkr9NTznNHr8XHt4JkZwShokiF2A2Yy9LcBYvcoAPF3OZfuwPcmklCBWPkr8XHenNHr8XHtXLT08XHr8XHeEXhUXmOB50cbk5d3a3D2iUUylRTlfNaaOnCAkJW2YrcrcMO2fkDApQToxYdanXAbyTF1c2BuiDGjExHjH0YTC3KeLqRz0mRtfnWLYrOAcuUrlhU0xYTL9WAakTayaBa1icBMyJC2OlcMfPDBpqdo1Vd3nxFmY0fbc3Gul6HerZHzW1YjF4KUSvkZLphUL7cMYSd3YlhtONHeEXTznNHeEpK2a2CBXPkr9NHenNHenNHtL7wt8vwoxpCJ5XDuEIKjPIW29sdB9Vwoc1dMY0DB9VFZn1F2aLwuOPFM91c2ivfbWIfoilwunZd2fZCB0VeWPYtJ8vtAOZCBfvdJnTC291FMfleWPvRX0hRZ8kAukvc3kidUnifbOPd3kzKJnhCB1pdJntdo91dmWYtJ8vtAYvFulZDBfPftEPWZLIHjEXYZnJGUnZcB5LcbkzcTfldI0hRZ8kA2YZDbn0wyclFmYpd24IHU4XwrklforIYUntfBlSctEZHE0heWPvRXlcd3AIdBy5wo5vftnLDbY0FMlJfbOlwuOPDbHIFukvc3kidUnpdJnidmLIdByVdMaZRtnsd2OpcMllctnvFI0hRZ8kd3OPcbk3DbYlRtn3DbOPd3a0wuOPcUnlGunZcbYzRtn3FMl0foaVwoYvdmYldmWIcmkvdW0hRZ8kFMaVcoaZF2A3cB4VeWPvRX0hRZ8kBB91w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IwtELb0fyatE9woyZFMy5b21iFtImfBklFl9zFZFSwtOgO0aAhTSYtJEIwtOgW09NU0lywe0ICbkZCblgdByXhtf1CMaZb3YzkZXIky9eT09RUAApKX0heWp9eWPLb1nNA1WINUniFmkiGa9sCbEPk3aJcbkgdbklFZFSwtOgAr9TatL7eWPLb1nNA1WINUniFmkiGa9sCbEPk3aJcbkgDuYjkZXIky9WT1YAhTSYtJOgO0aAwe0ICbkZCblgdByXhtf1CMaZb21ZcbHmRtELb0fyatL7eWPLb0fyatE9woyZFMy5b21iFtImfBklFl9PF2HmRtELb0fyatL7eWPLb0YNT0skOUE9woyZFMy5b21iFtImfBklFl9sFMazkZXIky9eT09RUAApKX0hky9eT09RUAAINUniFmkiGa9sCbEPk3aJcbkgDuYjkZXIky9eT09RUAApKX0heWpMfB5jfolvdJn1CMaZb3YzhtO2CBx1cULIGX0hwtEIwE0hwtEIkucidualwe0IDbYgCbkZCbLPkucidualhUE/eWPIwtEIwtEIwtEIwtEIwtniFmkiGa9sCbEPk3aJcbkgF3HmRtELfMySfBApwePYtJEIwtEIwtEIwtEIwtEIwuY0FMlXF2xiF2ilFZILfMySfBApKX0hwtEIFMa0fbkVwtO2CBx1cTSYtJEIwE0hgW0heWpMfB5jfolvdJn1CMaZb21ZcbHPkucidualhUn7eWPIwtEIeWPIwtELfMySfBAINUnpF19iFmkiGUILfMySfBApwe8YtJEIwtEIwtEIwtEIwtEIwoyZFMy5b21iFtImfBklFl9sFMazkZXIkucidualhUE6eWPIwtEIwtEIwtEIwtEIwtnsGbYxdy9ZcBySb2azC2yXca9zfukpdMFPkucidualhTSYtJEIwuklfuaZdJELfMySfBA7eWPIwtEYtm0YtI0hcmaVC3Opd24IfBklFl9PF2HPkucidualhUn7eWPIwtEIeWPIwtELfMySfBAINUnpF19iFmkiGUILfMySfBApwe8YtJEIwtEIwtEIwtEIwtEIwoyZFMy5b21iFtImfBklFl9PF2HmRtELfMySfBApwePYtJEIwtEIwtEIwtEIwtEIwoi0d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rYtI0hwtEIwuklfuaZdJiXFMamb21ifoYPhtwvblSsbZ5dKMySdmasKl1fh0EPhtidBzpido51dTpfbbxdBzpido51dTpfbasdKMySdmasKl0sbUpdBzpido51dTpfbUlFRJLqhoyLgoylgoylFM98CBc8CBf8CBl8CBx8CB18CB58CB98Cby8Cbk8CbkXCbxiF3xifuxifbxif3xiGmxJCbxJCmxJcuxJcbxJcmxJc3xJDuxJDbxJDbp8CMp8CM18CM58CM98Cmk8CmY8CmO8Cmc8Cmf8Cml8Cmp8C2y8C2Y8C2O8C2c8C2f8C2i8C2l8C2s8C2x8C218C258C298C29sgoYvd3n8C3k8C3Y8C3a8C3c8C3i8C3l8C3p8coa8cop8cos8co18co98cup8cBY8cBO1goalgoamgoaPgoaZgoazgoa0goa1gocpgocQgocqgocsgocvgocZgofigofJgofLgoflgofMgofPgofpgofSgofsgofVgofvfmxmFuxmFbxmFmxmF3xmfuxmfbxmf3xmGbxPD3xPdbxPdmxPFmxPfuxPfbxpcuxpcbxpduxpdmxpdMcvgolVfuxpd3xpFbxpFmxpF3xpfuxQdbxQd3xQFuxqcbxqc3xqDuxqDbxqdbxqdmxqFuxqFmxqf3xqGbxqGmxSCbxSCmxSC3xSDbxSD3xSFmxSF3xSfuxSfbxSfmxSGbxsCbxsC3xscuxsc3xsDuxsDBx8dBs8dBx8dB18dB58dB98dbn8dby8dbk8dbY8dbO8dba8dbazcbasgo12go13go14go15go16go5igo5idBa8dMY8dMa8dMa0go5Mgo5mgo5pgo5Sgo5vgo5Xgo5Zgo50go51go56go9sgo9Zc3xXCbxXcbxXcmxXc3xXDuxXD3xXduxXdbxXdmxXFmxXFM98FuY8FuO8Fuf8Ful8FBy8FMa8FM98Fma8Fmf8F2y8F2k8F2Y8F2O8F2a8F2f8F2i8F2l8F2p8F2s8F2x8F218F258F298F3k8F3O8F3a8F3c8F3l8F3p8foY8foO8foc8fof8foi8fop8fos8fo18fo58fo98fun8fuk8fuO8fuc8fuf8fup8fBy8fBf8fBs8fB18fbY8fbl8fbp8fMy8fMY8fMa8fMf8fMl8fM58fma8f2c8f3Y8GBa8GbO8Gba8GMy8GM18GmFpkuXPhySXRTlfBzEsKa0/gySXRTyfBzEsKa1dHt05bbxdHl1dHt00baSXRTlfgySZbaS1baSXRTafhaXVhbSzgUidHt05baSXRTlfN3xdHt0xbaSXRTlfBzEsKa18BzkfBzEsYy1dHt05bbxdHl1dYa1dHt01bULpkt9pwJXLcB1iDBXphTSYtI0hgW0heWpMfB5jfolvdJnsGB1iDBXPkuOvRtELfol0doASwtOJd2O5RtELcmkvdUE9wtFmhUn7wt8vwuOPCB5qFZn0dZniFmOvwoOvftnWTranA0AIco90wrONwoOvftnKT1WIco90wyYWWA0ICbWICbk0d2yiduOvdMaVwoOvftnMDU4YtI0hwtEIwofSd2kidtELC29VfukvdukvfzSYtJEIwtnlGuOZCBY0htOjd250FM9SFM93hTSYtJEIwtEYtI0hwtEIwtOMFM9swe0IfukpdUILcmkvdUL7eWPYtJEIwtnpcJEPwUOMFM9shUn7eWPIwtEIkocZd20INUEJNtOico1pdMasCBlSNJw7eWPIwtEIgW0hwtEIwE0hwtEIwtOZFtEIwtE9wtOico1pdMasCBlSKX0hwtEIwtOvFMFIwtEINUEJkofidBa1FMXJKX0hwtEIwtOsCBlScbwINUEJAriWwjSYtJEIwtEYtJEIwtELDoaictEINUEJwjSYtJEIwtELDoaictEIRj0IwLYvdmOldmWsaulXcTPIfoa4ft9XdoypdJnFFlxVwjSYtJEIwtELDoaictEIRj0IwLOifoA6wtwVwoOifoAPk3wmhU4IwJnFFlxVwjSYtJEIwtELDoaictEIRj0IwlklfuaZdJ1WCbOPKJELFmEIbukFdJw7eWPIwtEIkoilCBWIwt49wtkoFM9sKJELcmkvdUnFFlxVwjSYtJEIwtELDoaictEIRj0IwlYldMOlFjPIkocZd20IbukFdJw7eWPIwtEIkoilCBWIwt49wtkUcbnSGU1AdzPIkocZd20IbukFdJw7eWPIwtEIkoilCBWIwt49wtkNFMfidMl6CbO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MlVCBxpGMAIC29VfukvdtniFmkiGUnMd3wId3a0Fua0RI0hwtEIwtOXCBflwe0IFoyZF2a0cB1Xdoy0cUILFoymcUXIkukvfZL7wE0hwtEIwE0hwtEIwolMwtILC29Vfukvdukvf1SJC29sFuklF3Ypd24JbUE9NUExhUn7wo9Jb3Y0Cbk0htkvCl9mGMiidMOScbwJhTSIgW0hwtEIwoajDo8Ikunic2A7eWPIwtEIcollhtL7eWPIwtEIeWp9eWPYtj8+ \ No newline at end of file +install.php and install.sql files from your game directory before continuing."); } +//if (file_exists("install.sql")) { die("Please remove the install.php file from your game directory before continuing."); } + +// Setup for superglobal stuff that can't go in globals.php. +$starttime = getmicrotime(); +$numqueries = 0; +$link = opendb(); +$version = "Beta 5"; +$bnumber = "20"; +$bname = "Consolation Prize Part Deux"; +$bdate = "9.2.2007"; +include("lib2.php"); + +// Handling for servers with magic_quotes turned on. +if (get_magic_quotes_gpc()) { + + $_POST = array_map('uber_ss', $_POST); + $_GET = array_map('uber_ss', $_GET); + $_COOKIE = array_map('uber_ss', $_COOKIE); + +} +$_POST = array_map('uber_mres', $_POST); +$_POST = array_map('uber_hsc', $_POST); +$_GET = array_map('uber_mres', $_GET); +$_GET = array_map('uber_hsc', $_GET); +$_COOKIE = array_map('uber_mres', $_COOKIE); +$_COOKIE = array_map('uber_hsc', $_COOKIE); + +function uber_ss($value) { + + $value = is_array($value) ? + array_map('uber_ss', $value) : + stripslashes($value); + return $value; + +} + +function uber_mres($value) { + + $value = is_array($value) ? + array_map('uber_mres', $value) : + mysql_real_escape_string($value); + return $value; + +} + +function uber_hsc($value) { + + $value = is_array($value) ? + array_map('uber_hsc', $value) : + htmlspecialchars($value); + return $value; + +} + +function opendb() { // Open database connection. + + include("config.php"); + extract($dbsettings); + $link = mysql_connect($server, $user, $pass) or err(mysql_error(),true); + mysql_select_db($name) or err(mysql_error(),true); + return $link; + +} + +function doquery($query) { // Something of a tiny little database abstraction layer. + + include('config.php'); + global $numqueries, $controlrow; + $sqlquery = mysql_query(preg_replace('/<<([a-zA-Z0-9_\-]+)>>/', $dbsettings["prefix"].'_$1', $query)); + + if ($sqlquery == false) { + if ($controlrow["debug"] == 1) { die(mysql_error() . "

" . $query); } else { die("A MySQL query error occurred. Please contact the game administrator for more help."); } + } + + $numqueries++; + return $sqlquery; + +} + +function dorow($sqlquery, $force = "") { // Abstraction layer part deux. + + switch (mysql_num_rows($sqlquery)) { + + case 0: + $row = false; + break; + case 1: + if ($force == "") { + $row = mysql_fetch_assoc($sqlquery); + } else { + $temprow = mysql_fetch_assoc($sqlquery); + $row[$temprow[$force]] = $temprow; + } + break; + default: + if ($force == "") { + while ($temprow = mysql_fetch_assoc($sqlquery)) { + $row[] = $temprow; + } + } else { + while ($temprow = mysql_fetch_assoc($sqlquery)) { + $row[$temprow[$force]] = $temprow; + } + } + break; + + } + + return $row; + +} + +function gettemplate($templatename) { // SQL query for the template. + + $filename = "templates/" . $templatename . ".php"; + include("$filename"); + return $template; + +} + +function parsetemplate($template, $array) { // Replace template with proper content. Also does languages. + + foreach($array as $a => $b) { + $template = str_replace("{{{$a}}}", $b, $template); + } + return $template; + +} + +function getmicrotime() { // Used for timing script operations. + + list($usec, $sec) = explode(" ",microtime()); + return ((float)$usec + (float)$sec); + +} + +function is_email($email) { // Thanks to "mail(at)philipp-louis.de" from php.net! + + return(preg_match("/^[-_.[:alnum:]]+@((([[:alnum:]]|[[:alnum:]][[:alnum:]-]*[[:alnum:]])\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)$|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i",$email)); + +} + +function mymail($to, $title, $body, $from = '') { // thanks to arto dot PLEASE dot DO dot NOT dot SPAM at artoaaltonen dot fi. + + global $controlrow; + extract($controlrow); + + + $from = trim($from); + + if (!$from) { + $from = "<$adminemail>"; + } + + $rp = $adminemail; + $org = "$gameurl"; + $mailer = "PHP"; + + $head = ""; + $head .= "Content-Type: text/plain \r\n"; + $head .= "Date: ". date('r'). " \r\n"; + $head .= "Return-Path: $rp \r\n"; + $head .= "From: $from \r\n"; + $head .= "Sender: $from \r\n"; + $head .= "Reply-To: $from \r\n"; + $head .= "Organization: $org \r\n"; + $head .= "X-Sender: $from \r\n"; + $head .= "X-Priority: 3 \r\n"; + $head .= "X-Mailer: $mailer \r\n"; + + $body = str_replace("\r\n", "\n", $body); + $body = str_replace("\n", "\r\n", $body); + + return mail($to, $title, $body, $head); + +} + +function err($error, $system = false, $panels = true) { // Basic little error handler. + + $errmsg = "One or more errors have occurred:

$error

Please go back and try again."; + display("Error", $errmsg, $panels); + +} + +function display($title, $content, $panels = true) { // Finalize page and output to browser. + + include('config.php'); + global $controlrow, $userrow, $worldrow, $numqueries, $starttime, $version, $build; + + if (!isset($controlrow)) { + $controlrow = dorow(doquery("SELECT * FROM <> WHERE id='1' LIMIT 1")); + } + + // Make page tags for XHTML validation. + $page = "\n" + . "\n" + . "\n"; + $page .= gettemplate("primary"); + + // Setup for primary page array indexes. + $row = array(); + $row["gamename"] = $controlrow["gamename"]; + $row["pagetitle"] = $title; + $row["background"] = "background" . $userrow["world"]; + $row["version"] = $version; + $row["content"] = $content; + $row["moddedby"] = $controlrow["moddedby"]; + if ($controlrow["forumurl"] != "") { $row["forumslink"] = "Support Forums"; } else { $row["forumslink"] = ""; } + if ($controlrow["debug"] == 1) { $row["debug"] = "/ " . $numqueries . " Queries / " . round(getmicrotime()-$starttime,4) . " Seconds"; } else { $row["debug"] = ""; } + if ($row["moddedby"] != "") { + $row["info"] = $row["moddedby"]; + } else { + $row["info"] = "Version " . $row["version"] . " " . $row["debug"]; + } + + // Setup for side panels. + include("panels.php"); + if ($panels == true) { + $row["leftnav"] = panelleft(); + $row["rightnav"] = panelright(); + $row["topnav"] = paneltop(true); + $row["bottomnav"] = panelbottom(); + $row["middlenav"] = panelmiddle(); + } else { + $row["leftnav"] = ""; + $row["rightnav"] = ""; + $row["topnav"] = paneltop(false); + $row["bottomnav"] = ""; + } + + $page = rtrim($page, "<-!"); + +$page .= << + + + {{info}} + + + {{forumslink}} + + + Dragon Scourge © by renderse7en. + + + + + +THEVERYENDOFYOU; + + // Finalize control array for output. + $page = parsetemplate($page, $row); + + if ($controlrow["compression"] == 1) { ob_start("ob_gzhandler"); } + echo $page; + die(); +} + +?> \ No newline at end of file