users.php
changeset 126 cb06e3e29ed8
parent 119 f74e4f88b680
child 183 aae57715199e
equal deleted inserted replaced
125:700a3674b72e 126:cb06e3e29ed8
    19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
    20  */
    20  */
    21 
    21 
    22 require_once("inc/toolkit.inc.php");
    22 require_once("inc/toolkit.inc.php");
    23 include_once("inc/header.inc.php");
    23 include_once("inc/header.inc.php");
    24 verify_permission(user_view_others) ? $perm_view_others = "1" : $perm_view_others = "0" ;
    24 verify_permission('user_view_others') ? $perm_view_others = "1" : $perm_view_others = "0" ;
    25 verify_permission(user_edit_own) ? $perm_edit_own = "1" : $perm_edit_own = "0" ;
    25 verify_permission('user_edit_own') ? $perm_edit_own = "1" : $perm_edit_own = "0" ;
    26 verify_permission(user_edit_others) ? $perm_edit_others = "1" : $perm_edit_others = "0" ;
    26 verify_permission('user_edit_others') ? $perm_edit_others = "1" : $perm_edit_others = "0" ;
    27 verify_permission(templ_perm_edit) ? $perm_templ_perm_edit = "1" : $perm_templ_perm_edit = "0" ;
    27 verify_permission('templ_perm_edit') ? $perm_templ_perm_edit = "1" : $perm_templ_perm_edit = "0" ;
    28 verify_permission(is_ueberuser) ? $perm_is_godlike = "1" : $perm_is_godlike = "0" ; 
    28 verify_permission('is_ueberuser') ? $perm_is_godlike = "1" : $perm_is_godlike = "0" ; 
    29 
    29 
    30 unset($commit_button);
    30 unset($commit_button);
    31 
    31 
    32 if (isset($_POST['commit'])) {
    32 if (isset($_POST['commit'])) {
    33 	foreach ($_POST['user'] as $user) {
    33 	foreach ($_POST['user'] as $user) {
   108 echo "    <ul>\n";
   108 echo "    <ul>\n";
   109 if ($perm_templ_perm_edit == "1") {
   109 if ($perm_templ_perm_edit == "1") {
   110 	echo "<li><a href=\"list_perm_templ.php\">" . _('Edit permission template') . "</a>.</li>\n";
   110 	echo "<li><a href=\"list_perm_templ.php\">" . _('Edit permission template') . "</a>.</li>\n";
   111 }
   111 }
   112 
   112 
   113 if (verify_permission(user_add_new)) {
   113 if (verify_permission('user_add_new')) {
   114 	echo "<li><a href=\"add_user.php\">" . _('Add user') . "</a>.</li>\n";
   114 	echo "<li><a href=\"add_user.php\">" . _('Add user') . "</a>.</li>\n";
   115 }
   115 }
   116 echo "    </ul>\n";
   116 echo "    </ul>\n";
   117 
   117 
   118 
   118