diff --git a/authentication.php b/authentication.php index d2fb2bb..e41c1af 100644 --- a/authentication.php +++ b/authentication.php @@ -88,7 +88,7 @@ class authentication if (session_id () === "") session_start (); if ($this->debug) echo "
LOGOUT\n";
- $authsession = new \authsession ();
+ $authsession = new authsession ();
$param = $authsession->getdetails ();
if ($this->debug) echo "Logout for '".$param["email"]."'\n";
call_user_func ($this->loggingFunc,
@@ -144,7 +144,7 @@ class authentication
session_start ();
if ($this->debug) echo "Call verifAuthLoginPage ($url) : Start\n";
// rate-limit the connections
- $ratelimiter = new \ratelimitfile ();
+ $ratelimiter = new ratelimitfile ();
// 3 connections by minutes
$ratelimiter->maxEntries = $this->ratelimitAuth;
$ratelimiter->storageDir = $this->ratelimitDir;
@@ -179,7 +179,7 @@ class authentication
call_user_func ($this->loggingFunc,
LOG_WARNING,
"Logging error for '$authparams->email' (HTML) : $res");
- $authsession = new \authsession ();
+ $authsession = new authsession ();
$authsession->logout ();
$baseURL = $this->route->baseURL ();
$_SESSION["domframework"]["authentication"]["message"] = $res;
@@ -202,7 +202,7 @@ class authentication
$res["lastname"] = null;
if (! array_key_exists ("firstname", $res))
$res["firstname"] = null;
- $session = new \authsession ();
+ $session = new authsession ();
$session->savedata ($authparams->email, $authparams->password,
$res["lastname"], $res["firstname"]);
if ($url === "")
diff --git a/authsession.php b/authsession.php
index 6786fc3..e0f08ad 100644
--- a/authsession.php
+++ b/authsession.php
@@ -1,7 +1,8 @@
*/
+ * @package domframework
+ * @author Dominique Fournier
+ */
/** User authentication against SESSION */
class authsession extends auth
diff --git a/outputhtml.php b/outputhtml.php
index 9e08249..2fbd211 100644
--- a/outputhtml.php
+++ b/outputhtml.php
@@ -1,7 +1,8 @@
*/
+ * @package domframework
+ * @author Dominique Fournier
+ */
require_once ("domframework/output.php");
/** Display in HTML the data provided, with the layout support */
@@ -99,7 +100,7 @@ EOT;
//echo $resView;exit;
// Manage the timestamp/md5sum for the external files managed by this
// server.
- $dom = new DOMDocument ();
+ $dom = new \DOMDocument ();
@$dom->loadHTML ($resView);
foreach (array ("script"=>"src", "link"=>"href", "img"=>"src")
as $key=>$val)