English
Kamil Dudka

Webové komponenty

Detail souboru

Jméno:Stáhnoutindex.php [Stáhnout]
Umístění: src > script
Velikost:484 B
Poslední změna:2022-09-09 13:06

Zdrojový kód

<?php
// Load configuration
require_once('../config.php');
$config = Config::instance();
$webRoot = $config->webRoot();
 
// Import ScriptServer class
ClassFactory::importClass('ScriptServer');
 
// Send script to client
if (!ScriptServer::sendScript($_GET['name'])) {
  // Script not found
  header('Content-type: text/html', true, 404);
  ClassFactory::importClass('Redirect');
  Redirect::redirect($webRoot.'/NavigationError-ScriptNotFound', LangSelect::singleton()->getLang());
}
?>