'; $AdsenseCode .= '
'; $AdsenseCode .= '
'; $AdsenseCode .= ''; $AdsenseCode .= '
'; $AdsenseCode .= ''; $AdsenseCode .= '
'; $AdsenseCode .= ''; $AdsenseCode .= '
'; $htmlParts = split('1) { $htmlOut = $htmlParts[0]; $Pos = rand(1,count($htmlParts)); $inserted = false; for($h=1;$hgetLastError()); } if(($sectionManager = new section($dataConnection))==false) { mailError($sectionManager->getLastError()); } if(($articleManager = new article($dataConnection))==false) { mailError($articleManager->getLastError()); } if(($commentManager = new comment($dataConnection))==false) { mailError($commentManager->getLastError()); } if(($socialManager = new social($dataConnection))==false) { mailError($socialManager->getLastError()); } $socialManager->setStyle("button"); if(($videoSubjectManager = new videoSubject($dataConnection))==false) { mailError($videoSubjectManager->getLastError()); } if(($videoManager = new video($dataConnection))==false) { mailError($videoManager->getLastError()); } if(($member = new user($dataConnection))==false) { mailError($member->getLastError()); } try { $hybridauth = new Hybrid_Auth($config_file_path); } catch( Exception $e ) { //echo $e->getCode(); } CheckSessions(); $UrlPath = rtrim(__REQUEST('section'),'/'); $displayArray = array(); switch ($UrlPath) { case "search": require_once( getenv("DOCUMENT_ROOT")."/parts/search-site-logic.php" ); break; case "auth-user": case "end-point": //var_dump($_SESSION['HA::CONFIG']); require_once( getenv("DOCUMENT_ROOT")."/hybridauth/Hybrid/Endpoint.php" ); try { Hybrid_Endpoint::process(); } catch( Exception $e ) { //echo $e->getCode(); } break; case "admin": header("Location: /admin/"); break; case "log-in": require_once(getenv("DOCUMENT_ROOT")."/members/log-in/log-in-logic.php"); break; case "contact": case "contact-us": require_once( getenv("DOCUMENT_ROOT")."/parts/contact-logic.php" ); break; case "sign-in": $displayArray[] = "/members/multi-sign-in-display.php"; break; case "sign-out": require_once(getenv("DOCUMENT_ROOT")."/members/log-out/log-out-logic.php"); default: $frontPage = false; $thisPage = 0; $urlParts = explode("/",$UrlPath); $urlIndex = 0; if(strlen(trim($urlParts[0]))>0) { switch(count($urlParts)) { case 3: $urlIndex = 1; case 2: $pageFound = false; if($sectionManager->getSectionFromWebName(trim($urlParts[$urlIndex]))==MY_YES) { switch($sectionManager->getContentType()) { case 0: // text //$articleManager->countPages($sectionManager->getSectionId()); $articleManager->getAllTitlesFromSubjectId($sectionManager->getSectionId()); //echo $articleManager->getTitleCount(); for($p=0;$p<$articleManager->getTitleCount();$p++) { if($urlParts[$urlIndex+1]==webNames(trim($articleManager->allTitles[$p]))) { //echo $articleManager->allTitles[$p]."
"; $articleManager->getArticlesOnPage($sectionManager->getSectionId(), $p ); if( $articleManager->getArticleCount()==0) { $articleManager->getArticlesOnPage($sectionManager->getSectionId(),0); } $pageFound = true; break; } } if($pageFound == false) { $articleManager->getArticlesOnPage($sectionManager->getSectionId(),0); } $displayArray[] = "/parts/home.php"; $pageFound = true; break; case 1://video // IN VIDEOS if(count($urlParts)==3) { $urlIndex = 0; } //echo $urlParts[$urlIndex]."/".$urlParts[$urlIndex+1]; $sectionManager->getSectionFromWebName($urlParts[$urlIndex+1]); $videoSubjectManager->getAllVideoSubjectsFromSubjectId($sectionManager->getSectionId(),true); //echo $urlParts[$urlIndex+2].webNames(trim($videoSubjectManager->allVideoSubjects[0]->getVideoSubjectTitle())); for($subject=0;$subject<$videoSubjectManager->getVideoSubjectCount();$subject++) { if($urlParts[$urlIndex+2]==webNames(trim($videoSubjectManager->allVideoSubjects[$subject]->getVideoSubjectTitle()))) { $videoSubjectManager->getVideoSubjectFromId($videoSubjectManager->allVideoSubjects[$subject]->getVideoSubjectId()); $pageFound = true; // echo $urlParts[$urlIndex+2].webNames(trim($videoSubjectManager->allVideoSubjects[0]->getVideoSubjectTitle())); break; } } if($pageFound == false) { $videoSubjectManager->getFirstVideoSubjectsFromSubjectId($sectionManager->getSectionId(),true); } $displayArray[] = "/parts/videos.php"; $pageFound = true; break; } } else { $articleManager->getArticlesForFrontPage(); $displayArray[] = "/parts/home.php"; $pageFound = true; } break; default: if($sectionManager->getSectionFromWebName(trim($urlParts[0]))!=MY_YES) { $articleManager->getArticlesForFrontPage(); $displayArray[] = "/parts/home.php"; } else { $articleManager->countPages($sectionManager->getSectionId()); if($articleManager->getPageCount()<2) { $articleManager->getArticlesFromSubjectId( $sectionManager->getSectionId()); } else { $articleManager->getArticlesOnPage($sectionManager->getSectionId(),0); } $displayArray[] = "/parts/home.php"; } break; } } else { $articleManager->getArticlesForFrontPage(); $frontPage = true; $displayArray[] = "/parts/home.php"; } break; } $PanelWidth = 760; ?> Choose English
Follow us @chooseenglish