| 1 | <? |
|---|
| 2 | session_start(); |
|---|
| 3 | require_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 | /* |
|---|
| 14 | include('misc/common.functions.php'); |
|---|
| 15 | include_once('tbs_class_php4.php'); |
|---|
| 16 | include_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 | |
|---|
| 35 | if (isset($_GET['lang'])) |
|---|
| 36 | $i18n = new I18n($_GET['lang']); |
|---|
| 37 | else |
|---|
| 38 | $i18n = new I18n; |
|---|
| 39 | |
|---|
| 40 | $tbs = new clsTinyButStrong; |
|---|
| 41 | |
|---|
| 42 | if (!file_exists('view/'.$active.'.php')) |
|---|
| 43 | { |
|---|
| 44 | $template_page = 'page_404.html'; |
|---|
| 45 | $active = '404'; |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | //$title = $title. $title_p; |
|---|
| 49 | include('view/'.$active.'.php'); |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | $tbs->LoadTemplate('templates/index.html'); |
|---|
| 53 | $tbs->MergeField('gettext',$i18n->catalog); |
|---|
| 54 | $tbs->Show(); |
|---|
| 55 | |
|---|
| 56 | */ |
|---|
| 57 | |
|---|
| 58 | ?> |
|---|