diff options
author | Philip Häusler <msquare@notrademark.de> | 2011-12-26 19:28:34 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2011-12-26 19:28:34 +0100 |
commit | 77381ebca8bdb20b6dbd1b48222da677999f631d (patch) | |
tree | 0af1764befd047f2826c23c443ecebb77ae49eae /db | |
parent | b3d4d7dc52355df21bc1e3e67a2ab3435a31484a (diff) |
#44 confirm angel types
Diffstat (limited to 'db')
-rw-r--r-- | db/update.d/16_admin_user_angeltypes.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/db/update.d/16_admin_user_angeltypes.php b/db/update.d/16_admin_user_angeltypes.php new file mode 100644 index 00000000..de1803ea --- /dev/null +++ b/db/update.d/16_admin_user_angeltypes.php @@ -0,0 +1,21 @@ +<?php + + +// create admin_user_angeltypes permission/privilege and assign it to the archangel usergroup. +if (sql_num_query("SELECT * FROM `Privileges` WHERE `name`='admin_user_angeltypes'") == 0) { + sql_query("INSERT INTO `Privileges` (`id`, `name`, `desc`) VALUES ( NULL , 'admin_user_angeltypes', 'Confirm restricted angel types' );"); + $id = sql_id(); + sql_query("INSERT INTO `GroupPrivileges` SET `group_id`=-5, `privilege_id`=" . sql_escape($id)); + sql_query("INSERT INTO `Sprache` ( + `TextID` , + `Sprache` , + `Text` + ) + VALUES ( + 'admin_user_angeltypes', 'DE', 'Engeltypen freischalten' + ), ( + 'admin_user_angeltypes', 'EN', 'Confirm angeltypes' + );"); + $applied = true; +} +?>
\ No newline at end of file |