📄 about.php
字号:
<?php
// $Id: about.php,v 1.1.1.1 2005/11/10 19:51:03 phppp Exp $
// ------------------------------------------------------------------------ //
// This program is free software; you can redistribute it and/or modify //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. //
// //
// 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. See the //
// GNU General Public License for more details. //
// //
// You should have received a copy of the GNU General Public License //
// along with this program; if not, write to the Free Software //
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
// ------------------------------------------------------------------------ //
// Author: phppp (D.J., infomax@gmail.com) //
// URL: http://xoopsforge.com, http://xoops.org.cn //
// Project: Article Project //
// ------------------------------------------------------------------------ //
include( "header.php" );
xoops_cp_header();
loadModuleAdminMenu(10);
// Fetch moduleinfo
$versioninfo =& $module_handler->get( $xoopsModule->getVar( 'mid' ) );
function art_getInfo($var)
{
global $xoopsModule;
// Moved from xoops_version.php
$modinfo["license"] = "GNU see LICENSE";
$modinfo["license_file"] = XOOPS_URL."/modules/".$xoopsModule->getVar("dirname")."/gpl.txt";
$modinfo["release"] = "2006-06-17";
$modinfo["author_website_url"] = "http://xoopsforge.com";
$modinfo["author_website_name"] = "Xoops Forge";
$modinfo["author_word"] = "Acknowledgement: <br />
<br />The following XOOPSers have made their tremendous contribution during the design and beta test stage, which makes YetAnotherModule available for XOOPS community:<br />
-- Carnuke (http://houseofstrauss.co.uk, http://whitecrows.us), documentation, test, feature design.<br />
-- Richard (WarDick, timeslicer@gmail.com), test.<br />
-- A.D.Horse (http://www.cctv3g.com), test, language.<br />
-- domecc (chweifly@hotmail.com), test, documentation.<br />
-- marco (http://frxoops.org), test.<br />
";
$modinfo["module_status"] = "RC";
$modinfo["module_team"] = "The Xoops Community.";
$modinfo["module_website_url"] = "http://xoopsforge.com/modules/article/";
$modinfo["module_website_name"] = "XOOPS FORGE";
if(empty($var)) return null;
if(!$val = $xoopsModule->getInfo( $var )){
$val = @$modinfo[$var];
}
return $val;
}
echo "
<style type=\"text/css\">
label,text {
display: block;
float: left;
margin-bottom: 2px;
}
label {
text-align: right;
width: 150px;
padding-right: 20px;
}
br {
clear: left;
}
</style>
";
echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . $xoopsModule->getVar("name"). "</legend>";
echo "<div style='padding: 8px;'>";
echo "<img src='" . XOOPS_URL . "/modules/" . $xoopsModule->getVar("dirname") . "/" . art_getInfo( 'image' ) . "' alt='' hspace='10' vspace='0' /></a>\n";
echo "<div style='padding: 5px;'><strong>" . art_getInfo( 'name' ) . " version " . art_getInfo( 'version' ) . "</strong></div>\n";
echo "<label>" . art_constant("AM_ABOUT_RELEASEDATE") . ":</label><text>" . art_getInfo( 'release' ) . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_AUTHOR") . ":</label><text>" . art_getInfo( 'author' ) . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_CREDITS") . ":</label><text>" . art_getInfo( 'credits' ) . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_LICENSE") . ":</label><text><a href=\"".art_getInfo( 'license_file' )."\" target=\"_blank\" >" . art_getInfo( 'license' ) . "</a></text><br />";
echo "<label>" . art_constant("AM_ABOUT_HELP") . ":</label><text><a href=\"".art_getInfo( 'help' )."\" target=\"_blank\" >Article FAQ</a></text>\n";
echo "</div>";
echo "</fieldset>";
echo "<br clear=\"all\" />";
echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_ABOUT_MODULE_INFO") . "</legend>";
echo "<div style='padding: 8px;'>";
echo "<label>" . art_constant("AM_ABOUT_MODULE_STATUS") . ":</label><text>" . art_getInfo( 'module_status' ) . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_WEBSITE") . ":</label><text>" . "<a href='" . art_getInfo( 'module_website_url' ) . "' target='_blank'>" . art_getInfo( 'module_website_name' ) . "</a>" . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_MODULE_TEAM") . ":</label><text>" . art_getInfo( 'module_team' ) . "</text><br />";
echo "</div>";
echo "</fieldset>";
echo "<br clear=\"all\" />";
echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_ABOUT_AUTHOR_INFO") . "</legend>";
echo "<div style='padding: 8px;'>";
echo "<label>" . art_constant("AM_ABOUT_AUTHOR_NAME") . ":</label><text>" . art_getInfo( 'author' ) . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_WEBSITE") . ":</label><text>" . "<a href='" . art_getInfo( 'author_website_url' ) . "' target='_blank'>" . art_getInfo( 'author_website_name' ) . "</a>" . "</text><br />";
echo "<label>" . art_constant("AM_ABOUT_AUTHOR_WORD") . ":</label><text>" . art_getInfo( 'author_word' ) . "</text><br />";
echo "</div>";
echo "</fieldset>";
echo "<br clear=\"all\" />";
echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_ABOUT_DISCLAIMER") . "</legend>";
echo "<div style='padding: 8px;'>";
echo "<div>". art_constant("AM_ABOUT_DISCLAIMER_TEXT") . "</div>";
echo "</div>";
echo "</fieldset>";
echo "<br clear=\"all\" />";
$file = XOOPS_ROOT_PATH. "/modules/" . $GLOBALS["artdirname"] . "/changelog.txt";
if ( is_readable( $file ) ){
echo "<fieldset><legend style='font-weight: bold; color: #900;'>" . art_constant("AM_ABOUT_CHANGELOG") . "</legend>";
echo "<div style='padding: 8px;'>";
echo "<div>". implode("<br />", file( $file )) . "</div>";
echo "</div>";
echo "</fieldset>";
echo "<br clear=\"all\" />";
}
xoops_cp_footer();
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -