source: branches/mvc/index.php

Last change on this file was 47, checked in by chronos, 10 years ago
  • Odstraněno: Zbytečná PHP ukončovací značka "?>" z konce všech souborů.
  • Property svn:executable set to *
File size: 512 bytes
Line 
1<?php
2
3// Change current directory to script location
4$BaseDir = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/'));
5if($BaseDir != '') chdir($BaseDir);
6
7include_once(dirname(__FILE__).'/Base/HTTP.php');
8
9// Is executed from command line?
10if(!isset($_SERVER['REMOTE_ADDR']))
11{
12 $HTTP = new HTTP();
13 $_GET = $HTTP->GetQueryStringArray($_SERVER['argv'][1]);
14}
15
16include_once(dirname(__FILE__).'/Application/Application.php');
17
18$Application = new Application();
19$Application->Run();
Note: See TracBrowser for help on using the repository browser.