| Current Path : /home/lejardintz/www/components/com_komento/ |
| Current File : /home/lejardintz/www/components/com_komento/constants.php |
<?php
/**
* @package Komento
* @copyright Copyright (C) 2012 Stack Ideas Private Limited. All rights reserved.
* @license GNU/GPL, see LICENSE.php
*
* Komento 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 COPYRIGHT.php for copyright notices and details.
*/
defined('_JEXEC') or die('Restricted access');
if( !defined( 'DS' ) )
{
define( 'DS' , DIRECTORY_SEPARATOR );
}
// @since Foundry 3.0
// Foundry
require_once(JPATH_ROOT . '/media/foundry/3.1/joomla/framework.php');
FD31_FoundryFramework::defineComponentConstants("Komento");
// Root path
define( 'KOMENTO_ROOT', JPATH_ROOT . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_komento' );
// Backend path
define( 'KOMENTO_ADMIN_ROOT', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_komento' );
// Assets path
define( 'KOMENTO_ASSETS', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'assets' );
// Helper path
define( 'KOMENTO_HELPERS', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'helpers' );
// Controllers path
define( 'KOMENTO_CONTROLLERS', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'controllers' );
// Models path
define( 'KOMENTO_MODELS', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'models' );
// Libraries path
define( 'KOMENTO_CLASSES', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'classes' );
// Tables path
define( 'KOMENTO_TABLES', KOMENTO_ADMIN_ROOT . DIRECTORY_SEPARATOR . 'tables' );
// Themes path
define( 'KOMENTO_THEMES', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'themes' );
// Media path
define( 'KOMENTO_MEDIA_ROOT', JPATH_ROOT . DIRECTORY_SEPARATOR . 'media' );
// Komento media path
//define( 'KOMENTO_MEDIA', KOMENTO_MEDIA_ROOT . DIRECTORY_SEPARATOR . 'com_komento' );
// Foundry path
define( 'KOMENTO_FOUNDRY_ROOT', KOMENTO_MEDIA_ROOT . DIRECTORY_SEPARATOR . 'foundry' . DIRECTORY_SEPARATOR . '3.1' );
// Foundry bootstrap
define( 'KOMENTO_FOUNDRY_BOOTSTRAP', KOMENTO_FOUNDRY_ROOT . DIRECTORY_SEPARATOR . 'joomla' . DIRECTORY_SEPARATOR . 'configuration.php' );
// JavaScripts path
define( 'KOMENTO_JS_ROOT', KOMENTO_MEDIA . DIRECTORY_SEPARATOR . 'js' );
// CSS path
define( 'KOMENTO_CSS_ROOT', KOMENTO_MEDIA . DIRECTORY_SEPARATOR . 'css' );
// Scripts path
define( 'KOMENTO_SCRIPTS_ROOT', KOMENTO_MEDIA . DIRECTORY_SEPARATOR . 'scripts' );
// Scripts_ path
define( 'KOMENTO_SCRIPTS__ROOT', KOMENTO_MEDIA . DIRECTORY_SEPARATOR . 'scripts_' );
// Admistrator path
//define( 'KOMENTO_ADMIN', JPATH_ROOT . DIRECTORY_SEPARATOR . 'administrator' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_komento' );
// Spinner path
define( 'KOMENTO_SPINNER', rtrim( JURI::root(), '/' ) . '/components/com_komento/assets/images/loader.gif' );
// Uploads root
define( 'KOMENTO_UPLOADS_ROOT', KOMENTO_MEDIA . DIRECTORY_SEPARATOR . 'uploads' );
// Plugins path
define( 'KOMENTO_PLUGINS' , KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'komento_plugins' );
// Comment statuses
define( 'KOMENTO_COMMENT_UNPUBLISHED', 0 );
define( 'KOMENTO_COMMENT_PUBLISHED', 1 );
define( 'KOMENTO_COMMENT_MODERATE', 2 );
// Comment flags
define( 'KOMENTO_COMMENT_NOFLAG', 0 );
define( 'KOMENTO_COMMENT_SPAM', 1 );
define( 'KOMENTO_COMMENT_OFFENSIVE', 2 );
define( 'KOMENTO_COMMENT_OFFTOPIC', 3 );
// bbcode emoticons path
define( 'KOMENTO_EMOTICONS_DIR', rtrim( JURI::root() , '/' ) . '/components/com_komento/themes/kuro/images/markitup/');
// Updates server
define( 'KOMENTO_UPDATES_SERVER', 'stackideas.com' );
// core important files
define( 'KOMENTO_HELPER', KOMENTO_HELPERS . DIRECTORY_SEPARATOR . 'helper.php' );
define( 'KOMENTO_BOOTSTRAP', KOMENTO_ROOT . DIRECTORY_SEPARATOR . 'bootstrap.php' );
// STATIC VALUES
define( 'KOMENTO_THEME_BASE', 'kuro' );