summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-09-07 04:28:33 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-09-07 04:28:33 +0000
commit0a9fcb0298a4febc6287c77d29929a1cb833eb8b (patch)
treea2490a7d89e60c225141728e7102d20dd5e40e7d /modules
parentbe23e09225cb961e94dbd95c6f394a5d5d7036cb (diff)
downloadampache-0a9fcb0298a4febc6287c77d29929a1cb833eb8b.tar.gz
ampache-0a9fcb0298a4febc6287c77d29929a1cb833eb8b.tar.bz2
ampache-0a9fcb0298a4febc6287c77d29929a1cb833eb8b.zip
fixed stats clearing error
Diffstat (limited to 'modules')
-rw-r--r--modules/admin.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/modules/admin.php b/modules/admin.php
index 346e373f..42e24e48 100644
--- a/modules/admin.php
+++ b/modules/admin.php
@@ -151,59 +151,6 @@ function show_delete_stats($username) {
} // show_delete_stats()
-/*
- * clear_catalog_stats()
- *
- * Use this to clear the stats for the entire Ampache server.
- *
- */
-
-function clear_catalog_stats() {
- $dbh = dbh();
- $sql = "DELETE FROM object_count";
- $result = mysql_query($sql, $dbh);
- $sql = "UPDATE song SET played = 'false'";
- $result = mysql_query($sql, $dbh);
-} // clear_catalog_stats
-
-
-/*
- * check_user_form
- *
- */
-
-function check_user_form ($username, $fullname, $email, $pass1, $pass2, $type) {
- global $dbh;
-
- $sql = "SELECT * FROM user WHERE username='$username'";
- $db_result = mysql_query($sql, $dbh);
-
- if ( mysql_num_rows($db_result) ) {
- return "That username is already taken, please choose another.";
- }
-
- if ( $type == 'new_user' ) {
- if ( empty($username) ) {
- return "Please fill in a username.";
- }
- elseif ( ($pass1 != $pass2) || (empty($pass1) || empty($pass2)) ) {
- return "Sorry, your passwords do no match.";
- }
- }
- elseif ( empty($fullname) ) {
- return "Please fill in a full name.";
- }
- elseif ( empty($email) ) {
- return "Please fill in an email address.";
- }
- elseif ( ($pass1 != $pass2) || (empty($pass1) || empty($pass2)) ) {
- if ( $type == 'new_user' ) {
- return "Sorry, your passwords do no match.";
- }
- }
-
- return false;
-} // check_user_form()
/*
* get_user