. **/ if(!isset($BOM)){ require_once("../config/config.php"); } function loadPart($view, $backend=false){ global $lm, $lang, $langcode, $langstr, $db, $BOM, $config, $sub; if($view!="" && $view!="projects" && $view!="repos" && $view!="blog" && $view!="about" && $view!="userarea" && $view!="products" && $view!="contact"){ functions::setError(404); $view=""; } if($backend){ include("parts/".$view."_backend.php"); } else{ include("parts/".$view.".php"); } } if(isset($_GET['load'])){ loadPart($_GET['load'], isset($_GET['backend'])); }