Beispiel #1
0
            echo "<input type='hidden' name='id' value='{$bugid}'/>\n";
        }
        echo "</form></td></tr>\n";
        echo "<tr><td><div id='{$id}' class='log'><pre>{$content}</pre></div></td></tr>\n";
    }
    if ($plfile) {
        create_box('Source File:', 'plfile', $plfile, $id, 'plfile');
    }
    if ($annfile) {
        create_box('Annotation File:', 'annfile', $annfile, $id, 'annfile');
    }
    if ($goal) {
        create_box('Goal:', 'goal', $goal);
    }
    if ($error) {
        create_box('Error Text:', 'error', $error);
    }
    if ($recreateable) {
        switch ($stageno) {
            case 1:
                $url = 'upload.php';
                break;
            case 2:
                $url = 'upload_annfile.php';
                break;
        }
        ?>
<tr>
		<td>&nbsp;</td>
		<td>
		<form action='<?php 
Beispiel #2
0
function listing_page ($message = null) {
	global $self, $directory, $sort, $reverse;
	html_header();
	$list = getlist($directory);
	if (array_key_exists('sort', $_GET)) $sort = $_GET['sort']; else $sort = 'filename';
	if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') $reverse = true; else $reverse = false;
	sortlist($list, $sort, $reverse);
	echo '
<form enctype="multipart/form-data" action="' . $self . '?tool=Files" method="post">
<table id="main">
';
	directory_choice();
	if (!empty($message)) {
		spacer();
		echo $message;
	}
	if (@is_writable($directory)) {
		upload_box();
		create_box();
	} else {
		spacer();
	}
	if ($list) {
		listing($list);
	} else {
		echo error('not_readable', $directory);
	}
	echo '</table>
</form>
';
	html_footer();
}
Beispiel #3
0
function listing_page($message = null)
{
    global $self, $directory, $sort, $reverse;
    html_header();
    $list = getlist($directory);
    if (array_key_exists('sort', $_GET)) {
        $sort = $_GET['sort'];
    } else {
        $sort = 'filename';
    }
    if (array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') {
        $reverse = true;
    } else {
        $reverse = false;
    }
    $list = sortlist($list, $sort, $reverse);
    echo '<h1 style="margin-bottom: 0">Web File Browser (webadmin.php)</h1>

<form enctype="multipart/form-data" action="' . $self . '" method="post">

<table id="main">
';
    directory_choice();
    if (!empty($message)) {
        spacer();
        echo $message;
    }
    if (@is_writable($directory)) {
        upload_box();
        create_box();
    } else {
        spacer();
    }
    if ($list) {
        listing($list);
    } else {
        echo error('not_readable', $directory);
    }
    echo '</table>

</form>

';
    html_footer();
}