/**************************************************
OpengateM - MAC address authentication system
- module for cgi main
+ module for update cgi main
+
+ This is used for updating the mac registration.
+ When accessing this, the list of registration address is shown
+ and update/delete/pause of the mac can be selected in the list.
+ the device name and mail address can also be edited.
Copyright (C) 2011 Opengate Project Team
Written by Yoshiaki Watanabe
return 0;
}
- /* if many modify requests per one day, ignore the request */
- if(CountMacModifyPerDayInMngDb(userId,extraId)
+ /* if many modify requests from the user per one day, ignore the request */
+ if(CountMacModifyPerDayInMngDb(userId, extraId, "")
> atoi(GetConfValue("MaxMacModifyPerDay"))){
SetMessage(ModifyCountOver);
PutDenyToClient(language);
return 0;
}
- /* check null request from client */
+ /* if any request is sent from client */
if(!isNull(requestStr)){
/* analize string and execute requests */