Changeset 1186
- Timestamp:
- 02/15/10 12:46:37 (2 years ago)
- Location:
- trunk/unxsISP/interfaces/customer
- Files:
-
- 1 added
- 3 modified
-
customer.c (modified) (1 diff)
-
makefile (modified) (2 diffs)
-
purchase.c (added)
-
templates-english/FirstTime.Body (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/unxsISP/interfaces/customer/customer.c
r1185 r1186 1487 1487 } 1488 1488 1489 1490 void ShowPurchaseRadiusPage(void)1491 {1492 htmlHeader("unxsISP Client Interface","Header");1493 htmlCustomerPage("","FirstTime.Body");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/makefile
r1163 r1186 15 15 LIBS= -L/usr/lib/mysql -lmysqlclient /usr/lib/openisp/libtemplate-branch.a /usr/lib/openisp/libucidr.a -lz -lcrypt -lm -lssl 16 16 17 interface.cgi: main.o customer.o glossary.o invoice.o product.o https.o payment.o registration.o ../../cgi.o18 cc main.o customer.o glossary.o invoice.o product.o https.o payment.o registration.o ../../cgi.o -o interface.cgi $(LIBS)17 interface.cgi: main.o customer.o glossary.o invoice.o product.o https.o payment.o registration.o purchase.o ../../cgi.o 18 cc main.o customer.o glossary.o invoice.o product.o https.o payment.o registration.o purchase.o ../../cgi.o -o interface.cgi $(LIBS) 19 19 20 20 main.o: main.c interface.h ../../local.h ../../mysqlrad.h … … 42 42 cc -c registration.c -o registration.o $(CFLAGS) 43 43 44 purchase.o : purchase.c interface.h ../../local.h ../../mysqlrad.h 45 cc -c purchase.c -o purchase.o $(CFLAGS) 46 44 47 clean: 45 48 rm -f *.o *.cgi -
trunk/unxsISP/interfaces/customer/templates-english/FirstTime.Body
r1185 r1186 52 52 53 53 <form method=post action=ispClient.cgi style="margin:0px;"> 54 <input type=hidden name=gcPage value="Purchase"> 54 55 <table width=1200 border="0" cellspacing="0" cellpadding="0"> 55 56 <tr>
