. */ // used by install checker to check whether this is an OB application index file. // might be used by other things as well. header('OpenBroadcaster-Application: index'); require('components.php'); if(is_file('VERSION')) $version = trim(file_get_contents('VERSION')); else $version = false; // are we logged in? if not, redirect to welcome page. $user = OBFUser::get_instance(); if(!isset($_COOKIE['ob_auth_id']) || !isset($_COOKIE['ob_auth_key']) || !$user->auth($_COOKIE['ob_auth_id'],$_COOKIE['ob_auth_key'])) { header('Location: /welcome'); die(); } // we're logged in! continue with load. $models = OBFModels::get_instance(); $js_files = $models->ui('js_files'); $css_files = $models->ui('css_files'); $image_files = $models->ui('image_files'); ?>