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"); + +?> + +