X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=libglcas%2Fweb.php;h=0d812d9cbd913c3c8bc494bcfd9d4bc14db38ee7;hb=a55b4f6b15d491e70226156a2aadb88b16853dc0;hp=96d30b186052c0abe5c833e2aab4e9243fc647bf;hpb=d180d75c38719089d9ecbb98f6c03a97af0199af;p=glcas.git diff --git a/libglcas/web.php b/libglcas/web.php index 96d30b1..0d812d9 100644 --- a/libglcas/web.php +++ b/libglcas/web.php @@ -22,6 +22,7 @@ class GLCASWeb { // $call_class = $urlparser->getClass($url); + error_log("urldecode: ".urldecode($url)); $call_class->go($url); } @@ -43,7 +44,7 @@ function GLCASMessageBuilder() echo "Messages not implemented yet"; } -function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent, $title="GLCAS") +function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent=null, $title="GLCAS") { global $WEB_ROOT_FS, $BASE_URL; @@ -74,7 +75,7 @@ function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent, $title="GLCAS $mt = preg_match("/.*.js$/", $file); if($mt > 0) { error_log("loading js $file"); - echo ""; + echo ""; //echo "required $basedir/$file\n"; } } @@ -117,5 +118,51 @@ function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent, $title="GLCAS } +function glcas_startInstaller() +{ + global $WEB_ROOT_FS, $BASE_URL; + + $uid = posix_geteuid(); + $gid = posix_getegid(); + $uid_a = posix_getpwuid($uid); + $uid = $uid_a["name"]; + + $gid_a = posix_getgrgid($gid); + $gid = $gid_a["name"]; + error_log("user id is $uid, group id is $gid"); + +?> + +

Welcome to GLCAS

+Welcome to GLCAS, I cant find my configuration file so im assuming you installing me for the first time
+If this is not correct then we have a big problem that needs to be solved, i hope you have a backup of the old +config, cause that will make life easier.

+However, if this is the first time you have run this app, then all is good with the world. All I need right +now is a place where i can store my config. I search the following directories for the location of my +configuration (webconfig)
+
  • /var/run/glcas/ +
  • /var/lib/glcas/ +
  • /var/glcas/ +

    + +As root, you must now create one of these directories and change the ownership of the directory to the web owner. +(chown : the_path_you_choose).
    + +Now, tell me where you want me to create the webconfig file:
    +
    + + + + +
    + + + \ No newline at end of file