You must be logged as an Administrator to view this website
Please login here and come back to this page. SetVar('lang', $_GET['lang']); elseif ( ! $Session->VarExists('lang') ) $Session->SetVar('lang', $WWW[LANGUAGES][LANG_FRONT] ); include($WWW[FOLDER][ROOT].$WWW[FOLDER][THINKWEB].$WWW[FOLDER][LANGUAGES]."/".$Session->GetVar('lang').".php"); include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][LANGUAGES]."/".$Session->GetVar('lang').".php");*/ if ($ThinkWeb_DisplayWeb) { // Select language if (isset($_GET['lang']) && $_GET['lang']!='') TW::SetLanguage($_GET['lang']); elseif ( $Session->GetVar('lang')=='' ) TW::SetLanguage( $WWW[LANGUAGES][LANG_FRONT] ); else TW::SetLanguage($Session->GetVar('lang')); // Force the default page if not specified if (isset($_GET['puid']) && $_GET['puid']!="") $Session->SetVar('page_uid', $_GET['puid']); else $Session->SetVar('page_uid', TW::GetPageContent('vUID', 'home')); $Session->SetVar('page_name', $TblPages->GetFieldOf("`vUID`='".$Session->GetVar('page_uid')."'", 'vName')); // Change page form a PostIt action if needed if (isset($_POST['PostItToPage']) && trim($_POST['PostItToPage'])) { $Session->SetVar('page_name', trim($_POST['PostItToPage'])); $Session->SetVar('page_uid', TW::GetPageContent('vUID', trim($_POST['PostItToPage']))); } if (file_exists($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].'/TW.inc.init.php')) include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].'/TW.inc.init.php'); // IF PAGE OFF LINE ACTIVATED... if (TW::GetPageContent('bActive', '_PAGE_OFF_LINE_') && !TW::UserHasOneRightIn('SU_ALL_ADMIN_RIGHTS_SU TW_ALL_TW_RIGHT ADMIN')) { include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][TEMPLATES].'/'.$WWW[CFG][TEMPLATE]."/header.inc.php"); echo ''.TW::GetPageContent('vContent', '_PAGE_OFF_LINE_').''; $WWW[CFG][TEMPLATE_TYPE] = 'NONE'; } // IF A FOLDER $WWW[CFG][TEMPLATE] EXISTS IN WEBSITE/TEMPLATES FOLDER... elseif (file_exists($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][TEMPLATES].'/'.$WWW[CFG][TEMPLATE])) { $PageTemplate = $TblPages->GetFieldOf("`vUID`='".$Session->GetVar('page_uid')."' AND `vLang`='".$Session->GetVar('lang')."'", 'vTemplate'); $WWW[CFG][TEMPLATE] = ( $PageTemplate != '') ? $PageTemplate : ($WWW[CFG][TEMPLATE] ? $WWW[CFG][TEMPLATE] : $WWW[CFG][IDENT]); include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][TEMPLATES].'/'.$WWW[CFG][TEMPLATE]."/header.inc.php"); include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][TEMPLATES].'/'.$WWW[CFG][TEMPLATE]."/template.inc.php"); include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].$WWW[FOLDER][TEMPLATES].'/'.$WWW[CFG][TEMPLATE]."/footer.inc.php"); $WWW[CFG][TEMPLATE_TYPE] = 'STATIC'; } // IF THE $WWW[CFG][TEMPLATE] NAME IS A DYNAMIC TEMPLATE else { require_once($WWW[FOLDER][ROOT].$WWW[FOLDER][INCLUDES]."/classes/class.TemplatesManager.php"); $Template = new TemplatesManager( $WWW[MYSQL][HOST], $WWW[MYSQL][BASE], $WWW[MYSQL][USER], $WWW[MYSQL][PASS], $WWW[MYSQL][TBL_TEMPLATES]); $Template->SetTemplate($WWW[CFG][TEMPLATE]); $Template->DisplayTemplate(); $WWW[CFG][TEMPLATE_TYPE] = 'DYNAMIC'; } } else { if (file_exists($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].'/TW.inc.init.php')) include($WWW[FOLDER][ROOT].$WWW[FOLDER][WEBSITE].'/TW.inc.init.php'); // if ($ThinkWeb_StartSession) { // if ( ! $Session->VarExists('lang') ) TW::SetLanguage($WWW[LANGUAGES][LANG_BACK]); else // TW::SetLanguage($Session->GetVar('lang')); // include($WWW[FOLDER][ROOT].$WWW[FOLDER][THINKWEB].$WWW[FOLDER][LANGUAGES]."/".$Session->GetVar('lang').".php"); // } } } // EO Site is not under construction ?>