diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-05-12 09:33:11 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-05-12 09:33:11 +0300 |
commit | 6441053a55c17832f389f4907f047d9c028ace6f (patch) | |
tree | 7d9c090f2f0210d8629edcdaafe3cdf3827b3bfd /README.md | |
parent | f5cb46d5ffa5c46d4b1aa176d9104e8dd67b24ae (diff) | |
download | main-6441053a55c17832f389f4907f047d9c028ace6f.tar.gz main-6441053a55c17832f389f4907f047d9c028ace6f.tar.bz2 main-6441053a55c17832f389f4907f047d9c028ace6f.zip |
prettier comments and readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 43 |
1 files changed, 22 insertions, 21 deletions
@@ -16,33 +16,34 @@ site: ## index.php ## A typical index.php using Main would look like this: -<?php - - if (true) { - error_reporting(E_ALL|E_STRICT); - ini_set('display_errors', 'On'); - } + + <?php - $sysdir = realpath(dirname(__FILE__).'/../system'); + if (TRUE) { + error_reporting(E_ALL|E_STRICT); + ini_set('display_errors', 'On'); + } + + $sysdir = realpath(dirname(__FILE__).'/../system'); - set_include_path( - get_include_path() . PATH_SEPARATOR - . $sysdir . PATH_SEPARATOR - . "{$sysdir}/lib" . PATH_SEPARATOR - . "{$sysdir}/conf" . PATH_SEPARATOR - . "{$sysdir}/classes" . PATH_SEPARATOR - ); + set_include_path( + get_include_path() . PATH_SEPARATOR + . $sysdir . PATH_SEPARATOR + . "{$sysdir}/lib" . PATH_SEPARATOR + . "{$sysdir}/conf" . PATH_SEPARATOR + . "{$sysdir}/classes" . PATH_SEPARATOR + ); - require_once 'main/MainApp.php'; - require_once 'main/MainController.php'; + require_once 'main/MainApp.php'; + require_once 'main/MainController.php'; - $locale = MainApp::locale(); - setlocale(LC_ALL, $locale); - session_start(); + $locale = MainApp::locale(); + setlocale(LC_ALL, $locale); + session_start(); - MainApp::init(); + MainApp::init(); -?> + ?> ## .htaccess ## |