Esempio n. 1
0
        case 417:
            return "Expectation Failed";
        case 500:
            return "Internal Server Error";
        case 501:
            return "Not Implemented";
        case 502:
            return "Bad Gateway";
        case 503:
            return "Service Unavailable";
        case 504:
            return "Gateway Time-out";
        case 505:
            return "HTTP Version not supported";
    }
    return 'Unknown';
}
$PAGE = http_response_code();
$path = InsertHeader('Error');
?>
<div class="box box-full"><h2>HTTP Status: <?php 
echo $PAGE;
?>
</h2><p class="center"><?php 
echo status2Name($PAGE);
?>
</p></div><?php 
Footer($path);
?>
</body></html>
Esempio n. 2
0
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>About Galaxy</title>
	<link rel="stylesheet" href="/resources/css/global.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/headings.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/navigation.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<link rel="stylesheet" href="/resources/css/footer.css" type="text/css" media="screen" title="no title" charset="utf-8">
	<?php 
echo $page->javascript();
?>
	<?php 
echo $page->css();
?>
</head>
<body>
<?php 
Navigation('about');
?>
<div id="content">
	<h1>About Galaxy</h1>
</div>
<?php 
Footer();
?>
</body>
</html>
	
Esempio n. 3
0
<?php

if ($Printer < 2) {
    Print_Message("Error", "The Printing feature is disabled<br/>The Printer option (in <code>" . getcwd() . "/config.php</code> on line 12) needs to be set to 2 or 3 to use this page.", "center");
    Footer('');
    die('');
}
function convertPHPSizeToBytes($sSize)
{
    // http://stackoverflow.com/questions/13076480/php-get-actual-maximum-upload-size
    if (is_numeric($sSize)) {
        return $sSize;
    }
    $sSuffix = substr($sSize, -1);
    $iValue = substr($sSize, 0, -1);
    switch (strtoupper($sSuffix)) {
        case 'P':
            $iValue *= 1024;
        case 'T':
            $iValue *= 1024;
        case 'G':
            $iValue *= 1024;
        case 'M':
            $iValue *= 1024;
        case 'K':
            $iValue *= 1024;
            break;
    }
    return $iValue;
}
function getMaximumFileUploadSize()