Beispiel #1
0
    $content = trim(htmlspecialchars($content));
    $path = 'pages/' . $page . '.tm2';
    $file = fopen($path, "w") or die("Can't access file!");
    fwrite($file, $content);
    fclose($file);
    die('Post successful! Refreshing!<meta http-equiv="refresh" content="0;url="">');
}
/* Main execution starts here */
if (!file_exists('config.php')) {
    die('Config file doesn\'t exist. Did you rename the example file?');
}
include 'config.php';
if (!$enabled) {
    die('Wiki is not currently enabled. You can change this in the config file.');
}
if (isset($_GET["page"])) {
    $page = ucfirst($_GET["page"]);
} else {
    $page = $mainpage;
}
if (isset($_GET["mode"]) && $_GET["mode"] == "edit") {
    $edit = true;
} else {
    $edit = false;
}
makeheader($page, $name);
makepage($page, $edit);
if (isset($_POST['send'])) {
    post($page, $_POST['content'], $_POST['captcha']);
}
makefooter($page, $edit);
                    </td>
                    <td class="td4"><?php 
    echo $meeting['time_length'];
    ?>
Min</td>
                    <td class="td5">
                    <?php 
    if (strtotime($meeting['end_time']) > time()) {
        ?>
                    	<button type="button" class="btn btnBlueSm mg-r10" onclick='enter_meeting(<?php 
        echo $meeting['id'];
        ?>
)'>进入</button>
                    <?php 
    }
    ?>
                    </td>
                  </tr>
                  <?php 
}
?>
                </table>
            </div>
        </div>
    </div>
    <div class='pageBox'>
<?php 
echo makepage($page, $total, '', 10);
?>
</div>
Beispiel #3
0
<html>
<head>
	<style>
	* { target-new: tab ! important }
	a {color: blue };
	</style>
</head>
<body>
<?php 
if (isset($_REQUEST['client'])) {
    makepage($_REQUEST['client']);
} else {
    echo "NO CLIENT SELECTED!";
}
function makepage($PageName)
{
    switch ($PageName) {
        case 'BRISTOL':
        case 'brien':
            echo "<p style='text-align: right;'>BRISTOL</p>";
            pageadd('Abandoned Vehicle', 'http://www.bristol.gov.uk/abandoned-vehicle-reporting-system');
            pageadd('2.1 Flytipping', 'https://www.bristol.gov.uk/forms/fly-tipping#step1');
            pageadd('2.2.1 Graffiti', 'https://www.bristol.gov.uk/forms/graffiti-fly-posting#step1');
            pageadd('2.2.2 Flyposting', 'https://www.bristol.gov.uk/forms/graffiti-fly-posting#step1');
            pageadd('2.3.1  Dog Fouling', 'https://www.bristol.gov.uk/forms/street-cleansing#step1');
            pageadd('2.3.2 Bin not emptied', 'https://www.bristol.gov.uk/forms/street-cleansing#step1');
            pageadd('2.4.1 Dead animals', 'https://www.bristol.gov.uk/forms/street-cleansing#step1');
            pageadd('2.5 Sex and Drugs litter', 'https://www.bristol.gov.uk/forms/street-cleansing#step1');
            pageadd('2.6 Abandoned/Untaxed Vehicles (OOH only)', 'http://www.bristol.gov.uk/abandoned-vehicle-reporting-system');
            pageadd('2.8 Other street cleansing issues_Litter or overflowing litter binsglass or broken glass
			_blood_Human excrement or vomit_Fuel, oil and chemicals_Wet paint,_Dry paint_Leaves or blossom