Esempio n. 1
0
    public static function submitPage($cmd)
    {
        $header = new LitHeader("Submit Job");
        echo <<<HERE
<html>
<head>
HERE;
        $header->litPageHeader();
        echo <<<HERE
</head>
<body>
HERE;
        $header->litHeader(array());
        echo <<<HERE
<div>{$cmd}</div>
HERE;
        $header->litFooter();
        echo <<<HERE
</body>
</html>
HERE;
        exit;
    }
<form method="POST" action="" onsubmit="jobQueue();return true;" enctype="multipart/form-data" >
<div id="status"><?php 
echo $status;
?>
</div>
<fieldset class="mapfile">
<p>Click the "Submit" button to clean OAI cache on this DSpace instance.</p>
<input name="hidden" type="hidden" value="x"/>
<p align="center">
	<input id="submit" type="submit" title="Submit Job"/>
</p>
</form>
</div>

<?php 
$header->litFooter();
?>
</body>
</html>

<?php 
function testArgs()
{
    global $status;
    $CUSTOM = custom::instance();
    $root = $CUSTOM->getRoot();
    $dspaceBatch = $CUSTOM->getDspaceBatch();
    if (count($_POST) == 0) {
        return;
    }
    $u = escapeshellarg($CUSTOM->getCurrentUser());