Example #1
0
?>
</title>
		<description><?php 
echo ae_Settings::get('blog_description');
?>
</description>
	<?php 
if ($image !== FALSE) {
    ?>
		<image>
			<url><?php 
    echo $image;
    ?>
</url>
			<title><?php 
    echo ae_Settings::get('blog_title');
    ?>
</title>
			<link><?php 
    echo URL;
    ?>
</link>
		</image>
	<?php 
}
?>
		<pubDate><?php 
echo date('D, d M Y H:i:s O');
?>
</pubDate>
		<link><?php 
Example #2
0
if (ini_get('register_globals')) {
    ini_set('register_globals', 0);
}
// URL constant
$protocol = 'http://';
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
    $protocol = 'https://';
}
$url = $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$url = explode('/', $url);
array_pop($url);
if (defined('IS_RSS')) {
    array_pop($url);
}
$url = $protocol . implode('/', $url) . '/';
define('URL', $url);
unset($url);
// Initialize some needed classes
ae_Timer::start('total');
ae_Log::init($logSettings);
if (ae_Database::connect($dbSettings) === FALSE) {
    $path = 'themes/error-msg-db.php';
    $path = file_exists($path) ? $path : '../' . $path;
    include $path;
    exit;
}
ae_Security::init($securitySettings);
ae_Settings::load();
// Constants used in themes and the RSS feed
define('THEME', ae_Settings::get('theme'));
define('THEME_PATH', URL . 'themes/' . THEME . '/');
Example #3
0
	<?php 
    $themes = ae_Settings::getListOfThemes('../themes/');
    ?>

	<div class="setting">
		<label for="set-blog-title">Blog title</label>
		<input type="text" name="blog-title" id="set-blog-title" placeholder="Blog title" value="<?php 
    echo ae_Settings::get('blog_title');
    ?>
" />
	</div>

	<div class="setting">
		<label for="set-blog-description">Blog description</label>
		<input type="text" name="blog-description" id="set-blog-description" placeholder="Blog description" value="<?php 
    echo ae_Settings::get('blog_description');
    ?>
" />
	</div>

	<div class="setting">
		<label for="set-theme">Blog theme</label>
		<select name="theme">
		<?php 
    foreach ($themes as $t) {
        ?>
			<?php 
        $t = htmlspecialchars($t);
        ?>
			<option value="<?php 
        echo $t;
Example #4
0
<?php

$title = ae_Settings::get('blog_title');
if (ae_Permalink::isPost()) {
    $post = ae_Permalink::getPostModel();
    if ($post === FALSE) {
        $content = '404';
        $title = '404 | ' . $title;
    } else {
        $content = 'single-post';
        $title = htmlspecialchars($post->getTitle()) . ' | ' . $title;
    }
} else {
    if (ae_Permalink::isPage()) {
        $page = ae_Permalink::getPageModel();
        if ($page === FALSE) {
            $content = '404';
            $title = '404 | ' . $title;
        } else {
            $content = 'single-page';
            $title = htmlspecialchars($page->getTitle()) . ' | ' . $title;
        }
    } else {
        if (isset($_GET[PERMALINK_GET_SEARCH])) {
            $content = 'search';
        } else {
            $content = 'all-posts';
        }
    }
}
// HTTP 404: Not found