CLEAN: How about changing the rest of the files with your variable? :p
[phorkie.git] / www / fork.php
index cc2ed33c68de4d754162b4f0e4e81630d8cdcf3f..03669380cdb0a53eb6f7479676e7f47eb4b86be1 100644 (file)
@@ -3,10 +3,8 @@
  * Fork a repository
  */
 namespace phorkie;
+$securityLevel = '1';
 require_once 'www-header.php';
-if ($GLOBALS['phorkie']['auth']['secure'] > 0) {
-    require_once 'secure.php';
-}
 
 if ($_SERVER['REQUEST_METHOD'] !== 'POST') {
     throw new Exception_Input('Forking only possible via POST');
@@ -33,4 +31,4 @@ foreach (\glob($new->gitDir . '/hooks/*') as $hookfile) {
 
 //FIXME: where to put fork source link?
 redirect($new->getLink('display'));
-?>
\ No newline at end of file
+?>