includes/template.php
changeset 594 738c61b498a6
parent 593 4f9bec0d65c1
child 597 c4ae0d8e260f
equal deleted inserted replaced
593:4f9bec0d65c1 594:738c61b498a6
   954     //
   954     //
   955     // OTHER SWITCHES
   955     // OTHER SWITCHES
   956     //
   956     //
   957     
   957     
   958     $is_opera = (isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'], 'Opera')) ? true : false;
   958     $is_opera = (isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'], 'Opera')) ? true : false;
       
   959     $is_msie = (isset($_SERVER['HTTP_USER_AGENT']) && strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) ? true : false;
   959     
   960     
   960     $this->tpl_bool = Array(
   961     $this->tpl_bool = Array(
   961       'auth_admin' => $session->user_level >= USER_LEVEL_ADMIN ? true : false,
   962       'auth_admin' => $session->user_level >= USER_LEVEL_ADMIN ? true : false,
   962       'user_logged_in' => $session->user_logged_in,
   963       'user_logged_in' => $session->user_logged_in,
   963       'opera' => $is_opera,
   964       'opera' => $is_opera,
       
   965       'msie' => $is_msie
   964       );
   966       );
   965     
   967     
   966     if ( $session->sid_super )
   968     if ( $session->sid_super )
   967     {
   969     {
   968       $ash = '&auth=' . $session->sid_super;
   970       $ash = '&auth=' . $session->sid_super;