diff --git a/src/Pluf.php b/src/Pluf.php index 8c66cb0..de55bba 100644 --- a/src/Pluf.php +++ b/src/Pluf.php @@ -31,14 +31,14 @@ class Pluf /** * Start the Plume Framework. * - * Load the configuration files. If not configuration file is given - * load the dirname(__FILE__).'/conf/pluf.config.php' config file. + * Load the configuration files. * * @param string Configuration file to use */ static function start($config) { $GLOBALS['_PX_starttime'] = microtime(true); + $GLOBALS['_PX_uniqid'] = uniqid($GLOBALS['_PX_starttime'], true); Pluf::loadConfig($config); date_default_timezone_set(Pluf::f('time_zone', 'Europe/Berlin')); mb_internal_encoding(Pluf::f('encoding', 'UTF-8')); diff --git a/src/Pluf/HTTP/Request.php b/src/Pluf/HTTP/Request.php index ae903e9..2570e67 100644 --- a/src/Pluf/HTTP/Request.php +++ b/src/Pluf/HTTP/Request.php @@ -40,6 +40,7 @@ class Pluf_HTTP_Request public $remote_addr = ''; public $http_host = ''; public $SERVER = array(); + public $uid = ''; function __construct($query) { @@ -56,5 +57,6 @@ class Pluf_HTTP_Request $this->remote_addr = $_SERVER['REMOTE_ADDR']; $this->http_host = (isset($_SERVER['HTTP_HOST'])) ? $_SERVER['HTTP_HOST'] : ''; $this->SERVER =& $_SERVER; + $this->uid = $GLOBALS['_PX_uniqid']; } }