示例#1
0
function chkPassword($value)
{
    $mtview_controller = new MTViewController();
    $matchResult = $mtview_controller->xajaxObjCall($value, 'CPW', 'password');
    $objResponse = new xajaxResponse();
    if ($matchResult) {
        $objResponse->addScript("addUpdate();");
    } else {
        $objResponse->addAlert($GLOBALS['lang_Admin_Users_ErrorsPasswordMismatch']);
    }
    return $objResponse->getXML();
}
         $extObject = $extractor->reloadData($_POST);
         $view_controller->reDirect($_GET, $_POST, $extObject);
         break;
     } elseif (isset($_POST['sqlState']) && $_GET['capturemode'] == 'updatemode' && $_POST['EditMode'] == '1') {
         $extObject = $extractor->reloadData($_POST);
         $view_controller->reDirect($_GET, $_POST, $extObject);
         break;
     } else {
         $view_controller->reDirect($_GET, $_POST);
         break;
     }
     //end of pim module
 //end of pim module
 case 'mt':
     //beg of mt module
     $view_controller = new MTViewController();
     if (isset($_POST['delState']) && $_POST['delState'] == 'DeleteMode' && $locRights['delete']) {
         $arrList[0] = $_POST['chkLocID'];
         $view_controller->delParser(trim($_GET['mtcode']), $arrList);
     }
     if (isset($_GET['VIEW']) && $_GET['VIEW'] == 'MAIN' && ($locRights['view'] || $_GET['mtcode'] == 'BUG')) {
         $view_controller->viewList($_GET, $_POST);
         break;
     }
     // choosing which extractor
     switch ($_GET['mtcode']) {
         case 'BUG':
             if (isset($_POST['sqlState'])) {
                 $extractor = new EXTRACTOR_Bugs();
             }
             break;