Browse Source

Path submited by Matthew.C.Snyder

pecesama 17 years ago
parent
commit
476109c015
4 changed files with 7 additions and 1 deletions
  1. 2 0
      admin/admin.php
  2. 1 0
      classes/configuration.class.php
  3. 1 1
      classes/functions.php
  4. 3 0
      classes/lang.functions.php

+ 2 - 0
admin/admin.php View File

122
 								<td>
122
 								<td>
123
 									<a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a>
123
 									<a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a>
124
 								</td>
124
 								</td>
125
+								<?php if ($_SESSION["user_id"] != $register["id_user"]) { ?>
125
 								<td>
126
 								<td>
126
 									<a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a>
127
 									<a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a>
127
 								</td>
128
 								</td>
129
+								<?php } ?>
128
 							</tr>
130
 							</tr>
129
 <?php
131
 <?php
130
 						}
132
 						}

+ 1 - 0
classes/configuration.class.php View File

11
   =========================== */
11
   =========================== */
12
 ?>
12
 ?>
13
 <?php
13
 <?php
14
+require_once("lang.functions.php");
14
 class configuration extends Conexion_Mysql {
15
 class configuration extends Conexion_Mysql {
15
 	
16
 	
16
 	var $urlGelato;
17
 	var $urlGelato;

+ 1 - 1
classes/functions.php View File

12
 ?>
12
 ?>
13
 <?php
13
 <?php
14
 	function version() {
14
 	function version() {
15
-		return "0.85";
15
+		return "0.90";
16
 	}
16
 	}
17
 	
17
 	
18
 	function beginsWith($str, $sub) {
18
 	function beginsWith($str, $sub) {

+ 3 - 0
classes/lang.functions.php View File

11
   =========================== */
11
   =========================== */
12
 ?>
12
 ?>
13
 <?php
13
 <?php
14
+require_once("streams.class.php");
15
+require_once("gettext.class.php");
16
+
14
 function initLang($lang = "en") {
17
 function initLang($lang = "en") {
15
 	global $l10n;
18
 	global $l10n;
16
 
19