コード例 #1
0
    return '';
}
function GetAction()
{
    global $argv;
    if (isset($_GET['action'])) {
        $sAction = $_GET['action'];
        return ' ' . $sAction;
    } elseif (isset($argv[2])) {
        $sAction = $argv[2];
        return ' ' . $sAction;
    }
    return '';
}
$iJobId = GetUserSpecifiedJobId();
$sAction = GetAction();
function disable_ob()
{
    // Turn off output buffering
    ini_set('output_buffering', 'off');
    // Turn off PHP output compression
    ini_set('zlib.output_compression', false);
    // Implicitly flush the buffer(s)
    ini_set('implicit_flush', true);
    ob_implicit_flush(true);
    // Clear, and turn off output buffering
    while (ob_get_level() > 0) {
        // Get the curent level
        $level = ob_get_level();
        // End the buffering
        ob_end_clean();
コード例 #2
0
ファイル: UserForms.php プロジェクト: JFeakes/IFB299
<!-- n8498415 Jayden Whiley -->
<!-- Manage User forms -->
	<div class="EnquireBox">
		<?php 
//Don't show enquiry form if the user has already submitted one
$action = GetAction();
if ($action == "Enquired") {
    echo "<h1> Thankyou for your enquiry </h1>";
} else {
    ?>
		<h2> Enquire </h2>
		<form action='Actions.php' method='get'>	
		Please write your Enquiry Below. One of our staff members will email you shortly.
		<input type="hidden" name="Action" value="Enquire">
		<input type="hidden" name="HouseID" value="<?php 
    echo $house->ID;
    ?>
">
		<textarea name='InquireText' cols='70' rows='5'></textarea>
		<?php 
    if (LoggedIn()) {
        echo "<input type='submit' value='Submit Enquiry'>";
    } else {
        echo "<h3> Please Login to Submit Enquiry";
    }
    ?>
		</form>
		<?php 
}
?>
	</div>