plugins/SpecialPageFuncs.php
changeset 285 7846d45bd250
parent 194 bf0fdec102e9
child 304 e2cb5f1432c8
child 315 f49e3c8b638c
equal deleted inserted replaced
284:0f039028f7a5 285:7846d45bd250
   170     
   170     
   171     header('Location: '.makeUrlNS($_POST['namespace'], sanitize_page_id($p)) . '#do:edit');
   171     header('Location: '.makeUrlNS($_POST['namespace'], sanitize_page_id($p)) . '#do:edit');
   172     exit;
   172     exit;
   173   }
   173   }
   174   $template->header();
   174   $template->header();
       
   175   /*
   175   if ( !$session->get_permissions('create_page') )
   176   if ( !$session->get_permissions('create_page') )
   176   {
   177   {
   177     echo 'Wiki mode is disabled, only admins can create pages.';
   178     echo 'Wiki mode is disabled, only admins can create pages.';
   178     
   179     
   179     $template->footer();
   180     $template->footer();
   180     $db->close();
   181     $db->close();
   181     
   182     
   182     exit;
   183     exit;
   183   }
   184   }
       
   185   */
   184   echo RenderMan::render('Using the form below you can create a page.');
   186   echo RenderMan::render('Using the form below you can create a page.');
   185   ?>
   187   ?>
   186   <form action="" method="post">
   188   <form action="" method="post">
   187     <p>
   189     <p>
   188       <select name="namespace">
   190       <select name="namespace">