Exemple #1
0
function displayNotAcceptable($checkenv)
{
    displayHeader();
    $warning_text = "<table class='table table-striped'>";
    if (stripos($_SERVER['REQUEST_URI'], "install.php?check") !== false) {
        ?>
<h2>System Check</h2><?php 
        $warning_text .= "<tr><td colspan='2'><b>SYSTEM CHECK for " . _ws_version() . "</b></td></tr>";
        $warning_text .= "<tr><td colspan='2'>The chart below shows the results of the system check and if upgrades have been performed.</td></td>";
        //For 2.1.x upgrade, have the upgrades been run?
        if (stripos($_SERVER['REQUEST_URI'], "install.php?check") !== false) {
            //$checkenv = array_merge($checkenv, xls_check_upgrades());
            $checkenv = array_merge($checkenv, xls_check_file_signatures());
        }
    } else {
        ?>
		<h2>Error</h2>
		<div class="hero-unit">
			<p>Oops, we've detected a problem with your environment that will conflict with Web Store. The environment check results are shown below. Anything that has failed will need to be addressed, then just refresh this page.</p>
		</div>
		<?php 
        $warning_text .= "<tr><td colspan='2'><b>CANNOT INSTALL</b></td></tr>";
        $warning_text .= "<tr><td colspan='2'>There are issues with your PHP environment which need to be fixed before you can install WebStore. Please check the chart below for required changes to your PHP installation which must be changed, and subdirectories which you need to make writeable. (Making php.ini changes on a web hosting service will vary by company. Please consult their technical support for exact instructions.)</td></td>";
    }
    $warning_text .= "<tr><td colspan='2'><hr></td></tr>";
    $curver = _ws_version();
    foreach ($checkenv as $key => $value) {
        $warning_text .= "<tr><td>{$key}</td><td>" . ($value == "pass" || $value == $curver ? "{$value}" : "<font color='#cc0000'><b>{$value}</b></font>") . "</td>";
    }
    $warning_text .= "</table>";
    ?>
	<div>
		<?php 
    echo $warning_text;
    ?>
	</div>
	<p>&nbsp;</p>
	<?php 
    displayFooter();
}
Exemple #2
0
function displaySystemCheckResult($checkenv)
{
    $warning_text = "<table id='header' class='table table-striped'>";
    ?>
<h2>System Check</h2><?php 
    $warning_text .= "<tr><td colspan='2'><b>SYSTEM CHECK for " . _ws_version() . "</b></td></tr>";
    $warning_text .= "<tr><td colspan='2'>The chart below shows the results of the system check and if upgrades have been performed.</td></tr></table>";
    $warning_text .= "<table id='checklist' class='table table-striped'>";
    $checkenv = array_merge($checkenv, xls_check_file_signatures());
    $warning_text .= "<tr><td colspan='2'><hr></td></tr>";
    $curver = _ws_version();
    foreach ($checkenv as $key => $value) {
        $warning_text .= "<tr><td>{$key}</td><td>" . ($value == "pass" || $value == $curver ? "{$value}" : "<font color='#cc0000'><b>{$value}</b></font>") . "</td></tr>";
    }
    $warning_text .= "</table>";
    ?>




	<div>
		<?php 
    echo $warning_text;
    ?>
	</div>
	<p>&nbsp;</p>
	</div>
	</body>

	<?php 
}
function displaySystemCheckResult($check, $tableId)
{
    $warning_text = "<table id=" . $tableId . " class='table table-striped'>";
    $curver = _ws_version();
    foreach ($check as $key => $value) {
        $warning_text .= "<tr><td>{$key}</td><td>" . ($value == "pass" || $value == $curver ? "{$value}" : "<font color='#cc0000'><b>{$value}</b></font>") . "</td></tr>";
    }
    $warning_text .= "</table>";
    ?>

	<div>
		<?php 
    echo $warning_text;
    ?>
	</div>
	<p>&nbsp;</p>
	</div>
	</body>

	<?php 
}