Changeset 1184
- Timestamp:
- 02/12/10 12:41:42 (2 years ago)
- Location:
- trunk/unxsISP/interfaces/customer
- Files:
-
- 5 modified
-
customer.c (modified) (1 diff)
-
interface.h (modified) (1 diff)
-
main.c (modified) (1 diff)
-
payment.c (modified) (1 diff)
-
registration.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/customer.c
r1091 r1184 1488 1488 1489 1489 1490 1491 1490 void 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 1498 unsigned 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 136 136 void funcSelectAccountType(FILE *fp); 137 137 void funcSelectLanguage(FILE *fp); 138 void ShowPurchaseRadiusPage(void); 139 unsigned IsFirstTimeLogin(void); 138 140 139 141 typedef struct { -
trunk/unxsISP/interfaces/customer/main.c
r1174 r1184 182 182 183 183 //default logged in page 184 if(IsFirstTimeLogin()) ShowPurchaseRadiusPage(); 184 185 htmlCustomer(); 185 186 return(0); -
trunk/unxsISP/interfaces/customer/payment.c
r978 r1184 140 140 }//unsigned SubmitRequest(unsigned uInvoice) 141 141 142 -
trunk/unxsISP/interfaces/customer/registration.c
r1182 r1184 348 348 GetConfiguration("cFromEmailAddr",cFrom); 349 349 350 if((fp=popen("/usr/lib/sendmail -t > /dev/null","w")))350 //if((fp=popen("/usr/lib/sendmail -t > /dev/null","w"))) 351 351 //debug only 352 //if((fp=fopen("/tmp/eMailInvoice","w")))352 if((fp=fopen("/tmp/eMailInvoice","w"))) 353 353 { 354 354 fprintf(fp,"To: %s\n",cEmail); … … 420 420 GetConfiguration("uRegistrationCompany",cuCompany); 421 421 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'", 423 423 TextAreaSave(cFirstName) 424 424 ,TextAreaSave(cLastName)
