/** * Elgg Mobile * A Mobile Client For Elgg * * @package Elgg * @subpackage Core * @author kramnorth (Mark Harding) * @link http://kramnorth.com * */ function mobile_init() { //elgg_extend_view('page/elements/head','mobile/metatags'); mobile_detect(); elgg_extend_view('css/elgg', 'mobile/css'); //set our default index page if (elgg_get_viewtype() == "mobile") { elgg_register_plugin_hook_handler('index', 'system', 'main_handler'); } }
* GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with LAN Party Manager 4. If not, see <http://www.gnu.org/licenses/>. * */ // Debug class include './core/debug.core.php'; $debug = new Debug(); // Common function collection include './core/common.core.php'; // Time Functions include './core/time.core.php'; // Detect Mobile Devices include './core/mobile_detect.core.php'; if (!mobile_detect() || @$_GET['nomobile'] == '1') { $mobile = 'default'; } else { $mobile = 'mobile'; } // Template Engine include './core/smarty.core.php'; $smarty = new Smarty(); $smarty->allow_php_tag = true; $smarty->error_reporting = E_ALL & ~E_NOTICE; // Database Engine include './core/database.core.php'; $db = new Database(); // Config Engine include './core/config.core.php'; $config = new Config($db);
<?php /** * Elgg Mobile * A Mobile Client For Elgg * * @package Elgg * @subpackage Core * @author Mark Harding * @link http://kramnorth.com * */ mobile_detect();