33 lines
950 B
PHP
33 lines
950 B
PHP
|
|
<?php
|
||
|
|
// ENSURE THIS IS BEING INCLUDED IN AN SE SCRIPT
|
||
|
|
if(!defined('SE_PAGE')) { exit(); }
|
||
|
|
|
||
|
|
include_once "./include/class_radcodes.php";
|
||
|
|
include_once "./include/class_imobile.php";
|
||
|
|
include_once "./include/functions_imobile.php";
|
||
|
|
|
||
|
|
$imobile_display_mode = rc_toolkit::get_request('imobile_display_mode');
|
||
|
|
if (in_array($imobile_display_mode, array('standard','mobile'))) {
|
||
|
|
rc_imobile::set_display_mode($imobile_display_mode);
|
||
|
|
}
|
||
|
|
|
||
|
|
if (rc_imobile::is_mobile_display()) {
|
||
|
|
$imobile_hook_page_method = "imobile_hook_page_{$page}";
|
||
|
|
|
||
|
|
if (function_exists($imobile_hook_page_method)) {
|
||
|
|
SE_Hook::register("se_{$page}", $imobile_hook_page_method);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
SE_Hook::register("se_footer", 'imobile_hook_footer',-100000);
|
||
|
|
|
||
|
|
if ($page == "login") {
|
||
|
|
if(rc_imobile::is_mobile_display() and $setting['setting_login_code']) {
|
||
|
|
$setting['setting_login_code'] = false;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
$rc_imobile = new rc_imobile();
|
||
|
|
$smarty->assign_by_ref('rc_imobile', $rc_imobile);
|