Added "MOD Version Check" support
This commit is contained in:
@@ -66,6 +66,8 @@ Es hat diverse Boxen, die über das ACP an- / abgeschaltet und eingestellt werde
|
|||||||
<target-version>3.0.2</target-version>
|
<target-version>3.0.2</target-version>
|
||||||
</installation>
|
</installation>
|
||||||
<link-group>
|
<link-group>
|
||||||
|
<link type="dependency" lang="en-gb" href="http://www.phpbb.com/community/viewtopic.php?f=69&t=691155">Board3 Portal supports MOD Version Check. To use this feature, this mod has to be installed.</link>
|
||||||
|
<link type="dependency" lang="de" href="http://www.phpbb.com/community/viewtopic.php?f=69&t=691155">Board3 Portal unterstützt MOD Version Check. Um dieses Feature zu nutzen, muss dieser Mod installiert sein.</link>
|
||||||
<link type="template" lang="de" href="xml/subsilver2.xml">subsilver2</link>
|
<link type="template" lang="de" href="xml/subsilver2.xml">subsilver2</link>
|
||||||
<link type="template" lang="en-gb" href="xml/subsilver2.xml">subsilver2</link>
|
<link type="template" lang="en-gb" href="xml/subsilver2.xml">subsilver2</link>
|
||||||
<link type="language" lang="de" href="xml/de.xml">Deutsch</link>
|
<link type="language" lang="de" href="xml/de.xml">Deutsch</link>
|
||||||
@@ -194,6 +196,7 @@ Es hat diverse Boxen, die über das ACP an- / abgeschaltet und eingestellt werde
|
|||||||
<action-group>
|
<action-group>
|
||||||
<copy>
|
<copy>
|
||||||
<file from="root/portal.php" to="portal.php" />
|
<file from="root/portal.php" to="portal.php" />
|
||||||
|
<file from="root/adm/mods/board3_portal_check_version.php" to="adm/mods/board3_portal_check_version.php" />
|
||||||
<file from="root/includes/acp/acp_portal.php" to="includes/acp/acp_portal.php" />
|
<file from="root/includes/acp/acp_portal.php" to="includes/acp/acp_portal.php" />
|
||||||
<file from="root/includes/acp/info/acp_portal.php" to="includes/acp/info/acp_portal.php" />
|
<file from="root/includes/acp/info/acp_portal.php" to="includes/acp/info/acp_portal.php" />
|
||||||
<file from="root/install_portal/*.*" to="install_portal/*.*" />
|
<file from="root/install_portal/*.*" to="install_portal/*.*" />
|
||||||
|
|||||||
38
root/adm/mods/board3_portal_check_version.php
Normal file
38
root/adm/mods/board3_portal_check_version.php
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package acp
|
||||||
|
* @version $Id: mod_version_check_version.php
|
||||||
|
* @copyright (c) 2007 StarTrekGuide
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @package mod_version_check
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
class board3_portal_check_version
|
||||||
|
{
|
||||||
|
function version()
|
||||||
|
{
|
||||||
|
global $portal_config, $phpbb_root_path, $phpEx;
|
||||||
|
include($phpbb_root_path . 'portal/includes/functions.' . $phpEx);
|
||||||
|
$portal_config = obtain_portal_config();
|
||||||
|
|
||||||
|
return array(
|
||||||
|
'author' => 'Saint_hh',
|
||||||
|
'title' => 'Board3 Portal',
|
||||||
|
'tag' => 'board3_portal',
|
||||||
|
'version' => $portal_config['portal_version'],
|
||||||
|
'file' => array('board3.de', 'updatecheck', 'board3_portal.xml'),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Reference in New Issue
Block a user