1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-05 04:37:51 +02:00

General Core Improvments

This commit is contained in:
Awilum
2012-11-06 17:19:30 +02:00
parent ead5e92524
commit 159582fe0e
11 changed files with 476 additions and 89 deletions

View File

@@ -4,4 +4,4 @@
* Set meta generator
*/
Action::add('theme_header', 'setMetaGenerator');
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.MONSTRA_VERSION.'" />'; }
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Core::VERSION.'" />'; }

View File

@@ -5,32 +5,6 @@
* Monstra CMS Defines
*/
/**
* Set gzip output
*/
define('MONSTRA_GZIP', false);
/**
* Set gzip styles
*/
define('MONSTRA_GZIP_STYLES', false);
/**
* Set Monstra version
*/
define('MONSTRA_VERSION', '2.0.1');
/**
* Set Monstra version id
*/
define('MONSTRA_VERSION_ID', 20001);
/**
* Set Monstra site url
*/
define('MONSTRA_SITEURL', 'http://monstra.org');
/**
* The filesystem path to the 'monstra' folder
*/
@@ -109,11 +83,6 @@
* The filesystem path to the 'uploads' folder
*/
define('UPLOADS', ROOT . DS . 'public' . DS . 'uploads');
/**
* Set login sleep value
*/
define('MONSTRA_LOGIN_SLEEP', 1);
/**
* Set password salt
@@ -136,9 +105,9 @@
define('CHECK_MONSTRA_VERSION', true);
/**
* Monstra CMS mobile detection
* Set gzip output
*/
define('MONSTRA_MOBILE', true);
define('MONSTRA_GZIP', false);
/**
* Monstra database settings

View File

@@ -0,0 +1,8 @@
<?php
/**
* Add new shortcode {siteurl}
*/
Shortcode::add('siteurl', 'returnSiteUrl');
function returnSiteUrl() { return Option::get('siteurl'); }