summaryrefslogtreecommitdiffstats
path: root/phpinfo.php
diff options
context:
space:
mode:
authorPaul Arthur <paul.arthur@flowerysong.com>2011-11-22 18:04:19 -0500
committerPaul Arthur <paul.arthur@flowerysong.com>2011-11-22 18:04:19 -0500
commit57135fe167b21354a1ac0ec6cec653324c4562b2 (patch)
tree2364590e26efd3ab579b0f9312a7879cce3d3d65 /phpinfo.php
parentddff3237d9a9e63230b6b9d025401a87d1c9d49d (diff)
downloadampache-57135fe167b21354a1ac0ec6cec653324c4562b2.tar.gz
ampache-57135fe167b21354a1ac0ec6cec653324c4562b2.tar.bz2
ampache-57135fe167b21354a1ac0ec6cec653324c4562b2.zip
Clean up some more "security" things.
phpinfo might actually be useful.
Diffstat (limited to 'phpinfo.php')
-rw-r--r--phpinfo.php37
1 files changed, 37 insertions, 0 deletions
diff --git a/phpinfo.php b/phpinfo.php
new file mode 100644
index 00000000..a77ce274
--- /dev/null
+++ b/phpinfo.php
@@ -0,0 +1,37 @@
+<?php
+/**
+ * PHPInfo
+ *
+ *
+ * LICENSE: GNU General Public License, version 2 (GPLv2)
+ * Copyright (c) 2001 - 2011 Ampache.org All Rights Reserved
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License v2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * @package Ampache
+ * @copyright 2001 - 2011 Ampache.org
+ * @license http://opensource.org/licenses/gpl-2.0 GPLv2
+ * @link http://www.ampache.org/
+ */
+
+require_once 'lib/init.php';
+
+if (!Access::check('interface', 100)) {
+ access_denied();
+ exit();
+}
+
+phpinfo();
+
+?>