Ben bir İçerik Yönetim Sistemi üzerinde çalışıyor, ve şimdiye kadar çok iyi değilim.
I'm trying to get the system to work with a maintenance mode system. This is the code in the script to display the maintenance stuff:
if ($maintenance['value'] == "1") {?>
<div id="content">
<div id="errmsg">
<?php echo $maintenance['notes']; ?>
</div>
</div>
<? } else {?>
<h1><?php echo $title; ?></h1>
<hr /><br />
<div id="content">
<?php echo $contents;
if (!$content) {
include ('includes/error/404.php');}?>
</div>
<? } ?>
Ben $ bakım ['değer'] değişkeni olması gerektiği gibi çalıştığını doğrulamak, ancak komut o bu kısmı olması gerektiği gibi çalışmıyor. Değer şu anda 1 ayarlı, ama yine de else şeyler görüntüler.
Herhangi bir fikir?