Exemple #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;
    }
*/
include '../web/header.php';
$status = "";
$CUSTOM = custom::instance();
$hasPerm = $CUSTOM->isUserCollectionOwner();
if ($hasPerm) {
    testArgs();
}
header('Content-type: text/html; charset=UTF-8');
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php 
$header = new LitHeader("Update OAI and Clear OAI Cache");
$header->litPageHeader();
?>
</head>

<body>
<?php 
$header->litHeaderAuth(array(), $hasPerm);
?>
<div id="formMetadata">
<form method="POST" action="" onsubmit="jobQueue();return true;" enctype="multipart/form-data" >
<div id="status"><?php 
echo $status;
?>
</div>
<fieldset class="mapfile">
Exemple #3
0
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
include 'header.php';
$handleContext = "";
//or xmlui
$CUSTOM = custom::instance();
$root = $CUSTOM->getRoot();
$qroot = $CUSTOM->getQueueRoot();
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php 
$header = new LitHeader("Job Queue");
$header->litPageHeader();
?>
</head>
<body>
<?php 
$header->litHeader(array());
// open this directory
$myDirectory = opendir($qroot);
// get each entry
while ($entryName = readdir($myDirectory)) {
    $dirArray[] = $entryName;
}
// close directory
closedir($myDirectory);
//	count elements in array
$root = $CUSTOM->getRoot();
$qroot = $CUSTOM->getQueueRoot();
$fname = util::getArg("name", "");
$fname2 = $fname;
if (preg_match("/^job\\.[0-9a-zA-Z\\._\\-:]+\\.txt\$/", $fname) == 0) {
    $fname = "";
}
if (!file_exists($qroot . $fname)) {
    $fname = str_replace("running.txt", "complete.txt", $fname);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<?php 
$header = new LitHeader("Job Status " . $fname);
$header->litPageHeader();
?>
</head>
<body>
<?php 
$header->litHeader(array("<a href='queue.php'>Job Queue</a>"));
if ($fname != "") {
    echo "<pre>";
    echo file_get_contents($qroot . $fname);
    echo "</pre>";
} else {
    if ($fname2 != "") {
        echo "Illegal file name: " . $fname2;
    }
}