// Turn on output buffering
include "ewcfg7.php";
include "ewmysql7.php";
include "phpfn7.php";
include "userfn7.php";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
// Create page object
$default = new cdefault();
$Page =& $default;
// Page init
$default->Page_Init();
// Page main
$default->Page_Main();
$default->Page_Terminate();
//
// Page class
//
class cdefault
{
    // Page ID
    var $PageID = 'default';
    // Page object name
    var $PageObjName = 'default';
示例#2
0
    function Page_Unload()
    {
        //echo "Page Unload";
    }
    // Page Redirecting event
    function Page_Redirecting(&$url)
    {
        // Example:
        //$url = "your URL";
    }
    // Message Showing event
    // $type = ''|'success'|'failure'
    function Message_Showing(&$msg, $type)
    {
        // Example:
        //if ($type == 'success') $msg = "your success message";
    }
}
ew_Header(FALSE);
// Create page object
if (!isset($default)) {
    $default = new cdefault();
}
// Page init
$default->Page_Init();
// Page main
$default->Page_Main();
include_once "header.php";
$default->ShowMessage();
include_once "footer.php";
$default->Page_Terminate();
示例#3
0
文件: index.php 项目: airfox7412/ps01
// Turn on output buffering
include "ewcfg6.php";
include "ewmysql6.php";
include "phpfn6.php";
include "userfn6.php";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
// Define page object
$default = new cdefault();
$Page =& $default;
// Page init processing
$default->Page_Init();
// Page main processing
$default->Page_Main();
//
// Page Class
//
class cdefault
{
    // Page ID
    var $PageID = 'default';
    // Page Object Name
    var $PageObjName = 'default';
    // Page Name