Changeset 836 in ExiteCMS for modules/common/gallery/php-files/modules/gallery/index.php
- Timestamp:
- 09/23/07 23:49:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/gallery/php-files/modules/gallery/index.php
r833 r836 24 24 // Hack prevention. 25 25 26 /*---------------------------------------------------+27 | PLi-Fusion Content Management System |28 +----------------------------------------------------+29 | Integrated by WanWizard (wanwizard@gmail.com) |30 | http://www.pli-images.org/pli-fusion |31 +----------------------------------------------------*/32 require_once dirname(__FILE__)."/../../includes/core_functions.php";33 require_once PATH_ROOT."/includes/theme_functions.php";34 35 26 global $GALLERY_EMBEDDED_INSIDE; 36 27 global $GALLERY_EMBEDDED_INSIDE_TYPE; … … 55 46 $include = "albums.php"; 56 47 } 57 58 // start capturing Gallery output59 ob_start();60 48 61 49 /* … … 146 134 include(dirname(__FILE__) . "/$include"); 147 135 } 148 149 // get the captured content150 $content = ob_get_contents();151 152 // make sure the content is not cached153 // header("Cache-Control: no-cache");154 155 // clear the output buffer156 ob_end_clean();157 158 /**159 * Output the page.160 */161 if (substr($_SERVER["QUERY_STRING"], -4) == ".xml") {162 163 echo $content;164 165 } else {166 167 // create the panel168 $variables['html'] = $content;169 $template_panels[] = array('type' => 'body', 'title' => 'Gallery', 'name' => 'gallery', 'template' => '_custom_html.tpl');170 $template_variables['gallery'] = $variables;171 172 // and call the template engine to generate the page173 require_once PATH_THEME."/theme.php";174 }175 136 ?>
Note: See TracChangeset
for help on using the changeset viewer.
