Exemple #1
0
        if (ERROR::isError($result)) {
            die($result->getErrstr());
        }
    }
    $AppUI->redirect($forward_link);
    die;
} else {
    foreach ($_POST["bugs"] as $b) {
        $mantis->resetRequest();
        $mantis->setFunction("MantisRPC");
        $mantis->addArg(array($mantis_user, $mantis_pass));
        $mantis->addArg("updateMantisBugStatusById");
        $mantis->addArg($b);
        $mantis->addArg($_POST["bug_action"]);
        $result = $mantis->call();
        if (ERROR::isError($result)) {
            die($result->getErrstr());
        }
    }
    $AppUI->redirect($forward_link);
    die;
}
function createTask($obj)
{
    // Include any files for handling module-specific requirements
    foreach (findTabModules('tasks', 'addedit') as $mod) {
        $fname = dPgetConfig('root_dir') . "/modules/{$mod}/tasks_dosql.addedit.php";
        dprint(__FILE__, __LINE__, 3, "checking for {$fname}");
        if (file_exists($fname)) {
            require_once $fname;
        }
Exemple #2
0
    $mantis->setFunction("MantisRPC");
    $mantis->addArg(array($mantis_user, $mantis_pass));
    $mantis->addArg("getMantisBugByProjectName");
    $mantis->addArg($project_name);
    $bugs = $mantis->call();
    if (ERROR::isError($bugs)) {
        die($bugs->getErrstr());
    }
} else {
    $mantis->resetRequest();
    $mantis->setFunction("MantisRPC");
    $mantis->addArg(array($mantis_user, $mantis_pass));
    $mantis->addArg("getMantisBugByProjectID");
    $mantis->addArg("");
    $bugs = $mantis->call();
    if (ERROR::isError($bugs)) {
        die($bugs->getErrstr());
    }
}
if ($bugs == 0) {
    ?>
<br /><br />This project was not found in Mantis.<br /><br />
<input class="button" type="button" value="<?php 
    echo $AppUI->_('Create Project In Mantis');
    ?>
" onClick="window.location='?m=mantis&a=addproject&project_id=<?php 
    echo $project_id;
    ?>
'">
<br />
<br />