예제 #1
0
 public function removeJS($js_uri)
 {
     return Frontcontroller::removeMedia($js_uri);
 }
 /**
  * Add one or several JS files for front, checking if js files are overridden in theme/js/modules/ directory
  * @see Controller::addJS()
  *
  * @param array|string $js_uri Path to file, or an array of paths
  * @param bool $check_path If true, checks if files exists
  * @return true|void
  */
 public function addJS($js_uri, $check_path = true)
 {
     return Frontcontroller::addMedia($js_uri, null, null, false, $check_path);
 }
예제 #3
0
header('Content-type: text/html;charset=UTF-8');
?>
<pre><?php 
error_reporting(-1);
ini_set('display_errors', 1);
chdir(dirname(__FILE__));
require_once 'system/init.php';
EventManager::registerEvent(new Event('onBeforeAppExec'));
EventManager::registerEvent(new Event('onAfterAppExec'));
//require_once 'system/init.php';
Registry::set('designpath', ICMS_SYS_PATH . 'designs/');
Registry::set('logpath', ICMS_SYS_PATH . 'logs/frontend/');
Registry::set('languagepath', ICMS_SYS_PATH . 'language/frontend/');
Registry::set('controllerpath', ICMS_SYS_PATH . 'controller/frontend/');
Registry::set('templatepath', ICMS_SYS_PATH . 'templates/frontend/');
$frontcontroller = new Frontcontroller();
try {
    $frontcontroller->run();
} catch (Exception $e) {
    echo $e->getMessage();
}
/*
    Application::import('text::bbcode');
    class myApplication implements IApplication
    {
        public function run()
        {
            //echo 'Application execution...' . "\n\n";
            $txt = <<<text
[url]http://www.google.de/search?q=einganzlangerlinkderumgebrochenwerdenmussesabernichtwird[/url]
das ist [b]fetter Text[/b] und und das ist [u][lt]unterstrichener[/lt] [i]kursiver Text[/i][/u] hier ein [url=http://www.google.de][b]LI[/b]NK mit HTML Sonderzeichen & < > <br /> " ' [/url]
예제 #4
0
 public function removeJS($js_uri, $check_path = true)
 {
     return Frontcontroller::removeMedia($js_uri, null, $check_path);
 }
예제 #5
0
 /**
  * Add one or several JS files for front, checking if js files are overridden in theme/js/modules/ directory.
  *
  * @see Controller::addJS()
  *
  * @param array|string $js_uri     Path to file, or an array of paths
  * @param bool         $check_path If true, checks if files exists
  *
  * @return true|void
  */
 public function addJS($js_uri, $check_path = true)
 {
     if (_PS_MODE_DEV_ && Tools::getValue('debug-disable-javascript')) {
         return;
     }
     return Frontcontroller::addMedia($js_uri, null, null, false, $check_path);
 }