コード例 #1
0
ファイル: Caption.php プロジェクト: trabisdementia/xuups
 function init()
 {
     $this->moduleName = $this->object->moduleName;
     $this->itemName = $this->object->itemName;
     Xmf_Language::load('object', $this->moduleName);
     foreach ($this->object->vars as $k => $v) {
         $this->_initCaptions($k);
     }
     return $this->object;
 }
コード例 #2
0
ファイル: Secure.php プロジェクト: trabisdementia/xuups
<?php

/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         Xmf
 * @since           0.1
 * @author          trabis <*****@*****.**>
 * @version         $Id: somefile.php 0 2010-05-03 18:47:04Z trabis $
 */
defined('XMF_EXEC') or die('Xmf was not detected');
Xmf_Language::load('form', 'xmf');
class Xmf_Object_Form_Secure extends Xmf_Object_Form
{
    function __construct(&$target, $form_name, $form_caption, $form_action, $form_fields = null, $submit_button_caption = false, $cancel_js_action = false, $captcha = false)
    {
        parent::__construct(&$target, $form_name, $form_caption, $form_action, $form_fields, $submit_button_caption, $cancel_js_action, $captcha);
        $this->addElement(new Xmf_Form_Element_Hidden_Token());
    }
}
コード例 #3
0
ファイル: Adminmenu.php プロジェクト: trabisdementia/xuups
 function render()
 {
     Xmf_Language::load('modinfo', $this->module->getVar('dirname'));
     Xmf_Language::load('admin', $this->module->getVar('dirname'));
     $this->tpl->assign(array('modulename' => $this->module->getVar('name'), 'headermenu' => $this->getHeadermenu(), 'adminmenu' => $this->getAdminmenu(), 'current' => $this->currentoption, 'breadcrumb' => $this->breadcrumb, 'headermenucount' => count($this->headermenu), 'submenus' => $this->submenus, 'currentsub' => $this->currentsub, 'submenuscount' => count($this->submenus)));
 }
コード例 #4
0
ファイル: Adminabout.php プロジェクト: trabisdementia/xuups
 function render()
 {
     Xmf_Language::load('about', 'xmf');
     Xmf_Language::load('modinfo', $this->module->getVar('dirname'));
     if (is_object($GLOBALS['xoTheme'])) {
         $GLOBALS['xoTheme']->addStylesheet(XMF_CSS_URL . '/admin.css');
     }
     $this->tpl->assign('module_paypal', $this->paypal);
     $this->tpl->assign('module_url', XOOPS_URL . "/modules/" . $this->module->getVar('dirname') . "/");
     $this->tpl->assign('module_image', $this->module->getInfo('image'));
     $this->tpl->assign('module_name', $this->module->getInfo('name'));
     $this->tpl->assign('module_version', $this->module->getInfo('version'));
     $this->tpl->assign('module_description', $this->module->getInfo('description'));
     $this->tpl->assign('module_status_version', $this->module->getInfo('status_version'));
     // Left headings...
     if ($this->module->getInfo('author_realname') != '') {
         $author_name = $this->module->getInfo('author') . " (" . $this->module->getInfo('author_realname') . ")";
     } else {
         $author_name = $this->module->getInfo('author');
     }
     $this->tpl->assign('module_author_name', $author_name);
     $this->tpl->assign('module_license', $this->module->getInfo('license'));
     $this->tpl->assign('module_credits', $this->module->getInfo('credits'));
     // Developers Information
     $this->tpl->assign('module_developer_lead', $this->module->getInfo('developer_lead'));
     $this->tpl->assign('module_developer_contributor', $this->module->getInfo('developer_contributor'));
     $this->tpl->assign('module_developer_website_url', $this->module->getInfo('developer_website_url'));
     $this->tpl->assign('module_developer_website_name', $this->module->getInfo('developer_website_name'));
     $this->tpl->assign('module_developer_email', $this->module->getInfo('developer_email'));
     $people = $this->module->getInfo('people');
     if ($people) {
         $this->tpl->assign('module_people_developers', isset($people['developers']) ? array_map(array($this, '_sanitize'), $people['developers']) : false);
         $this->tpl->assign('module_people_testers', isset($people['testers']) ? array_map(array($this, '_sanitize'), $people['testers']) : false);
         $this->tpl->assign('module_people_translators', isset($people['translators']) ? array_map(array($this, '_sanitize'), $people['translators']) : false);
         $this->tpl->assign('module_people_documenters', isset($people['documenters']) ? array_map(array($this, '_sanitize'), $people['documenters']) : false);
         $this->tpl->assign('module_people_other', isset($people['other']) ? array_map(array($this, '_sanitize'), $people['other']) : false);
     }
     //$this->_tpl->assign('module_developers', $this->module->getInfo('developer_email'));
     // Module Development information
     $this->tpl->assign('module_date', $this->module->getInfo('date'));
     $this->tpl->assign('module_status', $this->module->getInfo('status'));
     $this->tpl->assign('module_demo_site_url', $this->module->getInfo('demo_site_url'));
     $this->tpl->assign('module_demo_site_name', $this->module->getInfo('demo_site_name'));
     $this->tpl->assign('module_support_site_url', $this->module->getInfo('support_site_url'));
     $this->tpl->assign('module_support_site_name', $this->module->getInfo('support_site_name'));
     $this->tpl->assign('module_submit_bug', $this->module->getInfo('submit_bug'));
     $this->tpl->assign('module_submit_feature', $this->module->getInfo('submit_feature'));
     // Warning
     $this->tpl->assign('module_warning', $this->_sanitize($this->module->getInfo('warning')));
     // Author's note
     $this->tpl->assign('module_author_word', $this->module->getInfo('author_word'));
     // For changelog thanks to 3Dev
     $filename = XOOPS_ROOT_PATH . '/modules/' . $this->module->getVar('dirname') . '/changelog.txt';
     if (is_file($filename)) {
         $filesize = filesize($filename);
         $handle = fopen($filename, 'r');
         $this->tpl->assign('module_version_history', $this->_sanitize(fread($handle, $filesize)));
         fclose($handle);
     }
     if ($this->logoImageUrl && $this->logoLinkUrl) {
         $this->tpl->assign('logo_image_url', $this->logoImageUrl);
         $this->tpl->assign('logo_link_url', $this->logoLinkUrl);
     }
 }
コード例 #5
0
ファイル: bootstrap.php プロジェクト: trabisdementia/xuups
if (defined('XMF_EXEC')) {
    return;
}
if (!defined('XOOPS_ROOT_PATH')) {
    require dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
}
define('XMF_EXEC', true);
define('XMF_URL', XOOPS_URL . '/modules/xmf');
define('XMF_CSS_URL', XMF_URL . '/css');
define('XMF_IMAGES_URL', XMF_URL . '/images');
define('XMF_INCLUDE_URL', XMF_URL . '/include');
define('XMF_LANGUAGE_URL', XMF_URL . '/language');
define('XMF_LIBRARIES_URL', XMF_URL . '/libraries');
define('XMF_TEMPLATES_URL', XMF_URL . '/templates');
define('XMF_ROOT_PATH', XOOPS_ROOT_PATH . '/modules/xmf');
define('XMF_CSS_PATH', XMF_ROOT_PATH . '/css');
define('XMF_IMAGES_PATH', XMF_ROOT_PATH . '/images');
define('XMF_INCLUDE_PATH', XMF_ROOT_PATH . '/include');
define('XMF_LANGUAGE_PATH', XMF_ROOT_PATH . '/language');
define('XMF_LIBRARIES_PATH', XMF_ROOT_PATH . '/libraries');
define('XMF_TEMPLATES_PATH', XMF_ROOT_PATH . '/templates');
define('XMF_NEWLINE', "\n");
define('_GLOBAL_LEFT', 'left');
define('_GLOBAL_RIGHT', 'right');
require dirname(dirname(__FILE__)) . '/libraries/xmf/Loader.php';
spl_autoload_register(array('Xmf_Loader', 'loadClass'));
require dirname(__FILE__) . '/functions.php';
Xmf_Language::load('global', 'xmf');
global $xoops;
$xoops->urls = xmf_buildRelevantUrls();
コード例 #6
0
ファイル: functions.php プロジェクト: ming-hai/XoopsCore
/**
 * Wrapper for Xmf_Language
 *
 * @param string $string
 * @param string $default
 * @return mixed|string
 */
function _tt($string, $default = null)
{
    return Xmf_Language::_($string, $default);
}
コード例 #7
0
ファイル: Helper.php プロジェクト: trabisdementia/xuups
 public function loadLanguage($name, $language = null)
 {
     if ($ret = Xmf_Language::load($name, $this->dirname, $language)) {
         $this->addLog("Loading language '{$name}'");
     } else {
         $this->addLog("ERROR :: Language '{$name}' could not be loaded");
     }
 }
コード例 #8
0
ファイル: Table.php プロジェクト: trabisdementia/xuups
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
 * @package         Xmf
 * @since           0.1
 * @author          trabis <*****@*****.**>
 * @author          The SmartFactory <www.smartfactory.ca>
 * @version         $Id: somefile.php 0 2010-05-03 18:47:04Z trabis $
 */
defined('XMF_EXEC') or die('Xmf was not detected');
Xmf_Language::load('database', 'xmf');
class Xmf_Database_Table
{
    var $db;
    /**
     * @var string $_name name of the table
     */
    var $_name;
    /**
     * @var string $_structure structure of the table
     */
    var $_structure;
    /**
     * @var array $_data containing valued of each records to be added
     */
    var $_data;