completed an install of centos.. yay
[glcas.git] / libglcas / web.php
index a8d013a..3327d3d 100644 (file)
@@ -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 "<i>Messages not implemented yet</i>";
 }
 
-function GLCASpageBuilder($bodyClass, $bodyFunction, $title="GLCAS")
+function GLCASpageBuilder($bodyClass, $bodyFunction, $bodycontent, $title="GLCAS")
 {
        global $WEB_ROOT_FS, $BASE_URL;
        
@@ -103,7 +104,9 @@ function GLCASpageBuilder($bodyClass, $bodyFunction, $title="GLCAS")
        
        if($bodyClass != null) {
                $bodyClass->$bodyFunction($url);
-       } else $bodyFunction($url);
+       } else if( $bodyFunction != null) {
+               $bodyFunction($url);
+       } else echo $bodycontent;
        echo "</td></tr></table>";