Esempio n. 1
0
 function Load_Scaffolding()
 {
     $ide = new IDE();
     $ide->requireAdmin();
     parent::Controller();
     if (empty($_SESSION['scaffolding'])) {
         exit("Could not load scaffolding.");
     } else {
         $this->load->scaffolding($_SESSION['scaffolding']);
     }
     $ide->system_stop();
 }
Esempio n. 2
0
 public function execute()
 {
     $ide = new IDE();
     $ide->requireAdmin();
     require "config.php";
     if (!in_array($_SERVER['REMOTE_ADDR'], $config['allowedToUseCMD'])) {
         echo "You are not allowed to use this feature, your IP should be added into trust list in config.php";
     } else {
         echo '<head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"></head>';
         echo "<pre>";
         echo system($_REQUEST['cmd']);
         echo "</pre>";
     }
     $ide->system_stop();
 }