Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. if (!empty($_REQUEST['writeData'])) {
  2. if (!empty($_REQUEST['macAddress']) && array_search($_REQUEST['reginfo'],Array('WW'=>'0','NA'=>'1'))!==false && ereg("[0-9a-fA-F]{12,12}",$_REQUEST['macAddress'],$regs)!==false) {
  3. exec("wr_mfg_data -m ".$_REQUEST['macAddress']." -c ".$_REQUEST['reginfo'],$dummy,$res);
  4. if ($res==0) {
  5. conf_set_buffer("system:basicSettings:apName netgear".substr($_REQUEST['macAddress'], -6)."\n");
  6. conf_save();
  7. $msg = 'Update Success!';
  8. $flag = true;
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement