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


PHP RMFunctions::configs方法代码示例

本文整理汇总了PHP中RMFunctions::configs方法的典型用法代码示例。如果您正苦于以下问题:PHP RMFunctions::configs方法的具体用法?PHP RMFunctions::configs怎么用?PHP RMFunctions::configs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在RMFunctions的用法示例。


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

示例1: show_rss_content

function show_rss_content()
{
    global $xoopsConfig;
    include_once $GLOBALS['xoops']->path('class/template.php');
    $tpl = new XoopsTpl();
    $module = rmc_server_var($_GET, 'mod', '');
    if ($module == '') {
        redirect_header('backend.php', 1, __('Choose an option to see its feed', 'rmcommon'));
        die;
    }
    if (!file_exists(XOOPS_ROOT_PATH . '/modules/' . $module . '/rss.php')) {
        redirect_header('backend.php', 1, __('This module does not support rss feeds', 'rmcommon'));
        die;
    }
    $GLOBALS['xoopsLogger']->activated = false;
    if (function_exists('mb_http_output')) {
        mb_http_output('pass');
    }
    header('Content-Type:text/xml; charset=utf-8');
    include XOOPS_ROOT_PATH . '/modules/' . $module . '/rss.php';
    if (!isset($rss_channel['image'])) {
        $rmc_config = RMFunctions::configs();
        $rss_channel['image']['url'] = $rmc_config['rssimage'];
        $dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.png');
        $rss_channel['image']['width'] = $dimention[0] > 144 ? 144 : $dimention[0];
        $rss_channel['image']['height'] = $dimention[1] > 400 ? 400 : $dimention[1];
    }
    include RMTemplate::get()->get_template('rmc_rss.php', 'module', 'rmcommon');
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:29,代码来源:rss.php

示例2: get_modules_ajax

function get_modules_ajax()
{
    XoopsLogger::getInstance()->activated = false;
    XoopsLogger::getInstance()->renderingEnabled = false;
    $db = Database::getInstance();
    $sql = "SELECT COUNT(*) FROM " . $db->prefix("modules");
    $page = rmc_server_var($_POST, 'page', 1);
    $limit = RMFunctions::configs('mods_number');
    list($num) = $db->fetchRow($db->query($sql));
    $tpages = ceil($num / $limit);
    $page = $page > $tpages ? $tpages : $page;
    $start = $num <= 0 ? 0 : ($page - 1) * $limit;
    $nav = new RMPageNav($num, $limit, $page, 5);
    $nav->target_url('javascript:;" onclick="get_mods_page({PAGE_NUM})');
    $sql = 'SELECT * FROM ' . $db->prefix('modules') . " ORDER BY mid, weight LIMIT {$start},{$limit}";
    $result = $db->query($sql);
    $installed_mods = array();
    while ($row = $db->fetchArray($result)) {
        $mod = new XoopsModule();
        $mod->assignVars($row);
        $installed_mods[] = $mod;
    }
    include RMTemplate::get()->get_template('rmc_mods_installed.php', 'module', 'rmcommon');
    die;
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:25,代码来源:index.php

示例3: __construct

 /**
  * Class constructor.
  * Load all data from configurations and generate the initial clases
  * to manage the email
  * 
  * @param string Content type for message body. It usually text/plain or text/html.
  * 		Default is 'text/plain' but can be changed later
  */
 public function __construct($content_type = 'text/plain')
 {
     $config = RMFunctions::configs();
     $config_handler =& xoops_gethandler('config');
     $xconfig = $config_handler->getConfigsByCat(XOOPS_CONF_MAILER);
     // Instantiate the Swit Transport according to our preferences
     // We can change this preferences later
     switch ($config['transport']) {
         case 'mail':
             $this->swTransport = Swift_MailTransport::newInstance();
             break;
         case 'smtp':
             $this->swTransport = Swift_SmtpTransport::newInstance($config['smtp_server'], $config['smtp_port'], $config['smtp_crypt'] != 'none' ? $config['smtp_crypt'] : '');
             $this->swTransport->setUsername($config['smtp_user']);
             $this->swTransport->setPassword($config['smtp_pass']);
             break;
         case 'sendmail':
             $this->swTransport = Swift_SendmailTransport::newInstance($config['sendmail_path']);
             break;
     }
     // Create the message object
     // Also this object could be change later with message() method
     $this->swMessage = Swift_Message::newInstance();
     $this->swMessage->setReplyTo($xconfig['from']);
     $this->swMessage->setFrom(array($xconfig['from'] => $xconfig['fromname']));
     $this->swMessage->setContentType($content_type);
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:35,代码来源:mailer.php

示例4: eventRmcommonXoopsCommonEnd

 public function eventRmcommonXoopsCommonEnd()
 {
     global $xoopsConfig;
     // Get preloaders from current theme
     RMEvents::get()->load_extra_preloads(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'], ucfirst($xoopsConfig['theme_set'] . 'Theme'));
     $url = RMFunctions::current_url();
     $p = parse_url($url);
     $config = RMFunctions::configs();
     if (substr($p['path'], -11) == 'backend.php' && $config['rss_enable']) {
         include_once RMCPATH . '/rss.php';
         die;
     }
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:13,代码来源:rmcommon.php

示例5: eventCoreHeaderEnd

 public function eventCoreHeaderEnd()
 {
     /**
      * Use internal blocks manager if enabled
      */
     $config = RMFunctions::configs();
     if ($config['blocks_enable']) {
         global $xoopsTpl;
         $bks = RMBlocksFunctions::construct_blocks();
         $bks = RMEvents::get()->run_event('rmcommon.retrieve.xoops.blocks', $bks);
         $b =& $xoopsTpl->get_template_vars('xoBlocks');
         $blocks = array_merge($b, $bks);
         $xoopsTpl->assign_by_ref('xoBlocks', $blocks);
         unset($b, $bks);
     }
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:16,代码来源:core.php

示例6: rd_show_page

function rd_show_page()
{
    RMTemplate::get()->assign('xoops_pagetitle', __('Home Page', 'docs'));
    xoops_cp_header();
    include_once RMCPATH . '/class/form.class.php';
    $content = @file_get_contents(XOOPS_CACHE_PATH . '/rd_homepage.html');
    $content = TextCleaner::getInstance()->to_display($content);
    $editor = new RMFormEditor('', 'homepage', '100%', '450px', $content);
    $rmc_config = RMFunctions::configs();
    if ($rmc_config['editor_type'] == 'tiny') {
        $tiny = TinyEditor::getInstance();
        $tiny->add_config('theme_advanced_buttons1', 'res_index');
    }
    include RMEvents::get()->run_event('docs.get.homepage.template', RMTemplate::get()->get_template('admin/rd_homepage.php', 'module', 'docs'));
    xoops_cp_footer();
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:16,代码来源:hpage.php

示例7: eventCoreClassTheme_blocksRetrieveBlocks

 public function eventCoreClassTheme_blocksRetrieveBlocks($params)
 {
     // xos_logos_PageBuilder
     $xpb = $params[0];
     // Template
     $tpl = $params[1];
     // Blocks
     $blocks =& $params[2];
     /**
      * Use internal blocks manager if enabled
      */
     $config = RMFunctions::configs();
     if ($config['blocks_enable']) {
         $blocks = array();
     }
     RMEvents::get()->run_event('rmcommon.retrieve.blocks', $blocks, $xpb, $tpl);
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:17,代码来源:core.php

示例8: rd_show_form

/**
* @desc Formulario de creación y edición de sección
**/
function rd_show_form($edit = 0)
{
    global $xoopsModule, $xoopsConfig, $xoopsSecurity, $xoopsUser, $xoopsModuleConfig, $rmc_config;
    define('RMCSUBLOCATION', 'newresource');
    $id = rmc_server_var($_GET, 'id', 0);
    $parent = rmc_server_var($_GET, 'parent', 0);
    if ($id <= 0) {
        redirectMsg('sections.php?id=' . $id, __('You must select a Document in order to create a new section', 'docs'), 1);
        die;
    }
    // Check if provided Document exists
    global $res;
    $res = new RDResource($id);
    if ($res->isNew()) {
        redirectMsg('sections.php?id=' . $id, __('Specified Document does not exists!', 'docs'), 1);
        die;
    }
    if ($edit) {
        $id_sec = rmc_server_var($_GET, 'sec', 0);
        //Verifica si la sección es válida
        if ($id_sec <= 0) {
            redirectMsg('sections.php?id=' . $id, __('Specify a section to edit', 'docs'), 1);
            die;
        }
        //Comprueba si la sección es existente
        $sec = new RDSection($id_sec);
        if ($sec->isNew()) {
            redirectMsg('sections.php?id=' . $id, __('Specified section does not exists', 'docs'), 1);
            die;
        }
    }
    // Get order
    $order = RDFunctions::order('MAX', $parent, $res->id());
    $order++;
    $rmc_config = RMFunctions::configs();
    $form = new RMForm('', 'frmsec', 'sections.php');
    if ($rmc_config['editor_type'] == 'tiny') {
        $tiny = TinyEditor::getInstance();
        $tiny->add_config('theme_advanced_buttons1', 'rd_refs');
        $tiny->add_config('theme_advanced_buttons1', 'rd_figures');
        $tiny->add_config('theme_advanced_buttons1', 'rd_toc');
    }
    $editor = new RMFormEditor('', 'content', '100%', '300px', $edit ? $rmc_config['editor_type'] == 'tiny' ? $sec->getVar('content') : $sec->getVar('content', 'e') : '', '', 0);
    $usrfield = new RMFormUser('', 'uid', false, $edit ? array($sec->getVar('uid')) : $xoopsUser->getVar('uid'));
    RMTemplate::get()->add_style('admin.css', 'docs');
    RMTemplate::get()->add_script('../include/js/scripts.php?file=metas.js');
    RMTemplate::get()->add_script(RMCURL . '/include/js/jquery.validate.min.js');
    RMTemplate::get()->add_head('<script type="text/javascript">var docsurl = "' . XOOPS_URL . '/modules/docs";</script>');
    RDFunctions::toolbar();
    xoops_cp_location("<a href='./'>" . $xoopsModule->name() . "</a> &raquo; " . ($edit ? __('Edit Section', 'docs') : __('Create Section', 'docs')));
    RMTemplate::get()->assign('xoops_pagetitle', $edit ? __('Edit Section', 'docs') : __('Create Section', 'docs'));
    xoops_cp_header();
    $sections = array();
    RDFunctions::getSectionTree($sections, 0, 0, $id, 'id_sec, title', isset($sec) ? $sec->id() : 0);
    include RMEvents::get()->run_event('docs.get.secform.template', RMTemplate::get()->get_template('admin/rd_sections_form.php', 'module', 'docs'));
    xoops_cp_footer();
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:60,代码来源:sections.php

示例9: figures_list

/**
* Get a list of existing igures according to given parameters
*/
function figures_list()
{
    global $rmc_config;
    $id = rmc_server_var($_REQUEST, 'id', 0);
    $container = rmc_server_var($_GET, 'container', '');
    $rmc_config = RMFunctions::configs();
    $db = XoopsDatabaseFactory::getDatabaseConnection();
    //Navegador de páginas
    $sql = "SELECT COUNT(*) FROM " . $db->prefix('rd_figures') . " WHERE id_res='{$id}'";
    $sql1 = '';
    if ($search) {
        //Separamos la frase en palabras para realizar la búsqueda
        $words = explode(" ", $search);
        foreach ($words as $k) {
            //Verificamos el tamaño de la palabra
            if (strlen($k) <= 2) {
                continue;
            }
            $sql1 .= ($sql1 == '' ? ' AND ' : " OR ") . " desc LIKE '%{$k}%' ";
        }
    }
    list($num) = $db->fetchRow($db->queryF($sql . $sql1));
    $page = rmc_server_var($_GET, 'page', 1);
    $page = $page <= 0 ? 1 : $page;
    $limit = rmc_server_var($_GET, 'limit', 5);
    $tpages = ceil($num / $limit);
    $page = $page > $tpages ? $tpages : $page;
    $start = $num <= 0 ? 0 : ($page - 1) * $limit;
    $nav = new RMPageNav($num, $limit, $page, 4);
    $nav->target_url('javascript:;" onclick="docsAjax.getFigures(' . $id . ',6,{PAGE_NUM},\'' . $container . '\');"');
    //Lista de Referencias existentes
    $sql = "SELECT id_fig,`desc`,content FROM " . $db->prefix('rd_figures') . " WHERE id_res='{$id}'";
    $sql .= " ORDER BY id_fig DESC LIMIT {$start},{$limit}";
    $result = $db->query($sql);
    $figures = array();
    while ($rows = $db->fetchArray($result)) {
        $figures[] = array('id' => $rows['id_fig'], 'desc' => $rows['desc'], 'content' => TextCleaner::getInstance()->truncate($rows['content'], 150));
    }
    include RMTemplate::get()->get_template('ajax/rd_figures_list.php', 'module', 'docs');
    die;
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:44,代码来源:ajax-functions.php

示例10: get_comments

 /**
  * Get all comments for given parameters
  * @param string Object id (can be a module name)
  * @param string Params for comment item
  * @param string Object type (eg. module, plugin, etc)
  * @param int Comment parent id, will return all comments under a given parent
  * @param int User that has been posted the comments
  * @return array
  */
 public function get_comments($obj, $params, $type = 'module', $parent = 0, $user = null, $assign = true)
 {
     global $xoopsUser;
     define('COMMENTS_INCLUDED', 1);
     $db = Database::getInstance();
     $rmc_config = RMFunctions::configs();
     $params = urlencode($params);
     $sql = "SELECT * FROM " . $db->prefix("rmc_comments") . " WHERE status='approved' AND id_obj='{$obj}' AND params='{$params}' AND type='{$type}' AND parent='{$parent}'" . ($user == null ? '' : " AND user='{$user}'") . " ORDER BY posted";
     $result = $db->query($sql);
     $ucache = array();
     $ecache = array();
     while ($row = $db->fetchArray($result)) {
         $com = new RMComment();
         $com->assignVars($row);
         // Editor data
         if (!isset($ecache[$com->getVar('user')])) {
             $ecache[$com->getVar('user')] = new RMCommentUser($com->getVar('user'));
         }
         $editor = $ecache[$com->getVar('user')];
         if ($editor->getVar('xuid') > 0) {
             if (!isset($ucache[$editor->getVar('xuid')])) {
                 $ucache[$editor->getVar('xuid')] = new XoopsUser($editor->getVar('xuid'));
             }
             $user = $ucache[$editor->getVar('xuid')];
             $poster = array('id' => $user->getVar('uid'), 'name' => $user->getVar('uname'), 'email' => $user->getVar('email'), 'posts' => $user->getVar('posts'), 'avatar' => XOOPS_UPLOAD_URL . '/' . $user->getVar('user_avatar'), 'rank' => $user->rank(), 'url' => $user->getVar('url') != 'http://' ? $user->getVar('url') : '');
         } else {
             $poster = array('id' => 0, 'name' => $editor->getVar('name'), 'email' => $editor->getVar('email'), 'posts' => 0, 'avatar' => '', 'rank' => '', 'url' => $editor->getVar('url') != 'http://' ? $editor->getVar('url') : '');
         }
         if ($xoopsUser && $xoopsUser->isAdmin()) {
             $editlink = RMCURL . '/comments.php?action=edit&amp;id=' . $com->id() . '&amp;ret=' . urlencode(self::current_url());
         } elseif ($rmc_config['allow_edit']) {
             $time_limit = time() - $com->getVar('posted');
             if ($xoopsUser && $xoopsUser->getVar('uid') == $editor->getVar('xuid') && $time_limit < $rmc_config['edit_limit'] * 3600) {
                 $editlink = RMCURL . '/post_comment.php?action=edit&amp;id=' . $com->id() . '&amp;ret=' . urlencode(self::current_url());
             } else {
                 $editlink = '';
             }
         }
         $comms[] = array('id' => $row['id_com'], 'text' => TextCleaner::getInstance()->clean_disabled_tags(TextCleaner::getInstance()->popuplinks(TextCleaner::getInstance()->nofollow($com->getVar('content')))), 'poster' => $poster, 'posted' => sprintf(__('Posted on %s'), formatTimestamp($com->getVar('posted'), 'l')), 'ip' => $com->getVar('ip'), 'edit' => $editlink);
         unset($editor);
     }
     $comms = RMEvents::get()->run_event('rmcommon.loading.comments', $comms, $obj, $params, $type, $parent, $user);
     global $xoopsTpl;
     $xoopsTpl->assign('lang_edit', __('Edit', 'rmcommon'));
     if ($assign) {
         $xoopsTpl->assign('comments', $comms);
         return true;
     } else {
         return $comms;
     }
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:60,代码来源:functions.php

示例11: references

/**
* Visualiza todas las referencias existentes de la publicación
**/
function references($edit = 0)
{
    global $xoopsUser, $xoopsTpl, $rmc_messages, $xoopsSecurity;
    $id = rmc_server_var($_REQUEST, 'id', 0);
    $search = rmc_server_var($_REQUEST, 'search', '');
    $id_ref = rmc_server_var($_REQUEST, 'ref', 0);
    $id_editor = rmc_server_var($_REQUEST, 'editor', 0);
    $rmc_config = RMFunctions::configs();
    $db = XoopsDatabaseFactory::getDatabaseConnection();
    $id = intval($id);
    //Navegador de páginas
    $sql = "SELECT COUNT(*) FROM " . $db->prefix('rd_references') . " WHERE id_res='{$id}'";
    $sql1 = '';
    if ($search) {
        //Separamos la frase en palabras para realizar la búsqueda
        $words = explode(" ", $search);
        foreach ($words as $k) {
            //Verificamos el tamaño de la palabra
            if (strlen($k) <= 2) {
                continue;
            }
            $sql1 .= ($sql1 == '' ? ' AND ' : " OR ") . " title LIKE '%{$k}%' ";
        }
    }
    list($num) = $db->fetchRow($db->queryF($sql . $sql1));
    $page = rmc_server_var($_REQUEST, 'page', 1);
    $page = $page <= 0 ? 1 : $page;
    $limit = 13;
    $tpages = ceil($num / $limit);
    $page = $page > $tpages ? $tpages : $page;
    $start = $num <= 0 ? 0 : ($page - 1) * $limit;
    $nav = new RMPageNav($num, $limit, $page, 4);
    $nav->target_url("?id={$id}&amp;page={PAGE_NUM}&search={$search}");
    $ruta = '?id=' . $id . '&page=' . $page . '&search=' . $search;
    //Lista de Referencias existentes
    $sql = "SELECT id_ref,title,text FROM " . $db->prefix('rd_references') . " WHERE id_res='{$id}'";
    $sql1 = '';
    if ($search) {
        //Separamos la frase en palabras para realizar la búsqueda
        $words = explode(" ", $search);
        foreach ($words as $k) {
            //Verificamos el tamaño de la palabra
            if (strlen($k) <= 2) {
                continue;
            }
            $sql1 .= ($sql1 == '' ? ' AND ' : " OR ") . " title LIKE '%{$k}%' ";
        }
    }
    $sql2 = " ORDER BY id_ref DESC LIMIT {$start},{$limit}";
    $result = $db->queryF($sql . $sql1 . $sql2);
    $references = array();
    while ($rows = $db->fetchArray($result)) {
        $references[] = array('id' => $rows['id_ref'], 'title' => $rows['title'], 'content' => TextCleaner::getInstance()->truncate($rows['text'], 150));
    }
    if ($edit) {
        if ($id_ref <= 0) {
            redirectMsg('./references.php' . $ruta, __('A note has not been specified!', 'docs'), 1);
            die;
        }
        $ref = new RDReference($id_ref);
        if ($ref->isNew()) {
            redirectMsg('./references.php' . $ruta, __('Specified note does not exists!', 'docs'), 1);
            die;
        }
    }
    $theme_css = xoops_getcss();
    $vars = $xoopsTpl->get_template_vars();
    extract($vars);
    RMTemplate::get()->add_script(RMCURL . '/include/js/jquery.min.js');
    RMTemplate::get()->add_script(RMCURL . '/include/js/jquery-ui.min.js');
    RMTemplate::get()->add_script(RMCURL . '/include/js/jquery.checkboxes.js');
    RMTemplate::get()->add_script('include/js/scripts.php?file=ajax.js');
    RMTemplate::get()->add_script('include/js/references.js');
    RMTemplate::get()->add_script('include/js/editor-' . $rmc_config['editor_type'] . '.js');
    if ($rmc_config['editor_type'] == 'tiny') {
        RMTemplate::get()->add_script(XOOPS_URL . '/modules/rmcommon/api/editors/tinymce/tiny_mce_popup.js');
    } elseif ($rmc_config['editor_type'] == 'xoops') {
        RMTemplate::get()->add_script(XOOPS_URL . '/modules/rmcommon/api/editors/exmcode/editor-popups.js');
    }
    RMTemplate::get()->add_style('refs.css', 'docs');
    RMTemplate::get()->add_style('jquery.css', 'rmcommon');
    // Options for table header
    $options[] = array('title' => __('Select Document', 'docs'), 'href' => 'javascript:;', 'attrs' => 'id="option-resource" onclick="docsAjax.getSectionsList(1);"', 'tip' => __('Select another Document to show the notes that belong to this.', 'docs'));
    $options[] = array('title' => __('Create Note', 'docs'), 'href' => 'javascript:;', 'attrs' => 'id="option-new" onclick="docsAjax.displayForm();"', 'tip' => __('Create a new note.', 'docs'));
    // Get additional options from other modules or plugins
    $options = RMEvents::get()->run_event('docs.notes.options', $options, $id, $edit, $edit ? $ref : null);
    // Insert adtional content in template
    $other_content = '';
    $other_content = RMEvents::get()->run_event('docs.additional.notes.content', $other_content, $id, $edit, $edit ? $ref : null);
    include RMTemplate::get()->get_template('rd_references.php', 'module', 'docs');
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:94,代码来源:references.php

示例12: formSection

/**
* @desc Formulario para crear nueva sección
**/
function formSection($edit = 0)
{
    global $xoopsConfig, $xoopsUser, $xoopsModuleConfig, $id, $res;
    $res = rmc_server_var($_GET, 'id', $res);
    //Verifica si se proporcionó una publicación para la sección
    if ($res <= 0) {
        RDFunctions::error_404();
    }
    $res = new RDResource($res);
    if ($res->isNew()) {
        RDFunctions::error_404();
    }
    //Verificamos si es una publicación aprobada
    if (!$res->getVar('approved')) {
        redirect_header(RDURL, 2, __('Specified section does not exists!', 'docs'));
        die;
    }
    //Verificamos si el usuario tiene permisos de edicion
    if (!$xoopsUser->uid() == $res->getVar('owner') && !$res->isEditor($xoopsUser->uid()) && !$xoopsUser->isAdmin()) {
        redirect_header($section->permalink(), 1, __('Operation not allowed!', 'docs'));
        die;
    }
    if ($edit) {
        $id = rmc_server_var($_GET, 'id', $id);
        //Verifica si la sección es válida
        if ($id == '') {
            RDfunctions::error_404();
        }
        //Comprueba si la sección es existente
        $section = new RDSection($id);
        if ($section->isNew()) {
            RDFunctions::error_404();
        }
    }
    include 'header.php';
    include_once RMCPATH . '/class/form.class.php';
    define('RD_NO_FIGURES', 1);
    $rmc_config = RMFunctions::configs();
    $editor = new RMFormEditor('', 'content', '100%', '300px', $edit ? $section->getVar('content', $rmc_config['editor_type'] == 'tiny' ? 's' : 'e') : '', '', false);
    if ($rmc_config['editor_type'] == 'tiny') {
        $tiny = TinyEditor::getInstance();
        $tiny->configuration['content_css'] .= ',' . XOOPS_URL . '/modules/docs/css/figures.css';
        $tiny->add_config('theme_advanced_buttons1', 'rd_refs');
        $tiny->add_config('theme_advanced_buttons1', 'rd_figures');
        $tiny->add_config('theme_advanced_buttons1', 'rd_toc');
    }
    // Arbol de Secciones
    $sections = array();
    RDFunctions::sections_tree_index(0, 0, $res, '', '', false, $sections, false);
    // Breadcrumb
    RDFunctions::breadcrumb();
    $res_edit = RDFunctions::url() . ($xoopsModuleConfig['permalinks'] ? '/list/' . $res->id() . '/' : '?action=list&id=' . $res->id());
    RMBreadCrumb::get()->add_crumb($res->getVar('title'), $res_edit);
    if ($edit) {
        RMBreadCrumb::get()->add_crumb(sprintf(__('Editing "%s"', 'docs'), $section->getVar('title')));
    } else {
        RMBreadCrumb::get()->add_crumb(__('Create new section', 'docs'));
    }
    RMTemplate::get()->add_jquery(true);
    RMTemplate::get()->add_style('forms.css', 'docs');
    RMTemplate::get()->add_script(XOOPS_URL . '/modules/docs/include/js/scripts.php?file=metas.js');
    include RMEvents::get()->run_event('docs.template.formsections.front', RMTemplate::get()->get_template('rd_sec.php', 'module', 'docs'));
    include 'footer.php';
}
开发者ID:laiello,项目名称:bitcero-modules,代码行数:67,代码来源:edit.php

示例13: rmc_server_var

<?php

// $Id: post_comment.php 825 2011-12-09 00:06:11Z i.bitcero $
// --------------------------------------------------------------
// Red México Common Utilities
// A framework for Red México Modules
// Author: Eduardo Cortés <i.bitcero@gmail.com>
// Email: i.bitcero@gmail.com
// License: GPL 2.0
// --------------------------------------------------------------
include '../../mainfile.php';
$action = rmc_server_var($_REQUEST, 'action', '');
/**
* This file handle comments from Common Utilties
*/
$rmc_config = RMFunctions::configs();
if (!$rmc_config['enable_comments']) {
    redirect_header(rmc_server_var($_REQUEST, 'comment_url', XOOPS_URL), 1, __('Sorry, comments has been disabled by administrator', 'rmcommon'));
    die;
}
if ($action == 'save') {
    if (!$xoopsSecurity->checkReferer()) {
        redirect_header(XOOPS_URL, 2, __('You are not allowed to do this action!', 'rmcommon'));
        die;
    }
    // Check if user is a Registered User
    if (!$xoopsUser) {
        $name = rmc_server_var($_POST, 'comment_name', '');
        $email = rmc_server_var($_POST, 'comment_email', '');
        $url = rmc_server_var($_POST, 'comment_url', '');
        $xuid = 0;
开发者ID:laiello,项目名称:bitcero-modules,代码行数:31,代码来源:post_comment.php

示例14: decrypt

 /**
  * Decrypt a string
  * 
  * @param strign Text to decrypt
  * @param bool Apply base64_decode? default true
  */
 public function decrypt($string, $encode64 = true)
 {
     $rmc_config = RMFunctions::configs();
     $crypt = new Crypt(Crypt::MODE_HEX, $rmc_config['secretkey']);
     $string = $crypt->decrypt($string);
     return $string;
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:13,代码来源:textcleaner.php

示例15: footer

 public function footer()
 {
     global $xoopsModule, $rmc_config, $xoopsConfig, $xoopsModuleConfig;
     $content = ob_get_clean();
     ob_start();
     $rmc_config = RMFunctions::configs();
     $theme = isset($rmc_config['theme']) ? $rmc_config['theme'] : 'default';
     if (!file_exists(RMCPATH . '/themes/' . $theme . '/admin_gui.php')) {
         $theme = 'default';
     }
     $rm_theme_url = RMCURL . '/themes/' . $theme;
     // Check if there are redirect messages
     $rmc_messages = array();
     if (isset($_SESSION['rmMsg'])) {
         foreach ($_SESSION['rmMsg'] as $msg) {
             $rmc_messages[] = $msg;
         }
         unset($_SESSION['rmMsg']);
     }
     include_once RMCPATH . '/themes/' . $theme . '/admin_gui.php';
     $output = ob_get_clean();
     $output = RMEvents::get()->run_event('rmcommon.admin.output', $output);
     echo $output;
 }
开发者ID:laiello,项目名称:bitcero-modules,代码行数:24,代码来源:template.php


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