Silence is golden

This commit is contained in:
danpros 2021-03-05 10:28:00 +07:00
commit 2460e5c6c1
90 changed files with 90 additions and 2 deletions

View file

@ -1,4 +1,5 @@
<?php
if (!defined('HTMLY')) die('HTMLy');
// Return username.ini value
function user($key, $user = null)

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html>
<html>
<head>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$type = $type;

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo site_url() ?>system/admin/editor/css/editor.css"/>
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
<script src="<?php echo site_url() ?>system/resources/js/jquery-ui.min.js"></script>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$title = config('blog.title');

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if (login()) {
if (isset($_GET['file'])) {

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php $desc = get_category_info(null); ?>
<h2>Categories</h2>
<br>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $category->title ?></h2>
<div><?php echo $category->body;?></div>
<br>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$files = array();

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Custom Settings</h2>
<br>
<nav>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
global $config_file;
$array = array();

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Performance Settings</h2>
<br>
<nav>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Reading Settings</h2>
<br>
<nav>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>Widget Settings</h2>
<br>
<nav>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2>General Settings</h2>
<br>
<nav>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2><?php echo i18n('Add_content');?></h2>
<p><a href="<?php echo site_url();?>add/content?type=post"><?php echo i18n('Regular_post')?></a><br><?php echo i18n('Regular_post_comment')?>.</p>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if (isset($_GET['destination'])) {
$destination = _h($_GET['destination']);

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if (isset($_GET['destination'])) {
$destination = _h($_GET['destination']);

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if (isset($_GET['destination'])) {
$destination = _h($_GET['destination']);

View file

@ -1 +1,2 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h1>You don't have permission to access this page</h1>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if (isset($p->file)) {
$url = $p->file;

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
if ($type == 'is_frontpage') {

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php if (isset($error)) { ?>
<div class="error-message"><?php echo $error ?></div>
<?php } ?>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<!DOCTYPE html>
<html lang="en">
<head>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<style>.error-message ul {margin:0;padding:0;}</style>
<?php if (isset($error)) { ?>
<div class="error-message"><?php echo $error ?></div>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
unset($_SESSION[config("site.url")]);

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php echo '<h2>' . i18n('Your_recent_posts') . '</h2>';?>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
$menu = '';
$filename = "content/data/menu.json";

View file

@ -1 +1,2 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h1><?php echo i18n('No_posts_found');?>!</h1>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php echo '<h2>' . i18n('Static_pages') . '</h2>';?>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>add/page">Add new page</a>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<?php
use \Kanti\HubUpdater;

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h3>Updated to<h3>
<h2>[<?php echo $info['tag_name']; ?>] <?php echo $info['name']; ?></h2>
<p><?php echo \Michelf\MarkdownExtra::defaultTransform($info['body']); ?></p>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>

View file

@ -1,3 +1,4 @@
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
<h2 class="post-index"><?php echo $heading ?></h2>
<br>
<a class="btn btn-primary right" href="<?php echo site_url();?>admin/content">Add new post</a>

View file

@ -1,4 +1,5 @@
<?php
if (!defined('HTMLY')) die('HTMLy');
// Load the configuration file
config('source', $config_file);

View file

@ -1,4 +1,5 @@
<?php
if (!defined('HTMLY')) die('HTMLy');
if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50300) {
error(500, 'dispatch requires at least PHP 5.3 to run.');
}

View file

@ -1,4 +1,5 @@
<?php
if (!defined('HTMLY')) die('HTMLy');
use \Michelf\MarkdownExtra;
use \Suin\RSSWriter\Feed;

View file

@ -1,4 +1,5 @@
<?php
if (!defined('HTMLY')) die('HTMLy');
session_start();