tbrehm
2012-08-15 cea1e5d3d0a7c45568a1539f9ecb6cf36c7f7f6c
interface/web/client/client_edit.php
@@ -1,6 +1,6 @@
<?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,
@@ -101,7 +101,7 @@
      global $app;
      $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a'";
      $sql = "SELECT template_id,template_name FROM client_template WHERE template_type = 'a' ORDER BY template_name ASC";
      $tpls = $app->db->queryAllRecords($sql);
      $option = '';
      $tpl = array();
@@ -136,7 +136,7 @@
   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"]);