/wwindex.log' by year. // Version 1.3.1, 2018-03-26 // A. New Features: // -add 'year, month, and day' on the log file: 'wwindex.log' // 2017-12-31: Add 'year and month' on the log file: 'wwindex.log' // 2017-11-27: // - Record a user's requested WaterWatch url to zwebd/wwrequest.log // so that I can do some statistial summarization //================================================================================================== // Turn off displaying errors //ini_set('display_errors', '1'); //ini_set('display_errors', '0'); //error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_WARNING); //error_reporting(E_ALL | E_STRICT); //error_reporting(E_ALL & ~E_WARNING); if (1) {error_reporting(E_ERROR);} else {error_reporting(E_ERROR | E_WARNING);} define('PNAME', 'index.php'); #, true); #third argument 'case_insentive' is no longer support. $ver = '8.0.0'; $vdt = '2024-03-28'; //print_r($_REQUEST); exit; // //----------Set basic path, auth, and xss // $xpage_path = (0)? 'xlibdevs/xpage/xpage' : 'xphplib/xpage'; $xpaths=array($xpage_path, 'xwwlib', 'xphplib'); $xinit_php = 'xphplib/xinit.php'; $n = 1; while ((!@include_once($xinit_php)) && $n < 5) {$xinit_php = "../{$xinit_php}"; $n++;} $xinit_opts = array( 'strict' => 1, 'auth' => false, //Indicate to specify authorization 'xss' => true, //Indicate to sanitize the cross-scription and specify a list of additional OK-Characters 'access_tp' => '', //Specify access type: 'pub', ... 'pcl' => 1, //Indicate to parse command line into an array $_GET, $_POST, or $_REQUEST 'log_request' => 'zwebd/wwlogs/' . date('Y') . '/wwindex' . date('Ymd') . '.log' //Indicate to log request to the specified file. ); $xinit = new XInit($xpaths, $xinit_opts); #print "

error_reporting level = " . error_reporting() . "

"; exit; //$xinit->check(); exit; //exit; // //----------Record a user's request (2017-11-27) // /* include_once "xbase.php"; $xbase = new XBase(); if (!$xbase->recordRequest('wwindex.log', '', 'zwebd/wwlogs')) { $this->err_print(); exit; } */ // //----------Get $xpage_infos from "xpage_setup.php" // include_once("xpage_setup.php"); #$xinit->dump($xpage_infos); exit; #print "

3. error_reporting level = " . error_reporting() . "

"; exit; // //----------Process UV for id // proc_uv(); #print "

4. error_reporting level = " . error_reporting() . "

"; exit; if (!include_once("xpage.php")) { print "

There are errors to load a key component!

"; exit; } #print "

5. error_reporting level = " . error_reporting() . "

"; exit; $xp = new XPage($xpage_infos); exit; //============================================================================= ?>