source: trunk/index.php

Last change on this file was 18, checked in by maron, 12 years ago

kostra webu

  • Property svn:executable set to *
File size: 658 bytes
Line 
1<?php
2
3 if(isset($_SERVER['REMOTE_ADDR'])) session_start();
4
5 ini_set('display_errors',1);
6 error_reporting(E_ALL);
7
8 //including class
9 if ($handle = opendir('class')) {
10 while (false !== ($entry = readdir($handle))) {
11 if ($entry != "." && $entry != "..") {
12 if (('Config.sample.php' != $entry) and (substr($entry, strlen($entry)-3, 3) == 'php'))
13 include_once('class/'.$entry);
14 }
15 }
16 closedir($handle);
17 }
18
19 //creating objects
20 $Database = new Database();
21 $User = new User($Database);
22
23
24 //main body
25 $Gui = new Gui($User);
26
27
28
29 $Gui->ShowPage();
30
31
32 //destroing objects
33 $User->__Destroy();
34
35?>
Note: See TracBrowser for help on using the repository browser.