X-Git-Url: https://git.cweiske.de/phorkie.git/blobdiff_plain/97c4ac59eed8b66b2e7f85d8ac325b063fb8a0ce..92d6cf1f537c2126baf324cbdadbef1067e156b6:/www/fork.php?ds=sidebyside diff --git a/www/fork.php b/www/fork.php index cc2ed33..10bd1e2 100644 --- a/www/fork.php +++ b/www/fork.php @@ -3,10 +3,8 @@ * Fork a repository */ namespace phorkie; +$secureAtLevel = '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 +?>