if (isset($_REQUEST['term'])) { doFind(false); } else { doFind(true); } break; case 'sql': doSQL(); break; case 'variables': doVariables(); break; case 'processes': doProcesses(); break; case 'locks': doLocks(); break; case 'export': doExport(); break; case 'signal': doSignal(); break; default: if (adminActions($action, 'database') === false) { doSQL(); } break; } $misc->printFooter();
* @uses config.inc.php * * @internal revisions * @since 1.9.9 * 20130930 - franciscom - goback_url input parameter removed, to avoid XSS attack */ require_once "../../config.inc.php"; require_once "common.php"; require_once '../../third_party/adodb_xml/class.ADODB_XML.php'; testlinkInitPage($db, false, false, "checkRights"); $templateCfg = templateConfiguration(); $args = init_args(); $gui = initializeGui($args); switch ($args->doAction) { case 'doExport': doExport($db, $gui->export_filename, $args->testproject_id); break; default: break; } $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); /** * */ function init_args() { $args = new stdClass(); $iParams = array("doAction" => array(tlInputParameter::STRING_N, 0, 50), "export_filename" => array(tlInputParameter::STRING_N, 0, 255)); R_PARAMS($iParams, $args);
require_once "common.php"; require_once "requirements.inc.php"; testlinkInitPage($db); $templateCfg = templateConfiguration(); $req_spec_mgr = new requirement_spec_mgr($db); $args = init_args(); checkRights($db, $_SESSION['currentUser'], $args); $gui = initializeGui($args, $req_spec_mgr); switch ($args->doAction) { case 'export': $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); break; case 'doExport': doExport($args, $req_spec_mgr); break; } /** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('mgt_view_req'), 'and'); } /** * init_args *
require_once '../../third_party/adodb_xml/class.ADODB_XML.php'; testlinkInitPage($db); $templateCfg = templateConfiguration(); $args = init_args(); checkRights($db, $_SESSION['currentUser'], $args); $gui = new stdClass(); $gui->tproject_id = $args->tproject_id; $gui->page_title = lang_get('export_cfields'); $gui->do_it = 1; $gui->nothing_todo_msg = ''; $gui->goback_url = !is_null($args->goback_url) ? $args->goback_url : ''; $gui->export_filename = is_null($args->export_filename) ? 'customFields.xml' : $args->export_filename; $gui->exportTypes = array('XML' => 'XML'); switch ($args->doAction) { case 'doExport': doExport($db, $gui->export_filename); break; default: break; } $smarty = new TLSmarty(); $smarty->assign('gui', $gui); $smarty->display($templateCfg->template_dir . $templateCfg->default_template); /* function: init_args() args: returns: */ function init_args() {
<?php /* excel_export Addon by <a href="mailto:staab@public-4u.de">Markus Staab</a> <a href="http://www.public-4u.de">www.public-4u.de</a> 20.06.2005 Version RC1 */ // Posts auswerten if (!empty($_REQUEST['ExportTable']) && is_array($_REQUEST['ExportTable'])) { $argTables = array_keys($_REQUEST['ExportTable']); $table = $argTables[0]; $argModes = array_keys($_REQUEST['ExportTable'][$table]); $mode = $argModes[0]; doExport($table, $mode); } ?> <style type="text/css"> input.button { width: 115px; } </style> <form action="index.php" method="post"> <input type="hidden" name="page" value="<?php echo $_REQUEST['page']; ?> "/> <table class="rex" border="0" cellpadding="5" cellspacing="1" style="width: 770px">