From 6cebd24a31ffd31840395436f1c0b6bbcfa25b5f Mon Sep 17 00:00:00 2001 From: TheTroll Date: Sat, 27 Feb 2010 04:25:08 +0100 Subject: Check ram dir --- includes/include.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'includes/include.php') 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) -- cgit v1.2.3