Changeset 2198


Ignore:
Timestamp:
Jan 27, 2008, 9:35:49 AM (16 years ago)
Author:
rub
Message:

Resolved issue 0000794: Avoid to change create_listing_file.php on each version
Resolved issue 0000795: In create_listing_file.php, it's not safe mode but set_time_limit is disabled

Location:
branches/branch-1_7/tools
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_7/tools/create_listing_file.php

    r2076 r2198  
    3636// URL of main gallery
    3737// Example : http://www.my.domain/my/directory
    38 $conf['gallery'] = 'http://';
     38$conf['gallery'] = 'http://demo.phpwebgallery.net/';
    3939
    4040// prefix for thumbnails in "thumbnail" sub directories
     
    5555// max execution time before refresh in seconds
    5656$conf['max_execution_time'] = (5*ini_get('max_execution_time'))/6; // 25 seconds with default PHP configuration
     57// force the use of refresh method
     58// in order to have live informations
     59// or
     60// to fix system witch are not safe mode but not autorized set_time_limit
     61$conf['force_refresh_method'] =  true;
    5762
    5863// refresh delay is seconds
     
    8893$conf['protect'] = false;
    8994
    90 // index.php content for command 'protect'
    91 $conf['protect_content'] = '<?php header("Location: '.$conf['gallery'].'") ?>';
    92 
    9395// true/false : show/hide warnings
    9496$conf['protect_warnings'] = true;
     
    123125$conf['high'] = 'pwg_high'; // high resolution
    124126$conf['represent'] = 'pwg_representative'; // non pictures representative files
     127
     128
     129// +-----------------------------------------------------------------------+
     130// | Overload configurations                                               |
     131// +-----------------------------------------------------------------------+
     132@include(dirname(__FILE__).'/'.basename(__FILE__, '.php').'_local.inc.php');
     133
    125134
    126135// +-----------------------------------------------------------------------+
     
    878887        if ($file != false)
    879888        {
    880           fwrite($file, $conf['protect_content']); // the return code should be verified
     889          fwrite($file, $pwg_conf['protect_content']); // the return code should be verified
    881890          $error_log .= '          <code class="success">Success -</code> index.php created in directory <a href="'.$dir.'">'.$dir."</a><br />\n";
    882891        }
     
    13861395  else
    13871396  {
    1388     if ($pwg_conf['safe_mode'])
     1397    if ($pwg_conf['safe_mode'] or $conf['force_refresh_method'])
    13891398    {
    13901399      // can not reset the time
Note: See TracChangeset for help on using the changeset viewer.