isMobile()) && !($mobile -> isTablet())) { $include_app = 'mobile'; } } // Special stuffs for Jappix apps? if(($include_app == 'desktop') || ($include_app == 'mobile')) { // Redirects the user to HTTPS if forced if(!useHttps() && httpsForce()) { // Apply some special headers header('Status: 301 Moved Permanently', true, 301); header('Location: https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); // Kill the script! exit('HTTP/1.1 301 Moved Permanently'); } // Is it a static node? if(isStatic()) { $include_app = 'static'; } // Is it an upload node? if(isUpload()) { $include_app = 'upload'; } // Save this visit (for the stats) if(hasStatistics()) { writeVisit(); } } // Include it! include('./server/'.$include_app.'.php'); ?>