1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 02:39:47 +02:00
Commit graph

22 commits

Author SHA1 Message Date
Afterster
b4b8f33b85 Add OpenID authentication (fix #113) 2014-01-18 17:49:41 +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
22cb316a48 Ampache code now respect PSR-2 code style 2013-11-17 18:54:14 +01:00
Afterster
4fbcad59db Fix installation when we don't want to create the database user and add a 'skip' button to skip administrative setup if we don't want to setup the database at all. 2013-11-13 23:23:23 +01:00
Paul Arthur
94d635d374 Clean up the logic in install_insert_db
Check the things in an order that makes sense and minimise duplication.
2013-05-28 13:09:58 -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
Paul Arthur
914c903250 Cosmetics: remove tabs 2013-05-27 19:59:01 -04:00
Paul Arthur
4caafd37a6 install: Fix GRANT for non-localhost servers
If we're not connecting locally, tell MySQL to allow our new user to
connect from any host. Previously we restricted them to connecting
from the database host, which is clearly wrong.

It would be slightly better to properly restrict it to the Ampache
host, but let's not overcomplicate the install and confuse the users.
2013-05-27 19:53:25 -04:00
Paul Arthur
eac07ede27 install: Add support for MySQL sockets
If we're using a socket, grant privileges to user@localhost, not
user@socketname.
2013-05-27 19:37:12 -04:00
Paul Arthur
f661e4f6cf Add a working check for database existence
Fixes GH #21
2013-05-13 21:11:38 -04:00
Paul Arthur
a2fa8d3019 More cleanup of install, add DB port option 2013-05-13 21:11:38 -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
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
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
70b37ad472 Clean up direct callers of mysql_error() 2012-11-08 13:34:58 -05:00
Paul Arthur
d2eaf10b07 Move check_database into the Dba class 2012-11-08 13:15:19 -05:00
Paul Arthur
37fc03bb48 Make the CLI database installation tool more robust
Using a relative path required it to be run from the top-level
directory; we already do voodoo to figure out the correct prefix, so we
should use that.
2012-04-17 17:53:52 -04:00
Paul Arthur
e1c3a21b37 Drop old code related to mysql < 5.0 2012-04-17 14:29:50 -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
f03fe15918 Rename lib/install.php to lib/install.lib.php 2012-03-14 11:15:19 -04:00
Renamed from lib/install.php (Browse further)