summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormomo-i <webmaster@momo-i.org>2011-02-07 07:19:43 +0900
committermomo-i <webmaster@momo-i.org>2011-02-07 07:19:43 +0900
commitce4f426103f6f03f94867868945846973d29428b (patch)
tree25f97a23df87a7d62d414103a21772ffd9dea6e5 /lib
parent8b8c41cda1cbea7d0c46f813d53f1e4696cfb6c5 (diff)
downloadampache-ce4f426103f6f03f94867868945846973d29428b.tar.gz
ampache-ce4f426103f6f03f94867868945846973d29428b.tar.bz2
ampache-ce4f426103f6f03f94867868945846973d29428b.zip
Update admin sidebar menu.
Rename function name.
Diffstat (limited to 'lib')
-rw-r--r--lib/security.lib.php25
1 files changed, 18 insertions, 7 deletions
diff --git a/lib/security.lib.php b/lib/security.lib.php
index 7f076fb5..ce647eb6 100644
--- a/lib/security.lib.php
+++ b/lib/security.lib.php
@@ -37,14 +37,14 @@
*/
/**
- * check_ampache
+ * check_ampache_version
*
* This function checks latest ampache stable from Ampache web site.
* If new version found, return error message.
*
* @return string
*/
-function check_ampache() {
+function check_ampache_version() {
$my_ampache = Config::get('version');
if(preg_match('#-#', $my_ampache)) {
@@ -64,10 +64,10 @@ function check_ampache() {
return $results;
-} // check_ampache
+} // check_ampache_version
/**
- * check_php_security
+ * check_php_version
*
* This function checks latest PHP stable from php web site.
* If new version found, return error message.
@@ -75,7 +75,7 @@ function check_ampache() {
*
* @return string
*/
-function check_php_security() {
+function check_php_version() {
$my_php = PHP_VERSION;
@@ -99,7 +99,7 @@ function check_php_security() {
return $results;
-} // check_php_security
+} // check_php_version
/**
* get_latest
@@ -169,5 +169,16 @@ function get_latest($type = null) {
return $version;
-}
+} // get_latest
+
+/**
+ * check_security
+ *
+ * This function tests wheter vulnerable settings on your php.ini
+ *
+ * @return array Show security messages, if found.
+ */
+function check_security() {
+
+} // check_security
?>