diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 17:39:19 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-08-05 17:39:19 +0000 |
commit | b086b1d014e700e092f33e4d561636410e193f7a (patch) | |
tree | 91bca6664c6a53b8a54131493110315ab73d9bc1 /lib | |
parent | c33a3b72e0cd91a863857f86fffc39141fb60355 (diff) | |
download | ampache-b086b1d014e700e092f33e4d561636410e193f7a.tar.gz ampache-b086b1d014e700e092f33e4d561636410e193f7a.tar.bz2 ampache-b086b1d014e700e092f33e4d561636410e193f7a.zip |
fixed add to catalog counting, tweaked sidebar added advanced search button
Diffstat (limited to 'lib')
-rw-r--r-- | lib/class/catalog.class.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lib/class/catalog.class.php b/lib/class/catalog.class.php index af99fcb9..fc77db8f 100644 --- a/lib/class/catalog.class.php +++ b/lib/class/catalog.class.php @@ -417,10 +417,11 @@ class Catalog { $this->count++; if ( !($this->count%10)) { $file = str_replace(array('(',')','\''),'',$full_file); - echo "<script type=\"text/javascript\"><!--"; + echo "<script type=\"text/javascript\">"; echo "update_txt('" . $this->count ."','add_count_" . $this->id . "');"; echo "update_txt('" . htmlentities($file) . "','add_dir_" . $this->id . "');"; - echo "--></script>\n"; + echo "</script>\n"; + flush(); } // update our current state } // not found @@ -532,10 +533,10 @@ class Catalog { /* Stupid little cutesie thing */ $search_count++; if ( !($search_count%5)) { - echo "<script type=\"text/javascript\"><!--"; + echo "<script type=\"text/javascript\">"; echo "update_txt('" . $search_count ."','count_art_" . $this->id . "');"; echo "update_txt('" . $album->name . "','read_art_" . $this->id . "');"; - echo "--></script>\n"; + echo "</script>\n"; flush(); } //echos song count @@ -839,9 +840,9 @@ class Catalog { /* Get the songs and then insert them into the db */ $this->add_files($this->path,$type,$parse_m3u); - echo "<script type=\"text/javascript\"><!--"; + echo "<script type=\"text/javascript\">"; echo "update_txt('" . $this->count . "','count_add_" . $this->id ."');"; - echo "--></script>\n"; + echo "</script>\n"; flush(); @@ -1258,10 +1259,10 @@ class Catalog { $count++; if (!($count%10)) { $file = str_replace(array('(',')','\''),'',$results['file']); - echo "<script type=\"text/javascript\"><!--"; + echo "<script type=\"text/javascript\">"; echo "update_txt('" . $count ."','clean_count_" . $this->id . "');"; echo "update_txt('" . htmlentities($file) . "','clean_dir_" . $this->id . "');"; - echo "--></script>\n"; + echo "</script>\n"; flush(); } //echos song count |