* @author francisco.mancardi@gmail.com * * * @internal revision * @since 1.9.6 * */ require_once '../../config.inc.php'; require_once 'common.php'; require_once 'attachments.inc.php'; require_once 'requirements.inc.php'; require_once 'users.inc.php'; testlinkInitPage($db, false, false, "checkRights"); $templateCfg = templateConfiguration(); $args = init_args(); $gui = initialize_gui($db, $args); $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . 'reqViewRevisionRO.tpl'); /** * */ function init_args() { $iParams = array("item_id" => array(tlInputParameter::INT_N), "showReqSpecTitle" => array(tlInputParameter::INT_N)); $args = new stdClass(); R_PARAMS($iParams, $args); $args->tproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0; $args->tproject_name = isset($_SESSION['testprojectName']) ? $_SESSION['testprojectName'] : null; $user = $_SESSION['currentUser']; $args->userID = $user->dbID;
* * 20080827 - franciscom - BUGID 1692 * */ require_once "../../config.inc.php"; require_once "common.php"; require_once 'requirements.inc.php'; require_once "web_editor.php"; $editorCfg = getWebEditorCfg('requirement_spec'); require_once require_web_editor($editorCfg['type']); $req_cfg = config_get('req_cfg'); testlinkInitPage($db, false, false, "checkRights"); $templateCfg = templateConfiguration(); $args = init_args(); $commandMgr = new reqSpecCommands($db); $gui = initialize_gui($db, $commandMgr, $req_cfg); $auditContext = new stdClass(); $auditContext->tproject = $args->tproject_name; $commandMgr->setAuditContext($auditContext); $pFn = $args->doAction; $op = null; if (method_exists($commandMgr, $pFn)) { $op = $commandMgr->{$pFn}($args, $_REQUEST); } renderGui($args, $gui, $op, $templateCfg, $editorCfg); /** * * */ function init_args() {
* * @internal revisions * @since 1.9.7 * **/ require_once "../../config.inc.php"; require_once "common.php"; require_once "users.inc.php"; require_once "web_editor.php"; $editorCfg = getWebEditorCfg('role'); require_once require_web_editor($editorCfg['type']); testlinkInitPage($db, false, false, "checkRights"); init_global_rights_maps(); $templateCfg = templateConfiguration(); $args = init_args(); $gui = initialize_gui($args, $editorCfg['type']); $op = initialize_op(); $owebeditor = web_editor('notes', $args->basehref, $editorCfg); $owebeditor->Value = getItemTemplateContents('role_template', $owebeditor->InstanceName, null); $canManage = $args->user->hasRight($db, "role_management") ? true : false; switch ($args->doAction) { case 'create': break; case 'edit': $op->role = tlRole::getByID($db, $args->roleid); break; case 'doCreate': case 'doUpdate': case 'duplicate': if ($canManage) { $op = doOperation($db, $args, $args->doAction);
* @package TestLink * @author Francisco Mancardi * @copyright 2003-2011, TestLink community * @link http://www.teamst.org/index.php * * @internal Revisions: * 20100427 - franciscom - added standard documentation file header **/ require_once "../../config.inc.php"; require_once "common.php"; require_once "testplan.class.php"; testlinkInitPage($db); $templateCfg = templateConfiguration(); $args = init_args($db); checkRights($db, $_SESSION['currentUser'], $args); $gui = initialize_gui($db, $_SESSION['currentUser'], $args); $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); /* function: args : returns: */ function init_args(&$dbHandler) { $args = new stdClass(); $treeMgr = new tree($dbHandler); $tprojectMgr = new testproject($dbHandler); $args->tproject_name = '';
**/ require_once "../../config.inc.php"; require_once "common.php"; require_once "users.inc.php"; require_once 'requirements.inc.php'; require_once "xml.inc.php"; require_once "configCheck.php"; require_once "web_editor.php"; $editorCfg = getWebEditorCfg('requirement'); require_once require_web_editor($editorCfg['type']); testlinkInitPage($db); $templateCfg = templateConfiguration(); $commandMgr = new reqCommands($db); $args = init_args($db); checkRights($db, $_SESSION['currentUser'], $args); $gui = initialize_gui($db, $args, $commandMgr); $pFn = $args->doAction; $op = null; if (method_exists($commandMgr, $pFn)) { $op = $commandMgr->{$pFn}($args, $_REQUEST); } renderGui($args, $gui, $op, $templateCfg, $editorCfg, $db); /** * init_args * */ function init_args(&$dbHandler) { // take care of proper escaping when magic_quotes_gpc is enabled $_REQUEST = strings_stripSlashes($_REQUEST); $iParams = array("requirement_id" => array(tlInputParameter::INT_N), "req_spec_id" => array(tlInputParameter::INT_N), "containerID" => array(tlInputParameter::INT_N), "reqDocId" => array(tlInputParameter::STRING_N, 0, 64), "req_title" => array(tlInputParameter::STRING_N, 0, 100), "scope" => array(tlInputParameter::STRING_N), "reqStatus" => array(tlInputParameter::STRING_N, 0, 1), "reqType" => array(tlInputParameter::STRING_N, 0, 1), "countReq" => array(tlInputParameter::INT_N), "expected_coverage" => array(tlInputParameter::INT_N), "doAction" => array(tlInputParameter::STRING_N, 0, 20), "req_id_cbox" => array(tlInputParameter::ARRAY_INT), "itemSet" => array(tlInputParameter::ARRAY_INT), "testcase_count" => array(tlInputParameter::ARRAY_INT), "req_version_id" => array(tlInputParameter::INT_N), "copy_testcase_assignment" => array(tlInputParameter::CB_BOOL), "relation_id" => array(tlInputParameter::INT_N), "relation_source_req_id" => array(tlInputParameter::INT_N), "relation_type" => array(tlInputParameter::STRING_N), "relation_destination_req_doc_id" => array(tlInputParameter::STRING_N, 0, 64), "relation_destination_testproject_id" => array(tlInputParameter::INT_N), "save_rev" => array(tlInputParameter::INT_N), "do_save" => array(tlInputParameter::INT_N), "tproject_id" => array(tlInputParameter::INT_N), "log_message" => array(tlInputParameter::STRING_N));
* * @internal revisions */ require_once "../../config.inc.php"; require_once "common.php"; require_once 'requirements.inc.php'; require_once "web_editor.php"; $editorCfg = getWebEditorCfg('requirement_spec'); require_once require_web_editor($editorCfg['type']); $req_cfg = config_get('req_cfg'); testlinkInitPage($db); $templateCfg = templateConfiguration(); $args = init_args($db); checkRights($db, $_SESSION['currentUser'], $args); $commandMgr = new reqSpecCommands($db); $gui = initialize_gui($db, $commandMgr, $_SESSION['currentUser'], $args, $req_cfg); $auditContext = new stdClass(); $auditContext->tproject = $args->tproject_name; $commandMgr->setAuditContext($auditContext); $pFn = $args->doAction; $op = null; if (method_exists($commandMgr, $pFn)) { $op = $commandMgr->{$pFn}($args, $_REQUEST); } renderGui($args, $gui, $op, $templateCfg, $editorCfg); /** * * */ function init_args(&$dbHandler) {
* Screen to view content of requirement. * * @internal revisions * @since 1.9.10 * */ require_once '../../config.inc.php'; require_once 'common.php'; require_once 'attachments.inc.php'; require_once 'requirements.inc.php'; require_once 'users.inc.php'; testlinkInitPage($db, false, false, "checkRights"); $templateCfg = templateConfiguration(); $tproject_mgr = new testproject($db); $args = init_args(); $gui = initialize_gui($db, $args, $tproject_mgr); $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . 'reqViewVersions.tpl'); /** * */ function init_args() { $_REQUEST = strings_stripSlashes($_REQUEST); $iParams = array("req_id" => array(tlInputParameter::INT_N), "requirement_id" => array(tlInputParameter::INT_N), "req_version_id" => array(tlInputParameter::INT_N), "showReqSpecTitle" => array(tlInputParameter::INT_N), "refreshTree" => array(tlInputParameter::INT_N), "relation_add_result_msg" => array(tlInputParameter::STRING_N), "user_feedback" => array(tlInputParameter::STRING_N)); // new dBug($_REQUEST); $args = new stdClass(); R_PARAMS($iParams, $args); if ($args->req_id <= 0) { $args->req_id = $args->requirement_id;