Changeset 161


Ignore:
Timestamp:
Sep 23, 2003, 11:37:04 PM (21 years ago)
Author:
z0rglub
Message:

Filename must use the same characters as the directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/create_listing_file.php

    r155 r161  
    2020$url = 'http://'.$_SERVER['HTTP_HOST'].$local_folder;
    2121
    22 $listing.= "<url>$url</url>";
     22$listing.= '<url>'.$url.'</url>';
    2323       
    2424// get_dirs retourne un tableau contenant tous les sous-répertoires d'un
     
    139139
    140140        array_push( $pictures, $picture );
     141
     142        if ( !preg_match( '/^[a-zA-Z0-9-_.]+$/', $file ) )
     143        {
     144          echo '<span style="color:red;">"'.$file.'" : ';
     145          echo 'The name of the picture should be composed of ';
     146          echo 'letters, figures, "-", "_" or "." ONLY';
     147          echo '</span><br />';
     148        }
    141149      }
    142150    }
Note: See TracChangeset for help on using the changeset viewer.