Ignore:
Timestamp:
Sep 21, 2003, 8:01:02 PM (21 years ago)
Author:
z0rglub
Message:

Displays a message when directory name contains accentuated characters or
spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/create_listing_file.php

    r57 r155  
    3939      {
    4040        $sub_rep[$i++] = $file;
     41        if ( !preg_match( '/^[a-zA-Z0-9-_.]+$/', $file ) )
     42        {
     43          echo '<span style="color:red;">"'.$file.'" : ';
     44          echo 'The name of the directory should be composed of ';
     45          echo 'letters, figures, "-", "_" or "." ONLY';
     46          echo '</span><br />';
     47        }
    4148      }
    4249    }
Note: See TracChangeset for help on using the changeset viewer.