Path submited by Matthew.C.Snyder
1) Configuration files not required in the right place. 2) A user should not be allowed to delete themselves.master
parent
c2487ca0d8
commit
476109c015
|
|
@ -122,9 +122,11 @@ if ($user->isAdmin()) {
|
||||||
<td>
|
<td>
|
||||||
<a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a>
|
<a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a>
|
||||||
</td>
|
</td>
|
||||||
|
<?php if ($_SESSION["user_id"] != $register["id_user"]) { ?>
|
||||||
<td>
|
<td>
|
||||||
<a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a>
|
<a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a>
|
||||||
</td>
|
</td>
|
||||||
|
<?php } ?>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
|
require_once("lang.functions.php");
|
||||||
class configuration extends Conexion_Mysql {
|
class configuration extends Conexion_Mysql {
|
||||||
|
|
||||||
var $urlGelato;
|
var $urlGelato;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
function version() {
|
function version() {
|
||||||
return "0.85";
|
return "0.90";
|
||||||
}
|
}
|
||||||
|
|
||||||
function beginsWith($str, $sub) {
|
function beginsWith($str, $sub) {
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,9 @@
|
||||||
=========================== */
|
=========================== */
|
||||||
?>
|
?>
|
||||||
<?php
|
<?php
|
||||||
|
require_once("streams.class.php");
|
||||||
|
require_once("gettext.class.php");
|
||||||
|
|
||||||
function initLang($lang = "en") {
|
function initLang($lang = "en") {
|
||||||
global $l10n;
|
global $l10n;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue