mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 12:48:00 +02:00
@@ -1,21 +1,21 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Admin module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @author Romanenko Sergey / Awilum [awilum@msn.com]
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
|
||||
// Main engine defines
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT', rtrim(str_replace(array('admin'), array(''), dirname(__FILE__)), '\\/'));
|
||||
|
@@ -100,7 +100,7 @@
|
||||
<span style="border-top:1px solid #E0E0E0; padding-top:10px;">
|
||||
<a href="http://forum.monstra.org" target="_blank"><?php echo __('Official Support Forum', 'system'); ?></a> /
|
||||
<a href="http://monstra.org/documentation" target="_blank"><?php echo __('Documentation', 'system'); ?></a> /
|
||||
© 2012 <a href="http://monstra.org" target="_blank">Monstra</a> – <?php echo __('Version', 'system'); ?> <?php echo Core::VERSION; ?>
|
||||
© 2012 <a href="http://monstra.org" target="_blank">Monstra</a> – <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?>
|
||||
</span>
|
||||
</p>
|
||||
</footer>
|
||||
|
@@ -109,7 +109,7 @@
|
||||
</div>
|
||||
|
||||
<div style="text-align:center">
|
||||
<span class="small-grey-text">© 2012 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> – <?php echo __('Version', 'system'); ?> <?php echo Core::VERSION; ?></span>
|
||||
<span class="small-grey-text">© 2012 <a href="http://monstra.org" class="small-grey-text" target="_blank">Monstra</a> – <?php echo __('Version', 'system'); ?> <?php echo Monstra::VERSION; ?></span>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
@@ -1,16 +1,18 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Gelato Library
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Gelato Library. More information,
|
||||
* documentation and tutorials can be found at http://gelato.monstra.org
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Gelato
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Alert
|
||||
|
@@ -1,29 +1,28 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Main Monstra Engine module.
|
||||
* Monstra Engine
|
||||
*
|
||||
* Monstra - Content Management System.
|
||||
* Site: mostra.org
|
||||
* Copyright (C) 2012 Romanenko Sergey / Awilum [awilum@msn.com]
|
||||
* Monstra - Content Management System.
|
||||
* Site: www.mostra.org
|
||||
* Copyright (C) 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* @package Monstra
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Core
|
||||
class Monstra
|
||||
{
|
||||
/**
|
||||
* An instance of the Core class
|
||||
* An instance of the Monstra class
|
||||
*
|
||||
* @var core
|
||||
*/
|
||||
@@ -47,7 +46,7 @@ class Core
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $environment = Core::PRODUCTION;
|
||||
public static $environment = Monstra::PRODUCTION;
|
||||
|
||||
/**
|
||||
* Monstra environment names
|
||||
@@ -55,10 +54,10 @@ class Core
|
||||
* @var array
|
||||
*/
|
||||
public static $environment_names = array(
|
||||
Core::PRODUCTION => 'production',
|
||||
Core::STAGING => 'staging',
|
||||
Core::TESTING => 'testing',
|
||||
Core::DEVELOPMENT => 'development',
|
||||
Monstra::PRODUCTION => 'production',
|
||||
Monstra::STAGING => 'staging',
|
||||
Monstra::TESTING => 'testing',
|
||||
Monstra::DEVELOPMENT => 'development',
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -79,7 +78,7 @@ class Core
|
||||
/**
|
||||
* Load core defines
|
||||
*/
|
||||
Core::loadDefines();
|
||||
Monstra::loadDefines();
|
||||
|
||||
/**
|
||||
* Compress HTML with gzip
|
||||
@@ -113,7 +112,7 @@ class Core
|
||||
/**
|
||||
* Set Gelato Display Errors to False for Production environment.
|
||||
*/
|
||||
if (Core::$environment == Core::PRODUCTION) {
|
||||
if (Monstra::$environment == Monstra::PRODUCTION) {
|
||||
define('GELATO_DISPLAY_ERRORS', false);
|
||||
}
|
||||
|
||||
@@ -126,7 +125,7 @@ class Core
|
||||
* Map all Monstra Classes
|
||||
*/
|
||||
ClassLoader::mapClasses(array(
|
||||
|
||||
|
||||
// Site Modules
|
||||
'Security' => ROOT . DS .'engine'. DS .'Security.php',
|
||||
'Uri' => ROOT . DS .'engine'. DS .'Uri.php',
|
||||
@@ -139,16 +138,16 @@ class Core
|
||||
'Table' => ROOT . DS .'engine'. DS .'Xmldb'. DS .'Table.php',
|
||||
|
||||
// Plugin API
|
||||
'Plugin' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Plugin.php',
|
||||
'Frontend' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Frontend.php',
|
||||
'Backend' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Backend.php',
|
||||
'Action' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Action.php',
|
||||
'Filter' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Filter.php',
|
||||
'View' => ROOT . DS .'engine'. DS .'Plugin'. DS .'View.php',
|
||||
'I18n' => ROOT . DS .'engine'. DS .'Plugin'. DS .'I18n.php',
|
||||
'Stylesheet' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Stylesheet.php',
|
||||
'Javascript' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Javascript.php',
|
||||
'Navigation' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Navigation.php',
|
||||
'Plugin' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Plugin.php',
|
||||
'Frontend' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Frontend.php',
|
||||
'Backend' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Backend.php',
|
||||
'Action' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Action.php',
|
||||
'Filter' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Filter.php',
|
||||
'View' => ROOT . DS .'engine'. DS .'Plugin'. DS .'View.php',
|
||||
'I18n' => ROOT . DS .'engine'. DS .'Plugin'. DS .'I18n.php',
|
||||
'Stylesheet' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Stylesheet.php',
|
||||
'Javascript' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Javascript.php',
|
||||
'Navigation' => ROOT . DS .'engine'. DS .'Plugin'. DS .'Navigation.php',
|
||||
|
||||
// Option API
|
||||
'Option' => ROOT . DS .'engine'. DS .'Option.php',
|
||||
@@ -175,7 +174,7 @@ class Core
|
||||
/**
|
||||
* Auto cleanup if MONSTRA_DEBUG is TRUE
|
||||
*/
|
||||
if (Core::$environment == Core::DEVELOPMENT) {
|
||||
if (Monstra::$environment == Monstra::DEVELOPMENT) {
|
||||
|
||||
// Cleanup minify
|
||||
if (count($files = File::scan(MINIFY, array('css', 'js', 'php'))) > 0) foreach ($files as $file) File::delete(MINIFY . DS . $file);
|
||||
@@ -208,7 +207,7 @@ class Core
|
||||
/**
|
||||
* Load default
|
||||
*/
|
||||
Core::loadPluggable();
|
||||
Monstra::loadPluggable();
|
||||
|
||||
/**
|
||||
* Init I18n
|
||||
@@ -237,7 +236,7 @@ class Core
|
||||
protected static function loadDefines()
|
||||
{
|
||||
$root_defines = ROOT . DS . 'boot' . DS . 'defines.php';
|
||||
$environment_defines = ROOT . DS . 'boot' . DS . Core::$environment_names[Core::$environment] . DS . 'defines.php';
|
||||
$environment_defines = ROOT . DS . 'boot' . DS . Monstra::$environment_names[Monstra::$environment] . DS . 'defines.php';
|
||||
$monstra_defines = ROOT . DS . 'engine' . DS . 'boot' . DS . 'defines.php';
|
||||
|
||||
if (file_exists($root_defines)) {
|
||||
@@ -257,7 +256,7 @@ class Core
|
||||
protected static function loadPluggable()
|
||||
{
|
||||
$root_pluggable = ROOT . DS . 'boot';
|
||||
$environment_pluggable = ROOT . DS . 'boot' . DS . Core::$environment_names[Core::$environment];
|
||||
$environment_pluggable = ROOT . DS . 'boot' . DS . Monstra::$environment_names[Monstra::$environment];
|
||||
$monstra_pluggable = ROOT . DS . 'engine' . DS . 'boot';
|
||||
|
||||
if (file_exists($root_pluggable . DS . 'filters.php')) {
|
||||
@@ -295,11 +294,11 @@ class Core
|
||||
/**
|
||||
* Initialize Monstra Engine
|
||||
*
|
||||
* @return Core
|
||||
* @return Monstra
|
||||
*/
|
||||
public static function init()
|
||||
{
|
||||
if ( ! isset(self::$instance)) self::$instance = new Core();
|
||||
if ( ! isset(self::$instance)) self::$instance = new Monstra();
|
||||
return self::$instance;
|
||||
}
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Monstra Options API module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Engine
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* @filesource
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Option
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Action class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Action
|
||||
{
|
||||
/**
|
||||
|
@@ -1,10 +1,21 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Backend class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Backend
|
||||
{
|
||||
public static function main() { }
|
||||
}
|
||||
}
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Filter class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Filter
|
||||
{
|
||||
/**
|
||||
|
@@ -1,8 +1,20 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Frontend class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Frontend
|
||||
{
|
||||
public static function main() { }
|
||||
@@ -12,4 +24,4 @@ class Frontend
|
||||
public static function template() { return 'index'; }
|
||||
public static function content() { return ''; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* I18n class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class I18n
|
||||
{
|
||||
/**
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Javascript class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Javascript
|
||||
{
|
||||
/**
|
||||
@@ -23,7 +34,6 @@ class Javascript
|
||||
// Nothing here
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add javascript
|
||||
*
|
||||
@@ -46,7 +56,6 @@ class Javascript
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Combine and load site javascript
|
||||
*/
|
||||
@@ -64,11 +73,9 @@ class Javascript
|
||||
$frontend_buffer = '';
|
||||
$frontend_regenerate = false;
|
||||
|
||||
|
||||
// Sort javascripts by priority
|
||||
$javascripts = Arr::subvalSort(Javascript::$javascripts, 'priority');
|
||||
|
||||
|
||||
if (BACKEND) {
|
||||
|
||||
// Build backend site javascript
|
||||
@@ -126,4 +133,4 @@ class Javascript
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Navigation class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Navigation
|
||||
{
|
||||
/**
|
||||
@@ -13,14 +24,12 @@ class Navigation
|
||||
*/
|
||||
public static $items = array();
|
||||
|
||||
|
||||
/**
|
||||
* Navigation types
|
||||
*/
|
||||
const LEFT = 1;
|
||||
const TOP = 2;
|
||||
|
||||
|
||||
/**
|
||||
* Add new item
|
||||
*
|
||||
@@ -51,7 +60,6 @@ class Navigation
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Draw items
|
||||
*
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Plugin class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Plugin
|
||||
{
|
||||
/**
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Stylesheet class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Stylesheet
|
||||
{
|
||||
/**
|
||||
@@ -13,7 +24,6 @@ class Stylesheet
|
||||
*/
|
||||
public static $stylesheets = array();
|
||||
|
||||
|
||||
/**
|
||||
* Protected constructor since this is a static class.
|
||||
*
|
||||
@@ -24,7 +34,6 @@ class Stylesheet
|
||||
// Nothing here
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add stylesheet
|
||||
*
|
||||
@@ -47,7 +56,6 @@ class Stylesheet
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Minify, combine and load site stylesheet
|
||||
*/
|
||||
@@ -65,7 +73,6 @@ class Stylesheet
|
||||
$frontend_buffer = '';
|
||||
$frontend_regenerate = false;
|
||||
|
||||
|
||||
// Sort stylesheets by priority
|
||||
$stylesheets = Arr::subvalSort(Stylesheet::$stylesheets, 'priority');
|
||||
|
||||
@@ -93,7 +100,6 @@ class Stylesheet
|
||||
$backend_regenerate = false;
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
// Build frontend site stylesheets
|
||||
@@ -129,7 +135,6 @@ class Stylesheet
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CSS Parser
|
||||
*/
|
||||
@@ -144,5 +149,4 @@ class Stylesheet
|
||||
$frontend_buffer);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -1,8 +1,20 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* View class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class View
|
||||
{
|
||||
/**
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Monstra Security module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Engine
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* @filesource
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Security
|
||||
|
@@ -1,36 +1,18 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Monstra Shortcodes API
|
||||
* Monstra Engine
|
||||
*
|
||||
* The Shortcode API s a simple regex based parser that allows you to replace simple bbcode-like tags
|
||||
* within a HTMLText or HTMLVarchar field when rendered into a content.
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* Examples of shortcode tags:
|
||||
* @package Monstra
|
||||
*
|
||||
* {shortcode}
|
||||
* {shortcode parameter="value"}
|
||||
* {shortcode parameter="value"}Enclosed Content{/shortcode}
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
*
|
||||
* Example of escaping shortcodes:
|
||||
*
|
||||
* {{shortcode}}
|
||||
*
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Engine
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* @filesource
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Shortcode
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Monstra Site module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Engine
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* @filesource
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Site
|
||||
@@ -221,7 +218,7 @@ class Site
|
||||
*/
|
||||
public static function powered()
|
||||
{
|
||||
return __('Powered by', 'system').' <a href="http://monstra.org" target="_blank">Monstra</a> ' . Core::VERSION;
|
||||
return __('Powered by', 'system').' <a href="http://monstra.org" target="_blank">Monstra</a> ' . Monstra::VERSION;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -1,21 +1,18 @@
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Monstra Uri module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @subpackage Engine
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* @filesource
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Uri
|
||||
|
@@ -1,10 +1,20 @@
|
||||
<?php
|
||||
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* DB Class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class DB
|
||||
{
|
||||
/**
|
||||
|
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Table class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Table
|
||||
{
|
||||
/**
|
||||
|
@@ -1,8 +1,20 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* XML class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class XML
|
||||
{
|
||||
/**
|
||||
|
@@ -17,22 +17,22 @@ if (version_compare(PHP_VERSION, "5.2.0", "<")) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Include Monstra Engine Core
|
||||
* Include Monstra Engine
|
||||
*/
|
||||
include ROOT . DS .'engine'. DS .'Core.php';
|
||||
include ROOT . DS .'engine'. DS .'Monstra.php';
|
||||
|
||||
/**
|
||||
* Set Monstra Core Environment
|
||||
* Set Monstra Environment
|
||||
*
|
||||
* Monstra has four predefined environments:
|
||||
* Core::DEVELOPMENT - The development environment.
|
||||
* Core::TESTING - The test environment.
|
||||
* Core::STAGING - The staging environment.
|
||||
* Core::PRODUCTION - The production environment.
|
||||
* Monstra::DEVELOPMENT - The development environment.
|
||||
* Monstra::TESTING - The test environment.
|
||||
* Monstra::STAGING - The staging environment.
|
||||
* Monstra::PRODUCTION - The production environment.
|
||||
*/
|
||||
Core::$environment = Core::DEVELOPMENT;
|
||||
Monstra::$environment = Monstra::DEVELOPMENT;
|
||||
|
||||
/**
|
||||
* Initialize Core
|
||||
* Initialize Monstra
|
||||
*/
|
||||
Core::init();
|
||||
Monstra::init();
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Set meta generator
|
||||
*/
|
||||
Action::add('theme_meta', 'setMetaGenerator');
|
||||
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Core::VERSION.'" />'; }
|
||||
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Monstra::VERSION.'" />'; }
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Evaluate a string as PHP code
|
||||
|
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Add new shortcode {siteurl}
|
||||
|
28
index.php
28
index.php
@@ -1,23 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Main CMS module
|
||||
* Monstra Engine
|
||||
*
|
||||
* @package Monstra
|
||||
* @author Romanenko Sergey / Awilum [awilum@msn.com]
|
||||
* @copyright 2012 Romanenko Sergey / Awilum
|
||||
* @version $Id$
|
||||
* @since 1.0.0
|
||||
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||
* Monstra is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYING.txt for copyright notices and details.
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// Main engine defines
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('ROOT', rtrim(dirname(__FILE__), '\\/'));
|
||||
@@ -28,6 +25,7 @@ define('MONSTRA_ACCESS', true);
|
||||
function byteFormat($size)
|
||||
{
|
||||
$unit = array('b', 'kb', 'mb', 'gb', 'tb', 'pb');
|
||||
|
||||
return @round($size/pow(1024, ($i=floor(log($size, 1024)))), 2).' '.$unit[$i];
|
||||
}
|
||||
$_start = memory_get_usage();
|
||||
@@ -76,4 +74,4 @@ if (file_exists('install.php')) {
|
||||
|
||||
/* TEMP CODE BEGIN */
|
||||
echo byteFormat(memory_get_usage() - $_start);
|
||||
/* TEMP CODE END */
|
||||
/* TEMP CODE END */
|
||||
|
@@ -6,11 +6,13 @@
|
||||
* This source file is part of the Gelato Library. More information,
|
||||
* documentation and tutorials can be found at http://gelato.monstra.org
|
||||
*
|
||||
* @package Gelato
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Agent
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Arr
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Cache
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class ClassLoader
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Cookie
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Curl
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Date
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Debug
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class ErrorHandler
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Dir
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class File
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Form
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -25,6 +27,13 @@ if ( ! defined('GELATO_DISPLAY_ERRORS')) {
|
||||
define('GELATO_DISPLAY_ERRORS', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Display Gelato Autoloader or not ?
|
||||
*/
|
||||
if ( ! defined('GELATO_AUTOLOADER')) {
|
||||
define('GELATO_AUTOLOADER', true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load Gelato Error Handler
|
||||
*/
|
||||
@@ -54,34 +63,36 @@ require_once __DIR__ . '/ClassLoader/ClassLoader.php';
|
||||
* Map all Gelato Classes
|
||||
*/
|
||||
ClassLoader::mapClasses(array(
|
||||
'Agent' => __DIR__.'/Agent/Agent.php',
|
||||
'Arr' => __DIR__.'/Arr/Arr.php',
|
||||
'Cache' => __DIR__.'/Cache/Cache.php',
|
||||
'Cookie' => __DIR__.'/Cookie/Cookie.php',
|
||||
'Curl' => __DIR__.'/Curl/Curl.php',
|
||||
'Date' => __DIR__.'/Date/Date.php',
|
||||
'Debug' => __DIR__.'/Debug/Debug.php',
|
||||
'File' => __DIR__.'/FileSystem/File.php',
|
||||
'Dir' => __DIR__.'/FileSystem/Dir.php',
|
||||
'Form' => __DIR__.'/Form/Form.php',
|
||||
'Html' => __DIR__.'/Html/Html.php',
|
||||
'Image' => __DIR__.'/Image/Image.php',
|
||||
'Inflector' => __DIR__.'/Inflector/Inflector.php',
|
||||
'Minify' => __DIR__.'/Minify/Minify.php',
|
||||
'Agent' => __DIR__.'/Agent/Agent.php',
|
||||
'Arr' => __DIR__.'/Arr/Arr.php',
|
||||
'Cache' => __DIR__.'/Cache/Cache.php',
|
||||
'Cookie' => __DIR__.'/Cookie/Cookie.php',
|
||||
'Curl' => __DIR__.'/Curl/Curl.php',
|
||||
'Date' => __DIR__.'/Date/Date.php',
|
||||
'Debug' => __DIR__.'/Debug/Debug.php',
|
||||
'File' => __DIR__.'/FileSystem/File.php',
|
||||
'Dir' => __DIR__.'/FileSystem/Dir.php',
|
||||
'Form' => __DIR__.'/Form/Form.php',
|
||||
'Html' => __DIR__.'/Html/Html.php',
|
||||
'Image' => __DIR__.'/Image/Image.php',
|
||||
'Inflector' => __DIR__.'/Inflector/Inflector.php',
|
||||
'Minify' => __DIR__.'/Minify/Minify.php',
|
||||
'Notification' => __DIR__.'/Notification/Notification.php',
|
||||
'Number' => __DIR__.'/Number/Number.php',
|
||||
'Registry' => __DIR__.'/Registry/Registry.php',
|
||||
'Request' => __DIR__.'/Http/Request.php',
|
||||
'Response' => __DIR__.'/Http/Response.php',
|
||||
'Token' => __DIR__.'/Security/Token.php',
|
||||
'Text' => __DIR__.'/Text/Text.php',
|
||||
'Session' => __DIR__.'/Session/Session.php',
|
||||
'Url' => __DIR__.'/Url/Url.php',
|
||||
'Valid' => __DIR__.'/Validation/Valid.php',
|
||||
'Zip' => __DIR__.'/Zip/Zip.php',
|
||||
'Number' => __DIR__.'/Number/Number.php',
|
||||
'Registry' => __DIR__.'/Registry/Registry.php',
|
||||
'Request' => __DIR__.'/Http/Request.php',
|
||||
'Response' => __DIR__.'/Http/Response.php',
|
||||
'Token' => __DIR__.'/Security/Token.php',
|
||||
'Text' => __DIR__.'/Text/Text.php',
|
||||
'Session' => __DIR__.'/Session/Session.php',
|
||||
'Url' => __DIR__.'/Url/Url.php',
|
||||
'Valid' => __DIR__.'/Validation/Valid.php',
|
||||
'Zip' => __DIR__.'/Zip/Zip.php',
|
||||
));
|
||||
|
||||
/**
|
||||
* Register Gelato Autoloader
|
||||
*/
|
||||
spl_autoload_register('ClassLoader::load');
|
||||
if (GELATO_AUTOLOADER) {
|
||||
spl_autoload_register('ClassLoader::load');
|
||||
}
|
||||
|
@@ -8,11 +8,12 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Html
|
||||
{
|
||||
/**
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Request
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Response
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Image
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Inflector
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Minify
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Notification
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Number
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Registry
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Token
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Session
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Text
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Url
|
||||
|
@@ -8,11 +8,12 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Valid
|
||||
{
|
||||
/**
|
||||
|
@@ -8,9 +8,11 @@
|
||||
*
|
||||
* @package Gelato
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum
|
||||
* @copyright (c) 2013 Romanenko Sergey / Awilum
|
||||
* @since 1.0.0
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Zip
|
||||
|
@@ -20,13 +20,12 @@
|
||||
'The configuration file has been found to be writable. We would advise you to remove all write permissions on defines.php on production systems.' =>
|
||||
'Die Konfigurationsdatei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte für defines.php auf Produktionssystemen zu entfernen.',
|
||||
'The Monstra core directory (":path") and/or files underneath it has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod -R a-w :path</code>' =>
|
||||
'Das Monstra-Core-Verzeichnis (":path") und/oder Dateien unterhalb des Verzeichnisses wurden als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod -R a-w :path</code> erledigen.',
|
||||
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Die Monstra .htaccess Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Die Monstra index.php Datei wurde als beschreibbar entdeckt. Wir empfehlen alle Schreibrechte zu entfernen. <br/>Du kannst dies auf Unix-Systemen ganz einfach mit: <code>chmod a-w :path</code> erledigen.',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Aufgrund der Art und Menge der Informationen kann ein Fehler Eindringlinge ergeben wenn Core::$environment = Core::DEVELOPMENT, wir raten dringend dazu folgendermaßen Core::PRODUCTION in Produktionssystemen einzustellen.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Aufgrund der Art und Menge der Informationen kann ein Fehler Eindringlinge ergeben wenn Monstra::$environment = Monstra::DEVELOPMENT, wir raten dringend dazu folgendermaßen Monstra::PRODUCTION in Produktionssystemen einzustellen.',
|
||||
'Monstra version' => 'Monstra version',
|
||||
'Directory Permissions' => 'Directory Berechtigungen',
|
||||
'Directory' => 'Verzeichnis',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'The Monstra .htaccess file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.',
|
||||
'Monstra version' => 'Monstra version',
|
||||
'Directory Permissions' => 'Directory Permissions',
|
||||
'Directory' => 'Directory',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'Principale file .htaccess è scrivibile. Si consiglia di rimuovere le autorizzazioni di scrittura per il file principale .htaccess. <br/> È possibile eseguire questa operazione su sistemi UNIX così: <code>chmod -R a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Principale file index.php è scrivibile. Si consiglia di rimuovere le autorizzazioni di scrittura per il file principale index.php. <br/> È possibile eseguire questa operazione su sistemi UNIX così: <code>chmod -R a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Il sistema opera con lo stato Core::DEVELOPMENT Si consiglia di impostare lo stato Core::PRODUCTION sul sito funzionante.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Il sistema opera con lo stato Monstra::DEVELOPMENT Si consiglia di impostare lo stato Monstra::PRODUCTION sul sito funzionante.',
|
||||
'Monstra version' => 'Monstra versione',
|
||||
'Directory Permissions' => 'Directory Autorizzazioni',
|
||||
'Directory' => 'Directory',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'Monstra .htaccess bylą galima perrašyti. Siūlome pašalinti visus rašymo leidimus. <br/>Tai galite padaryti Unix sistemoje su: <code>chmod a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Monstra index.php bylą galima perrašyti. Siūlome pašalinti visus rašymo leidimus. <br/>Tai galite padaryti Unix sistemoje su: <code>chmod a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Dėl įsilaužimų grėsmės atvaiduojant klaidų pranešimus Core::$environment = Core::DEVELOPMENT veiksenoje, rekomenduojame naudoti Core::PRODUCTION nustatymą nuolatinėje tinklapio veiksenoje.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Dėl įsilaužimų grėsmės atvaiduojant klaidų pranešimus Monstra::$environment = Monstra::DEVELOPMENT veiksenoje, rekomenduojame naudoti Monstra::PRODUCTION nustatymą nuolatinėje tinklapio veiksenoje.',
|
||||
'Monstra version' => 'Monstra versija',
|
||||
'Directory Permissions' => 'Katalogo teisės',
|
||||
'Directory' => 'Katalogas',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'O arquivo .htaccess da pasta de instalação do Monstra está com permissões de escrita. Para sua melhor segurança, você deve remover as permissões de escritas. <br/>Você pode fazer isso em sistemas UNIX com: <code>chmod a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'O arquivo index.php do diretório de instalação do Monstra está com permissões de escrita. Para sua melhor segurança, você deve remover as permissões de escritas. <br/>Vocês pode fazer isso em sistemas UNIX com: <code>chmod a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Devide ao tipo e quantidade de informações, um erro pode trazer possíveis intrusos se a variável Core::$environment for igual à Core::DEVELOPMENT, para isso nós recomendamos fortemente que você sete a variável para o seguinte valor: Core::PRODUCTION em sistemas de produção.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Devide ao tipo e quantidade de informações, um erro pode trazer possíveis intrusos se a variável Monstra::$environment for igual à Monstra::DEVELOPMENT, para isso nós recomendamos fortemente que você sete a variável para o seguinte valor: Monstra::PRODUCTION em sistemas de produção.',
|
||||
'Monstra version' => 'Monstra versão',
|
||||
'Directory Permissions' => 'Permissões de Diretório',
|
||||
'Directory' => 'Diretório',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'Главный .htaccess доступен для записи. Мы рекомендуем вам удалить права записи на главный .htaccess файл. <br/> Вы можете сделать это на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Главный index.php файл доступен для записи. Мы рекомендуем вам удалить права записи на главный index.php файл. <br/> Вы можете сделать это на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Система работает в режиме Core::DEVELOPMENT Мы рекомендуем вам установить режим Core::PRODUCTION на живом сайте.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Система работает в режиме Monstra::DEVELOPMENT Мы рекомендуем вам установить режим Monstra::PRODUCTION на живом сайте.',
|
||||
'Monstra version' => 'Monstra Версия',
|
||||
'Directory Permissions' => 'Права доступа',
|
||||
'Directory' => 'Каталог',
|
||||
|
@@ -25,8 +25,8 @@
|
||||
'Головный .htaccess доступен для запису. Ми рекомендуємо вам видалити права запису на головний .htaccess файл. <br/>Ви можете зробити це на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>' =>
|
||||
'Головный index.php файл доступен для запису. Ми рекомендуємо вам видалити права запису на головний index.php файл. <br/>Ви можете зробити це на UNIX системах так: <code>chmod -R a-w :path</code>',
|
||||
'Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.' =>
|
||||
'Система працює в режимі Core::DEVELOPMENT Ми рекомендуємо вам встановити режим Core::PRODUCTION на живому сайті.',
|
||||
'Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.' =>
|
||||
'Система працює в режимі Monstra::DEVELOPMENT Ми рекомендуємо вам встановити режим Monstra::PRODUCTION на живому сайті.',
|
||||
'Monstra version' => 'Monstra Версія',
|
||||
'Directory Permissions' => 'Права Доступу',
|
||||
'Directory' => 'Каталог',
|
||||
|
@@ -23,7 +23,7 @@
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><?php echo __('Monstra version', 'information'); ?></td>
|
||||
<td><?php echo Core::VERSION; ?></td>
|
||||
<td><?php echo Monstra::VERSION; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('GZIP', 'information'); ?></td>
|
||||
@@ -31,7 +31,7 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php echo __('Debugging', 'information'); ?></td>
|
||||
<td><?php if (Core::$environment == Core::DEVELOPMENT) { echo __('on', 'information'); } else { echo __('off', 'information'); } ?></td>
|
||||
<td><?php if (Monstra::$environment == Monstra::DEVELOPMENT) { echo __('on', 'information'); } else { echo __('off', 'information'); } ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -151,10 +151,10 @@
|
||||
<td><?php echo __('The Monstra index.php file has been found to be writable. We would advise you to remove all write permissions. <br/>You can do this on unix systems with: <code>chmod a-w :path</code>', 'information', array(':path' => ROOT . DS . 'index.php')); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if (Core::$environment == Core::DEVELOPMENT) { ?>
|
||||
<?php if (Monstra::$environment == Monstra::DEVELOPMENT) { ?>
|
||||
<tr>
|
||||
<td><span class="badge badge-warning" style="padding-left:5px; padding-right:5px;"><b>!</b></span> </td>
|
||||
<td><?php echo __('Due to the type and amount of information an error might give intruders when Core::$environment = Core::DEVELOPMENT, we strongly advise setting Core::PRODUCTION in production systems.', 'information'); ?></td>
|
||||
<td><?php echo __('Due to the type and amount of information an error might give intruders when Monstra::$environment = Monstra::DEVELOPMENT, we strongly advise setting Monstra::PRODUCTION in production systems.', 'information'); ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Filter registriert',
|
||||
'logout' => 'logout',
|
||||
'site' => 'seite',
|
||||
'Core' => 'Core',
|
||||
'Delete temporary files' => 'Temporäre Dateien löschen',
|
||||
'Download the latest version' => 'Lade die letzte Version herunter',
|
||||
'Powered by' => 'Powered by',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Filters registered',
|
||||
'logout' => 'logout',
|
||||
'site' => 'site',
|
||||
'Core' => 'Core',
|
||||
'Delete temporary files' => 'Delete temporary files',
|
||||
'Download the latest version' => 'Download the latest version',
|
||||
'Powered by' => 'Powered by',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Filtri registrati',
|
||||
'logout' => 'esci',
|
||||
'site' => 'Sito',
|
||||
'Core' => 'Cuore',
|
||||
'Delete temporary files' => 'Cancella i file temporanei',
|
||||
'Download the latest version' => 'Scarica l’ultima versione',
|
||||
'Powered by' => 'Powered by',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Filtrai užregistruoti',
|
||||
'logout' => 'atsijungti',
|
||||
'site' => 'tinklapis',
|
||||
'Core' => 'Branduolys',
|
||||
'Delete temporary files' => 'Trinti laikinas bylas',
|
||||
'Download the latest version' => 'Atsisiųsti naujausią versiją',
|
||||
'Powered by' => 'Veikia su',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Filtros registrados',
|
||||
'logout' => 'Sair',
|
||||
'site' => 'site',
|
||||
'Core' => 'Núcleo',
|
||||
'Delete temporary files' => 'Deletar arquivo temporário',
|
||||
'Download the latest version' => 'Baixar a última versão',
|
||||
'Powered by' => 'Feito com',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Зарегистрированные фильтры',
|
||||
'logout' => 'выход',
|
||||
'site' => 'Сайт',
|
||||
'Core' => 'Ядро',
|
||||
'Delete temporary files' => 'Удалить временные файлы',
|
||||
'Download the latest version' => 'Скачать последнюю версию',
|
||||
'Powered by' => 'Работает на',
|
||||
|
@@ -33,7 +33,6 @@
|
||||
'Filters registered' => 'Зареєстровані фітри',
|
||||
'logout' => 'вихід',
|
||||
'site' => 'Сайт',
|
||||
'Core' => 'Ядро',
|
||||
'Delete temporary files' => 'Видалити тимчасові файли',
|
||||
'Download the latest version' => 'Завантажити останню версію',
|
||||
'Powered by' => 'Працює на',
|
||||
|
@@ -14,7 +14,7 @@ function checkMonstraVersion()
|
||||
<script type="text/javascript">
|
||||
$.getJSON("http://monstra.org/api/version.php?jsoncallback=?",
|
||||
function(data){
|
||||
var current_monstra_version = "'.Core::VERSION.'";
|
||||
var current_monstra_version = "'.Monstra::VERSION.'";
|
||||
var stable_monstra_version = data.version;
|
||||
if (current_monstra_version < stable_monstra_version) {
|
||||
$("#update-monstra").addClass("alert").html("'.__("Published a new version of the :monstra", "system", array(":monstra" => "<a target='_blank' href='http://monstra.org/download'>Monstra</a>")).'");
|
||||
|
Reference in New Issue
Block a user