root/website/index.php @ 1761

Revision 1761, 1.4 kB (checked in by kop-labs, 6 years ago)

Changes directory structure

Line 
1<?
2session_start();
3require_once(dirname(__FILE__) . "/lib/ConfigUtil.class.php");
4$cfg = new ConfigUtil();
5$cfg->load("views.IndexForm");
6$cfg->load("i18n");
7
8
9$main = new IndexForm();
10$main->doGet();
11$main->processRequest();
12
13/*
14include('misc/common.functions.php');
15include_once('tbs_class_php4.php');
16include_once('view/i18n.class.php');
17
18$title    = 'UMIT v0.1 | ';
19
20$top               = 'template_top.html';
21$template_menu     = 'template_menu.html';
22$template_ad       = 'template_ad_small.html';
23$template_download = '';
24$active            = ($_GET['active']?$_GET['active']:'home');
25$template_page     = 'page_'.$active.'.html';
26$template_footer   = 'template_footer.html';
27$ad_728x90         = 'ad_728x90.html';
28$ad_200x200        = 'ad_200x200.html';
29$link_xhtml        = 'link_xhtml.html';
30$link_rss          = 'link_rss.html';
31$link_css          = 'link_css.html';
32$link_language     = 'link_language.html';
33$link_powerdby     = 'link_powerdby.html';
34
35if (isset($_GET['lang']))
36  $i18n            = new I18n($_GET['lang']);
37else
38  $i18n            = new I18n;
39
40$tbs               = new clsTinyButStrong;
41
42if (!file_exists('view/'.$active.'.php'))
43{
44  $template_page = 'page_404.html';
45        $active = '404';
46}
47       
48//$title = $title. $title_p;
49include('view/'.$active.'.php');
50
51
52$tbs->LoadTemplate('templates/index.html');
53$tbs->MergeField('gettext',$i18n->catalog);
54$tbs->Show();
55
56 */
57
58?>
Note: See TracBrowser for help on using the browser.