Пример #1
0
<?php

require_once "vars.php";
if (is_dir(abspath . "/includes/resources")) {
    include_once abspath . "/includes/resources/functions.php";
    include_once abspath . "/includes/resources/resources.php";
}
include_once abspath . "/includes/functions.php";
include_once abspath . "/includes/plugin.php";
include_once abspath . "/includes/page.php";
// Multisite, requires udb
if (is_udb() and is_multisite() and file_exists(abspath . "/includes/ms")) {
    require_once abspath . "/includes/ms/functions.php";
}
// uDB Functions
if (is_udb() and file_exists(abspath . "/includes/resources/sqlcream/functions.php")) {
    require_once abspath . "/includes/resources/sqlcream/functions.php";
} else {
    require_once abspath . "/includes/noudb.php";
}
if (file_exists(abspath . "/themes/" . $theme . "/functions.php")) {
    include_once abspath . "/themes/" . $theme . "/functions.php";
}
if (empty($_GET["p"])) {
    if (file_exists(abspath . "/themes/" . $theme . "/home.php")) {
        include_once abspath . "/themes/" . $theme . "/home.php";
    } elseif (file_exists(abspath . "/pages/start.php")) {
        include_once $path . "/pages/start.php";
    } elseif (file_exists(abspath . "/themes/" . $theme . "/index.php")) {
        include_once abspath . "/themes/" . $theme . "/index.php";
    } else {
Пример #2
0
</div>
<div id="footer">
Using <?php 
if (is_udb()) {
    echo "OC-WSS-uDB";
} else {
    echo "OC-WSS";
}
?>
 version <?php 
echo clrfver(get_blog_stuff("version"));
?>
 and PHP version <?php 
echo clrfver(phpversion());
hook("befooter");
?>
Programmed by <a href="http://twitter.com/densnallakillen">densnallakillen</a>
</div>
</body>
</html>
Пример #3
0
$page = preg_replace('/\\.\\w+$/', '', basename($_SERVER["PHP_SELF"]));
$is_admin = TRUE;
$posttypes = array("plugins", "themes", "posts", "users", "pages", "uploads");
// includes
include_once abspath . "/includes/functions.php";
// includes
if (is_dir(abspath . "/includes/resources/")) {
    include_once abspath . "/includes/resources/resources.php";
    include_once abspath . "/includes/resources/functions.php";
}
// Multisite, requires udb
if (is_udb() and is_multisite() and file_exists(abspath . "/includes/ms")) {
    require_once abspath . "/includes/ms/functions.php";
}
// uDB Functions
if (is_udb() and file_exists(abspath . "/includes/resources/sqlcream")) {
    require_once abspath . "/includes/resources/sqlcream/functions.php";
} else {
    require_once abspath . "/includes/noudb.php";
}
// stuff
hook("behead");
get_css_design();
?>
<script src="<?php 
echo url;
?>
/includes/resources/userbar/userbar.js"></script>
<script src="<?php 
echo get_blog_stuff("url");
?>