summaryrefslogtreecommitdiff
path: root/includes/include.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-02-27 04:25:08 +0100
committerTheTroll <trolldev@gmail.com>2010-02-27 04:25:08 +0100
commit6cebd24a31ffd31840395436f1c0b6bbcfa25b5f (patch)
tree41f2c8374cf39146b72764a5fb9c9e9359cdc087 /includes/include.php
parent9f5600ba3567c5b9a6a28ab3ed6d5ec75cf58a86 (diff)
downloadistreamdev-6cebd24a31ffd31840395436f1c0b6bbcfa25b5f.tar.gz
istreamdev-6cebd24a31ffd31840395436f1c0b6bbcfa25b5f.tar.bz2
Check ram dir
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)