| | |
| | | <?php |
| | | /* |
| | | Copyright (c) 2005 - 2008, Till Brehm, projektfarm Gmbh |
| | | Copyright (c) 2005 - 2012, Till Brehm, projektfarm Gmbh, ISPConfig UG |
| | | All rights reserved. |
| | | |
| | | Redistribution and use in source and binary forms, with or without modification, |
| | |
| | | function onAfterInsert() { |
| | | global $app, $conf; |
| | | // Create the group for the client |
| | | $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid'); |
| | | $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".$app->db->quote($this->dataRecord["username"])."','',".$this->id.")", 'groupid'); |
| | | $groups = $groupid; |
| | | |
| | | $username = $app->db->quote($this->dataRecord["username"]); |