1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-03 17:59:21 +02:00
Commit graph

63 commits

Author SHA1 Message Date
Afterster
083564cb72 Fixed #571: After fresh install, test.php displays ERROR on tables. Also on existing install. 2014-11-13 19:51:15 +01:00
Afterster
1ab17a5080 Add logs on Dba connection 2014-08-01 00:04:52 +02:00
Afterster
17163ef7a9 Show albums associated to Album Artist 2014-07-17 22:02:44 +02:00
Afterster
b16958f44e Remove old code and fix old php errors 2014-05-25 22:54:04 +02:00
Afterster
2a4bedd282 Add Dbh null sets in case of query error 2014-05-20 02:20:38 +02:00
Afterster
98664d2a84 Update copyright years 2014-05-18 09:53:57 +02:00
Afterster
5eceaf2aea Rename Config class to AmpConfig class to avoid conflict with PEAR (fix #68) 2013-12-13 08:36:23 +01:00
Afterster
22cb316a48 Ampache code now respect PSR-2 code style 2013-11-17 18:54:14 +01:00
Afterster
305b9294ce Add Google Music remote catalog 2013-11-17 01:21:00 +01:00
Paul Arthur
591a0b17c3 Don't call errorInfo() if we don't have an object 2013-07-09 14:33:17 -04:00
Paul Arthur
ee85e4d08d Change Dba::error() and audit its callers
Will hopefully return more useful information during installation, which
is the only place it's actually used and useful.
2013-05-27 20:32:02 -04:00
randomessence
c311581b5c Dba: Add support for MySQL sockets 2013-05-27 19:30:18 -04:00
Paul Arthur
f22ceb42c2 Add support for nonstandard MySQL ports 2013-05-13 17:33:12 -04:00
Paul Arthur
d728c76ed0 Drop nonworking Dba::check_database_exists()
It didn't work.
2013-03-29 03:54:00 -04:00
Paul Arthur
415880faad Fix infinite loop in Dba
Strong and stupid indeed.
2013-03-29 03:37:38 -04:00
Paul Arthur
eee48871e9 Try to be more robust in Dba 2013-03-28 16:56:21 -04:00
Paul Arthur
05498397f3 Dba: return false on errors
I'm pretty sure this is the correct thing to do.
2013-02-11 17:24:17 -05:00
Paul Arthur
287ddc4345 Dba: fix more things
Check that things are things before thing.
2013-02-03 04:03:35 -05:00
Paul Arthur
544aae5431 Fix Dba::quote()
It's still ugly, but it won't get too greedy.
2013-02-02 18:56:14 -05:00
Paul Arthur
4cbb5db6df Make Dba::query() a bit more correct
Check the DB handle and the statement handle before we try to use them.
2013-02-02 18:53:02 -05:00
Paul Arthur
7c43b63109 Ignore errors from json_encode in Dba debugging 2013-01-29 14:26:37 -05:00
Paul Arthur
4c03d447a5 Use parameterised queries in Session 2013-01-29 10:42:33 -05:00
Paul Arthur
b7c9678012 Switch Dba from mysql to PDO-MySQL
The mysql extension is deprecated in PHP 5.5 and will be removed in the
future.
2013-01-29 03:08:52 -05:00
Paul Arthur
101f4a047a Cosmetics: s/Itterate/Iterate/ 2013-01-28 21:46:00 -05:00
Paul Arthur
ef4d366060 Cosmetics: death to tabs
The refactoring I've been doing has reminded me of my strong preference
for spaces, and I feel inclined to impose my will on the tree.
2013-01-26 03:38:46 -05:00
Paul Arthur
fd5b7e1b10 Move Catalog::optimize_tables() to Dba 2013-01-26 00:23:12 -05:00
Paul Arthur
16c3ba34fd Cosmetics: clean up heads in lib/ 2013-01-25 18:38:22 -05:00
Paul Arthur
649298b241 Clean up remaining direct calls to mysql functions
This makes it theoretically possible to replace Dba with a different
implementation somewhat painlessly.
2012-11-08 14:31:53 -05:00
Paul Arthur
c51ddbd3d6 Clean up check_database, more direct mysql calls 2012-11-08 14:02:28 -05:00
Paul Arthur
54f9633498 Cosmetics: clean up spaces 2012-11-08 13:23:27 -05:00
Paul Arthur
93251b3c8d Move check_database_inserted into the Dba class 2012-11-08 13:22:56 -05:00
Paul Arthur
d2eaf10b07 Move check_database into the Dba class 2012-11-08 13:15:19 -05:00
Paul Arthur
8a93c849e2 FS#226 - does not catch MySQL errors before passing to num_rows()
Clean up Dba::num_rows (based on a patch by Natureshadow)

We could check before every call instead, but screw that.
2012-04-15 23:32:03 -04:00
Paul Arthur
34b0eaf233 Clean up uses of Config::set and Config::set_by_array
Consistently pass in a boolean instead of a string or an int for the
clobber flag.
2012-03-06 12:18:57 -05:00
Paul Arthur
89f0b963fe DBA changes
Make fetch_* automatically clean up result sets by default.  Add a seek
function for any cases where we want to iterate over the same result set
multiple times.
2011-06-24 11:56:35 -04:00
Paul Arthur
4aa256cb07 Clean up some PHPDoc crap
Remove misleading, unvetted, or in some cases just plain wrong data.
Packages and categories weren't being used correctly.  They still
aren't.
2011-04-04 17:37:10 -04:00
momo-i
f99643663c header comment modified for phpdoc 2011-02-03 09:43:46 +09:00
momo-i
d703009677 header comment for phpdoc 2011-02-03 07:30:23 +09:00
momo-i
add54bc230 test header for phpdoc. now using only classes and libraries. 2011-02-02 16:48:45 +09:00
momo-i
bc7344c9f5 test for phpdoc 2011-02-02 13:35:26 +09:00
Paul 'flowerysong' Arthur
4b5756ba9d Miscellaneous cleanup. 2010-06-13 08:11:09 +00:00
Paul 'flowerysong' Arthur
feae94b52b Cosmetics. %s/assoicated/associated/g 2010-04-28 22:25:23 +00:00
Karl 'vollmerk' Vollmer
45f382b06d Add vim modelines to all php files (Thx ascheel) 2010-03-14 04:53:15 +00:00
dipsol
a7838e2a13 Replaced almost every dba::query to dba::read or dba::write. 2009-12-14 08:06:20 +00:00
Karl 'vollmerk' Vollmer
97c538e24f slight tweak to dba class to try to make it a little more bullet proof, commented added functions 2009-02-04 01:27:45 +00:00
Karl 'vollmerk' Vollmer
2ad68e2692 add some extra debug for failures on charset setting 2009-01-29 01:57:43 +00:00
Karl 'vollmerk' Vollmer
dd4330e2af fix typo in translate where collation was not set, instead charset was set twice (Thx sfkoch) 2009-01-27 20:55:55 +00:00
Karl 'vollmerk' Vollmer
392354df0a switched to sha() password encryption not using sha2 because of limitations of amarok, also added some caching and fixed some misc bugs 2008-07-26 07:43:18 +00:00
Karl 'vollmerk' Vollmer
13ae6a0371 show the top 2 tags on songs, sync fixes from /branches/3.4 improved caching on song object 2008-05-26 04:08:45 +00:00
Karl 'vollmerk' Vollmer
3634ba8094 added in some caching and add the database upgrade that will make the taging mostly work 2008-05-12 05:58:17 +00:00