Exemple #1
0
 * @version		$Id: common.php 20051 2010-08-28 16:30:42Z phoenyx $
 */
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
if (!defined("CONTENT_DIRNAME")) {
    define("CONTENT_DIRNAME", $modversion["dirname"] = basename(dirname(dirname(__FILE__))));
}
if (!defined("CONTENT_URL")) {
    define("CONTENT_URL", ICMS_URL . "/modules/" . CONTENT_DIRNAME . "/");
}
if (!defined("CONTENT_ROOT_PATH")) {
    define("CONTENT_ROOT_PATH", ICMS_ROOT_PATH . "/modules/" . CONTENT_DIRNAME . "/");
}
if (!defined("CONTENT_IMAGES_URL")) {
    define("CONTENT_IMAGES_URL", CONTENT_URL . "images/");
}
if (!defined("CONTENT_ADMIN_URL")) {
    define("CONTENT_ADMIN_URL", CONTENT_URL . "admin/");
}
// Include the common language file of the module
icms_loadLanguageFile("content", "common");
// Creating the module object to make it available throughout the module
$contentModule = icms_getModuleInfo(CONTENT_DIRNAME);
if (is_object($contentModule)) {
    $content_moduleName = $contentModule->getVar("name");
}
// Find if the user is admin of the module and make this info available throughout the module
$content_isAdmin = icms_userIsAdmin(CONTENT_DIRNAME);
// Creating the module config array to make it available throughout the module
$contentConfig = icms_getModuleConfig(CONTENT_DIRNAME);
// creating the icmsPersistableRegistry to make it available throughout the module
$icmsPersistableRegistry = icms_ipf_registry_Handler::getInstance();
<?php

/**
 * Footer page included at the end of each page on user side of the mdoule
 *
 * @copyright	(c) 2011 David Janssens
 * @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
 * @since		1.0
 * @author		David Janssens (fiammybe) <*****@*****.**>
 * @package		billboard
 * @version		$Id$
 */
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
$icmsTpl->assign("billboard_adminpage", "<a href='" . ICMS_URL . "/modules/" . icms::$module->getVar("dirname") . "/admin/index.php'>" . _MD_BILLBOARD_ADMIN_PAGE . "</a>");
$icmsTpl->assign("billboard_is_admin", icms_userIsAdmin(BILLBOARD_DIRNAME));
$icmsTpl->assign('billboard_url', BILLBOARD_URL);
$icmsTpl->assign('billboard_images_url', BILLBOARD_IMAGES_URL);
$xoTheme->addStylesheet(BILLBOARD_URL . 'module' . (defined("_ADM_USE_RTL") && _ADM_USE_RTL ? '_rtl' : '') . '.css');
include_once ICMS_ROOT_PATH . '/footer.php';
Exemple #3
0
/**
* Common file of the module included on all pages of the module
*
* @copyright	The ImpressCMS Project
* @license		http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License (GPL)
* @since		1.0
* @author		Gustavo Pilla (aka nekro) <*****@*****.**>
* @package		improfile
* @version		$Id: common.php 20562 2010-12-19 18:26:36Z phoenyx $
*/
defined("ICMS_ROOT_PATH") or die("ICMS root path not defined");
if (!defined("PROFILE_DIRNAME")) {
    define("PROFILE_DIRNAME", $modversion['dirname'] = basename(dirname(dirname(__FILE__))));
}
if (!defined("PROFILE_URL")) {
    define("PROFILE_URL", ICMS_URL . '/modules/' . PROFILE_DIRNAME . '/');
}
if (!defined("PROFILE_ROOT_PATH")) {
    define("PROFILE_ROOT_PATH", ICMS_ROOT_PATH . '/modules/' . PROFILE_DIRNAME . '/');
}
if (!defined("PROFILE_IMAGES_URL")) {
    define("PROFILE_IMAGES_URL", PROFILE_URL . 'images/');
}
if (!defined("PROFILE_ADMIN_URL")) {
    define("PROFILE_ADMIN_URL", PROFILE_URL . 'admin/');
}
// Include the common language file of the module
icms_loadLanguageFile(basename(dirname(dirname(__FILE__))), 'common');
// Find if the user is admin of the module and make this info available throughout the module
$profile_isAdmin = icms_userIsAdmin(PROFILE_DIRNAME);