Ignore:
Timestamp:
09/23/07 23:49:33 (5 years ago)
Author:
hverton
Message:

changed copyright notice
added Smarty buttonlink function, to replace image buttons by real buttons using a locale for the button text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/gallery/php-files/modules/gallery/index.php

    r833 r836  
    2424// Hack prevention. 
    2525 
    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  
    3526global $GALLERY_EMBEDDED_INSIDE; 
    3627global $GALLERY_EMBEDDED_INSIDE_TYPE; 
     
    5546    $include = "albums.php"; 
    5647} 
    57  
    58 // start capturing Gallery output 
    59 ob_start(); 
    6048 
    6149/* 
     
    146134    include(dirname(__FILE__) . "/$include"); 
    147135} 
    148  
    149 // get the captured content 
    150 $content =  ob_get_contents(); 
    151  
    152 // make sure the content is not cached 
    153 // header("Cache-Control: no-cache"); 
    154  
    155 // clear the output buffer 
    156 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 panel 
    168     $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 page 
    173     require_once PATH_THEME."/theme.php"; 
    174 } 
    175136?> 
Note: See TracChangeset for help on using the changeset viewer.