- Timestamp:
- Jan 27, 2008, 9:35:49 AM (17 years ago)
- 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 36 36 // URL of main gallery 37 37 // Example : http://www.my.domain/my/directory 38 $conf['gallery'] = 'http:// ';38 $conf['gallery'] = 'http://demo.phpwebgallery.net/'; 39 39 40 40 // prefix for thumbnails in "thumbnail" sub directories … … 55 55 // max execution time before refresh in seconds 56 56 $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; 57 62 58 63 // refresh delay is seconds … … 88 93 $conf['protect'] = false; 89 94 90 // index.php content for command 'protect'91 $conf['protect_content'] = '<?php header("Location: '.$conf['gallery'].'") ?>';92 93 95 // true/false : show/hide warnings 94 96 $conf['protect_warnings'] = true; … … 123 125 $conf['high'] = 'pwg_high'; // high resolution 124 126 $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 125 134 126 135 // +-----------------------------------------------------------------------+ … … 878 887 if ($file != false) 879 888 { 880 fwrite($file, $ conf['protect_content']); // the return code should be verified889 fwrite($file, $pwg_conf['protect_content']); // the return code should be verified 881 890 $error_log .= ' <code class="success">Success -</code> index.php created in directory <a href="'.$dir.'">'.$dir."</a><br />\n"; 882 891 } … … 1386 1395 else 1387 1396 { 1388 if ($pwg_conf['safe_mode'] )1397 if ($pwg_conf['safe_mode'] or $conf['force_refresh_method']) 1389 1398 { 1390 1399 // can not reset the time
Note: See TracChangeset
for help on using the changeset viewer.