Changeset 1256
- Timestamp:
- 03/16/10 09:55:16 (5 months ago)
- Location:
- trunk/unxsBind/interfaces/admin
- Files:
-
- 3 modified
-
adminuser.c (modified) (1 diff)
-
customercontact.c (modified) (1 diff)
-
resource.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsBind/interfaces/admin/adminuser.c
r940 r1256 797 797 } 798 798 } 799 else if(!strcmp(gcFunction,"Confirm Modify")) 800 { 801 if(strcmp(TextAreaSave(cClientName), 802 ForeignKey("tClient","cLabel",guContact))) 803 { 804 sprintf(gcQuery,"SELECT uClient FROM tClient WHERE cLabel='%s' AND uOwner=%u", 805 TextAreaSave(cClientName) 806 ,uForClient 807 ); 808 macro_mySQLRunAndStore(res); 809 if(mysql_num_rows(res)) 810 { 811 SetCustomerContactFieldsOn(); 812 cClientNameStyle="type_fields_req"; 813 gcMessage="<blink>Error: </blink>'Contact Name' already exists for selected company," 814 " perhaps you wanted to create it for another company."; 815 return(0); 816 } 817 } 818 } 799 819 } 800 820 if(cEmail[0]) -
trunk/unxsBind/interfaces/admin/customercontact.c
r1243 r1256 839 839 } 840 840 } 841 else if(!strcmp(gcFunction,"Confirm Modify")) 842 { 843 if(strcmp(TextAreaSave(cClientName), 844 ForeignKey("tClient","cLabel",guContact))) 845 { 846 sprintf(gcQuery,"SELECT uClient FROM tClient WHERE cLabel='%s' AND uOwner=%u", 847 TextAreaSave(cClientName) 848 ,uForClient 849 ); 850 macro_mySQLRunAndStore(res); 851 if(mysql_num_rows(res)) 852 { 853 SetCustomerContactFieldsOn(); 854 cClientNameStyle="type_fields_req"; 855 gcMessage="<blink>Error: </blink>'Contact Name' already exists for selected company," 856 " perhaps you wanted to create it for another company."; 857 return(0); 858 } 859 } 860 } 841 861 } 842 862 -
trunk/unxsBind/interfaces/admin/resource.c
r1248 r1256 89 89 void PrintMXList(FILE *zfp,char *cuMailServers); 90 90 char *GetRRType(unsigned uRRType); 91 unsigned OnLineZoneCheck(void);91 unsigned idnsOnLineZoneCheck(void); 92 92 void CreatetResourceTest(void); 93 93 void PrepareTestData(void); … … 1026 1026 return(3); 1027 1027 1028 if( OnLineZoneCheck())1028 if(idnsOnLineZoneCheck()) 1029 1029 { 1030 1030 return(18); … … 2563 2563 2564 2564 2565 unsigned OnLineZoneCheck(void)2565 unsigned idnsOnLineZoneCheck(void) 2566 2566 { 2567 2567 //This define determines how to parse named-checkzone ouput. … … 2765 2765 return(0); 2766 2766 2767 }//unsigned OnLineZoneCheck(void)2767 }//unsigned idnsOnLineZoneCheck(void) 2768 2768 2769 2769
