# HG changeset patch # User Dan # Date 1207456538 14400 # Node ID 8baccbad4a5585d524478aec9ee8d0c97b9caedc # Parent 98bbc533541cd3ab468c8c8690c1e12b4ba5325f Fixed images diff -r 98bbc533541c -r 8baccbad4a55 plugins/PunBB.php --- a/plugins/PunBB.php Sun Apr 06 00:28:50 2008 -0400 +++ b/plugins/PunBB.php Sun Apr 06 00:35:38 2008 -0400 @@ -36,7 +36,7 @@ $plugins->attachHook('session_started', ' $pid = RenderMan::strToPageId($paths->get_pageid_from_url()); - $is_style_or_script = ( strpos($_SERVER["REQUEST_URI"], "/style/") || strpos($_SERVER["REQUEST_URI"], "/include/js/") ); + $is_style_or_script = ( ( strpos($_SERVER["REQUEST_URI"], "/style/") || strpos($_SERVER["REQUEST_URI"], "/include/js/") || strpos($_SERVER["REQUEST_URI"], "/img/") ) && !strpos($_SERVER["REQUEST_URI"], "/help/") ); if ( getConfig("punbb_installed") == "yes" && getConfig("punbb_version") == PUNANO_VERSION && $pid[0] == "Forum" && $pid[1] == "Special" && !$is_style_or_script ) { require( "punbb/include/common.php" ); @@ -65,13 +65,7 @@ { punano_admin_console(); } - else if ( $paths->getParam(0) == 'style' ) - { - $path = $paths->getAllParams(); - header('Location: ' . scriptPath . '/punbb/' . $path); - exit(); - } - else if ( $paths->getParam(0) == 'include' && $paths->getParam(1) == 'js' ) + else if ( ( $paths->getParam(0) == 'style' ) || ( $paths->getParam(0) == 'include' && $paths->getParam(1) == 'js' ) || ( $paths->getParam(0) == 'img' ) ) { $path = $paths->getAllParams(); header('Location: ' . scriptPath . '/punbb/' . $path);