1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-04 02:09:23 +02:00
Commit graph

1583 commits

Author SHA1 Message Date
Paul Arthur
54ccd127d7 Use Horde_Browser for browser detection in Session
That's one of the reasons we have it, after all.
2013-01-29 10:42:33 -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
3010ae8c85 Log stderr when we transcode
Now you shouldn't need to manually run the command to see what went
wrong.
2013-01-28 22:00:08 -05:00
Paul Arthur
75b2af2464 Fix flip_class 2013-01-28 21:48:17 -05:00
Paul Arthur
0d569db17b Fix incorrect updates
Starting with a fresh 3.3.3.5 import these updates failed.  Kick them to
the curb.
2013-01-28 21:48:10 -05:00
Paul Arthur
1b4fe6a2b1 Drop unnecessary updates
We only claim to support updates from 3.3.3.5, and that tarball has
340002.
2013-01-28 21:46:00 -05:00
Paul Arthur
101f4a047a Cosmetics: s/Itterate/Iterate/ 2013-01-28 21:46:00 -05:00
Paul Arthur
a80c969202 Clean up updates
Drop useless updates that created or modified tables which were later
dropped.
2013-01-28 21:46:00 -05:00
Paul Arthur
8b061518cb Make the update process potentially sane
Make sure our writes succeed before declaring the update a success and
updating the DB version.
2013-01-28 21:46:00 -05:00
Paul Arthur
fbbb015950 Use Session for stream sessions 2013-01-28 21:46:00 -05:00
Paul Arthur
0451840fa3 Add 'external' auth method
Based on merge request #11
2013-01-28 21:23:15 -05:00
Paul Arthur
ad4ba9ff9a Drop stale references to 'xml-rpc' 2013-01-28 21:23:15 -05:00
Paul Arthur
a6b70f9eba Rename the 'local' auth method to 'pam'
It's what it should have been from the start.
2013-01-28 21:23:14 -05:00
Paul Arthur
ead4cf2a0e Rename vauth to Auth 2013-01-28 21:23:05 -05:00
Paul Arthur
58a3ab692e Move sessiony things from vauth into Session 2013-01-28 16:57:34 -05:00
Paul Arthur
2eb41bb99a Cosmetic clean up of search.class.php 2013-01-28 13:26:11 -05:00
Paul Arthur
1a164ba699 Yank out the Flash player by the roots. 2013-01-28 13:26:11 -05:00
Holger Brunn
959aebe07f Add an HTML5 player
Merge request #20.  Basic, not very pretty, but works and, unlike the
Flash player, is maintainable.
2013-01-28 13:26:11 -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
8a750c3e87 Move [un]format_bytes() from general.lib.php to UI 2013-01-26 02:36:58 -05:00
Paul Arthur
a12679b13d Move get_user_icon from ui.lib.php to UI::get_icon 2013-01-26 02:19:06 -05:00
Paul Arthur
80b618ba40 Move update_text from ui.lib.php to UI 2013-01-26 01:42:52 -05:00
Paul Arthur
136f9f5856 Move ajax_include() from ui.lib.php to UI 2013-01-26 01:35:59 -05:00
Paul Arthur
d572c2776f Move show_box_{top,bottom}() from ui.lib.php to UI 2013-01-26 01:28:34 -05:00
Paul Arthur
04aa79b53c Move show_{footer,header}() from ui.lib.php to UI 2013-01-26 01:22:50 -05:00
Paul Arthur
eaa44dcd09 Continue moving things into UI
check_php_iconv() from lib/debug.lib.php becomes UI::check_iconv()
truncate_with_ellipsis() from lib/ui.lib.php becomes UI::truncate()
2013-01-26 01:15:59 -05:00
Paul Arthur
42133f38d2 Move access_denied() from lib/ui.lib.php to UI 2013-01-26 00:57:40 -05:00
Paul Arthur
5f02e4f43c Move flip_class() from lib/ui.lib.php to UI 2013-01-26 00:52:50 -05:00
Paul Arthur
31920c88a7 Move Catalog::get_disabled() to Song 2013-01-26 00:40:03 -05:00
Paul Arthur
d86e605fed Drop unused Catalog::get_catalog_ids() 2013-01-26 00:31:36 -05:00
Paul Arthur
e2d3c94800 Catalog::_check_ticker() -> UI::check_ticker() 2013-01-26 00:30:26 -05:00
Paul Arthur
fd5b7e1b10 Move Catalog::optimize_tables() to Dba 2013-01-26 00:23:12 -05:00
Paul Arthur
7703c9431d Query::clean() -> Query::gc() 2013-01-26 00:19:43 -05:00
Paul Arthur
303ff7d645 Catalog::clean() -> Catalog::gc() 2013-01-26 00:18:36 -05:00
Paul Arthur
dff1d2cf46 Rename shoutBox to Shoutbox 2013-01-25 21:49:47 -05:00
Paul Arthur
57483216e4 Rename tmpPlaylist to Tmp_Playlist 2013-01-25 21:48:51 -05:00
Paul Arthur
1069d54c85 Move clean functions into their respective classes
Uniformly name them gc()
2013-01-25 21:45:47 -05:00
Paul Arthur
cad1380737 Move duplicate searching from Catalog to Song
Catalog::get_duplicate_songs() -> Song::find_duplicates()
Catalog::get_duplicate_info() -> Song::get_duplicate_info()
2013-01-25 20:49:16 -05:00
Paul Arthur
80f4859712 Move Catalog::clear_stats() to Stats::clear() 2013-01-25 20:35:45 -05:00
Paul Arthur
d14b5215eb Cosmetics: s/incase/in case/ 2013-01-25 20:30:36 -05:00
Paul Arthur
9c28ed5ad1 Consistently use _ in two-word class names 2013-01-25 19:54:11 -05:00
Paul Arthur
8808fdf10d conf() -> Config::get()
I have a feeling a lot of these are in stale, unused code, but there
might be some actual bugs here.  conf() was replaced a while back.
2013-01-25 19:29:14 -05:00
Paul Arthur
0c66442b55 require and require_once aren't functions
Since the parentheses are optional, we leave them off to remind ourselve
that PHP be crazy, yo.
2013-01-25 19:20:47 -05:00
Paul Arthur
d90a057aba Clean up outdated comment 2013-01-25 19:10:14 -05:00
Paul Arthur
16c3ba34fd Cosmetics: clean up heads in lib/ 2013-01-25 18:38:22 -05:00
Paul Arthur
83dc27dcce Remove explicit collation settings from updates
Shouldn't be necessary, might be wrong, hmm.
2013-01-25 18:01:15 -05:00
Paul Arthur
9340ff287c Rework transcoding
Remove some of the roundabout complexity that had built up.  Push people
toward using a single, flexible tool for most of their transcoding
needs.  Increase backend and configuration flexibility to support
user-requested format changes (e.g. for an HTML5 player); this
functionality is not yet exposed.
2013-01-23 13:11:16 -05:00
Paul Arthur
37e09a6428 Clean up the bitrate calculation
Dynamic downsampling, I suppose.
2013-01-23 13:09:36 -05:00
Paul Arthur
e1000558fb Tear the offset/eof/size crap out of Stream
Now that playback doesn't pretend it's supported, we don't need the
fragile hacks to support guessing the content size or 'seeking' within
a transcoded stream.
2013-01-23 13:09:27 -05:00