Phyks (Lucas Verney)
e86ea9a099
Fix copyright date
2016-08-01 22:02:00 +02:00
Phyks (Lucas Verney)
2bb142eeb8
Fix issue #1260
...
Fix coding guidelines incoherences. Code should match PSR1/2 now, and
php-cs is set to check it on each commit.
Also fixed the Git hook to take into account only added, modified,
copied and renamed files (preventing errors when trying to check deleted
files).
Closes #1260 .
2016-08-01 21:55:14 +02:00
Manuel
f3005a1e6b
General translation update
...
Translation update as always^^
Modified `lib/general.lib.php` to fit current supported languages and
show more detailed what languages are not listed.
:-)
2016-06-23 15:20:13 +02:00
Phyks (Lucas Verney)
a50fb430ba
Fix for issue #1248
...
Generate `sceret_key` on Ampache installation
Generate a `secret_key` on Ampache installation and put it in the
generated config. This removes the need to do it manually, and the
secret key is ensured to be crypto safe.
Also move the `web_path` configuration setting under a "Various"
fieldset, as it had nothing to do with database settings.
Also added a comment about a missing `break` statement, which was on
purpose, but one could think it was a mistake at first sight.
Closes #1248 .
2016-06-16 11:03:56 +02:00
Afterster
8a2120ceac
Added disk (%d) to catalog pattern
2016-02-27 21:18:50 +01:00
Afterster
9c3637b879
Change license from GPLv2 to AGPLv3
2015-12-02 20:46:34 +01:00
Afterster
a340c30872
Update code style script with new checks
2015-11-18 22:39:49 +01:00
Afterster
5124a5ed4c
Merge branch 'develop' of https://github.com/Psy-Virus/ampache into Psy-Virus-develop
...
Conflicts:
templates/show_album_row.inc.php
templates/show_artist_row.inc.php
templates/show_label_row.inc.php
templates/show_playlist_song_row.inc.php
templates/show_song_row.inc.php
templates/show_video_row.inc.php
Apply align_equals and concat_with_spaces on code style
2015-11-07 08:08:59 +01:00
Afterster
47a6585c88
Use latest php-cs-fixer version
2015-07-29 21:59:12 +02:00
Afterster
aa3029ef7b
Fix new Scrutinizer issues since scrutinizer tool update
2015-02-01 21:14:14 +01:00
Lawrence Brown
60a653daf4
copyright 2014 -> 2015
...
janitorial services
2015-01-04 21:36:41 +00:00
Lawrence Brown
d95703ca37
sort languages alphabetically in source code, too
2015-01-03 18:45:00 +00:00
Lawrence Brown
81f9bbe9d8
organize comments, spacing and prepend English US to languages list
2015-01-03 18:41:45 +00:00
Lawrence Brown
32df467096
sort list of languages by country code
2015-01-03 18:32:51 +00:00
Lawrence Brown
447647910e
loop over directories the "correct" way
...
see http://php.net/manual/en/function.readdir.php - specifically:
/* This is the correct way to loop over the directory. */
while (false !== ($entry = readdir($handle))) {
echo "$entry\n";
}
/* This is the WRONG way to loop over the directory. */
while ($entry = readdir($handle)) {
echo "$entry\n";
}
2015-01-03 16:29:17 +00:00
René Bigler
430e7c6cce
Fix code styles through php-cs-fixer
2014-10-21 20:28:17 +02:00
SUTJael
3972c20d9e
Add ability to write directly the new configuration file additionally to the generate action.
2014-10-20 18:47:03 +02:00
Afterster
2c221e8216
Add user geolocation and user statistical graphs
2014-10-06 01:05:17 +02:00
Afterster
8c452f6638
Add Missing Artist search on top search
2014-10-04 00:27:40 +02:00
Afterster
160c59dea2
Fix Scrutinizer issues
2014-09-30 07:47:21 +02:00
Afterster
9d8f57d16d
Declare apache_request_headers and getallheaders if missing ( #212 )
2014-05-28 00:44:13 +02:00
Afterster
b16958f44e
Remove old code and fix old php errors
2014-05-25 22:54:04 +02:00
Afterster
98664d2a84
Update copyright years
2014-05-18 09:53:57 +02:00
Afterster
0152ab610f
Move ampache-doped to ampache
2014-04-15 20:20:02 +02:00
Afterster
7b64802f62
Rename Ampache to Ampache-doped
2014-02-01 10:30:13 +01: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
78c889f4b3
Remove remaining Prototype call and replace tinybox by prettyPhoto
2013-11-20 22:12:01 +01:00
John Moore
f4d7b64fd0
Merge branch 'master' of https://github.com/ampache-doped/ampache
...
Conflicts:
lib/class/ajax.class.php
lib/general.lib.php
themes/fresh/templates/default.css
2013-11-19 19:27:31 -06:00
Afterster
22cb316a48
Ampache code now respect PSR-2 code style
2013-11-17 18:54:14 +01:00
John Moore
39257b44a7
fix issue where encoded objects in database where not decoded before displaying
2013-07-27 19:56:22 -05:00
Paul Arthur
1105e0487f
Don't reset the PHP memory_limit when it's -1
...
This function is never supposed to lower the limit, and -1 is a flag
value for no limit.
2013-05-15 22:09:30 -04:00
Paul Arthur
79b6eb98e7
Fix scrub_in to be safer
2013-02-07 15:17:24 -05:00
Paul Arthur
dd70337451
Clean up PHP tests and reuse them in init.php
...
Also move the config-related functions out of debug.lib.php (why they
were there in the first place is anyone's guess.)
2013-02-03 11:16:46 -05:00
Paul Arthur
499aef7414
Fix sed error
2013-01-26 05:00:17 -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
16c3ba34fd
Cosmetics: clean up heads in lib/
2013-01-25 18:38:22 -05:00
Paul Arthur
4ea8af4968
Remove more code that only ran on PHP <5.3
2012-07-01 22:30:32 -04:00
Paul Arthur
567b27954b
Clean up set_memory_limit
...
ini_set should be passed an integer byte value; shorthand byte values
should only be used in php.ini. It's bad to assume that values are
always in megabytes; we could enforce it in our config file if we
cared, but not in PHP's.
2012-07-01 17:09:36 -04:00
Paul Arthur
408e71344a
escapeshellarg's behaviour is locale-dependent
...
Reimplement it locally so it isn't. Might fix FS#252.
2012-05-25 16:52:57 -04:00
Paul Arthur
5f2f81fa8f
Use spl_autoload_register instead of __autoload
...
Might be useful in the future, __autoload is discouraged according to
the PHP documentation.
2012-04-18 00:54:54 -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
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
add54bc230
test header for phpdoc. now using only classes and libraries.
2011-02-02 16:48:45 +09:00
Paul 'flowerysong' Arthur
63031fb6c1
Use a function to format bytes -> human-readable sizes. Also bump catalog build
...
memory profiling logging to level 5; fixes FS#141.
2010-10-15 19:16:42 +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
6873ed87ef
Remove unused function format_time.
2010-06-07 08:28:05 +00:00
Karl 'vollmerk' Vollmer
3ce42f5e88
More changes to art - have not removed old functionality yet
2010-03-21 20:53:15 +00:00