예제 #1
0
		-[ Created by ©Nomsoft
		  `-[ Original core by Anthony (Aka. CraftedDev)

				-CraftedWeb Generation II-                  
			 __                           __ _   							   
		  /\ \ \___  _ __ ___  ___  ___  / _| |_ 							   
		 /  \/ / _ \| '_ ` _ \/ __|/ _ \| |_| __|							   
		/ /\  / (_) | | | | | \__ \ (_) |  _| |_ 							   
		\_\ \/ \___/|_| |_| |_|___/\___/|_|  \__|	- www.Nomsoftware.com -	   
                  The policy of Nomsoftware states: Releasing our software   
                  or any other files are protected. You cannot re-release    
                  anywhere unless you were given permission.                 
                  © Nomsoftware 'Nomsoft' 2011-2012. All rights reserved.  */
require 'includes/classes/template_parse.php';
connect::selectDB('webdb');
$getTemplate = mysql_query("SELECT path FROM template WHERE applied='1' ORDER BY id ASC LIMIT 1");
$row = mysql_fetch_assoc($getTemplate);
$template['path'] = $row['path'];
if (!file_exists("styles/" . $template['path'] . "/style.css") || !file_exists("styles/" . $template['path'] . "/template.html")) {
    buildError("<b>Template Error: </b>The active template does not exist or missing files.", NULL);
    exit_page();
}
?>
<link rel="stylesheet" href="styles/<?php 
echo $template['path'];
?>
/style.css" />
<link rel="stylesheet" href="styles/global/style.css" />
<?php 
plugins::load('styles');
예제 #2
0
    ?>
	<script type="text/javascript">
		$(document).ready(function() {
				var box_width_one = $(".box_one").width();
				$("#fb").attr('width', box_width_one);
		});
	</script>
<?php 
}
####SERVER STATUS######
if ($GLOBALS['serverStatus']['enable'] == true) {
    ?>
	<script type="text/javascript">
        $(document).ready(function() {
            $.post("includes/scripts/misc.php", { serverStatus: true },
               function(data) {
                   $("#server_status").html(data);
                   $(".srv_status_po").hover(function() {
                        $(".srv_status_text").fadeIn("fast");
                         }, function() {
                        $(".srv_status_text").fadeOut("fast");
                        });
          });
        });
    </script>
<?php 
}
plugins::load('javascript');
?>

예제 #3
0
/*
            _____           ____
           |   __|_____ _ _|    \ ___ _ _ ___
           |   __|     | | |  |  | -_| | |_ -|
           |_____|_|_|_|___|____/|___|\_/|___|
    Copyright (C) 2013 EmuDevs <http://www.emudevs.com/>
*/
connect::selectDB('webdb');
$pages = scandir('pages');
unset($pages[0], $pages[1]);
$page = mysql_real_escape_string($_GET['p']);
if (!isset($page)) {
    include 'pages/home.php';
} elseif (isset($_SESSION['loaded_plugins_pages']) && $GLOBALS['enablePlugins'] == true && !in_array($page . '.php', $pages)) {
    plugins::load('pages');
} elseif (in_array($page . '.php', $pages)) {
    $result = mysql_query("SELECT COUNT(filename) FROM disabled_pages WHERE filename='" . $page . "'");
    if (mysql_result($result, 0) == 0) {
        include 'pages/' . $page . '.php';
    } else {
        include 'pages/404.php';
    }
} else {
    $result = mysql_query("SELECT * FROM custom_pages WHERE filename='" . $page . "'");
    if (mysql_num_rows($result) > 0) {
        $check = mysql_query("SELECT COUNT(filename) FROM disabled_pages WHERE filename='" . $page . "'");
        if (mysql_result($check, 0) == 0) {
            $row = mysql_fetch_assoc($result);
            echo html_entity_decode($row['content']);
        }