Browse Source

Update the file names.

Mark Crane 12 years ago
parent
commit
c4d87116c3

+ 2 - 2
invoices/invoice_edit.php

@@ -250,7 +250,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 	echo "</select>\n";
 	echo "<br />\n";
 	echo $text['description-contact_uuid_from']." \n";
-	echo "<a href='".PROJECT_PATH."/app/contacts/contacts_edit.php?id=".$contact_uuid_from."'>".$text['button-view']."</a>\n";
+	echo "<a href='".PROJECT_PATH."/app/contacts/contact_edit.php?id=".$contact_uuid_from."'>".$text['button-view']."</a>\n";
 	echo "</td>\n";
 	echo "</tr>\n";
 
@@ -293,7 +293,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 	echo "</select>\n";
 	echo "<br />\n";
 	echo $text['description-contact_uuid_to']." \n";
-	echo "<a href='".PROJECT_PATH."/app/contacts/contacts_edit.php?id=".$contact_uuid_to."'>".$text['button-view']."</a>\n";
+	echo "<a href='".PROJECT_PATH."/app/contacts/contact_edit.php?id=".$contact_uuid_to."'>".$text['button-view']."</a>\n";
 	echo "</td>\n";
 	echo "</tr>\n";
 

+ 5 - 5
user_contacts/users.php

@@ -98,7 +98,7 @@ require_once "resources/paging.php";
 	echo th_order_by('user_phone_1', 'Phone', $order_by, $order);
 	echo "<td align='right' width='42'>\n";
 	if (permission_exists('contacts_add')) {
-		echo "	<a href='users_edit.php' alt='add'>$v_link_label_add</a>\n";
+		echo "	<a href='user_edit.php' alt='add'>$v_link_label_add</a>\n";
 	}
 	echo "</td>\n";
 	echo "<tr>\n";
@@ -120,10 +120,10 @@ require_once "resources/paging.php";
 			echo "	<td valign='top' class='".$row_style[$c]."'>".$row['user_phone_1']."&nbsp;</td>\n";
 			echo "	<td valign='top' align='right'>\n";
 			if (permission_exists('contacts_edit')) {
-				echo "		<a href='users_edit.php?id=".$row['user_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
+				echo "		<a href='user_edit.php?id=".$row['user_uuid']."' alt='edit'>$v_link_label_edit</a>\n";
 			}
-			if (permission_exists('contacts_delete')) {
-				echo "		<a href='users_delete.php?id=".$row['user_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
+			if (permission_exists('contact_delete')) {
+				echo "		<a href='user_delete.php?id=".$row['user_uuid']."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
 			}
 			echo "	</td>\n";
 			echo "</tr>\n";
@@ -140,7 +140,7 @@ require_once "resources/paging.php";
 	echo "		<td width='33.3%' align='center' nowrap>$paging_controls</td>\n";
 	echo "		<td width='33.3%' align='right'>\n";
 	if (permission_exists('contacts_add')) {
-		echo "			<a href='users_edit.php' alt='add'>$v_link_label_add</a>\n";
+		echo "			<a href='user_edit.php' alt='add'>$v_link_label_add</a>\n";
 	}
 	echo "		</td>\n";
 	echo "	</tr>\n";

+ 1 - 1
user_contacts/users_delete.php

@@ -26,7 +26,7 @@
 include "root.php";
 require_once "resources/require.php";
 require_once "resources/check_auth.php";
-if (permission_exists('contacts_delete')) {
+if (permission_exists('contact_delete')) {
 	//access granted
 }
 else {

+ 3 - 3
user_contacts/users_edit.php

@@ -26,7 +26,7 @@
 include "root.php";
 require_once "resources/require.php";
 require_once "resources/check_auth.php";
-if (permission_exists('contacts_add') || permission_exists('contacts_edit')) {
+if (permission_exists('contact_add') || permission_exists('contact_edit')) {
 	//access granted
 }
 else {
@@ -160,7 +160,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 
 		//add or update the database
 			if ($_POST["persistformvar"] != "true") {
-				if ($action == "add" && permission_exists('contacts_add')) {
+				if ($action == "add" && permission_exists('contact_add')) {
 					$sql = "insert into v_users ";
 					$sql .= "(";
 					$sql .= "domain_uuid, ";
@@ -273,7 +273,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
 					return;
 				} //if ($action == "add")
 
-				if ($action == "update" || permission_exists('contacts_edit')) {
+				if ($action == "update" || permission_exists('contact_edit')) {
 					$sql = "update v_users set ";
 					//$sql .= "username = '$username', ";
 					//if (strlen($password) > 0) {

+ 3 - 3
user_contacts/v_config.php

@@ -23,15 +23,15 @@
 		$apps[$x]['permissions'][0]['groups'][] = 'admin';
 		$apps[$x]['permissions'][0]['groups'][] = 'superadmin';
 
-		$apps[$x]['permissions'][1]['name'] = 'contacts_add';
+		$apps[$x]['permissions'][1]['name'] = 'contact_add';
 		$apps[$x]['permissions'][1]['groups'][] = 'admin';
 		$apps[$x]['permissions'][1]['groups'][] = 'superadmin';
 
-		$apps[$x]['permissions'][2]['name'] = 'contacts_edit';
+		$apps[$x]['permissions'][2]['name'] = 'contact_edit';
 		$apps[$x]['permissions'][2]['groups'][] = 'admin';
 		$apps[$x]['permissions'][2]['groups'][] = 'superadmin';
 
-		$apps[$x]['permissions'][3]['name'] = 'contacts_delete';
+		$apps[$x]['permissions'][3]['name'] = 'contact_delete';
 		$apps[$x]['permissions'][3]['groups'][] = 'admin';
 		$apps[$x]['permissions'][3]['groups'][] = 'superadmin';