plugins/SpecialPageFuncs.php
changeset 182 bf0fdec102e9
parent 181 9237767a23ae
child 228 7846d45bd250
equal deleted inserted replaced
181:9237767a23ae 182:bf0fdec102e9
   101     if ( $namespace == 'Special' || ( $namespace == 'System' && $session->user_level < USER_LEVEL_ADMIN ) || $namespace == 'Admin')
   101     if ( $namespace == 'Special' || ( $namespace == 'System' && $session->user_level < USER_LEVEL_ADMIN ) || $namespace == 'Admin')
   102     {
   102     {
   103       $template->header();
   103       $template->header();
   104       
   104       
   105       echo '<h3>The page could not be created.</h3><p>The name "'.$paths->nslist[$namespace].$p.'" is invalid.</p>';
   105       echo '<h3>The page could not be created.</h3><p>The name "'.$paths->nslist[$namespace].$p.'" is invalid.</p>';
       
   106       
       
   107       $template->footer();
       
   108       $db->close();
       
   109       
       
   110       exit;
       
   111     }
       
   112     if ( substr($urlname, 0, 8) == 'Project:' )
       
   113     {
       
   114       $template->header();
       
   115       
       
   116       echo '<h3>The page could not be created.</h3><p>The page title can\'t start with "Project:" because this prefix is reserved for a parser shortcut.</p>';
   106       
   117       
   107       $template->footer();
   118       $template->footer();
   108       $db->close();
   119       $db->close();
   109       
   120       
   110       exit;
   121       exit;