Changeset 2077 for trunk/tools


Ignore:
Timestamp:
Aug 11, 2007, 1:21:37 PM (17 years ago)
Author:
laurent_duretz
Message:

Issue 0000729 : Distant Site on http://members.lycos.co.uk/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/create_listing_file.php

    r2075 r2077  
    3232// ****** Gallery configuration ****** //
    3333// Script version
    34 $conf['version'] = 'Butterfly';
     34$conf['version'] = 'branch 1.7';
    3535
    3636// URL of main gallery
     
    700700
    701701  $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;
    703703 
    704704  if (in_array($file_ext, $conf['picture_ext']))
     
    10111011function pwg_referer_is_me()
    10121012{
     1013  global $pwg_conf;
     1014
    10131015  //~ pwg_log('>>>>> pwg_referer_is_me() >>>>>'."\n");
    10141016 
    10151017  $response = false;
    1016   $server = 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'];
    10171018  $caller = (isset($_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : '';
    10181019
    1019   if (strcasecmp($server, $caller) == 0) {
     1020  if (strcasecmp($pwg_conf['this_url'], $caller) == 0) {
    10201021    $response = true;
    10211022  }
     
    11781179  //~ pwg_log("GENARATE start >>>\n".var_export($_SESSION['scan_list_fold'], true)."\n".var_export($_SESSION['scan_list_file'], true)."\nGENERATE start >>>\n");
    11791180
    1180   global $g_listing, $conf;
     1181  global $g_listing, $pwg_conf, $conf;
    11811182 
    11821183  // Flush line <informations>
    1183   $xml_header_url = 'http://'.dirname($_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']).'/';
     1184  $xml_header_url = dirname($pwg_conf['this_url']);
    11841185  $xml_header_date = date('Y-m-d');
    11851186  $xml_header_version = htmlentities($conf['version']);
Note: See TracChangeset for help on using the changeset viewer.