Added Default Papers when adding new user
这个提交包含在:
父节点
6cdb88d26d
当前提交
d0f919f26a
共有 1 个文件被更改,包括 1 次插入 和 0 次删除
|
|
@ -172,6 +172,7 @@ class User_Model extends CI_Model {
|
||||||
$this->db->insert($this->config->item('auth_table'), $data);
|
$this->db->insert($this->config->item('auth_table'), $data);
|
||||||
$insert_id = $this->db->insert_id();
|
$insert_id = $this->db->insert_id();
|
||||||
$this->db->query("insert into bandxuser (bandid, userid, active, cq, dok, dxcc, iota, pota, sig, sota, uscounties, was, wwff, vucc) select bands.id, " . $insert_id . ", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 from bands;");
|
$this->db->query("insert into bandxuser (bandid, userid, active, cq, dok, dxcc, iota, pota, sig, sota, uscounties, was, wwff, vucc) select bands.id, " . $insert_id . ", 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 from bands;");
|
||||||
|
$this->db->query("insert into paper_types (user_id,paper_name,metric,width,orientation,height) SELECT ".$insert_id.", paper_name, metric, width, orientation,height FROM paper_types where id<4;");
|
||||||
return OK;
|
return OK;
|
||||||
} else {
|
} else {
|
||||||
return EUSERNAMEEXISTS;
|
return EUSERNAMEEXISTS;
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用