function cache_it($pth, $html) { $pth = trim($pth, '/'); $dir = dirname($pth); $t = 'cache/'; foreach (explode('/', $dir) as $v) { $t .= $v . '/'; mkd($t); } file_put_contents('cache/' . $pth . '.html', $html); chmod('cache/' . $pth . '.html', 0775); }
echo p($_ . $_lang['checking_if_images_writable']); } } } if (!is_dir("{$base_path}temp")) { echo p(echo_failed() . $_lang['checking_if_temp_exists']); $errors += 1; } // cache writable? if (!is_writable("{$base_path}temp")) { $_ = echo_failed(); $errors += 1; } else { $_ = echo_ok(); mkd("{$base_path}temp/export"); mkd("{$base_path}temp/backup"); if (is_dir("{$base_path}temp/backup")) { @file_put_contents("{$base_path}temp/backup/.htaccess", "order deny,allow\ndeny from all"); } } echo p($_ . $_lang['checking_if_temp_writable']); if (is_writable("{$base_path}temp")) { // export exists? if (!is_dir("{$base_path}temp/export")) { echo p(echo_failed() . $_lang['checking_if_export_exists']); $errors += 1; } // export writable? if (!is_writable("{$base_path}temp/export")) { $_ = echo_failed(); $errors += 1;
<h1>Liens</h1> <div class='section'> <?php echo mkd($lemon->file_content()); ?> </div>
</h2> </li> </ul> <? if(!empty($infos) || !empty($news)): ?> <div id='home'> <? if(!empty($infos)): ?> <p id='about'> <?php echo nl2br($infos); ?> </p> <? endif; ?> <? if(!empty($news)): ?> <div id='news'> <?php echo mkd($news); ?> </div> <? endif; ?> </div> <? endif; ?> </div> <div id='content'> <?php echo $content; ?> </div> <script type="text/javascript">
<h1><?php echo $page_title; ?> </h1> <?php echo html_pages_nav($lemon); ?> <div class='section cms-content info'> <?php echo mkd($description); ?> </div>