Subversion Repositories cheapmusic

Rev

Rev 77 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 77 Rev 84
Line 4... Line 4...
4
 
4
 
5
// Prepare the file name from the query string.
5
// Prepare the file name from the query string.
6
if (!preg_match("#^[a-zA-Z0-9_]+$#", $_GET['file'])) {
6
if (!preg_match("#^[a-zA-Z0-9_]+$#", $_GET['file'])) {
7
    die;
7
    die;
8
}
8
}
9
$file = "../tmp/pb_" . $_GET['file'] . ".txt";
9
$file = "../MyFiles/tmp/pb_" . $_GET['file'] . ".txt";
10
 
10
 
11
// Make sure the file is exist.
11
// Make sure the file is exist.
12
if (file_exists($file)) {
12
if (file_exists($file)) {
13
    // Get the content and echo it.
13
    // Get the content and echo it.
14
    $text = file_get_contents($file);
14
    $text = file_get_contents($file);