summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/access.php2
-rw-r--r--admin/flag.php2
-rw-r--r--admin/index.php2
-rw-r--r--bin/write_playlists.inc3
-rw-r--r--image.php2
-rw-r--r--localplay.php2
-rw-r--r--preferences.php2
-rw-r--r--radio.php2
-rw-r--r--rss.php2
-rw-r--r--song.php2
-rw-r--r--update.php2
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 {
diff --git a/image.php b/image.php
index 5397cfa3..4a1dcbed 100644
--- a/image.php
+++ b/image.php
@@ -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']) {
diff --git a/radio.php b/radio.php
index a2961999..7ef0af0a 100644
--- a/radio.php
+++ b/radio.php
@@ -20,7 +20,7 @@
*
*/
-require 'lib/init.php';
+require_once 'lib/init.php';
show_header();
diff --git a/rss.php b/rss.php
index d74c3820..195efda9 100644
--- a/rss.php
+++ b/rss.php
@@ -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')) {
diff --git a/song.php b/song.php
index 6161c8e3..f611086a 100644
--- a/song.php
+++ b/song.php
@@ -20,7 +20,7 @@
*
*/
-require 'lib/init.php';
+require_once 'lib/init.php';
show_header();
diff --git a/update.php b/update.php
index b03993f3..c9d00bde 100644
--- a/update.php
+++ b/update.php
@@ -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();