Exemplo n.º 1
0
include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/KeyMassUpdate.php';
header("Content-Type: text/html; charset=" . $charset);
if (!$SYMB_UID) {
    header('Location: ../../profile/index.php?refurl=../ident/tools/massupdate.php?' . $_SERVER['QUERY_STRING']);
}
$clFilter = array_key_exists("clf", $_REQUEST) ? $_REQUEST["clf"] : '';
$taxonFilter = array_key_exists("tf", $_REQUEST) ? $_REQUEST["tf"] : '';
$generaOnly = array_key_exists("generaonly", $_POST) ? $_POST["generaonly"] : 0;
$cidValue = array_key_exists("cid", $_REQUEST) ? $_REQUEST["cid"] : '';
$removeAttrs = array_key_exists("r", $_REQUEST) ? $_REQUEST["r"] : "";
$addAttrs = array_key_exists("a", $_REQUEST) ? $_REQUEST["a"] : "";
$pid = array_key_exists("pid", $_REQUEST) ? $_REQUEST["pid"] : "";
$langValue = array_key_exists("lang", $_REQUEST) ? $_REQUEST["lang"] : "";
$muManager = new KeyMassUpdate();
if ($langValue) {
    $muManager->setLang($langValue);
}
if ($cidValue) {
    $muManager->setCid($cidValue);
}
$isEditor = false;
if ($isAdmin || array_key_exists("KeyEditor", $userRights) || array_key_exists("KeyAdmin", $userRights)) {
    $isEditor = true;
}
if ($isEditor) {
    if ($removeAttrs || $addAttrs) {
        $muManager->processAttributes($removeAttrs, $addAttrs);
    }
}
Exemplo n.º 2
0
<?php

include_once '../../config/symbini.php';
include_once $serverRoot . '/classes/KeyMassUpdate.php';
header("Content-Type: text/html; charset=" . $charset);
$isEditor = false;
if ($isAdmin || array_key_exists("KeyEditor", $userRights) || array_key_exists("KeyAdmin", $userRights)) {
    $isEditor = true;
}
$muManager = new KeyMassUpdate();
$removeAttrs = array();
$addAttrs = array();
$clFilter = array_key_exists("clf", $_REQUEST) ? $_REQUEST["clf"] : 'all';
$taxonFilter = array_key_exists("tf", $_REQUEST) ? $_REQUEST["tf"] : 'all';
$generaOnly = array_key_exists("generaonly", $_REQUEST) ? $_REQUEST["generaonly"] : 0;
$cidValue = array_key_exists("cid", $_REQUEST) ? $_REQUEST["cid"] : '';
$removeAttrs = array_key_exists("r", $_REQUEST) ? $_REQUEST["r"] : "";
$addAttrs = array_key_exists("a", $_REQUEST) ? $_REQUEST["a"] : "";
$projValue = array_key_exists("proj", $_REQUEST) ? $_REQUEST["proj"] : "";
$langValue = array_key_exists("lang", $_REQUEST) ? $_REQUEST["lang"] : "";
$muManager->setProj($projValue);
if ($langValue) {
    $muManager->setLang($langValue);
}
$muManager->setClFilter($clFilter);
$muManager->setTaxonFilter($taxonFilter);
if ($generaOnly) {
    $muManager->setGeneraOnly($generaOnly);
}
if ($cidValue) {
    $muManager->setCid($cidValue);