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
Karl 'vollmerk' Vollmer
693e26e2ad
commit of the patches from codeoverload to implement tagging, will not work without manual modification of database, yes.. this commit breaks things cope
2008-05-12 02:52:50 +00:00
Karl 'vollmerk' Vollmer
dfcd869f37
tweaks the db updates and adds a few more charset translations to the db charset reset function
2008-05-10 07:14:38 +00:00
Karl 'vollmerk' Vollmer
5318a90e4a
add in functionality to reset db charset also updated the update function to take into account the collation
2008-05-08 06:44:22 +00:00
Karl 'vollmerk' Vollmer
310adfa359
last commit before beta3 release
2008-04-21 03:21:20 +00:00
Karl 'vollmerk' Vollmer
17244cee94
add the title back in to the links and be a little more violent with the charset setting...
2008-03-19 05:34:59 +00:00
Karl 'vollmerk' Vollmer
318700ad7c
fixed paging on browse catalogs page, disabled the write_tags script and removed a dbl escape on the preferences
2007-12-30 01:49:13 +00:00
Karl 'vollmerk' Vollmer
ba62ca14b9
added abilty to display and delete localplay instances
2007-10-12 04:55:20 +00:00