Changeset 1184

Show
Ignore:
Timestamp:
02/12/10 12:41:42 (2 years ago)
Author:
Hugo
Message:

ispClient: save commit

Location:
trunk/unxsISP/interfaces/customer
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • trunk/unxsISP/interfaces/customer/customer.c

    r1091 r1184  
    14881488 
    14891489 
    1490  
    1491  
     1490void ShowPurchaseRadiusPage(void) 
     1491{ 
     1492        htmlHeader("unxsISP Client Interface","Header"); 
     1493        printf("This is the first time you login"); 
     1494        htmlFooter("Footer"); 
     1495}//void ShowPurchaseRadiusPage(void) 
     1496 
     1497 
     1498unsigned IsFirstTimeLogin(void) 
     1499{ 
     1500        MYSQL_RES *res; 
     1501        unsigned uRet=0; 
     1502 
     1503        sprintf(gcQuery,"SELECT uClient FROM tClient WHERE cCode='NeverLogin' AND uClient=%u",guLoginClient); 
     1504        mysql_query(&gMysql,gcQuery); 
     1505        if(mysql_errno(&gMysql)) 
     1506                htmlPlainTextError(mysql_error(&gMysql)); 
     1507        res=mysql_store_result(&gMysql); 
     1508 
     1509        uRet=mysql_num_rows(res); 
     1510 
     1511        mysql_free_result(res); 
     1512        return(uRet); 
     1513 
     1514}//unsigned IsFirstTimeLogin(void) 
     1515 
  • trunk/unxsISP/interfaces/customer/interface.h

    r1168 r1184  
    136136void funcSelectAccountType(FILE *fp); 
    137137void funcSelectLanguage(FILE *fp); 
     138void ShowPurchaseRadiusPage(void); 
     139unsigned IsFirstTimeLogin(void); 
    138140 
    139141typedef struct { 
  • trunk/unxsISP/interfaces/customer/main.c

    r1174 r1184  
    182182 
    183183        //default logged in page 
     184        if(IsFirstTimeLogin()) ShowPurchaseRadiusPage(); 
    184185        htmlCustomer(); 
    185186        return(0); 
  • trunk/unxsISP/interfaces/customer/payment.c

    r978 r1184  
    140140}//unsigned SubmitRequest(unsigned uInvoice) 
    141141 
     142 
  • trunk/unxsISP/interfaces/customer/registration.c

    r1182 r1184  
    348348        GetConfiguration("cFromEmailAddr",cFrom); 
    349349         
    350         if((fp=popen("/usr/lib/sendmail -t > /dev/null","w"))) 
     350        //if((fp=popen("/usr/lib/sendmail -t > /dev/null","w"))) 
    351351        //debug only 
    352         //if((fp=fopen("/tmp/eMailInvoice","w"))) 
     352        if((fp=fopen("/tmp/eMailInvoice","w"))) 
    353353        { 
    354354                fprintf(fp,"To: %s\n",cEmail); 
     
    420420        GetConfiguration("uRegistrationCompany",cuCompany); 
    421421        sprintf(gcQuery,"INSERT INTO tClient SET cLabel='%s %s',cFirstName='%s',cLastName='%s',cEmail='%s',cTelephone='%s'," 
    422                         "uCreatedBy=1,uOwner=%s,uCreatedDate=UNIX_TIMESTAMP(NOW()),cLanguage='%s'", 
     422                        "uCreatedBy=1,uOwner=%s,uCreatedDate=UNIX_TIMESTAMP(NOW()),cLanguage='%s',cCode='NeverLogin'", 
    423423                        TextAreaSave(cFirstName) 
    424424                        ,TextAreaSave(cLastName)