Пример #1
0
        </td>
    </tr>
    <tr>
        <td>Anyone can register</td>
        <td><input type="checkbox" id="register"/></td>
    </tr>
    <tr>
        <td>Comments need to be approved</td>
        <td><input type="checkbox" id="approvecomments"/></td>
    </tr>
    <tr>
        <td>Favicon</td>
        <td>
            <img
                src="<?php 
echo Setting::getList("SitePath") == null ? "" : Setting::getList("SitePath")->getValue();
?>
/favicon.ico"
                width="25px" style="border:1px gray solid;"/>
            <input type="file" id="favicon"/>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <button>Save</button>
        </td>
    </tr>
    <tr>
        <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
Пример #2
0
<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    define('Breezed', 1);
}
require 'core.php';
if (Database::connect() == null) {
    echo "Please install the cms with the <a href=\"install.php\">install.php</a> file";
    exit;
}
?>
<!DOCTYPE html>
<html>
<?php 
$headers = array();
array_push($headers, "<script src=\"http://code.jquery.com/jquery-2.1.4.js\"></script>");
require "templates/" . Setting::getList("template")->getValue() . "/archives.php";
?>

</html>
<?php 
Пример #3
0
<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    define('Breezed', 1);
}
require 'core.php';
if (Database::connect() == null) {
    echo "Please install the cms with the <a href=\"install.php\">install.php</a> file";
    exit;
}
if (Setting::getList("IndexPage") == null || Setting::getList("IndexPage")->getValue() < 0) {
    header("Location: index.php");
}
?>
<!DOCTYPE html>
<html>
<?php 
$headers = array();
array_push($headers, "<script src=\"http://code.jquery.com/jquery-2.1.4.js\"></script>");
require "templates/" . Setting::getList("template")->getValue() . "/index.php";
?>

</html>
<?php 
Пример #4
0
echo Setting::getList("SiteTitle")->getValue() . " || Admin panel || " . $page;
?>
</title>
    <link rel="shortcut icon" href="../favicon.ico"/>
    <link rel="stylesheet" href="http://bgrins.github.com/spectrum/spectrum.css"/>
    <link rel="stylesheet" href="css/style.css"/>
    <link rel="stylesheet" href="css/editor.css"/>
    <script src="http://code.jquery.com/jquery-2.1.4.js"></script>
    <script src="http://bgrins.github.com/spectrum/spectrum.js"></script>
    <script src="js/script.js"></script>
</head>
<body>
<div id="menu">
    <a href="../" class="menu-item" id="return">
        <?php 
echo Setting::getList("SiteTitle")->getValue();
?>
    </a>
    <!-- .menu-item #return -->
    <a href="<?php 
echo $_SESSION['userdata']->hasPermission("dashboard") ? "#dashboard" : "#setting_acc";
?>
"
       class="menu-item" id="dashboard">
        <?php 
echo $_SESSION['userdata']->hasPermission("dashboard") ? "Dashboard" : "Account Settings";
?>
    </a>
    <!-- .menu-item #dashboard -->
    <?php 
if ($_SESSION['userdata']->hasPermission("pages")) {
Пример #5
0
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }

        @-moz-keyframes blink {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }
    </style>
</head>
<body>
<a href="<?php 
echo Setting::getList("SitePath")->getvalue();
?>
/index.php">Homepage</a>
<span id="text"></span>
</body>
</html><?php 
Пример #6
0
 /**
  * @codeCoverageIgnore
  */
 function delete()
 {
     if (!isset($_SESSION['userdata']) || empty($_SESSION['userdata']) || !$_SESSION['userdata']->hasPermission("pages")) {
         throw new BreezedException("Insufficient permissions");
     }
     $db = Database::connect();
     // Delete sub pages first
     foreach (Page::getList($this->ID) as $page) {
         $page->delete();
     }
     // Update position for each page underneath the current one, in the same category
     foreach (Page::getList($this->parentPage) as $page) {
         // Continue when current page is not a subpage, but the one being checked is
         if ($this->parentPage == null && $page->getParent() != null) {
             continue;
         }
         if ($page->getPosition() > $this->position) {
             mysqli_query($db, "UPDATE " . Database::PREFIX() . "pageposition SET Position = Position - 1 WHERE PageID=" . mysqli_real_escape_string($db, $this->ID));
         }
     }
     mysqli_query($db, "DELETE FROM " . Database::PREFIX() . "Media WHERE ID=" . mysqli_real_escape_string($db, $this->ID));
     if (Setting::getList("IndexPage") != null && Setting::getList("IndexPage")->getValue() == $this->ID) {
         Setting::setSetting("IndexPage", null);
     }
 }
Пример #7
0
<?php

namespace nl\colinrosen\breezed;

if (!defined('Breezed')) {
    echo "You aren't allowed to view this page!";
    exit;
}
$page['title'] = "Page";
array_push($headers, "<script src=\"templates/default/script.js\"></script>");
require 'header.php';
// Redirect to index page, if this page is supposed to be the index page
if (strtolower(substr($_SERVER['SCRIPT_NAME'], -9)) != "index.php" && Setting::getList("IndexPage") != null && Setting::getList("IndexPage")->getValue() == $_GET['id']) {
    header("Location: index.php");
}
//region check id
// Check if id is set
if (!isset($_GET['id']) || empty($_GET['id']) || !is_numeric($_GET['id'])) {
    header("Location: error.php?id=1");
    exit;
}
// Get page object
$page = null;
foreach (Page::getList() as $p) {
    if ($p->getID() == $_GET['id']) {
        $page = $p;
        break;
    }
}
if ($page == null) {
    header("Location: error.php?id=2");