当前位置: 首页>>代码示例>>PHP>>正文


PHP load_mod_locale函数代码示例

本文整理汇总了PHP中load_mod_locale函数的典型用法代码示例。如果您正苦于以下问题:PHP load_mod_locale函数的具体用法?PHP load_mod_locale怎么用?PHP load_mod_locale使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了load_mod_locale函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: eventRmcommonGetFeedsList

 public function eventRmcommonGetFeedsList($feeds)
 {
     load_mod_locale('bxpress');
     include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxfunctions.class.php';
     include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxforum.class.php';
     $module = RMModules::load_module('bxpress');
     $config = RMSettings::module_settings('bxpress');
     $url = XOOPS_URL . '/' . ($config->urlmode ? $config->htbase : 'modules/bxpress') . '/';
     $bxFunc = new bXFunctions();
     $data = array('title' => $module->name(), 'url' => $url, 'module' => 'bxpress');
     $options[] = array('title' => __('All Recent Messages', 'bxpress'), 'params' => 'show=all', 'description' => __('Show all recent messages', 'bxpress'));
     $forums = $bxFunc->forumList('', false);
     $table = '<table cellpadding="2" cellspacing="2" width="100%"><tr class="even">';
     $count = 0;
     foreach ($forums as $forum) {
         if ($count >= 3) {
             $count = 0;
             $table .= '</tr><tr class="' . tpl_cycle("odd,even") . '">';
         }
         $table .= '<td width="33%"><a href="' . XOOPS_URL . '/backend.php?action=showfeed&amp;mod=bxpress&amp;show=forum&amp;forum=' . $forum['id'] . '">' . $forum['title'] . '</a></td>';
         $count++;
     }
     $table .= '</tr></table>';
     $options[] = array('title' => __('Posts by forum', 'bxpress'), 'description' => __('Select a forum to see the messages posted recently.', 'bxpress') . ' <a href="javascript:;" onclick="$(\'#bxforums-feed\').slideToggle(\'slow\');">Show Forums</a>
                         <div id="bxforums-feed" style="padding: 10px; display: none;">' . $table . '</div>');
     unset($forums);
     $feed = array('data' => $data, 'options' => $options);
     $feeds[] = $feed;
     return $feeds;
 }
开发者ID:petitours,项目名称:bxpress,代码行数:30,代码来源:rmcommon.php

示例2: eventCoreIncludeCommonLanguage

 public function eventCoreIncludeCommonLanguage()
 {
     load_mod_locale('xthemes');
     define('XTPATH', XOOPS_ROOT_PATH . '/modules/xthemes');
     define('XTURL', XOOPS_URL . '/modules/xthemes');
     require_once XTPATH . '/class/xtassembler.class.php';
     $GLOBALS['xtAssembler'] = new XtAssembler();
     $GLOBALS['xtFunctions'] = new XtFunctions();
     load_theme_locale($GLOBALS['xtAssembler']->theme()->getInfo('dir'));
 }
开发者ID:arab4domin,项目名称:xthemes,代码行数:10,代码来源:core.php

示例3: eventRmcommonGetFeedsList

 public function eventRmcommonGetFeedsList($feeds)
 {
     load_mod_locale('galleries');
     include_once XOOPS_ROOT_PATH . '/modules/galleries/class/gsfunctions.class.php';
     $module = RMFunctions::load_module('galleries');
     $config = RMUtilities::module_config('galleries');
     $data = array('title' => $module->name(), 'url' => GSFunctions::get_url(), 'module' => 'galleries');
     $options[] = array('title' => __('All Recent Pictures', 'galleries'), 'params' => 'show=pictures', 'description' => __('Show all recent pictures', 'galleries'));
     $options[] = array('title' => __('All Recent Albums', 'galleries'), 'params' => 'show=albums', 'description' => __('Show all recent albums', 'galleries'));
     $feed = array('data' => $data, 'options' => $options);
     $feeds[] = $feed;
     return $feeds;
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:13,代码来源:rmcommon.php

示例4: eventRmcommonImgmgrEditorOptions

 public function eventRmcommonImgmgrEditorOptions()
 {
     global $rmc_config;
     // load language
     load_mod_locale("galleries");
     // Insert required script and styles
     RMTemplate::get()->add_head('<script type="text/javascript">var gs_url="' . XOOPS_URL . '/modules/galleries"; var gedt = "' . $rmc_config['editor_type'] . '";
         var lang_image = "' . __('Image', 'galleries') . '";
         var lang_thumb = "' . __('Thumbnail', 'galleries') . '";
         var lang_user = "' . __('User Format', 'galleries') . '";
         var lang_search = "' . __('Search Format', 'galleries') . '";
         var lang_desc = "' . __('Add description', 'galleries') . '";
         var lang_align = "' . __('Alignment...', 'galleries') . '";
         var lang_left = "' . __('Left', 'galleries') . '";
         var lang_right = "' . __('Right', 'galleries') . '";
         var lang_center = "' . __('Center', 'galleries') . '";
         var lang_insert = "' . __('Insert Now!', 'galleries') . '";</script>');
     RMTemplate::get()->add_local_script('editor.js', 'galleries');
     RMTemplate::get()->add_xoops_style('editor.css', 'galleries');
     return '<a href="#" id="a-mg">' . __('Galleries', 'galleries') . '</a>';
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:21,代码来源:rmcommon.php

示例5: get_available_list

 /**
  * Get the available widgets list
  *
  * @return array
  */
 public static function get_available_list($mods = null)
 {
     $db = XoopsDatabaseFactory::getDatabaseConnection();
     if ($mods == null || empty($mods)) {
         $mods = RMModules::get_modules_list();
     }
     $list = array();
     // Block list to return
     foreach ($mods as $mod) {
         if (!file_exists(XOOPS_ROOT_PATH . '/modules/' . $mod['dirname'] . '/xoops_version.php')) {
             continue;
         }
         load_mod_locale($mod['dirname']);
         $module = new XoopsModule();
         $module->loadInfoAsVar($mod['dirname']);
         $list[$mod['dirname']] = array('name' => $mod['name'], 'blocks' => $module->getInfo('blocks'));
     }
     // Event generated to modify the available widgets list
     $list = RMEvents::get()->run_event('rmcommon.available.widgets', $list);
     return $list;
 }
开发者ID:JustineBABY,项目名称:rmcommon,代码行数:26,代码来源:blocksfunctions.php

示例6: load_mod_locale

<?php

// $Id$
// --------------------------------------------------------------
// MyGalleries
// Module for advanced image galleries management
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale('galleries', 'admin_');
$adminmenu[0]['title'] = __('Dashboard', 'galleries');
$adminmenu[0]['link'] = "admin/index.php";
$adminmenu[0]['icon'] = '../images/dashboard.png';
$adminmenu[0]['location'] = 'dashboard';
$adminmenu[1]['title'] = __('Albums', 'galleries');
$adminmenu[1]['link'] = "admin/sets.php";
$adminmenu[1]['icon'] = '../images/album.png';
$adminmenu[1]['location'] = 'sets';
$adminmenu[1]['options'] = array(array('title' => __('List albums', 'galleries'), 'link' => 'sets.php', 'selected' => 'sets'), array('title' => __('Add album', 'galleries'), 'link' => 'sets.php?op=new', 'selected' => 'newalbum'));
$adminmenu[2]['title'] = __('Tags', 'galleries');
$adminmenu[2]['link'] = "admin/tags.php";
$adminmenu[2]['icon'] = '../images/tags.png';
$adminmenu[2]['location'] = 'tags';
$adminmenu[2]['options'] = array(array('title' => __('List tags', 'galleries'), 'link' => 'tags.php', 'selected' => 'tags'), array('title' => __('Add tags', 'galleries'), 'link' => 'tags.php?op=new', 'selected' => 'newtags'));
$adminmenu[3]['title'] = __('Users', 'galleries');
$adminmenu[3]['link'] = "admin/users.php";
$adminmenu[3]['icon'] = '../images/users.png';
$adminmenu[3]['location'] = 'users';
$adminmenu[3]['options'] = array(array('title' => __('List users', 'galleries'), 'link' => 'users.php', 'selected' => 'users'), array('title' => __('New user', 'galleries'), 'link' => 'users.php?op=new', 'selected' => 'newuser'));
$adminmenu[4]['title'] = __('Images', 'galleries');
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:menu.php

示例7: load_mod_locale

<?php

// $Id: delete.php 861 2011-12-19 02:38:22Z i.bitcero $
// --------------------------------------------------------------
// bXpress Forums
// A simple forums module for XOOPS and Common Utilities
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale('bxpress');
function bxpress_recents_show($options)
{
    $util = RMUtilities::get();
    $tc = TextCleaner::getInstance();
    $db = XoopsDatabaseFactory::getDatabaseConnection();
    $xoopsModuleConfig = $util->module_config('exmbb');
    $mc = RMUtilities::module_config('bxpress');
    $tbl1 = $db->prefix('bxpress_posts');
    $tbl2 = $db->prefix('bxpress_topics');
    $tbl3 = $db->prefix('bxpress_posts_text');
    $tbl4 = $db->prefix('bxpress_forums');
    $sql = "SELECT MAX(id_post) AS id FROM {$tbl1} WHERE approved=1 GROUP BY id_topic ORDER BY MAX(id_post) DESC LIMIT 0,{$options['0']}";
    $result = $db->queryF($sql);
    $topics = array();
    $block = array();
    include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxforum.class.php';
    include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxpost.class.php';
    include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxtopic.class.php';
    include_once XOOPS_ROOT_PATH . '/modules/bxpress/class/bxfunctions.class.php';
    $post = new bXPost();
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:bxpress_recents.php

示例8: defined

<?php

// $Id: menu.php 151 2012-11-23 06:22:20Z i.bitcero $
// --------------------------------------------------------------
// xThemes
// Module for manage themes by Red Mexico
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// License: GPL v2
// --------------------------------------------------------------
defined('XOOPS_ROOT_PATH') or die;
load_mod_locale('xthemes');
global $xtAssembler;
$adminmenu[] = array('title' => __('Dashboard', 'xthemes'), 'link' => 'index.php', 'icon' => "images/dashboard.png", 'location' => 'dashboard');
$adminmenu[] = array('title' => __('Themes', 'xthemes'), 'link' => 'themes.php', 'icon' => "images/themes.png", 'location' => 'themes');
if (is_object($xtAssembler) && $xtAssembler->isSupported() && $xtAssembler->theme()->settings()) {
    $menu = array('title' => $xtAssembler->theme()->getInfo('name'), 'link' => 'settings.php', 'icon' => "images/settings.png", 'location' => 'settings');
    if ($xtAssembler->rootMenus()) {
        $options[] = array('title' => __('Menus', 'xthemes'), 'link' => 'navigation.php', 'selected' => 'menus', 'icon' => 'fa fa-reorder');
    }
    if ($xtAssembler->theme()->options()) {
        $options[] = array('title' => __('Settings', 'xthemes'), 'link' => 'settings.php', 'selected' => 'settings', 'icon' => 'fa fa-cog');
    }
    if ($xtAssembler->theme()->getInfo('uri') != '') {
        $options[] = array('title' => __('Website', 'xthemes'), 'link' => $xtAssembler->theme()->getInfo('uri'), 'selected' => 'none', 'icon' => 'fa fa-globe');
    }
    if ($xtAssembler->theme()->getInfo('author_uri') != '') {
        $options[] = array('title' => __('Author', 'xthemes'), 'link' => $xtAssembler->theme()->getInfo('author_uri'), 'selected' => 'none', 'icon' => 'fa fa-user');
    }
    $menu['options'] = $options;
    $adminmenu[] = $menu;
    unset($menu, $options);
开发者ID:arab4domin,项目名称:xthemes,代码行数:31,代码来源:menu.php

示例9: load_mod_locale

<?php

// $Id$
// --------------------------------------------------------------
// Matches
// Module to publish and manage sports matches
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale('match', '');
include_once XOOPS_ROOT_PATH . '/modules/rmcommon/loader.php';
$adminmenu[] = array('title' => __('Dashboard', 'match'), 'link' => "admin/index.php", 'icon' => "../images/dashboard.png", 'location' => "dashboard");
$adminmenu[] = array('title' => __('Categories', 'match'), 'link' => "admin/categories.php", 'icon' => "../images/category.png", 'location' => "categories", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'categories.php', 'selected' => 'categories'), array('title' => __('Add Category', 'match'), 'link' => 'categories.php?action=new', 'selected' => 'newcategory')));
$adminmenu[] = array('title' => __('Championships', 'match'), 'link' => "admin/champ.php", 'icon' => "../images/champ.png", 'location' => "championships", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'champ.php', 'selected' => 'championships')));
$adminmenu[] = array('title' => __('Fields', 'match'), 'link' => "admin/fields.php", 'icon' => "../images/field.png", 'location' => "fields", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'fields.php', 'selected' => 'fields')));
$adminmenu[] = array('title' => __('Teams', 'match'), 'link' => "admin/teams.php", 'icon' => "../images/teams.png", 'location' => "teams", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'teams.php', 'selected' => 'teams'), array('title' => __('Add Team', 'match'), 'link' => 'teams.php?action=new', 'selected' => 'newteam')));
$adminmenu[] = array('title' => __('Players', 'match'), 'link' => "admin/roster.php", 'icon' => "../images/players.png", 'location' => "roster", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'roster.php', 'selected' => 'roster'), array('title' => __('Add Player', 'match'), 'link' => 'roster.php?action=new', 'selected' => 'newplayer')));
$adminmenu[] = array('title' => __('Coaches', 'match'), 'link' => "admin/coaches.php", 'icon' => "../images/coaches.png", 'location' => "coaches", 'options' => array(array('title' => __('List all', 'match'), 'link' => 'coaches.php', 'selected' => 'coaches'), array('title' => __('Add Coach', 'match'), 'link' => 'coaches.php?action=new', 'selected' => 'newcoach')));
$adminmenu[] = array('title' => __('Role Play', 'match'), 'link' => "admin/role.php", 'icon' => "../images/role.png", 'location' => "role");
$adminmenu[] = array('title' => __('Ranking', 'match'), 'link' => "admin/ranking.php", 'icon' => "../images/rank.png", 'location' => "ranking");
开发者ID:laiello,项目名称:bitcero-modules,代码行数:21,代码来源:menu.php

示例10: load_mod_locale

<?php

// $Id$
// --------------------------------------------------------------
// MyGalleries
// Module for advanced image galleries management
// Author: Eduardo Cortés
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale("galleries");
$show = rmc_server_var($_GET, 'show', 'all');
$xoopsModule = RMFunctions::load_module('galleries');
$config = RMUtilities::module_config('galleries');
include_once XOOPS_ROOT_PATH . '/modules/galleries/class/gsfunctions.class.php';
include_once XOOPS_ROOT_PATH . '/modules/galleries/class/gsimage.class.php';
include_once XOOPS_ROOT_PATH . '/modules/galleries/class/gsset.class.php';
$rss_channel = array();
$db = XoopsDatabaseFactory::getDatabaseConnection();
switch ($show) {
    case 'pictures':
        $sql = "SELECT * FROM " . $db->prefix('gs_images') . " WHERE public=2 ORDER BY created DESC LIMIT 0,15";
        $result = $db->query($sql);
        $rss_channel['title'] = $xoopsModule->name();
        $rss_channel['link'] = GSFunctions::get_url();
        $rss_channel['description'] = __('These are the recent pictures published on our galleries.', 'galleries');
        $rss_channel['lastbuild'] = formatTimestamp(time(), 'rss');
        $rss_channel['webmaster'] = checkEmail($xoopsConfig['adminmail'], true);
        $rss_channel['editor'] = checkEmail($xoopsConfig['adminmail'], true);
        $rss_channel['category'] = __('Pictures', 'galleries');
        $rss_channel['generator'] = 'MyGalleries 3';
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:rss.php

示例11: load_mod_locale

<?php

// $Id$
// --------------------------------------------------------------
// Contact
// A simple contact module for Xoops
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale('contact');
define('_MI_CT_DESC', __('A simple contact module for Xoops', 'contact'));
// Settings
define('_MI_CT_EMAIL', __('Email Recipient', 'contact'));
define('_MI_CT_EMAILD', __('Specify the email where messages will be sent to', 'contact'));
define('_MI_CT_INFO', __('Information message', 'contact'));
define('_MI_CT_URL', __('Module URL', 'contact'));
define('_MI_CT_URLD', __('Specify here the URL where ContactMe! will work. This will be used for redirections and other things.', 'contact'));
define('_MI_CT_LIMIT', __('Messages per page', 'contact'));
define('_MI_CT_LIMITD', __('This value specifies the limit of messages to show on each page in dashboard.', 'contact'));
define('_MI_CT_QUOTE', __('Quote message text when reply', 'contact'));
define('_MI_CT_QUOTED', __('When this option is enabled, ContactMe! will include the original message as a quoted text in reply.', 'contact'));
// Block
define('_MI_CT_BLOCK', __('ContactMe!', 'contact'));
define('_MI_CT_BLOCKD', __('Shows a block with a contact form that can be put in any block canvas.', 'contact'));
开发者ID:laiello,项目名称:bitcero-modules,代码行数:25,代码来源:modinfo.php

示例12: str_replace

    $error = "<strong>WARNING:</strong> MyGalleries requires %s to be installed!<br />Please install %s before trying to use MyGalleries";
    $error = str_replace("%s", '<a href="http://www.redmexico.com.mx/w/common-utilities/" target="_blank">Common Utilities</a>', $error);
    xoops_error($error);
    $error = '%s is not installed! This might cause problems with functioning of MyGalleries and entire system. To solve, install %s or uninstall MyGalleries and then delete module folder.';
    $error = str_replace("%s", '<a href="http://www.redmexico.com.mx/w/common-utilities/" target="_blank">Common Utilities</a>', $error);
    trigger_error($error, E_USER_WARNING);
    echo "<br />";
}
if (!function_exists("__")) {
    function __($text, $d)
    {
        return $text;
    }
}
if (function_exists("load_mod_locale")) {
    load_mod_locale('galleries');
}
$modversion['name'] = "MyGalleries 3.0";
$modversion['version'] = 3.0;
$modversion['rmversion'] = array('number' => 3, 'revision' => 03, 'status' => 0, 'name' => 'MyGalleries');
$modversion['description'] = __('Module to publish and manage photo galleries in XOOPS using Common Utilities', 'galleries');
$modversion['icon32'] = 'images/icon32.png';
$modversion['icon48'] = 'images/browse_set.png';
$modversion['icon24'] = 'images/icon24.png';
$modversion['icon16'] = 'images/images.png';
$modversion['author'] = "BitC3R0";
$modversion['authormail'] = "i.bitcero@gmail.com";
$modversion['authorweb'] = "Red México";
$modversion['authorurl'] = "http://www.redmexico.com.mx";
$modversion['credits'] = "Red México";
$modversion['help'] = "http://www.redmexico.com.mx/modules/galleries/";
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:xoops_version.php

示例13: header

<?php

// $Id: trackbacks.php 824 2011-12-08 23:50:30Z i.bitcero $
// --------------------------------------------------------------
// MyWords
// Blogging System
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
header('Content-Type: text/xml');
require '../../mainfile.php';
load_mod_locale('mywords');
global $xoopsLogger;
$xoopsLogger->renderingEnabled = false;
error_reporting(0);
$xoopsLogger->activated = false;
$id = rmc_server_var($_REQUEST, 'trackback', 0);
if ($id <= 0) {
    die;
}
$post = new MWPost($id);
if ($post->isNew()) {
    die;
}
$editor = new MWEditor($post->getVar('author'));
if ($editor->isNew()) {
    $user = new XoopsUser($post->getVar('author'));
}
$track = new MWTrackback($xoopsConfig['sitename'], $editor->getVar('name'));
$id = $track->post_id;
开发者ID:JustineBABY,项目名称:mywords,代码行数:31,代码来源:trackbacks.php

示例14: load_mod_locale

<?php

// $Id$
// --------------------------------------------------------------
// Equipo Club Gallos
// Un modulo sencillo para el manejo de equipos
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
load_mod_locale('team', 'admin_');
$adminmenu[0]['title'] = __('Inicio', 'admin_team');
$adminmenu[0]['link'] = "admin/index.php";
$adminmenu[0]['icon'] = '../images/home.png';
$adminmenu[0]['location'] = 'dashboard';
$adminmenu[1]['title'] = __('Categorías', 'admin_team');
$adminmenu[1]['link'] = "admin/cats.php";
$adminmenu[1]['icon'] = '../images/cats.png';
$adminmenu[1]['location'] = 'categories';
$adminmenu[1]['options'] = array(array('link' => './cats.php', 'title' => __('Lista', 'admin_team'), 'selected' => 'categories'), array('link' => './cats.php?op=new', 'title' => __('Crear categoría', 'admin_team'), 'selected' => 'newcategory'));
$adminmenu[2]['title'] = __('Entrenadores', 'admin_team');
$adminmenu[2]['link'] = "admin/coachs.php";
$adminmenu[2]['icon'] = '../images/coachs.png';
$adminmenu[2]['location'] = 'coachs';
$adminmenu[2]['options'] = array(array('link' => './coachs.php', 'title' => __('Lista', 'admin_team'), 'selected' => 'coachs'), array('link' => './coachs.php?op=new', 'title' => __('Crear entrenador', 'admin_team'), 'selected' => 'newcoach'));
$adminmenu[3]['title'] = __('Equipos', 'admin_team');
$adminmenu[3]['link'] = "admin/teams.php";
$adminmenu[3]['icon'] = '../images/teams.png';
$adminmenu[3]['location'] = 'teams';
$adminmenu[3]['options'] = array(array('link' => './teams.php', 'title' => __('Lista', 'admin_team'), 'selected' => 'teams'), array('link' => './teams.php?op=new', 'title' => __('Crear equipo', 'admin_team'), 'selected' => 'newteam'));
$team = rmc_server_var($_GET, 'team', '');
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:menu.php

示例15: xoops_getActiveModules

// $Id$
// --------------------------------------------------------------
// D-Transport
// Manage download files in XOOPS
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
/**
 * Es necesario verificar si existe Common Utilities o si ha sido instalado
 * para evitar problemas en el sistema
 */
$amod = xoops_getActiveModules();
if (!in_array("rmcommon", $amod)) {
    $error = "<strong>WARNING:</strong> D-Transport requires %s to be installed!<br />Please install %s before trying to use D-Transport";
    $error = str_replace("%s", '<a href="http://www.redmexico.com.mx/w/common-utilities/" target="_blank">Common Utilities</a>', $error);
    xoops_error($error);
    $error = '%s is not installed! This might cause problems with functioning of D-Transport and entire system. To solve, install %s or uninstall D-Transport and then delete module folder.';
    $error = str_replace("%s", '<a href="http://www.redmexico.com.mx/w/common-utilities/" target="_blank">Common Utilities</a>', $error);
    trigger_error($error, E_USER_WARNING);
    echo "<br />";
}
if (function_exists("load_mod_locale")) {
    load_mod_locale('dtransport');
}
if (!function_exists("__")) {
    function __($text, $d)
    {
        return $text;
    }
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:xv-header.php


注:本文中的load_mod_locale函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。