Changes between Version 2 and Version 3 of doc/developer/MACBlacklisting

Show
Ignore:
Timestamp:
01/12/08 12:40:52 (11 years ago)
Author:
Robin Jones
Comment:

updated MACBlacklisting with some more ideas

Legend:

Unmodified
Added
Removed
Modified
  • doc/developer/MACBlacklisting

    v2 v3  
     1Contributors: Robin Jones, Benoit Grégoire, Last update: 2008-01-12 Feel free to contribute and/or format better.  
     2 
    13== Blacklisting a MAC address from your network == 
    24 
     
    1214         MAC text NOT NULL, 
    1315         reason text,                               //will tell the user why they have been banned (if you wish to tell them) 
    14          reinstatement_date date,                   //date device will be allowed to access the network again (if any) 
     16         duration text NOT NULL,                   //date device will be allowed to access the network again (if any) 
    1517         banned_date date,                          //timestamp user banned from network 
    1618 
     
    3537*/ 
    3638 
    37 static function BlacklistMAC($id, $MAC, $reason, $reinstatement) {  
     39static function BlacklistMAC($id, $MAC, $reason, $duration) {  
    3840      $db = AbstractDb::getObject();  
    3941  
     
    4446        $duration_str = $db->escapeString($reinstatement);  
    4547  
    46         $db->execSqlUpdate("INSERT INTO Blacklist (guid, MAC, reason, reinstatement, bannedDate) VALUES ('$id_str','MAC_str','$reason_str','$reinstatement_str',CURRENT_TIMESTAMP)");  
     48        $db->execSqlUpdate("INSERT INTO Blacklist (guid, MAC, reason, duration, bannedDate) VALUES ('$id_str','MAC_str','$reason_str','$reinstatement_str',CURRENT_TIMESTAMP)");  
    4749  
    4850        $object = self::getObject($id);  
     
    7476there will be much more complicated use case than static, persistent MAC 
    7577based blacklists). 
     78 
     79== An example of the UI == 
     80[[Image(Suggested Mac Blacklist interface.jpg)]]