diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-01-06 02:03:22 +0100 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-01-06 02:03:22 +0100 |
commit | b1cc0b2980b2875848eb4a1ee3b9d957ce3b3632 (patch) | |
tree | 30f244c66dfbb5be73d6ef7c4ff186e46031f9a0 /r7r_repo/main.php | |
parent | 9f0dc74fc89f89fed7e10dd027d14830cb97e7e2 (diff) | |
download | r7r-repo-b1cc0b2980b2875848eb4a1ee3b9d957ce3b3632.tar.gz r7r-repo-b1cc0b2980b2875848eb4a1ee3b9d957ce3b3632.tar.bz2 r7r-repo-b1cc0b2980b2875848eb4a1ee3b9d957ce3b3632.zip |
Improved setup and added INSTALL file.
Diffstat (limited to 'r7r_repo/main.php')
-rw-r--r-- | r7r_repo/main.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/r7r_repo/main.php b/r7r_repo/main.php index d2497f0..cd62825 100644 --- a/r7r_repo/main.php +++ b/r7r_repo/main.php @@ -530,7 +530,7 @@ $url_handlers = array( $url_next = array(); /* Test file permissions */ - $permissions_missing = array_filter(array("/packages", "/packagelist", "/repometa"), function($f) { return !@is_writable(dirname(__FILE__) . "/..$f"); }); + $permissions_missing = array_filter(array("/packages", "/packagelist", "/repometa", "/r7r_repo/templates/transc"), function($f) { return !@is_writable(dirname(__FILE__) . "/..$f"); }); if(!empty($permissions_missing)) $ste->vars["error"] = "No writing permissions on these files/directories: \"" . implode("\", \"", $permissions_missing) . "\""; else @@ -576,16 +576,16 @@ $ste->vars["rel_path_to_root"] = $rel_path_to_root; /* Enforce setup */ if(!@$settings["setup_finished"]) $urlpath = array("setup"); -/*try -{*/ +try +{ url_process($urlpath, $url_handlers, $data); -/*} +} catch(Exception $e) { header("HTTP/1.1 500 Internal Server Error"); header("Content-Type: text/plain"); echo "Internal Server Error\nReason: " . get_class($e) . "(" . $e->getMessage() . ") thrown.\n"; -}*/ +} /* save settings */ $settings->save(); |