<title><?php echo crumbGet(); ?> </title> <?php require "{$phpdir}/common.php"; require "{$phpdir}/template/head.inc"; echo gserveStatusRefreshTag(false); ?> </head> <body> <?php require "{$phpdir}/template/body.inc"; ?> <p></p> <pre> <?php $filename = "{$qa_docsdir}/testbed.txt"; $output = GetFileContents($filename); print $output; ?> </pre> <?php if (privIsPriviledged()) { print "<li><a href=\"/process_file.php?editfile={$filename}\" title=\"Edit File\">Edit Testbed</a></li>\n"; } require "{$phpdir}/template/foot.inc"; ?> </body> </html>
?> </head> <body> <?php require "{$phpdir}/template/body.inc"; $script = "{$qa_scriptdir}/mvssh.exp"; $dir = "{$qa_searchdir}"; $d = opendir($dir); print "<table class=\"status\" style=\"clear: right;\" cellspacing=\"0\">"; print "<tr>\n"; print "<th>Search Name</th>\n"; print "<th>Description</th>\n"; print "</tr>\n"; if ($d) { while (false !== ($f = readdir($d))) { if ($f != "." && $f != ".." && filetype("{$dir}/{$f}") == "dir") { print "<td>{$f}</td>\n"; $read_content = GetFileContents("{$dir}/{$f}/description", "", true); print "<td>{$read_content}</td>\n"; } } closedir($d); } print "</table>\n"; print "<p class=\"mininote\">*** Usage: To start a search, select your Search Name from table above.</p>\n"; print "<hr></hr>\n"; require "{$phpdir}/template/foot.inc"; ?> </body> </html>
<head> <title><?php echo crumbGet(); ?> </title> <?php require "{$phpdir}/template/head.inc"; ?> </head> <body> <?php require "{$phpdir}/template/body.inc"; ?> <p></p> <ul> <?php require "{$phpdir}/common.php"; $flist = GetFileList("{$qa_logsdir}/zodiac", false); $read_content = GetFileContents("{$filename}", "", true); while ($fpath = array_shift($flist)) { $filename = basename($fpath); print "<li><a href=\"/tests/logs/zodiac/{$filename}\" title=\"{$filename}\">{$filename}</a></li>\n"; } ?> </ul> <?php require "{$phpdir}/template/foot.inc"; ?> </body> </html>
// fix quote marks $filetext = str_replace("\\'", "'", $filetext); // fix single quote $filetext = str_replace("\r", "", $filetext); // fix single quote $fh = fopen($filename, "w"); if ($fh) { fputs($fh, $filetext); fclose($fh); } print "File modified.\n"; } } if (isset($_REQUEST['editfile'])) { $filename = $_GET["editfile"]; $filecontent = htmlspecialchars(GetFileContents($filename)); print <<<END <form name="files" method="post" action="{$_SERVER['PHP_SELF']}"> <input type="hidden" name="stage" value="process"/> <input type="hidden" name="filename" value="{$filename}"/> <table class="params" cellspacing="0"> <tr> <td> <textarea id="filetext" name="filetext" rows="40" cols="80">{$filecontent}</textarea> </td> </tr> <tr> <td clase="submit"> <input type="submit" name="apply" value="Save Chages"/> <input type="submit" name="cancel" value="Cancel"/> </td>