diff options
-rw-r--r-- | admin/access.php | 2 | ||||
-rw-r--r-- | admin/flag.php | 2 | ||||
-rw-r--r-- | admin/index.php | 2 | ||||
-rw-r--r-- | bin/write_playlists.inc | 3 | ||||
-rw-r--r-- | image.php | 2 | ||||
-rw-r--r-- | localplay.php | 2 | ||||
-rw-r--r-- | preferences.php | 2 | ||||
-rw-r--r-- | radio.php | 2 | ||||
-rw-r--r-- | rss.php | 2 | ||||
-rw-r--r-- | song.php | 2 | ||||
-rw-r--r-- | update.php | 2 |
11 files changed, 11 insertions, 12 deletions
diff --git a/admin/access.php b/admin/access.php index 376c6fad..8c37d35d 100644 --- a/admin/access.php +++ b/admin/access.php @@ -20,7 +20,7 @@ * */ -require '../lib/init.php'; +require_once '../lib/init.php'; if (!Access::check('interface','100')) { access_denied(); diff --git a/admin/flag.php b/admin/flag.php index 943a281e..ffbc6655 100644 --- a/admin/flag.php +++ b/admin/flag.php @@ -20,7 +20,7 @@ * */ -require '../lib/init.php'; +require_once '../lib/init.php'; if (!Access::check('interface','100')) { access_denied(); diff --git a/admin/index.php b/admin/index.php index a8262a46..501d6663 100644 --- a/admin/index.php +++ b/admin/index.php @@ -20,7 +20,7 @@ * */ -require '../lib/init.php'; +require_once '../lib/init.php'; if (!Access::check('interface',100)) { access_denied(); diff --git a/bin/write_playlists.inc b/bin/write_playlists.inc index ef3ba0d1..4342d20a 100644 --- a/bin/write_playlists.inc +++ b/bin/write_playlists.inc @@ -25,8 +25,7 @@ */ define('NO_SESSION','1'); -require ("../lib/init.php"); - +require_once '../lib/init.php'; if (!$GLOBALS['argv']['1'] || $GLOBALS['argv']['1'] == '-h') { usage(); } else { @@ -30,7 +30,7 @@ // This file is a little weird it needs to allow API session // this needs to be done a little better, but for now... eah define('NO_SESSION','1'); -require 'lib/init.php'; +require_once 'lib/init.php'; // Check to see if they've got an interface session or a valid API session, if not GTFO if (!vauth::session_exists('interface',$_COOKIE[Config::get('session_name')]) AND !vauth::session_exists('api',$_REQUEST['auth']) AND !vauth::session_exists('xml-rpc',$_REQUEST['auth'])) { diff --git a/localplay.php b/localplay.php index da2038ca..1710948b 100644 --- a/localplay.php +++ b/localplay.php @@ -20,7 +20,7 @@ * */ -require 'lib/init.php'; +require_once 'lib/init.php'; show_header(); diff --git a/preferences.php b/preferences.php index 51ad3b7c..e9b107d1 100644 --- a/preferences.php +++ b/preferences.php @@ -20,7 +20,7 @@ * */ -require 'lib/init.php'; +require_once 'lib/init.php'; // Switch on the action switch($_REQUEST['action']) { @@ -20,7 +20,7 @@ * */ -require 'lib/init.php'; +require_once 'lib/init.php'; show_header(); @@ -21,7 +21,7 @@ */ define('NO_SESSION','1'); -require 'lib/init.php'; +require_once 'lib/init.php'; /* Check Perms */ if (!Config::get('use_rss') || Config::get('demo_mode')) { @@ -20,7 +20,7 @@ * */ -require 'lib/init.php'; +require_once 'lib/init.php'; show_header(); @@ -23,7 +23,7 @@ // We need this stuff define('NO_SESSION', 1); define('OUTDATED_DATABASE_OK', 1); -require 'lib/init.php'; +require_once 'lib/init.php'; // Get the version and format it $version = Update::get_version(); |