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
pecesama 2007-09-03 06:59:33 +00:00
parent c2487ca0d8
commit 476109c015
4 changed files with 7 additions and 1 deletions

View File

@ -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
} }

View File

@ -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;

View File

@ -12,7 +12,7 @@
?> ?>
<?php <?php
function version() { function version() {
return "0.85"; return "0.90";
} }
function beginsWith($str, $sub) { function beginsWith($str, $sub) {

View File

@ -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;