includes/template.php
changeset 163 ad00dc1f8706
parent 162 e1a22031b5bd
child 165 199599eca89e
equal deleted inserted replaced
162:e1a22031b5bd 163:ad00dc1f8706
   623     
   623     
   624     $this->tpl_bool['enable_uploads'] = ( getConfig('enable_uploads') == '1' && $session->get_permissions('upload_files') ) ? true : false;
   624     $this->tpl_bool['enable_uploads'] = ( getConfig('enable_uploads') == '1' && $session->get_permissions('upload_files') ) ? true : false;
   625     
   625     
   626     $this->tpl_bool['stupid_mode'] = false;
   626     $this->tpl_bool['stupid_mode'] = false;
   627     
   627     
   628     if($paths->page == $paths->nslist['Special'].'Administration') $this->tpl_bool['in_admin'] = true;
   628     $this->tpl_bool['in_admin'] = ( ( $paths->cpage['urlname_nons'] == 'Administration' && $paths->namespace == 'Special' ) || $paths->namespace == 'Admin' );
   629     else $this->tpl_bool['in_admin'] = false;
       
   630     
   629     
   631     $p = ( isset($_GET['printable']) ) ? '/printable' : '';
   630     $p = ( isset($_GET['printable']) ) ? '/printable' : '';
   632     
   631     
   633     // Add the e-mail address client code to the header
   632     // Add the e-mail address client code to the header
   634     $this->add_header($email->jscode());
   633     $this->add_header($email->jscode());