1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
|
<?php
// $Id: wrapper.footer.default 11223 2005-08-07 14:11:04Z jenst $
// This footer file detects whether Gallery is embedded in any
// known PHP applications and then decorates Gallery appropriately.
global $GALLERY_EMBEDDED_INSIDE_TYPE;
switch($GALLERY_EMBEDDED_INSIDE_TYPE) {
case 'phpnuke':
case 'postnuke':
case 'cpgnuke':
/*
* We can control whether we see the right side blocks
* by setting the value of the $index variable. To
* see the blocks, set $index to 1. To hide them set
* $index to 0. We default to 0 to leave more room for
* the photos. If you change this value, you should
* also change it in wrapper.header
*/
global $index;
$index = 0;
CloseTable();
include('footer.php');
break;
case 'phpBB2':
/*
** PhpBB2 doesn't require the OpenTable() function or any of the
** other functions that are native to Nuke.
*/
global $phpbb_root_path;
global $userdata;
global $phpEx;
global $gen_simple_header;
global $template;
global $board_config;
global $db;
global $do_gzip_compress;
global $lang;
include (PHPBB_ROOT_PATH . "includes/page_tail.php");
break;
case 'GeekLog':
/*
** We can control whether we see the right side blocks
** by setting passing a parameter to COM_siteFooter.
** To see the blocks, pass true; to hide them pass false.
*/
echo COM_siteFooter( false );
break;
}
includeTemplate('footer.tpl');
if (isDebugging()) {
$infoText = sprintf(_("Debug ON ! Level %s"), $gallery->app->debuglevel) . '<br>';
if (empty($GALLERY_EMBEDDED_INSIDE_TYPE)) {
$infoText .= 'Standalone';
}
else {
$infoText .= 'Embedded in: '. $GALLERY_EMBEDDED_INSIDE_TYPE;
switch($GALLERY_EMBEDDED_INSIDE_TYPE) {
case 'phpnuke':
break;
case 'postnuke':
$infoText .= ' '. _PN_VERSION_NUM;
break;
case 'cpgnuke':
break;
case 'phpBB2':
break;
case 'GeekLog':
break;
}
}
echo infoLine($infoText, 'error');
}
?>
|