PHP Classes

File: htdocs/modules/pm/xoops_version.php

Recommend this page to a friend!
  Packages of Michael Beck   Xoops 2.5   htdocs/modules/pm/xoops_version.php   Download  
File: htdocs/modules/pm/xoops_version.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change: copyright update
New feature: menu icons for modules
PER-CS formatting
short array
Merge pull request #1411 from mambax7/feature/Fix_rendering_caption_required_icon2

Fix rendering caption required icon2
Merge branch 'master' into new-version-system
Merge branch 'feature/php8_templates' of https://github.com/mambax7/XoopsCore25 into feature/php8_templates

# Conflicts:
# htdocs/themes/xswatch4/modules/publisher/publisher_item.tpl
Merge xswatch4
Date: 10 months ago
Size: 4,229 bytes
 

Contents

Class file image Download
<?php
/**
 * Private message module
 *
 * 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       (c) 2000-2025 XOOPS Project (https://xoops.org)
 * @license             GNU GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html)
 * @package             pm
 * @since               2.3.0
 * @author              Jan Pedersen
 * @author              Taiwen Jiang <phppp@users.sourceforge.net>
 */

/**
 * This is a temporary solution for merging XOOPS 2.0 and 2.2 series
 * A thorough solution will be available in XOOPS 3.0
 *
 */

$modversion                   = [];
$modversion['name']           = _PM_MI_NAME;
$modversion['version']        = '1.1.4-Stable';
$modversion['description']    = _PM_MI_DESC;
$modversion['author']         = 'Jan Pedersen, Taiwen Jiang';
$modversion['credits']        = 'The XOOPS Project, Wanikoo';
$modversion['help']           = 'page=help';
$modversion['license']        = 'GNU GPL 2.0 or later';
$modversion['license_url']    = 'www.gnu.org/licenses/gpl-2.0.html';
$modversion['image']          = 'assets/images/logo.png';
$modversion['dirname']        = 'pm';
$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin';
$modversion['icons16']        = '../../Frameworks/moduleclasses/icons/16';
$modversion['icons32']        = '../../Frameworks/moduleclasses/icons/32';
$modversion['icon']           = 'fa-solid fa-message';
//about
$modversion['release_date']        = '2019/02/18';
$modversion['module_website_url']  = 'https://xoops.org/';
$modversion['module_website_name'] = 'XOOPS';
$modversion['min_php']             = '5.6.0';
$modversion['min_xoops']           = '2.5.11';
$modversion['min_admin']           = '1.2';
$modversion['min_db']              = ['mysql' => '5.0.7'];

// Admin menu
// Set to 1 if you want to display menu generated by system module
$modversion['system_menu'] = 1;

// Admin things
$modversion['hasAdmin']   = 1;
$modversion['adminindex'] = 'admin/admin.php';
$modversion['adminmenu']  = 'admin/menu.php';

// Mysql file
//$modversion['sqlfile']['mysql'] = "sql/mysql.sql";

// Table
//$modversion['tables'][0] = "pm_messages";

// Scripts to run upon installation or update
$modversion['onInstall'] = 'include/install.php';
$modversion['onUpdate']  = 'include/update.php';

// Templates
$modversion['templates']                   = [];
$modversion['templates'][1]['file']        = 'pm_pmlite.tpl';
$modversion['templates'][1]['description'] = '';
$modversion['templates'][2]['file']        = 'pm_readpmsg.tpl';
$modversion['templates'][2]['description'] = '';
$modversion['templates'][3]['file']        = 'pm_viewpmsg.tpl';
$modversion['templates'][3]['description'] = '';
//$modversion['templates'][4]['file'] = 'pm_lookup.tpl';
//$modversion['templates'][4]['description'] = '';

// Menu
$modversion['hasMain'] = 1;

$modversion['config']   = [];
$modversion['config'][] = [
    'name'        => 'perpage',
    'title'       => '_PM_MI_PERPAGE',
    'description' => '_PM_MI_PERPAGE_DESC',
    'formtype'    => 'textbox',
    'valuetype'   => 'int',
    'default'     => 20,
];

$modversion['config'][] = [
    'name'        => 'max_save',
    'title'       => '_PM_MI_MAXSAVE',
    'description' => '_PM_MI_MAXSAVE_DESC',
    'formtype'    => 'textbox',
    'valuetype'   => 'int',
    'default'     => 10,
];

$modversion['config'][] = [
    'name'        => 'prunesubject',
    'title'       => '_PM_MI_PRUNESUBJECT',
    'description' => '_PM_MI_PRUNESUBJECT_DESC',
    'formtype'    => 'textbox',
    'valuetype'   => 'text',
    'default'     => _PM_MI_PRUNESUBJECTDEFAULT,
];

$modversion['config'][] = [
    'name'        => 'prunemessage',
    'title'       => '_PM_MI_PRUNEMESSAGE',
    'description' => '_PM_MI_PRUNEMESSAGE_DESC',
    'formtype'    => 'textarea',
    'valuetype'   => 'text',
    'default'     => _PM_MI_PRUNEMESSAGEDEFAULT,
];