Web domain - 104 Part II: Developing Intranet Solutions Listing 4-4
104 Part II: Developing Intranet Solutions Listing 4-4 (Continued) function debug_array($hash = null) { $this->debugger->debug_array($hash); } function writeln($msg) { // print global $WWW_NEWLINE; global $NEWLINE; echo $msg ,(strstr($this->app_type, WEB )) ? $WWW_NEWLINE : $NEWLINE; } function show_status($msg = null,$returnURL = null) { global $STATUS_TEMPLATE; $template = new Template($this->template_dir); $template->set_file( fh , $STATUS_TEMPLATE); $template->set_block( fh , mainBlock , mblock ); $template->set_var( STATUS_MESSAGE , $msg); if (!preg_match( /^http:/ , $returnURL) && (!preg_match( /^// , $returnURL))) { $appPath = sprintf( %s/%s , $this->app_path, $returnURL); } else { $appPath = $returnURL; } $template->set_var( RETURN_URL , $appPath); $template->set_var( BASE_URL , $this->base_url); $template->parse( mblock , mainBlock ); $template->pparse( output , fh ); } function set_escapedVar($hash) { while(list($key, $value) = each ($hash)) {
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision ecommerce web hosting services