Do not add the root namsepace if not needed
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4644 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -88,7 +88,7 @@ class authentication
|
|||||||
if (session_id () === "")
|
if (session_id () === "")
|
||||||
session_start ();
|
session_start ();
|
||||||
if ($this->debug) echo "<pre>LOGOUT\n";
|
if ($this->debug) echo "<pre>LOGOUT\n";
|
||||||
$authsession = new \authsession ();
|
$authsession = new authsession ();
|
||||||
$param = $authsession->getdetails ();
|
$param = $authsession->getdetails ();
|
||||||
if ($this->debug) echo "Logout for '".$param["email"]."'\n";
|
if ($this->debug) echo "Logout for '".$param["email"]."'\n";
|
||||||
call_user_func ($this->loggingFunc,
|
call_user_func ($this->loggingFunc,
|
||||||
@@ -144,7 +144,7 @@ class authentication
|
|||||||
session_start ();
|
session_start ();
|
||||||
if ($this->debug) echo "Call verifAuthLoginPage ($url) : Start\n";
|
if ($this->debug) echo "Call verifAuthLoginPage ($url) : Start\n";
|
||||||
// rate-limit the connections
|
// rate-limit the connections
|
||||||
$ratelimiter = new \ratelimitfile ();
|
$ratelimiter = new ratelimitfile ();
|
||||||
// 3 connections by minutes
|
// 3 connections by minutes
|
||||||
$ratelimiter->maxEntries = $this->ratelimitAuth;
|
$ratelimiter->maxEntries = $this->ratelimitAuth;
|
||||||
$ratelimiter->storageDir = $this->ratelimitDir;
|
$ratelimiter->storageDir = $this->ratelimitDir;
|
||||||
@@ -179,7 +179,7 @@ class authentication
|
|||||||
call_user_func ($this->loggingFunc,
|
call_user_func ($this->loggingFunc,
|
||||||
LOG_WARNING,
|
LOG_WARNING,
|
||||||
"Logging error for '$authparams->email' (HTML) : $res");
|
"Logging error for '$authparams->email' (HTML) : $res");
|
||||||
$authsession = new \authsession ();
|
$authsession = new authsession ();
|
||||||
$authsession->logout ();
|
$authsession->logout ();
|
||||||
$baseURL = $this->route->baseURL ();
|
$baseURL = $this->route->baseURL ();
|
||||||
$_SESSION["domframework"]["authentication"]["message"] = $res;
|
$_SESSION["domframework"]["authentication"]["message"] = $res;
|
||||||
@@ -202,7 +202,7 @@ class authentication
|
|||||||
$res["lastname"] = null;
|
$res["lastname"] = null;
|
||||||
if (! array_key_exists ("firstname", $res))
|
if (! array_key_exists ("firstname", $res))
|
||||||
$res["firstname"] = null;
|
$res["firstname"] = null;
|
||||||
$session = new \authsession ();
|
$session = new authsession ();
|
||||||
$session->savedata ($authparams->email, $authparams->password,
|
$session->savedata ($authparams->email, $authparams->password,
|
||||||
$res["lastname"], $res["firstname"]);
|
$res["lastname"], $res["firstname"]);
|
||||||
if ($url === "")
|
if ($url === "")
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/** DomFramework
|
/** DomFramework
|
||||||
@package domframework
|
* @package domframework
|
||||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||||
|
*/
|
||||||
|
|
||||||
/** User authentication against SESSION */
|
/** User authentication against SESSION */
|
||||||
class authsession extends auth
|
class authsession extends auth
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
/** DomFramework
|
/** DomFramework
|
||||||
@package domframework
|
* @package domframework
|
||||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
* @author Dominique Fournier <dominique@fournier38.fr>
|
||||||
|
*/
|
||||||
|
|
||||||
require_once ("domframework/output.php");
|
require_once ("domframework/output.php");
|
||||||
/** Display in HTML the data provided, with the layout support */
|
/** Display in HTML the data provided, with the layout support */
|
||||||
@@ -99,7 +100,7 @@ EOT;
|
|||||||
//echo $resView;exit;
|
//echo $resView;exit;
|
||||||
// Manage the timestamp/md5sum for the external files managed by this
|
// Manage the timestamp/md5sum for the external files managed by this
|
||||||
// server.
|
// server.
|
||||||
$dom = new DOMDocument ();
|
$dom = new \DOMDocument ();
|
||||||
@$dom->loadHTML ($resView);
|
@$dom->loadHTML ($resView);
|
||||||
foreach (array ("script"=>"src", "link"=>"href", "img"=>"src")
|
foreach (array ("script"=>"src", "link"=>"href", "img"=>"src")
|
||||||
as $key=>$val)
|
as $key=>$val)
|
||||||
|
|||||||
Reference in New Issue
Block a user