Permalink
Browse files

Update sla_secure

  • Loading branch information...
wakdev committed Jun 3, 2013
1 parent 2d0bbb5 commit b02bfb953772d95d4216f66fb6525c330114eb81
Showing with 6 additions and 6 deletions.
  1. +5 −5 admin/modules/sla_secure/controller.php
  2. +1 −1 admin/modules/sla_secure/views/default/view.php
@@ -56,11 +56,10 @@ public function initialize() {
$this->error = "no_error";
if (isset($this->slash->get_params["mod"])
&& $this->slash->get_params["mod"] == "sla_secure" ) {
if ($this->slash->sl_param("mod","GET") == "sla_secure" ) {
// Login script
if ($this->slash->get_params["act"] == "login") {
if ($this->slash->sl_param("act","GET") == "login") {
$this->error = "no_user";
@@ -71,7 +70,8 @@ public function initialize() {
foreach ($this->slash->database->fetchAll("BOTH") as $row) {
if ($row["login"] == $this->slash->post_params["sla_secure_login"] && $row["password"] == sha1($this->slash->post_params["sla_secure_password"]) ) {
if ($row["login"] == $this->slash->sl_param("sla_secure_login","POST")
&& $row["password"] == sha1($this->slash->sl_param("sla_secure_password","POST")) ) {
if ($row["enabled"]!= 0) {
$_SESSION["id_user"] = $row["id"];
@@ -97,7 +97,7 @@ public function initialize() {
// Logout script
if ($this->slash->get_params["act"] == "logout") {
if ($this->slash->sl_param("act","GET") == "logout") {
//Log connexion
$log_info = "[".$_SERVER["REMOTE_ADDR"]."] disconnected.";
@@ -55,7 +55,7 @@ public function login_form () {
<div class='sla_secure_zn_input login_text'>
<input id='sla_secure_login' name='sla_secure_login' type='text' class='login_text' placeholder='".$this->slash->trad_word('SECURE_CONNEXION_LOGIN')."' >
<input id='sla_secure_login' name='sla_secure_login' type='text' class='login_text' placeholder='".$this->slash->trad_word('SECURE_CONNEXION_LOGIN')."' value='".$this->controller->slash->sl_param("sla_secure_login","POST")."'>
</div>
<div class='sla_secure_zn_input login_text'>
<input id='sla_secure_password' name='sla_secure_password' type='password' class='login_text' placeholder='".$this->slash->trad_word('SECURE_CONNEXION_PASSWORD')."'>

0 comments on commit b02bfb9

Please sign in to comment.