All pastes #163284 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-09-07 11:35 UTC
rendered paste body

Fatal error: printHeader() [<a href='function.printHeader'>function.printHeader</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;Database&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in C:\Program Files\Apache Group\Apache2\htdocs\ECN99\Common\Functions\htmlfunctions.php on line 32



THE CODE
---------
	 include('../Common/Classes/Database.php');
function printHeader($style='../gui/mainstyle.css', $name='ecn',$ajaxit='yes')
	{
					 
           $sslclass;
	   require_once('../Common/Classes/SLLists.class.php');
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'."\n";
				echo "<html>\n";
				echo "<head>\n";
				if($ajaxit=='yes')
				{
					$sslclass = new SLLists("../javascript/");
					$sslclass->printTopJS();
				}			 
				echo '<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'."\n";
				echo "<link rel=\"stylesheet\" href=\"$style\" type=\"text/css\" media=\"screen\" charset=\"utf-8\" />\n";
		 		echo "<title>$title</title>\n";
				echo "</head>\n";
				echo "<body>\n";
				echo "<div id=\"menu\">";
				if(isset($_SESSION['dbclass'])) //the login page does not have the menu :)
				{
				 $mydb=$_SESSION['dbclass'];
				 $mydb->link();
				 printTextMenu($mydb->getGlobalFeatures(),"&nbsp | &nbsp");
				}else
			 			 {
						   echo "Welcome to The ECN voip gateway solution thing!";	
				     }
				
				echo "</div>";
									  
			}