",$redirect); #exit(); # header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $redirect); exit(); } */ #if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off") if( ( empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off" ) && strstr(strtolower($_SERVER['HTTP_HOST']),"brettenthaler.com")) { $redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; #printf("r: %s
",$redirect); #exit(); # header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $redirect); exit(); } // Include security library include_once("../phplibs/cleanurl.php"); //------------------------------------------------------------------------------ // Include system libraries include_once "../phplibs/config.php"; IncludeFile("../phplibs/debugcfg.php"); IncludeFile("../phplibs/kernel.php"); IncludeFile("../phplibs/ebusiness.php"); IncludeFile("../phplibs/template.php"); IncludeFile("../phplibs/templatefunctions.php"); IncludeFile("../phplibs/tmpdata.php"); IncludeFile("../phplibs/sqltemplate.php"); IncludeFile("../phplibs/timer.php"); IncludeFile("../phplibs/cookies.php"); IncludeFile("../phplibs/fuzzysearch.php"); IncludeFile("../phplibs/versions.php"); IncludeFile("../phplibs/chat.php"); IncludeFile("../phplibs/url.php"); IncludeFile("../phplibs/PEAR.php"); IncludeFile("../phplibs/mimePart.php"); IncludeFile("../phplibs/mimeDecode.php"); IncludeFile("../phplibs/class.html.mime.mail.inc.php"); // Include ebusiness system libraries IncludeFile("../phplibs/mysql.php"); IncludeFile("../phplibs/banners.php"); IncludeFile("../phplibs/contentqueue.php"); IncludeFile("../phplibs/contentmgr.php"); IncludeFile("../phplibs/dyncontent.php"); IncludeFile("../phplibs/random.php"); IncludeFile("../phplibs/encryptenhanced.php"); IncludeFile("../phplibs/system.php"); // Include template libraries IncludeFile("../templates/default/classes/config.php"); IncludeFile("../templates/default/classes/templatefunctions.php"); /* IncludeFile("../templates/default/classes/main.php"); IncludeFile("../templates/default/classes/login.php"); IncludeFile("../templates/default/classes/mainarea.php"); IncludeFile("../templates/default/classes/groupnavigation.php"); IncludeFile("../templates/default/classes/mainarea_start.php"); IncludeFile("../templates/default/classes/maingroups.php"); IncludeFile("../templates/default/classes/register.php"); IncludeFile("../templates/default/classes/register_done.php"); IncludeFile("../templates/default/classes/groupdetail.php"); IncludeFile("../templates/default/classes/productlist.php"); IncludeFile("../templates/default/classes/productdetail.php"); IncludeFile("../templates/default/classes/productbasket.php"); IncludeFile("../templates/default/classes/preview_productbasket.php"); IncludeFile("../templates/default/classes/preview_specialoffers.php"); IncludeFile("../templates/default/classes/specialoffers.php"); IncludeFile("../templates/default/classes/contact.php"); IncludeFile("../templates/default/classes/resellerorders.php"); IncludeFile("../templates/default/classes/catalogueslist.php"); IncludeFile("../templates/default/classes/preview_newproducts.php"); IncludeFile("../templates/default/classes/dropdownnav.php"); IncludeFile("../templates/default/classes/auctionproductlist.php"); IncludeFile("../templates/default/classes/auctionproductdetail.php"); IncludeFile("../templates/default/classes/customerarea_orders.php"); IncludeFile("../templates/default/classes/customerarea_orderproducts.php"); IncludeFile("../templates/default/classes/preview_news.php"); IncludeFile("../templates/default/classes/preview_newsletter.php"); IncludeFile("../templates/default/classes/newsarchive.php"); IncludeFile("../templates/default/classes/news.php"); IncludeFile("../templates/default/classes/newsletter.php"); IncludeFile("../templates/default/classes/ordersystem_whois.php"); IncludeFile("../templates/default/classes/download.php"); IncludeFile("../templates/default/classes/pwforgotten.php"); IncludeFile("../templates/default/classes/msgneg.php"); IncludeFile("../templates/default/classes/msgpos.php"); IncludeFile("../templates/default/classes/newproducts.php"); IncludeFile("../templates/default/classes/forumlist.php"); IncludeFile("../templates/default/classes/forum_threadlist.php"); IncludeFile("../templates/default/classes/forum_entrydetail.php"); IncludeFile("../templates/default/classes/forumnavigation.php"); IncludeFile("../templates/default/classes/forum_answerentry.php"); IncludeFile("../templates/default/classes/forum_registeruser.php"); IncludeFile("../templates/default/classes/forum_entrylist.php"); IncludeFile("../templates/default/classes/forum_newthread.php"); IncludeFile("../templates/default/classes/forum_searchentry.php"); IncludeFile("../templates/default/classes/forums_catalogue.php"); IncludeFile("../templates/default/classes/forum_ownentries.php"); IncludeFile("../templates/default/classes/forum_moveentry.php"); IncludeFile("../templates/default/classes/forum_deleteentry.php"); IncludeFile("../templates/default/classes/register_forumuser.php"); IncludeFile("../templates/default/classes/preview_newforumthreads.php"); IncludeFile("../templates/default/classes/ordersummary.php"); IncludeFile("../templates/default/classes/searchengine_newurl.php"); IncludeFile("../templates/default/classes/searchengine_urllist.php"); IncludeFile("../templates/default/classes/searchengine_searchitemlist.php"); IncludeFile("../templates/default/classes/js_groupnavigation.php"); IncludeFile("../templates/default/classes/gallery.php"); IncludeFile("../templates/default/classes/gallery_putgroups.php"); IncludeFile("../templates/default/classes/main_picdetail.php"); IncludeFile("../templates/default/classes/show_picdetail.php"); IncludeFile("../templates/default/classes/sitemap.php"); IncludeFile("../templates/default/classes/left.php"); IncludeFile("../templates/default/classes/customer_shipping_adresses.php"); IncludeFile("../templates/default/classes/graduatedweights.php"); IncludeFile("../templates/default/classes/choosenproducts.php"); IncludeFile("../templates/default/classes/customerarea_navigation.php"); IncludeFile("../templates/default/classes/customerarea_blanketorders.php"); IncludeFile("../templates/default/classes/chat.php"); IncludeFile("../templates/default/classes/flags.php"); IncludeFile("../templates/default/classes/top.php"); IncludeFile("../templates/default/classes/breadcrumb_navigation.php"); IncludeFile("../templates/default/classes/guestbook_newentry.php"); IncludeFile("../templates/default/classes/guestbook_showentries.php"); IncludeFile("../templates/default/classes/captcha.php"); /*/ // Include Teach-Now Classes //****************************************************************************** if ($GLOBALS['config']['activateTeachNow']) { IncludeFile("../templates/default/classes/teachnow/wysiwyg.php"); /* // IncludeFile("../templates/default/classes/teachnow/top.php"); IncludeFile("../templates/default/classes/teachnow/newentry.php"); IncludeFile("../templates/default/classes/teachnow/ownentries.php"); IncludeFile("../templates/default/classes/teachnow/boughtentries.php"); IncludeFile("../templates/default/classes/teachnow/register_branch.php"); IncludeFile("../templates/default/classes/teachnow/register_branch_done.php"); IncludeFile("../templates/default/classes/teachnow/branch_login.php"); IncludeFile("../templates/default/classes/teachnow/branch_catalogue.php"); IncludeFile("../templates/default/classes/teachnow/branch_companylist.php"); IncludeFile("../templates/default/classes/teachnow/branch_companydetail.php"); IncludeFile("../templates/default/classes/teachnow/branch_navigation.php"); IncludeFile("../templates/default/classes/teachnow/tn_left.php"); IncludeFile("../templates/default/classes/teachnow/soldentries.php"); IncludeFile("../templates/default/classes/teachnow/author_login.php"); IncludeFile("../templates/default/classes/teachnow/register_author.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_authorlist.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_authordetail.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_navigation.php"); IncludeFile("../templates/default/classes/teachnow/new_knowledgeentry.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_entrylist.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_ownentries.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_entrydetail.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_boughtentries.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_soldentries.php"); IncludeFile("../templates/default/classes/teachnow/preview_newbranches.php"); IncludeFile("../templates/default/classes/teachnow/preview_newknowledgeentries.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_linklibrary_newentry.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_linklibrary.php"); IncludeFile("../templates/default/classes/teachnow/mentorarea.php"); IncludeFile("../templates/default/classes/teachnow/courselist.php"); IncludeFile("../templates/default/classes/teachnow/new_course.php"); IncludeFile("../templates/default/classes/teachnow/coursedetail.php"); IncludeFile("../templates/default/classes/teachnow/owncourses.php"); IncludeFile("../templates/default/classes/teachnow/new_courseuser.php"); IncludeFile("../templates/default/classes/teachnow/generate_courseuser.php"); IncludeFile("../templates/default/classes/teachnow/generate_courseuser_done.php"); IncludeFile("../templates/default/classes/teachnow/course_assignusers.php"); IncludeFile("../templates/default/classes/teachnow/take_courseuser.php"); IncludeFile("../templates/default/classes/teachnow/course_editcourses.php"); IncludeFile("../templates/default/classes/teachnow/course_assignknowledgeentries.php"); IncludeFile("../templates/default/classes/teachnow/mentor_login.php"); IncludeFile("../templates/default/classes/teachnow/preview_newcourses.php"); IncludeFile("../templates/default/classes/teachnow/booked_courses.php"); IncludeFile("../templates/default/classes/teachnow/eportfoliolist.php"); IncludeFile("../templates/default/classes/teachnow/preview_newauthor.php"); IncludeFile("../templates/default/classes/teachnow/addlink.php"); IncludeFile("../templates/default/classes/teachnow/freecourses.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_wikilist.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_wikidetail.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_selectworkmethod.php"); IncludeFile("../templates/default/classes/teachnow/sort_knowledgeentries.php"); IncludeFile("../templates/default/classes/teachnow/preview_newwikis.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_assignautortoentry.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_ownwido_navigation.php"); IncludeFile("../templates/default/classes/teachnow/lexicon_entrylist.php"); IncludeFile("../templates/default/classes/teachnow/preview_newlexiconterms.php"); IncludeFile("../templates/default/classes/teachnow/lexicon_ownterms.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_children_navigation.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_entry_furtherreading.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_entry_furthercourses.php"); IncludeFile("../templates/default/classes/teachnow/course_editnews.php"); IncludeFile("../templates/default/classes/teachnow/author_showoffers.php"); IncludeFile("../templates/default/classes/teachnow/author_courses.php"); IncludeFile("../templates/default/classes/teachnow/author_knowledgeentries.php"); IncludeFile("../templates/default/classes/teachnow/course_coursearea.php"); // IncludeFile("../templates/default/classes/teachnow/course_coursearea_navigation.php"); IncludeFile("../templates/default/classes/teachnow/course_knowledgeentries.php"); IncludeFile("../templates/default/classes/teachnow/course_coursecenter.php"); IncludeFile("../templates/default/classes/teachnow/course_owncourses.php"); IncludeFile("../templates/default/classes/teachnow/course_courseoverview.php"); IncludeFile("../templates/default/classes/teachnow/course_forums.php"); IncludeFile("../templates/default/classes/teachnow/coursecenter_navigation.php"); IncludeFile("../templates/default/classes/teachnow/course_myparticipants.php"); IncludeFile("../templates/default/classes/teachnow/register_author_check.php"); IncludeFile("../templates/default/classes/teachnow/mentor_administration_start.php"); IncludeFile("../templates/default/classes/teachnow/idealist.php"); IncludeFile("../templates/default/classes/teachnow/ideadetail.php"); IncludeFile("../templates/default/classes/teachnow/knowledge_documentversion.php"); IncludeFile("../templates/default/classes/teachnow/recherche_tool.php"); IncludeFile("../templates/default/classes/teachnow/course_forum_create.php"); IncludeFile("../templates/default/classes/teachnow/course_authorlist.php"); */ } //****************************************************************************** // Include individual libraries // . // . // . class TSite extends TTemplate { var $currentMainAreaTemplatePath; function TSite($templatesBasePath,$templatePath,$templateClassPath,$templateHtmlPath,$templateHtmlFile,$templateLayer=0,$imagesetFolder="",$params="",$currentMainAreaTemplatePath="") { $this->SetCurrentMainAreaTemplatePath($currentMainAreaTemplatePath); TTemplate::TTemplate($templatesBasePath,$templatePath,$templateClassPath,$templateHtmlPath,$templateHtmlFile,$templateLayer,$imagesetFolder,$params); } // Destructor function Destructor() { TTemplate::Destructor(); } // Loads settings only for used templates function LoadSettings(&$ptr) { TTemplate::LoadSettings($ptr); $this->Debug(sprintf("templatePath: %s
",$ptr->templatePath)); $this->Debug(sprintf("templateHtmlFile: %s
",$ptr->templateHtmlFile)); $this->Debug(sprintf("CLASS: %s
",$this->GetClassName($ptr))); // printf("A: %s
",$_GET['cmdTemplateHtmlFile']); if ($_GET['cmdTemplateHtmlFile']) { if (!$_GET['setMainAreaTemplatePath']) $_GET['setMainAreaTemplatePath']=$_GET['cmdTemplateHtmlFile']; //if (!file_exists($_GET['cmdTemplateHtmlFile']) && $GLOBALS['config']['activateTeachNow']) $_GET['cmdTemplateHtmlFile']=sprintf("teachnow/%s",$_GET['cmdTemplateHtmlFile']); } //######################################################################## // Set classes for specifical templates //######################################################################## $templateFunctionClassName=""; switch ($ptr->templatePath) { //------------------------------------------------------------------------ // Default templateset case "default": switch ($ptr->templateHtmlFile) { /* case "main.html": $templateFunctionClassName="TTemplateFunctions_Main"; break; case "login.html": $templateFunctionClassName="TTemplateFunctions_Login"; break; case "mainarea.html": $templateFunctionClassName="TTemplateFunctions_MainArea"; break; case "groupnavigation.html": $templateFunctionClassName="TTemplateFunctions_GroupNavigation"; break; case "mainarea_start.html": $templateFunctionClassName="TTemplateFunctions_MainArea_Start"; break; case "maingroups.html": $templateFunctionClassName="TTemplateFunctions_MainGroups"; break; case "register.html": $templateFunctionClassName="TTemplateFunctions_Register"; break; case "register_done.html": $templateFunctionClassName="TTemplateFunctions_RegisterDone"; break; case "groupdetail.html": $templateFunctionClassName="TTemplateFunctions_GroupDetail"; break; case "productlist.html": $templateFunctionClassName="TTemplateFunctions_ProductList"; break; case "productdetail.html": $templateFunctionClassName="TTemplateFunctions_ProductDetail"; break; case "productbasket.html": $templateFunctionClassName="TTemplateFunctions_ProductBasket"; break; case "preview_productbasket.html": $templateFunctionClassName="TTemplateFunctions_PreviewProductBasket"; break; case "preview_specialoffers.html": $templateFunctionClassName="TTemplateFunctions_PreviewSpecialoffers"; break; case "specialoffers.html": $templateFunctionClassName="TTemplateFunctions_SpecialOffers"; break; case "contact.html": $templateFunctionClassName="TTemplateFunctions_Contact"; break; case "resellerorders.html": $templateFunctionClassName="TTemplateFunctions_ResellerOrders"; break; case "catalogueslist.html": $templateFunctionClassName="TTemplateFunctions_CataloguesList"; break; case "preview_newproducts.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewProducts"; break; case "dropdownnav.html": $templateFunctionClassName="TTemplateFunctions_DropDownNavigation"; break; case "auctionproductlist.html": $templateFunctionClassName="TTemplateFunctions_AuctionProductList"; break; case "auctionproductdetail.html": $templateFunctionClassName="TTemplateFunctions_AuctionProductDetail"; break; case "customerarea_orders.html": $templateFunctionClassName="TTemplateFunctions_CustomerAreaOrders"; break; case "customerarea_orderproducts.html": $templateFunctionClassName="TTemplateFunctions_CustomerAreaOrderProducts"; break; case "preview_news.html": $templateFunctionClassName="TTemplateFunctions_PreviewNews"; break; case "preview_newsletter.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewsletter"; break; case "newsarchive.html": $templateFunctionClassName="TTemplateFunctions_NewsArchive"; break; case "news.html": $templateFunctionClassName="TTemplateFunctions_News"; break; case "newsletter.html": $templateFunctionClassName="TTemplateFunctions_Newsletter"; break; case "ordersystem_whois.html": $templateFunctionClassName="TTemplateFunctions_OrdersystemWhois"; break; case "download.html": $templateFunctionClassName="TTemplateFunctions_Download"; break; case "pwforgotten.html": $templateFunctionClassName="TTemplateFunctions_PasswordForgotten"; break; case "msgneg.html": $templateFunctionClassName="TTemplateFunctions_MsgNeg"; break; case "msgpos.html": $templateFunctionClassName="TTemplateFunctions_MsgPos"; break; case "newproducts.html": $templateFunctionClassName="TTemplateFunctions_NewProducts"; break; case "forum_login.html": $templateFunctionClassName="TTemplateFunctions_Login"; break; case "forumlist.html": $templateFunctionClassName="TTemplateFunctions_ForumList"; break; case "forum_threadlist.html": $templateFunctionClassName="TTemplateFunctions_Forum_ThreadList"; break; case "forum_entrydetail.html": $templateFunctionClassName="TTemplateFunctions_Forum_EntryDetail"; break; case "forumnavigation.html": $templateFunctionClassName="TTemplateFunctions_ForumNavigation"; break; case "forum_answerentry.html": $templateFunctionClassName="TTemplateFunctions_Forum_AnswerEntry"; break; case "forum_registeruser.html": $templateFunctionClassName="TTemplateFunctions_Forum_RegisterUser"; break; case "forum_entrylist.html": $templateFunctionClassName="TTemplateFunctions_Forum_EntryList"; break; case "forum_newthread.html": $templateFunctionClassName="TTemplateFunctions_Forum_NewThread"; break; case "forum_searchentry.html": $templateFunctionClassName="TTemplateFunctions_Forum_SearchEntry"; break; case "forums_catalogue.html": $templateFunctionClassName="TTemplateFunctions_ForumsCatalogue"; break; case "forum_ownentries.html": $templateFunctionClassName="TTemplateFunctions_Forum_OwnEntries"; break; case "forum_moveentry.html": $templateFunctionClassName="TTemplateFunctions_Forum_MoveEntry"; break; case "forum_deleteentry.html": $templateFunctionClassName="TTemplateFunctions_Forum_DeleteEntry"; break; case "register_forumuser.html": $templateFunctionClassName="TTemplateFunctions_RegisterForumUser"; break; case "ordersummary.html": $templateFunctionClassName="TTemplateFunctions_OrderSummary"; break; case "searchengine_newurl.html": $templateFunctionClassName="TTemplateFunctions_SearchEngine_NewUrl"; break; case "searchengine_urllist.html": $templateFunctionClassName="TTemplateFunctions_SearchEngine_UrlList"; break; case "searchengine_searchitemlist.html": $templateFunctionClassName="TTemplateFunctions_SearchEngine_SearchItemList"; break; case "js_groupnavigation.html": $templateFunctionClassName="TTemplateFunctions_JS_GroupNavigation"; break; case "gallery.html": $templateFunctionClassName="TTemplateFunctions_Gallery"; break; case "gallery_putgroups.html": $templateFunctionClassName="TTemplateFunctions_GalleryPutGroups"; break; case "main_picdetail.html": $templateFunctionClassName="TTemplateFunctions_MainPicDetail"; break; case "show_picdetail.html": $templateFunctionClassName="TTemplateFunctions_ShowPicDetail"; break; case "sitemap.html": $templateFunctionClassName="TTemplateFunctions_Sitemap"; break; case "left.html": $templateFunctionClassName="TTemplateFunctions_Left"; break; case "customer_shipping_adresses.html": $templateFunctionClassName="TTemplateFunctions_CustomerShippingAdresses"; break; case "graduatedweights.html": $templateFunctionClassName="TTemplateFunctions_GraduatedWeights"; break; case "choosenproducts.html": $templateFunctionClassName="TTemplateFunctions_ChoosenProducts"; break; case "customerarea_navigation.html": $templateFunctionClassName="TTemplateFunctions_CustomerAreaNavigation"; break; case "customerarea_blanketorders.html": $templateFunctionClassName="TTemplateFunctions_CustomerAreaBlanketOrders"; break; case "chat.html": $templateFunctionClassName="TTemplateFunctions_Chat"; break; case "flags_hori.html": case "flags_vert.html": $templateFunctionClassName="TTemplateFunctions_Flags"; break; case "top.html": $templateFunctionClassName="TTemplateFunctions_Top"; break; case "breadcrumb_navigation.html": $templateFunctionClassName="TTemplateFunctions_BreadCrumbNavigation"; break; case "guestbook_newentry.html": $templateFunctionClassName="TTemplateFunctions_GuestBook_NewEntry"; break; case "guestbook_showentries.html": $templateFunctionClassName="TTemplateFunctions_GuestBook_ShowEntries"; break; case "captcha.html": $templateFunctionClassName="TTemplateFunctions_Captcha"; break; */ case "teachnow/newentry.html": $templateFunctionClassName="TTemplateFunctions_NewEntry"; break; case "teachnow/ownentries.html": $templateFunctionClassName="TTemplateFunctions_OwnEntries"; break; case "teachnow/boughtentries.html": $templateFunctionClassName="TTemplateFunctions_BoughtEntries"; break; case "teachnow/register_branch.html": $templateFunctionClassName="TTemplateFunctions_RegisterBranch"; break; case "teachnow/register_branch_done.html": $templateFunctionClassName="TTemplateFunctions_RegisterBranchDone"; break; case "teachnow/branch_login.html": $templateFunctionClassName="TTemplateFunctions_BranchLogin"; break; case "teachnow/branch_catalogue.html": $templateFunctionClassName="TTemplateFunctions_BranchCatalogue"; break; case "teachnow/branch_companylist.html": $templateFunctionClassName="TTemplateFunctions_BranchCompanyList"; break; case "teachnow/branch_companydetail.html": $templateFunctionClassName="TTemplateFunctions_BranchCompanyDetail"; break; case "teachnow/branch_navigation.html": $templateFunctionClassName="TTemplateFunctions_BranchNavigation"; break; case "teachnow/tn_left.html": $templateFunctionClassName="TTemplateFunctions_TeachNowLeft"; break; case "teachnow/soldentries.html": $templateFunctionClassName="TTemplateFunctions_SoldEntries"; break; case "teachnow/author_login.html": $templateFunctionClassName="TTemplateFunctions_AuthorLogin"; break; case "teachnow/register_author.html": $templateFunctionClassName="TTemplateFunctions_RegisterAuthor"; break; case "teachnow/knowledge_authorlist.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeAuthorList"; break; case "teachnow/knowledge_authordetail.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeAuthorDetail"; break; case "teachnow/knowledge_navigation.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeNavigation"; break; case "teachnow/new_knowledgeentry.html": $templateFunctionClassName="TTemplateFunctions_NewKnowledgeEntry"; break; case "teachnow/knowledge_entrylist.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeEntryList"; break; case "teachnow/knowledge_ownentries.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeOwnEntries"; break; case "teachnow/knowledge_entrydetail.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeEntryDetail"; break; case "teachnow/knowledge_boughtentries.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeBoughtEntries"; break; case "teachnow/knowledge_soldentries.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeSoldEntries"; break; case "teachnow/preview_newbranches.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewBranches"; break; case "teachnow/preview_newknowledgeentries.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewKnowledgeEntries"; break; case "teachnow/knowledge_linklibrary_newentry.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeLinkLibraryNewEntry"; break; case "teachnow/knowledge_linklibrary.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeLinkLibrary"; break; case "teachnow/mentorarea.html": $templateFunctionClassName="TTemplateFunctions_MentorArea"; break; case "teachnow/courselist.html": $templateFunctionClassName="TTemplateFunctions_CourseList"; break; case "teachnow/new_course.html": $templateFunctionClassName="TTemplateFunctions_NewCourse"; break; case "teachnow/coursedetail.html": $templateFunctionClassName="TTemplateFunctions_CourseDetail"; break; case "teachnow/owncourses.html": $templateFunctionClassName="TTemplateFunctions_OwnCourses"; break; case "teachnow/new_courseuser.html": $templateFunctionClassName="TTemplateFunctions_NewCourseUser"; break; case "teachnow/generate_courseuser.html": $templateFunctionClassName="TTemplateFunctions_GenerateCourseUser"; break; case "teachnow/generate_courseuser_done.html": $templateFunctionClassName="TTemplateFunctions_GenerateCourseUserDone"; break; case "teachnow/course_assignusers.html": $templateFunctionClassName="TTemplateFunctions_CourseAssignUsers"; break; case "teachnow/take_courseuser.html": $templateFunctionClassName="TTemplateFunctions_TakeCourseUser"; break; case "teachnow/course_editcourses.html": $templateFunctionClassName="TTemplateFunctions_EditCourses"; break; case "teachnow/course_assignknowledgeentries.html": $templateFunctionClassName="TTemplateFunctions_CourseAssignKnowledgeEntries"; break; case "teachnow/mentor_login.html": $templateFunctionClassName="TTemplateFunctions_MentorLogin"; break; case "teachnow/preview_newforumthreads.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewForumThreads"; break; case "teachnow/preview_newcourses.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewCourses"; break; case "teachnow/booked_courses.html": $templateFunctionClassName="TTemplateFunctions_BookedCourses"; break; case "teachnow/eportfoliolist.html": $templateFunctionClassName="TTemplateFunctions_EPortfolioList"; break; case "teachnow/preview_newauthor.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewAuthor"; break; case "teachnow/addlink.html": $templateFunctionClassName="TTemplateFunctions_AddLink"; break; case "teachnow/freecourses.html": $templateFunctionClassName="TTemplateFunctions_FreeCourses"; break; case "teachnow/knowledge_wikilist.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeWikiList"; break; case "teachnow/knowledge_wikidetail.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeWikiDetail"; break; case "teachnow/forum_ownentries.html": $templateFunctionClassName="TTemplateFunctions_Forum_OwnEntries"; break; case "teachnow/knowledge_selectworkmethod.html": $templateFunctionClassName="TTemplateFunctions_SelectKEWorkMethod"; break; case "teachnow/sort_knowledgeentries.html": $templateFunctionClassName="TTemplateFunctions_SortKnowledgeEntries"; break; case "teachnow/preview_newwikis.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewWikis"; break; case "teachnow/knowledge_assignautortoentry.html": $templateFunctionClassName="TTemplateFunctions_AssignAutorToKnowledgeEntry"; break; case "teachnow/knowledge_ownwido_navigation.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeOwnWidoNavigation"; break; case "teachnow/lexicon_entrylist.html": $templateFunctionClassName="TTemplateFunctions_LexiconEntryList"; break; case "teachnow/new_lexiconentry.html": $templateFunctionClassName="TTemplateFunctions_NewKnowledgeEntry"; break; case "teachnow/preview_newlexiconterms.html": $templateFunctionClassName="TTemplateFunctions_PreviewNewLexiconTerms"; break; case "teachnow/lexicon_ownterms.html": $templateFunctionClassName="TTemplateFunctions_OwnLexiconTerms"; break; case "teachnow/lexicon_entrydetail.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeEntryDetail"; break; case "teachnow/knowledge_children_navigation.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeChildrenNavigation"; break; case "teachnow/knowledge_entry_furtherreading.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeEntryFurtherReading"; break; case "teachnow/knowledge_entry_furthercourses.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeEntryFurtherCourses"; break; case "teachnow/course_editnews.html": $templateFunctionClassName="TTemplateFunctions_CourseEditNews"; break; case "teachnow/author_showoffers.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeAuthorShowOffers"; break; case "teachnow/author_courses.html": $templateFunctionClassName="TTemplateFunctions_AuthorCourses"; break; case "teachnow/author_knowledgeentries.html": $templateFunctionClassName="TTemplateFunctions_AuthorKnowledgeEntries"; break; case "teachnow/course_coursearea.html": $templateFunctionClassName="TTemplateFunctions_CourseCourseArea"; break; // case "teachnow/course_coursearea_navigation.html": $templateFunctionClassName="TTemplateFunctions_CourseCourseAreaNavigation"; break; case "teachnow/course_knowledgeentries.html": $templateFunctionClassName="TTemplateFunctions_CourseKnowledgeEntries"; break; case "teachnow/course_coursecenter.html": $templateFunctionClassName="TTemplateFunctions_CourseCourseCenter"; break; case "teachnow/course_owncourses.html": $templateFunctionClassName="TTemplateFunctions_CourseOwnCourses"; break; case "teachnow/course_courseoverview.html": $templateFunctionClassName="TTemplateFunctions_CourseCourseOverview"; break; case "teachnow/course_forums.html": $templateFunctionClassName="TTemplateFunctions_CourseForums"; break; case "teachnow/coursecenter_navigation.html": $templateFunctionClassName="TTemplateFunctions_CourseCenterNavigation"; break; case "teachnow/course_myparticipants.html": $templateFunctionClassName="TTemplateFunctions_CourseMyParticipants"; break; case "teachnow/forum_movethread.html": $templateFunctionClassName="TTemplateFunctions_Forum_MoveThread"; break; case "teachnow/forum_deleteentry.html": $templateFunctionClassName="TTemplateFunctions_Forum_DeleteEntry"; break; case "teachnow/register_author_check.html": $templateFunctionClassName="TTemplateFunctions_RegisterAuthorCheck"; break; case "teachnow/mentor_administration_start.html": $templateFunctionClassName="TTemplateFunctions_MentorAdministration_Start"; break; case "teachnow/idealist.html": $templateFunctionClassName="TTemplateFunctions_IdeaList"; break; case "teachnow/ideadetail.html": $templateFunctionClassName="TTemplateFunctions_IdeaDetail"; break; case "teachnow/knowledge_documentversion.html": $templateFunctionClassName="TTemplateFunctions_DocumentVersion"; break; case "teachnow/recherche_tool.html": $templateFunctionClassName="TTemplateFunctions_RechercheTool"; break; case "teachnow/course_forum_create.html": $templateFunctionClassName="TTemplateFunctions_KnowledgeCreateCourseForum"; break; case "teachnow/course_authorlist.html": $templateFunctionClassName="TTemplateFunctions_CourseAuthorList"; break; } break; //------------------------------------------------------------------------ // Other template sets (for other HTML-Templates, XML, oder WML-Templates, etc.) // ... // ... // ... //------------------------------------------------------------------------ } if ($templateFunctionClassName) $this->SetTemplateFunctionClass($templateFunctionClassName); } // Sets the current template for the mainarea (must be called before TTemplate::TTemplate) function SetCurrentMainAreaTemplatePath($path) { $this->currentMainAreaTemplatePath=$path; } }; // Set static Debugmode //TKernel::SetDebugMode(1); //TKernel::SetTimeTrackingMode(2); //if (!file_exists($_GET['setMainAreaTemplatePath']) && $GLOBALS['config']['activateTeachNow']) $_GET['setMainAreaTemplatePath']=sprintf("teachnow/%s",$_GET['setMainAreaTemplatePath']); $mainTemplatePath="main.html"; if ($_GET['mainTemplatePath']) $mainTemplatePath=$_GET['mainTemplatePath']; $site=new TSite("../templates",$GLOBALS['config']['templatesetFolder'],"classes",$GLOBALS['config']['templatesFolder'],$mainTemplatePath,0,$currentImagesetPath,$currentMainAreaTemplatePath,""); // Set if HTML comments should be cut $site->SetCutHTMLComments(false); // Set if Linefeeds (\n) should be cut $site->SetCutLF(false); // Set base objects $site->SetSqlObject($sql); $site->SetTemporaryDataObject($temporaryData); $site->SetBannerObject($banner); $site->SetContentManagerObject($contentMgr); $site->SetContentManagerShortObject($contentMgrShort); $site->SetContentManagerAdminObject($contentMgrAdmin); $site->SetContentManagerShortAdminObject($contentMgrShortAdmin); $site->SetSqlTemplateObject($sqlTemplate); $site->SetDynamicContentObject($dynamicContent); //------------------------------------------------------------------------------ // Use IP-locking for security reasons if ($GLOBALS['config']['abuseModule']['useIpLocking']) { if (!$site->IpLocking_IsIpAllowed($GLOBALS['config']['abuseModule']['ipLocking_groupId'],-1,$GLOBALS['config']['abuseModule']['ipLocking_queuingMinutes'],$GLOBALS['config']['abuseModule']['ipLocking_lockingMinutes'])) { $site->Abort(); exit(); } } //------------------------------------------------------------------------------ if ($_GET['mainPage']=="true") { $tmpHost=str_replace("/","",str_replace("http://","",$_SERVER['HTTP_HOST'])); /* if($tmpHost=="www.esuccess.org") $_SESSION['fromDomain2']="esuccess"; else $_SESSION['fromDomain2']=""; */ } else { $__tmpMainAreaTemplatePath=str_replace("teachnow/","",$_GET['setMainAreaTemplatePath']); switch($__tmpMainAreaTemplatePath) { case "mainarea_msgpos.html": $_SESSION['config']['topSearch']=""; $_SESSION['fromDomain2']=""; $_SESSION['helpSession']=""; break; //************************************************************************** // E-SUCCESS - Portal Start * //************************************************************************** case "portal_start.html": $_SESSION['config']['topSearch']="Knowlege"; $_SESSION['fromDomain2']="knowledge"; $_SESSION['helpSession']=""; break; //************************************************************************** // IDEEn DATENBANK * //************************************************************************** case "sellideas.html": case "buyideas.html": case "idealist.html": case "idea_start.html": $_SESSION['config']['topSearch']="Idea"; $_SESSION['fromDomain2']=""; $_SESSION['helpSession']=""; break; //************************************************************************** // WISSENS DATENBANK * //************************************************************************** case "knowledge_linklibrary.html": $_SESSION['config']['topSearch']="Knowlege"; $_SESSION['fromDomain2']="knowledge"; $_SESSION['helpSession']="mylinks"; break; //************************************************************************** // WISSENS DATENBANK * //************************************************************************** case "mainknowledge.html": case "groupsolutions.html": case "new_knowledgeentry.html": case "knowledge_entrylist.html": case "knowledge_ownentries.html": case "knowledge_soldentries.html": case "knowledge_entrydetail.html": case "sort_knowledgeentries.html": case "knowledge_linklibrary.html": case "knowledge_boughtentries.html": case "knowledge_selectworkmethod.html": case "knowledge_assignautortoentry.html": case "knowledge_ownwido_navigation.html": case "knowledge_entry_furtherreading.html": case "knowledge_entry_furthercourses.html": case "knowledge_linklibrary_newentry.html": $_SESSION['config']['topSearch']="Knowlege"; $_SESSION['fromDomain2']="knowledge"; $_SESSION['helpSession']="knowledge"; break; //************************************************************************** // LEXIKON * //************************************************************************** case "lexicon_start.html": case "new_lexiconentry.html": case "lexicon_ownterms.html": case "lexicon_entrylist.html": case "lexicon_entrydetail.html": $_SESSION['config']['topSearch']="Lexicon"; $_SESSION['fromDomain2']="lexicon"; $_SESSION['helpSession']="lexicon"; break; //************************************************************************** // WIKI * //************************************************************************** case "wiki_start.html": case "knowledge_wikilist.html": case "knowledge_wikidetail.html": $_SESSION['config']['topSearch']="Wiki"; $_SESSION['fromDomain2']="wiki"; $_SESSION['helpSession']="wiki"; break; //************************************************************************** // AUTORENLISTE * //************************************************************************** /* case "knowledge_authorlist.html": case "knowledge_authordetail.html": $_SESSION['config']['topSearch']="Authorlist"; $_SESSION['fromDomain2']="knowledge"; $_SESSION['helpSession']=""; break;*/ //************************************************************************** // AUTOREN / MENTOREN * //************************************************************************** case "author_login.html": case "mentor_login.html": case "author_courses.html": case "register_author.html": case "author_showoffers.html": case "main_author_mentor.html": case "knowledge_authorlist.html": case "register_author_check.html": case "knowledge_authorlist.html": case "knowledge_authordetail.html": case "author_knowledgeentries.html": case "mentor_administration_start.html": $_SESSION['config']['topSearch']="Authorlist"; $_SESSION['fromDomain2']="autoren"; $_SESSION['helpSession']="autormentor"; break; //************************************************************************** // BRANCHENVERZEICHNIS * //************************************************************************** case "branch_login.html": case "register_branch.html": case "branch_catalogue.html": case "branch_companylist.html": case "branch_companydetail.html": case "register_branch_done.html": $_SESSION['config']['topSearch']="Branch"; $_SESSION['fromDomain2']="companies"; $_SESSION['helpSession']=""; break; //************************************************************************** // WERBUNG * //************************************************************************** case "newadvertisements.html": case "advertisementlinks.html": $_SESSION['config']['topSearch']="Advertisement"; $_SESSION['fromDomain2']="Advertisement"; $_SESSION['helpSession']=""; break; //************************************************************************** // KURS DATENBANK * //************************************************************************** case "new_course.html": case "courselist.html": case "mentorarea.html": case "owncourses.html": case "maincourses.html": case "freecourses.html": case "coursedetail.html": case "course_forums.html": case "booked_courses.html": case "new_courseuser.html": case "course_editnews.html": case "course_coursearea.html": case "course_owncourses.html": case "course_assignusers.html": case "course_editcourses.html": case "generate_courseuser.html": case "course_coursecenter.html": case "course_courseoverview.html": case "course_myparticipants.html": case "course_knowledgeentries.html": case "generate_courseuser_done.html": // case "course_coursearea_navigation.html": case "course_assignknowledgeentries.html": $_SESSION['config']['topSearch']="Courses"; $_SESSION['fromDomain2']="courses"; $_SESSION['helpSession']=""; break; //************************************************************************** // FOREN * //************************************************************************** case "forumlist.html": case "forumnavigation.html": case "forum_entrylist.html": case "forum_newthread.html": case "forum_moveentry.html": case "forum_threadlist.html": case "forum_ownentries.html": case "forum_deteleentry.html": case "forum_searchentry.html": case "forum_answerentry.html": case "forum_entrydetail.html": case "register_forumuser.html": case "forum_registeruser.html": $_SESSION['config']['topSearch']="Forums"; $_SESSION['fromDomain2']="foren"; $_SESSION['helpSession']=""; break; case "forums_catalogue.html": $_SESSION['config']['topSearch']="Forums"; $_SESSION['fromDomain2']="forum4help"; $_SESSION['helpSession']=""; break; //************************************************************************** // EPORTFOLIO DATENBANK * //************************************************************************** case "eportfoliolist.html": case "eportfolio_start.html": $_SESSION['config']['topSearch']="Eportfolio"; $_SESSION['fromDomain2']="eportfolio"; $_SESSION['helpSession']=""; break; //************************************************************************** // IDEEN DATENBANK * //************************************************************************** default: $_SESSION['config']['topSearch']="Knowlege"; $_SESSION['fromDomain2']=""; $_SESSION['helpSession']=""; break; } } if ($_GET['setWiki']) $_SESSION['helpSession']="wiki"; if ($_GET['knowledgeentry']==true) { $_SESSION['config']['topSearch']="Knowlege"; $_SESSION['fromDomain2']="knowledge"; } //------------------------------------------------------------------------------ // Start parsing and put to screen $site->Put(); //$template->PutMemoryStats(); // Disconnect from database if (isset($sql)) $sql->Close(); // Call destructor $site->Close(); ?>