<?php
/**
* Object
* Base class
* @version 1.0.0 (Mon Aug 18:43:24 CST 2005)
* @author Sanshi
*/
Class Object
{
/* Whether to output debugging information * *
var $debug = true;
/**
* Object
* @version 1.0.0 (Mon Aug 18:49:48 CST 2005)
* @author Sanshi
* @deprecated method of destructor
*
* @return void
*/
function Object ()
{
Whether the user enters from the homepage, makes the judgment
if (!defined (' INDEX '))
{
Die ("Hacking attempt");
}
Echo ' Create Object success! ';
}
/**
* Msg_die
* @version 1.0.0 (Mon Aug 18:52:43 CST 2005)
* @author Sanshi
* @deprecated Debug Information output
* @param string
* @return void
*/
function Msg_die ($info, $file, $line)
{
if ($this->debug)
{
$format = "There is happen error information:%s.".
"The file name:%s, on line:%s.";
printf ($format, $info, $file, $line);
$error = Debug_backtrace ();
Print_r ($error [0]);
}
}
/**
* Setdebug
* @version 1.0.0 (Mon Aug 18:56:45 CST 2005)
* @author Sanshi
* @deprecated Set whether debugging information is output
* @param Boolean True or False
* @return void
*/
function Setdebug ($bool)
{
$this->debug = Is_bool ($bool)? $bool: false;
}
/**
* Getdebug
* @version 1.0.0 (Mon Aug 19:01:22 CST 2005)
* @author Sanshi
* @deprecated See if debugging information is turned on
* @param void
* @return Boolean
*/
function Getdebug ()
{
return $this->debug;
}
}
?>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.