コード例 #1
0
ファイル: install.php プロジェクト: booko/pasteque-server
        <option value="luxembourg">Luxembourg</option>
        <option value="united_kingdom">United Kingdom</option>
    </select>
    <?php 
    \Pasteque\form_send();
    ?>
</form>
<?php 
    tpl_close();
}
function show_downgrade($dbVer)
{
    tpl_open();
    ?>
<h1>Incompatible version</h1>
<p>Please update your server.</p>
<?php 
    tpl_close();
}
$dbVer = Installer::getVersion();
switch (Installer::checkVersion($dbVer)) {
    case Installer::NEED_DB_UPGRADE:
        show_update($dbVer);
        die;
    case Installer::NEED_DB_DOWNGRADE:
        show_dowgrade($dbVer);
        die;
    case Installer::DB_NOT_INSTALLED:
        show_install();
        die;
}
コード例 #2
0
ファイル: index.php プロジェクト: cadu8280/Cakebox
<body>
        <!-- HEADER -->
        <header>
		    <div id="logo">
				<a href="index.php">
					<span class="first">Cake</span>
					<span class="second">Box</span>
				</a>
		    </div>
        </header>
        <!-- / HEADER -->

        <?php 
// Verify if Cakebox is up to date
if ($update_info = check_update()) {
    show_update($update_info);
}
// Show a message after an update
if (isset($_GET['update_done'])) {
    show_update_done();
}
?>


        <!-- CONTENT -->
        <section id="content">

			<?php 
// Test chmod of main directories
check_dir();
?>