4
Probably the best is to upload it to your modules folder.
Also add a file called xoops_version.php to it, so XOOPS recognises it as a module and will add a link to the main menu:
// ------------------------------------------------------------------------ //
// XOOPS - PHP Content Management System //
// Copyright (c) 2000 XOOPS.org //
// //
// ------------------------------------------------------------------------ //
// 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 //
// ------------------------------------------------------------------------ //
// E-Mail: none //
// Project: The XOOPS Project (https://xoops.org/) //
// ------------------------------------------------------------------------- //
$modversion['name'] = "AMX Bans";
$modversion['version'] = 1.2;
$modversion['description'] = "AMX Bans. External script installed in XOOPS MODULES";
$modversion['credits'] = "Mickey Mouse";
$modversion['author'] = "Mickey Mouse. XOOPS bridge built by Donald Duck";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/amxbans_logo.gif";
$modversion['dirname'] = "amxbans";
//Admin things
$modversion['hasAdmin'] = 0;
$modversion['adminmenu'] = "";
// Menu
$modversion['hasMain'] = 1;
?>
For a few files you might need to add the following code at the top to have it displayed within Xoops:
include '../../mainfile.php';
include(XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
...and the following at the end:
include(XOOPS_ROOT_PATH."/footer.php");