$mobile_detect = new Mobile_Detect; if ( $mobile_detect->isMobile() ) { $this->smartphone = true; $this->desktop = false; } if ( $mobile_detect->isTablet() ) { $this->smartphone = false; $this->desktop = false; $this->tablet = true; } if( $mobile_detect->isiOS() ){ $this->ios = true; } if( $mobile_detect->isAndroidOS() ){ $this->android = true; }
case 'Mobile_Detect': include_once (DLEPlugins::Check(ENGINE_DIR . '/classes/mobiledetect.class.php')); break;
Родной шаблон: 0,386288с С вырезанным Mobile_Detect: 0,077019с
(общее время | время БД | время шаблонов) 0.524 | 0.378 | 0.039 0.496 | 0.358 | 0.042 0.526 | 0.380 | 0.036
0.099 | 0.021 | 0.014 0.100 | 0.023 | 0.015 0.095 | 0.024 | 0.016
if (localStorage.getItem('dpmDialogUserlist') == '1' && $('.dpm-icon-userlist').length) { $('.dpm-icon-userlist').addClass('current'); $('.dpm-container').addClass('dpm-container-userlist'); }
// Запретить общаться друг с другом, только обратная связь с ниже заданными контактами 'feedback_only' => false,
'userlist_limit' => 20, - Максимальное количество пользователей в списке диалогов
$where[] = "approve=1";
if( preg_match( "#approve=['\"](.+?)['\"]#i", $param_str, $match ) ) { $approve_custom = intval($match[1]); if ($approve_custom != '1') { $approve_custom="0"; } $where[] = "approve='$approve_custom'"; } else { $where[] = "approve=1"; }
approve="0"