X-Git-Url: http://git.pjr.cc/?p=glcas.git;a=blobdiff_plain;f=libglcas%2Fweb.php;fp=libglcas%2Fweb.php;h=96b787e9f9ac8d5ca98ca26bf964014d36389484;hp=5dd6f91b6f26f5dd0b1056372c11ed284d0b89c0;hb=37b5d51a06265cba25c1c92418223837c6d3ad2b;hpb=fd77672af03a95b0d016c0c1cd76c0441a8857d1 diff --git a/libglcas/web.php b/libglcas/web.php index 5dd6f91..96b787e 100644 --- a/libglcas/web.php +++ b/libglcas/web.php @@ -179,6 +179,16 @@ function glcas_startInstaller() $gid = $gid_a["name"]; error_log("user id is $uid, group id is $gid"); + if(isset($_REQUEST["installdir"])) { + $c = new GLCASConfig(); + touch($_REQUEST["installdir"]."/webconfig"); + $c->loadConfig($_REQUEST["installdir"]."/webconfig"); + header("Location: index.php"); + return; + } + + $underroot = realpath($WEB_ROOT_FS."/../"); + ?>

Welcome to GLCAS

@@ -190,7 +200,7 @@ now is a place where i can store my config. I search the following directories f configuration (webconfig)
  • /var/run/glcas/
  • /var/lib/glcas/ -
  • /var/glcas/ +
  • /var/glcas/

    As root, you must now create one of these directories and change the ownership of the directory to the web owner. @@ -201,7 +211,7 @@ Now, tell me where you want me to create the webconfig file: