Changeset 2077 for trunk/tools/create_listing_file.php
- Timestamp:
- Aug 11, 2007, 1:21:37 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/create_listing_file.php
r2075 r2077 32 32 // ****** Gallery configuration ****** // 33 33 // Script version 34 $conf['version'] = ' Butterfly';34 $conf['version'] = 'branch 1.7'; 35 35 36 36 // URL of main gallery … … 700 700 701 701 $element['file'] = $file_base; 702 $element['path'] = 'http://'.dirname($_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']).substr($file_dir, 1).'/'.$file_base;702 $element['path'] = dirname($pwg_conf['this_url']).substr($file_dir, 1).'/'.$file_base; 703 703 704 704 if (in_array($file_ext, $conf['picture_ext'])) … … 1011 1011 function pwg_referer_is_me() 1012 1012 { 1013 global $pwg_conf; 1014 1013 1015 //~ pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n"); 1014 1016 1015 1017 $response = false; 1016 $server = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];1017 1018 $caller = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : ''; 1018 1019 1019 if (strcasecmp($ server, $caller) == 0) {1020 if (strcasecmp($pwg_conf['this_url'], $caller) == 0) { 1020 1021 $response = true; 1021 1022 } … … 1178 1179 //~ pwg_log("GENARATE start >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start >>>\n"); 1179 1180 1180 global $g_listing, $ conf;1181 global $g_listing, $pwg_conf, $conf; 1181 1182 1182 1183 // Flush line <informations> 1183 $xml_header_url = 'http://'.dirname($_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']).'/';1184 $xml_header_url = dirname($pwg_conf['this_url']); 1184 1185 $xml_header_date = date('Y-m-d'); 1185 1186 $xml_header_version = htmlentities($conf['version']);
Note: See TracChangeset
for help on using the changeset viewer.