@@ -106,10 +106,11 @@ |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | |
109 | -if ( isset( $_GET['ajax'] ) ) |
|
109 | +if ( isset( $_GET['ajax'] ) ) { |
|
110 | 110 | echo $response; |
111 | -else |
|
111 | +} else { |
|
112 | 112 | header('location:../index.php?response='.$response); |
113 | +} |
|
113 | 114 | |
114 | 115 | |
115 | 116 | ?> |
@@ -23,8 +23,9 @@ |
||
23 | 23 | $file = str_replace('\\', '/', $file); |
24 | 24 | |
25 | 25 | // Ignore "." and ".." folders |
26 | - if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..'))) |
|
27 | - continue; |
|
26 | + if (in_array(substr($file, strrpos($file, '/') + 1), array('.', '..'))) { |
|
27 | + continue; |
|
28 | + } |
|
28 | 29 | |
29 | 30 | $file = realpath($file); |
30 | 31 |