Afterster
bddca41379
Readd php closing tag on templates
2013-11-17 19:32:22 +01:00
Afterster
4898803c5e
Fix code syntax due to code style autofix
2013-11-17 19:14:43 +01:00
Afterster
2c47312696
Fix static declaration
2013-11-17 19:06:37 +01:00
Afterster
22cb316a48
Ampache code now respect PSR-2 code style
2013-11-17 18:54:14 +01:00
Paul Arthur
04347b9a59
Move UTF-8 cleanup into its own method
2013-01-29 11:33:32 -05:00
Paul Arthur
4fe5de82b7
Session::gc takes a parameter
...
It's unused, but it's part of PHP's session interface so there it is.
2013-01-29 11:16:30 -05:00
Paul Arthur
fbbb015950
Use Session for stream sessions
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
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
1069d54c85
Move clean functions into their respective classes
...
Uniformly name them gc()
2013-01-25 21:45:47 -05:00
Paul Arthur
16c3ba34fd
Cosmetics: clean up heads in lib/
2013-01-25 18:38:22 -05:00
Dominik George
b64649e720
FS#225 - xml_from_array() produces runtime error
...
Newer versions of the PCRE library changed behaviour so we can't
replace invalid characters by listing them, since it now requires
that the characters in a pattern are valid Unicode characters. Use an
inverted character class instead.
Might work.
2012-04-15 23:31:17 -04:00
Paul Arthur
f65076b93d
Switch from _() to T_()
...
Even if we move away from php-gettext in the future, it's easy to
write a quick T_() as a simple wrapper; it's not so easy to rewrite
PHP to allow redeclaration of a function.
2012-04-12 21:13:29 -04:00
Paul Arthur
15457b16f1
Drop unnecessary conditional definition of gettext
...
php-gettext will always provide these functions.
2012-04-12 21:13:29 -04:00
Paul Arthur
9ecedf3ec8
Make the output of catalog_update somewhat readable.
...
The previous method of mangling the generated HTML was extremely
fragile and broke in a non-obvious fashion when the output was
changed. Instead, modify our convenience function that updates the
text to behave differently when the command line interface is being
used.
2011-08-04 00:10:23 -04:00
Paul Arthur
1ad8c46833
Flush in update_text to improve interface responsiveness
2011-06-24 11:54:18 -04:00
Paul Arthur
f7c1e57cf0
Transcoding/streaming cleanup.
...
Derive our new filesize from the length, not the previous bitrate and
size. Allow higher bitrates than the source when they're different
formats. Return HTTP error codes when an error occurs. Minor cleanup.
2011-04-08 23:26:21 -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
b3289a24f4
Add function that check ampache and php version from each website.
2011-02-04 14:34:11 +09:00
momo-i
5da3caed31
Modified header comment for phpdoc
2011-02-03 10:25:54 +09:00
Paul 'flowerysong' Arthur
1f156573a6
Try not to include invalid characters in our AJAX XML output.
2010-06-30 04:19:48 +00:00
Paul 'flowerysong' Arthur
6277492321
JavaScript cleanup. Consistently use camelCase for naming JS functions. Use
...
Prototype functionality where possible (particularly for Ajax). Move our JS
into lib/javascript (I dropped kajax as an external module since the new
ajax.js is completely different apart from function headers.) Remove unused
JS functions from base.js.
2010-06-24 02:52:01 +00:00
Paul 'flowerysong' Arthur
dc495ea8ea
Clean up general.lib.php and ui.lib.php: remove unused functions, group related
...
functions, simplify implementation of some functions.
2010-06-13 07:58:43 +00:00
Paul 'flowerysong' Arthur
c1ed41a16d
Remove some unused genre stuff.
2010-06-10 01:19:14 +00:00
Paul 'flowerysong' Arthur
4c22b56f89
Remove unused img_resize function, cosmetic changes around the altered version
...
of it in art.class.php.
2010-05-03 17:26:21 +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
a03cb50a0c
Fix get_location() resolves #533
2009-08-26 16:10:23 +00:00
momo-i
6136bb1081
fixed for PHP 5.3.0 deprecate warnings
2009-07-02 22:42:40 +00:00
Karl 'vollmerk' Vollmer
594a84df04
alexey #426 translation patch
2009-05-06 11:13:40 +00:00
Karl 'vollmerk' Vollmer
39108c662b
slightly reduce quality on resized jpgs to save a little space
2009-04-21 10:44:23 +00:00
Karl 'vollmerk' Vollmer
fdb7c58cb1
fix typo causing height to not display on art retrival, update to db allowing gc of tmp_browse, add extension to api album art image urls
2009-03-15 16:16:04 +00:00
Karl 'vollmerk' Vollmer
ed15ee4a9c
Add ability to have anonymouse access of a defined level with manual login of users
2009-03-08 12:29:38 +00:00
Karl 'vollmerk' Vollmer
e474991d13
Resolve #401 new database update, reset album thumbs and use resized art...
2009-03-01 02:35:42 +00:00
Karl 'vollmerk' Vollmer
6777ec1e2e
first work on next db update, correct play_url() removing redundent path, fix democratic play clear
2009-03-01 00:10:49 +00:00
Karl 'vollmerk' Vollmer
dbdd96ed1b
unify how the stream is constructed and played, this is a major change might be some regressions
2009-02-28 18:13:48 +00:00
Karl 'vollmerk' Vollmer
cef43c3602
reorganize the menu a whole bunch and add a confirmation page to the catalog deletion
2008-06-19 06:32:23 +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
1c85db030e
added in the ajax-loading div display on catalog processes, also relaxed the restrictions on filenames of non-site_charset, warning rather then fatal error
2008-05-06 05:17:55 +00:00
spocky
179b7dab43
Changed "starts with" browsing execution from OnChange to OnKeyUp (sounds more logical this way). Maybe we dont need "alphabet filter" above anymore. Or maybe we do (?).
...
Fixed songs starting with "All" never searched
2008-03-17 22:00:00 +00:00
Karl 'vollmerk' Vollmer
e99f7c6112
fixed the issue with a lack of gettext (define ngettext if it does not exist)
2008-03-14 05:44:59 +00:00
Karl 'vollmerk' Vollmer
21871e8d17
added in the rating images from greengeek, removed some useless functions, tweaked working on update to correctly reflect limitations
2008-01-27 19:16:01 +00:00
Karl 'vollmerk' Vollmer
ec4a5b888a
fixed updating access level for prefs, headers for po files, httpq player skip command and image resize for gif and png
2008-01-05 21:58:30 +00:00