Your phpBB Version: 2.0.
				              
phpBB Type: Integramod 141
              				  
MODs: No
				              
Your knowledge: Beginner
				              
Board URL: http://www.wowmalice.com
				              PHP Version: 
				              MySQL Version: 
				              What was done before the problem appeared?
Nothing
				              What was done to try to solve the problem?
				              De.scription and Message
Hi guys, any help would be greatly appreciated.  Around 3 weeks ago our website 
http://www.wowmalice.com stopped loading. It would just hang on loading and nothing shows up. So initially I thought it was the web hosting company. After about 3 weeks of contact and investigation. 
They said this: 
I am writing regarding your ticket # 4511851. I have checked the issue and found that the problem is with /web/portal.php. Please check the .script once again and try.
Sincerely,
Shelton Kiplin.
Technical Specialist
So I've opened portal.php and im sorry if this seems a bit annoying to post over here but I really don't know where else to ask for help.
 
<?php/***************************************************************************  *                                                portal.php  *                                          -------------------  *    begin                        ]http://www.integramod.com[/url]  *    email                        : <a>webmaster@integramod.com</a>  *  *    note: removing the original copyright is illegal even you have modified  *             the code.   Just append yours if you have modified it.  ***************************************************************************/  /***************************************************************************  *  *    This program is free software; you can redistribute it and/or modify  *    it under the terms of the GNU General Public License as published by  *    the Free Software Foundation; either version 2 of the License, or  *    (at your option) any later version.  *  ***************************************************************************///// Set up for phpBB integration.//define('IN_PHPBB', true);$phpbb_root_path = './';  //// phpBB related files//include_once( $phpbb_root_path . 'extension.inc' );include_once( $phpbb_root_path . 'common.' . $phpEx );  //// Start session management//$userdata = session_pagestart( $user_ip, PAGE_PORTAL );init_userprefs( $userdata );//include($phpbb_root_path . 'referers.'.$phpEx);define('PORTAL_INIT', TRUE);include($phpbb_root_path . 'includes/functions_portal.' . $phpEx);portal_config_init($portal_config);include_once($phpbb_root_path . 'includes/lite.'.$phpEx);$options = array(      'cacheDir' => $phpbb_root_path . 'var_cache/',      'fileLocking' => $portal_config['md_cache_file_locking'],      'writeControl' => $portal_config['md_cache_write_control'],      'readControl' => $portal_config['md_cache_read_control'],      'readControlType' => $portal_config['md_cache_read_type'],      'fileNameProtection' => $portal_config['md_cache_filename_protect'],      'automaticSerialization' => $portal_config['md_cache_serialize']);$var_cache = new Cache_Lite($options);  if(isset($HTTP_GET_VARS['page'])){      $layout = intval($HTTP_GET_VARS['page']);}else{      $layout = $portal_config['default_portal'];}  if($portal_config['cache_enabled']){      $layout_row = $var_cache->get('lr' . strval($layout), 86400, 'layout');  }if(!$layout_row){      $sql = "SELECT template, name, forum_wide, view, groups FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";      if( !($layout_result = $db->sql_query($sql)) )      {            message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);      }      $layout_row = $db->sql_fetchrow($layout_result);      if(($layout_row['template']!='')&&$portal_config['cache_enabled'])      {            $var_cache->save($layout_row, 'lr' . strval($layout), 'layout');      }}$layout_template = $layout_row['template'];$layout_forum_wide_flag = ($layout_row['forum_wide']) ? FALSE : TRUE;  if ($userdata['user_id'] == ANONYMOUS){      $lview = in_array($layout_row['view'], array(0,1));}else{      switch($userdata['user_level'])      {            case USER:                  $lview = in_array($layout_row['view'], array(0,2));                  break;            case MOD:                  $lview = in_array($layout_row['view'], array(0,2,3));                  break;            case ADMIN:                  $lview = in_array($layout_row['view'], array(0,1,2,3,4));                  break;            default:                  $lview = in_array($layout_row['view'], array(0));      }}  $not_group_allowed = FALSE;if(!empty($layout_row['groups'])){      $not_group_allowed = TRUE;      $group_content = explode(",",$layout_row['groups']);      for ($i = 0; $i <count>get('lr' . strval($layout), 86400, 'layout');           if(!$layout_row)      {            $sql = "SELECT template, forum_wide FROM " . LAYOUT_TABLE . " WHERE lid = '" . $layout . "'";            if( !($layout_result = $db->sql_query($sql)) )            {                  message_die(CRITICAL_ERROR, "Could not query portal layout information", "", __LINE__, __FILE__, $sql);            }            $layout_row = $db->sql_fetchrow($layout_result);            if($portal_config['cache_enabled'])                  $var_cache->save($layout_row, 'lr' . strval($layout), 'layout');      }      $layout_template = $layout_row['template'];      $layout_forum_wide_flag = ($layout_row['forum_wide']) ? FALSE : TRUE;}  //// Start output of page////$page_title = $lang['Home'];$page_title = $layout_row['name'];if($page_title == '') $page_title = $lang['Home'];define('SHOW_ONLINE', true);include($phpbb_root_path . 'includes/page_header.'.$phpEx);  // Tell the template class which template to use.$template->set_filenames( array( 'body' => 'layout/' . $layout_template ) );  //// Start Blocks//portal_parse_blocks($layout);  $template->pparse('body');  include($phpbb_root_path . 'includes/page_tail.'.$phpEx);?>    
 
We never play around with the .script so it puzzles me why all of the sudden it just stopped working.  Is there a way to prevent this from occurring in the future? Like  backup everything and restore?
I run a guild and on behalf of 60 people, I thank you sincerely for helping us out.