<? PHP
/**
* Object
* Base class
* @ Version 1.0.0 (Mon Aug 01 18:43:24 CST 2005)
* @ Author sanshi
*/
Class Object
{
/* Whether to output debugging information */
VaR $ DEBUG = true;
/**
* Object
* @ Version 1.0.0 (Mon Aug 01 18:49:48 CST 2005)
* @ Author sanshi
* @ Deprecated destructor
*
* @ Return void
*/
Function object ()
{
// Determine whether the user enters from the homepage
If (! Defined ('index '))
{
Die ("hacking attempt ");
}
// Echo 'create object success! ';
}
/**
* Msg_die
* @ Version 1.0.0 (Mon Aug 01 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./N ";
Printf ($ format, $ info, $ file, $ line );
$ Error = debug_backtrace ();
Print_r ($ error [0]);
}
}
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.