.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 //================================================================================================== error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED); //error_reporting(E_ALL | E_STRICT); //error_reporting(E_ALL); define('PNAME', 'index.php', true); $ver = '1.3.1'; $vdt = '2018-03-26'; // //----------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'; while ((!@include_once($xinit_php)) && $n < 5) {$xinit_php = "../{$xinit_php}"; $n++;} $xopts = array( '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, $xopts); //$xinit->check(); exit; // //----------Get $xpage_infos from "xpage_setup.php" // include_once("xpage_setup.php"); // //----------Process UV for id // proc_uv(); if (!include_once("xpage.php")) { print "

There are errors to load a key component!

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