Changeset 1190

Show
Ignore:
Timestamp:
02/17/10 13:16:05 (2 years ago)
Author:
Hugo
Message:

unxsBind: fixed CheckAllZones? path issue

Location:
trunk/unxsBind
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsBind/mainfunc.h

    r1124 r1190  
    22362236                 
    22372237                sprintf(cZoneFile,"/usr/local/idns/named.d/master/%s/%c/%s",field[1],field[0][0],field[0]); 
    2238                 sprintf(gcQuery,"named-checkzone %s %s > /dev/null  2>&1",field[0],cZoneFile); 
     2238                sprintf(gcQuery,"/usr/sbin/named-checkzone %s %s > /dev/null  2>&1",field[0],cZoneFile); 
    22392239                 
    22402240                if(system(gcQuery)) 
  • trunk/unxsBind/tclientfunc.h

    r1137 r1190  
    5757void htmlRecordContext(void); 
    5858void tClientNavList(void); 
     59void BasictClientCheck(void); 
     60 
    5961 
    6062void ExtProcesstClientVars(pentry entries[], int x) 
     
    135137                                //Validate 
    136138                                guMode=2000; 
     139                                BasictClientCheck(); 
    137140                                if(guLoginClient!=1 && uMaxClientsReached(guCompany)) 
    138141                                { 
     
    960963}//void tClientNavList(void) 
    961964 
     965 
     966void BasictClientCheck(void) 
     967{ 
     968        if(guMode==2000) 
     969        { 
     970                if(uOwner==1) 
     971                { 
     972                        MYSQL_RES *res; 
     973                        sprintf(gcQuery,"SELECT uClient FROM tClient WHERE cLabel='%s' AND uOwner=1",TextAreaSave(cLabel)); 
     974                        macro_mySQLRunAndStore(res); 
     975 
     976                        if(mysql_num_rows(res)) 
     977                        { 
     978                                guMode=2000; 
     979                                tClient("<blink>Error: </blink>ASP company with that cLabel already exists."); 
     980                        } 
     981                } 
     982        } 
     983}//void BasictClientCheck(void) 
     984