Esempio n. 1
0
function searchUserEdit(&$smarty, $user_ids)
{
    foreach ($_REQUEST as $key => $value) {
        //reset request, so it won't conflict with edit tpls
        if (!preg_match("/^show__.+\$/", $key)) {
            unset($_REQUEST[$key]);
        }
    }
    intEditUser($smarty, join(",", $user_ids));
}
Esempio n. 2
0
<?php

require_once "../../inc/init.php";
require_once "edit_funcs.php";
needAuthType(ADMIN_AUTH_TYPE);
$smarty = new IBSSmarty();
if (isInRequest("update", "edit_tpl_cs", "target", "target_id")) {
    intUpdateAttrs($smarty, $_REQUEST["target"], $_REQUEST["target_id"]);
} else {
    if (isInRequest("group_name", "edit_group")) {
        intEditGroup($smarty, $_REQUEST["group_name"]);
    } else {
        if (isInRequest("user_id", "edit_user")) {
            intEditUser($smarty, $_REQUEST["user_id"]);
        } else {
            $err = new error("INVALID_INPUT");
            redirectToGroupList($err->getErrorMsg());
        }
    }
}
Esempio n. 3
0
 function showEditInterface($err = null)
 {
     /* show target edit interface, normally called when update failed
      */
     $this->setPageError($err);
     if ($this->target == "group") {
         intEditGroup($this->smarty, $this->target_id);
     } else {
         if ($this->target == "user") {
             intEditUser($this->smarty, $this->target_id);
         }
     }
     exit;
 }