summaryrefslogtreecommitdiff
path: root/includes/include.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/include.php')
-rwxr-xr-xincludes/include.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/include.php b/includes/include.php
index ae77137..177a1c0 100755
--- a/includes/include.php
+++ b/includes/include.php
@@ -14,6 +14,10 @@ include ('getid3/getid3.php');
function selectpage()
{
+ // Sanity check
+ if (!file_exists('ram'))
+ die("Error: 'ram/' directory is missing, please create it!");
+
$action = $_REQUEST['action'];
switch ($action)