core/admin/contenus/GestionContenus.php 1 location
|
@@ 30-34 (lines=5) @@
|
| 27 |
|
$ordre = 1; |
| 28 |
|
|
| 29 |
|
$query = $dbc->select("ordre")->from("page")->orderBy("ordre", "DESC")->limit(0, 1)->get(); |
| 30 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 31 |
|
foreach ($query as $obj) { |
| 32 |
|
$ordre = $obj->ordre; |
| 33 |
|
} |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
return $ordre; |
| 37 |
|
} |
core/modules/GestionModule.php 1 location
|
@@ 112-116 (lines=5) @@
|
| 109 |
|
|
| 110 |
|
$query = $dbc->select("ID_module")->from("module")->where("url", "=", $url)->get(); |
| 111 |
|
|
| 112 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 113 |
|
foreach ($query as $obj) { |
| 114 |
|
return $obj->ID_module; |
| 115 |
|
} |
| 116 |
|
} |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
|
core/admin/Admin.php 1 location
|
@@ 98-102 (lines=5) @@
|
| 95 |
|
|
| 96 |
|
$query = $dbc->select("admin")->from("notification")->get(); |
| 97 |
|
|
| 98 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 99 |
|
foreach ($query as $obj) { |
| 100 |
|
return $obj->admin; |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
} |
| 104 |
|
//-------------------------- FIN GETTER ----------------------------------------------------------------------------// |
| 105 |
|
|
core/auth/Connexion.php 1 location
|
@@ 178-180 (lines=3) @@
|
| 175 |
|
public static function getlastConnexion($id_identite) { |
| 176 |
|
$dbc = App::getDb(); |
| 177 |
|
$query = $dbc->select("last_change_mdp")->from("identite")->where("ID_identite", "=", $id_identite)->get(); |
| 178 |
|
if ((is_array($query)) && (count($query) > 0)) { |
| 179 |
|
foreach ($query as $obj) { |
| 180 |
|
return $obj->last_change_mdp; |
| 181 |
|
} |
| 182 |
|
} |
| 183 |
|
} |