Also I took a look at this module.php file that makes Gallery do what it does for PHPBB and found it to be pretty generic. Here is the php code.
<?php
/*
** This file was written by Martin Smallridge <info@snailsource.com>
*/
define('MODULES_PATH', './modules/');
$op = ( isset($HTTP_POST_VARS['op']) ) ? $HTTP_POST_VARS['op'] : (isset($HTTP_GET_VARS['op']) ? $HTTP_GET_VARS['op'] : '');
switch ($op)
{
case 'modload':
// Added with changes in Security for PhpBB2.
define('IN_PHPBB', true);
define ("LOADED_AS_MODULE","1");
$phpbb_root_path = "./";
// connect to phpbb
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/functions.'.$phpEx);
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
// Deal with the register_globals issue temporarily
if (!empty($HTTP_GET_VARS)) {
extract($HTTP_GET_VARS);
}
if (!empty($HTTP_POST_VARS)) {
extract($HTTP_POST_VARS);
}
// Security fix
if (ereg("\.\.",$name) || ereg("\.\.",$file)) {
echo 'Nice try :-)';
break;
} else {
include(MODULES_PATH."$name/$file.$phpEx");
}
break;
default:
die ("Sorry, you can't access this file directly...");
break;
}
?>After looking at it I decided to see if I could make it work with Coppermine. So I installed it in the modules directory and modified the install.php and index.php to get rid of the "YOU ARE TRYING TO INSTALL THIS IN A NUKE" and then added this line to my board nav like I did for gallery.
http://www.clausingclan.com/ccs/modules.php?op=modload&name=coppermine&file=indexand this is the error I get
Notice: Constant already defined in /home/theclaus/public_html/ccs/modules/coppermine/include/init.inc.php on line 196
Coppermine Photo Gallery - Your Online Photo Gallery
Coppermine Photo Gallery seems not to be installed correctly, or you're running coppermine for the first time. You'll be redirected to the installer. If your browser doesn't support redirect, click here.
However it is installed because you can hit it by going to
http://www.clausingclan.com/ccs/modules/coppermine/index.phpHope this along with the test account proves helpful. I am not a big fan of IFRAME so while you look at this i'll look at modify the theme and try to include the block.