예제 #1
0
        <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();
?>