summaryrefslogtreecommitdiffstatshomepage
path: root/src/SemanticScuttle/Service/User.php
Commit message (Collapse)AuthorAgeFilesLines
* Throw an error when changes can't be committed to the ↵sqlite-fixesGravatar Tom Willemse2024-06-111-4/+33
| | | | | | | | database I was testing and another process had the database open, so it couldn't commit changes. This wasn't apparent from the UI because it would just silently assume a commit went fine.
* Fix using SQLite as a database engineGravatar Tom Willemse2024-06-101-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The ‘sqlite_*’ functions don't exist anymore in PHP 8. They have been replaced with several ‘SQLite3*’ classes. - There are some differences between MySQL and SQLite queries that showed up while doing this work. These differences have been pushed into a QueryBuilder class so that the other database engines don't have to be modified. This is done in an ad-hoc basis for now, just to get things working. - SQLite doesn't support the ‘!’ negation operator used as ‘!ISNULL(...)’, instead I use ‘IIF(...)’. - SQLite doesn't support a ‘LEFT(...)’ function, instead I use ‘SUBSTRING(..., 0, ...)’. - The SQLite3 module doesn't provide a connection identifier, instead you use an object that represents the connection. - SQLite doesn't support the ‘ALL’ keyword (or at least doesn't support it in the same way MySQL does). Instead of ‘<> ALL <subquery>’ I use ‘NOT IN <subquery>’. - The ‘SQLite3*’ classes don't provide any way to determine how many rows have been returned without iterating through all of them, so any place that tries to figure out the rows beforehand just doesn't anymore. - All the database engine classes require a ‘QueryBuilder’ instance. The sqlite one uses a specialized one. I can't test most of these database engines, so I'm focusing on SQLite and MySQL/MariaDB for now.
* Make sure to check users for being falseGravatar Tom Willemse2024-06-101-1/+6
|
* Revert "Fix issue accessing an array index on a boolean"Gravatar Tom Willemse2024-06-101-18/+2
| | | | This reverts commit e1bfad3df7b41cbc8537222f211edaf9b3444edf.
* Fix issue accessing an array index on a booleanGravatar Tom Willemse2024-02-291-2/+18
|
* Update User.php for PHP 8Gravatar buckaroo-labs2023-12-201-0/+2
|
* remove php4-style object reference passingGravatar Christian Weiske2013-03-171-14/+14
|
* privatekey -> privateKey everywhereGravatar Christian Weiske2011-06-271-10/+10
|
* Fixed issue with storing RSS login in sessionGravatar Mark Pemberton2011-06-151-1/+1
|
* Fixed auth issue with private RSS feedGravatar Mark Pemberton2011-06-141-0/+1
|
* Reverted changes of date() to gdate(), added tests to ↵Gravatar Mark Pemberton2011-06-041-2/+0
| | | | confirm existence of private RSS feed, and finalized changes to the user session usage with rss.php
* Merge branch 'master' into privatekey2Gravatar Mark Pemberton2011-05-211-2/+2
|\
| * fix ssl client cert login processGravatar Christian Weiske2011-05-131-2/+2
| |
* | Fixed sql commands where resources were not freedGravatar Mark Pemberton2011-05-141-4/+5
| |
* | new privatekey2 branch with privatekey changesGravatar Mark Pemberton2011-05-131-32/+179
|/
* Merge branch 'master' into ssl-client-certsGravatar Christian Weiske2011-05-121-20/+68
|\
| * do not automatically store user id in sessionGravatar Christian Weiske2011-05-121-12/+39
| |
| * reformat userservice::getWatchNamesGravatar Christian Weiske2011-05-121-8/+29
| |
* | move ssl client cert handling into separate service classGravatar Christian Weiske2011-05-091-67/+69
| |
* | also match client issuer (CA)Gravatar Christian Weiske2011-05-051-3/+11
| |
* | part of request #3163623: add support to login via ssl ↵Gravatar Christian Weiske2011-05-041-0/+50
|/ | | | client certificate. web interface to register certificates is still missing
* Fix bug #3111254: Search in my_watchlist results in errorGravatar Christian Weiske2010-11-191-3/+3
|
* tests for getadminlinkedtagsGravatar Christian Weiske2010-10-081-5/+13
|
* remove deprecate split()Gravatar Christian Weiske2010-09-301-1/+1
|
* finally fix the problem that watchlist count tests ↵Gravatar cweiske2010-09-231-1/+4
| | | | | | failed every second alltests run git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@737 b3834d28-1941-0410-a4f8-b48e95affb8f
* fix tests after last commitGravatar cweiske2010-02-201-0/+1
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@678 b3834d28-1941-0410-a4f8-b48e95affb8f
* reformat _getuser and add docblockGravatar cweiske2010-02-201-5/+18
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@675 b3834d28-1941-0410-a4f8-b48e95affb8f
* make isAdmin accept a user name, tooGravatar cweiske2010-02-201-3/+11
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@669 b3834d28-1941-0410-a4f8-b48e95affb8f
* fix some docblocks in userserviceGravatar cweiske2010-02-051-12/+31
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@632 b3834d28-1941-0410-a4f8-b48e95affb8f
* cleanup login()Gravatar cweiske2010-01-161-5/+25
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@581 b3834d28-1941-0410-a4f8-b48e95affb8f
* replace regex email validation with PHP filter function ↵Gravatar cweiske2009-11-201-30/+10
| | | | | | and remove DNS checking functions that were not used anymore and do even had a security issue since they did not escape shell parameters git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@568 b3834d28-1941-0410-a4f8-b48e95affb8f
* test getObjectUsers() and fix a bug found by the testsGravatar cweiske2009-10-311-0/+1
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@484 b3834d28-1941-0410-a4f8-b48e95affb8f
* move user class into own fileGravatar cweiske2009-10-301-104/+64
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@473 b3834d28-1941-0410-a4f8-b48e95affb8f
* fix unfreed sql result and add deleteAll() for usersGravatar cweiske2009-10-281-2/+19
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@457 b3834d28-1941-0410-a4f8-b48e95affb8f
* test previously fixed bug: voting was updated for all ↵Gravatar cweiske2009-10-281-14/+99
| | | | | | bookmarks, not only the current one git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@449 b3834d28-1941-0410-a4f8-b48e95affb8f
* add docblocks to service classesGravatar cweiske2009-10-261-0/+25
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@430 b3834d28-1941-0410-a4f8-b48e95affb8f
* test if deleting bookmarks works. to do this, we need a ↵Gravatar cweiske2009-10-251-7/+30
| | | | | | new testbase method to create users, plus we need to return the uid when creating a new user. registration process needs to be adopted to that. git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@417 b3834d28-1941-0410-a4f8-b48e95affb8f
* correct indentation and visibility modifierGravatar cweiske2009-10-251-11/+13
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@416 b3834d28-1941-0410-a4f8-b48e95affb8f
* convert tabs to spacesGravatar cweiske2009-10-241-638/+638
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@407 b3834d28-1941-0410-a4f8-b48e95affb8f
* use dbservice in all services that need a dbGravatar cweiske2009-10-241-7/+1
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@406 b3834d28-1941-0410-a4f8-b48e95affb8f
* rename ServiceFactory::getServiceInstance() to get() - ↵Gravatar cweiske2009-10-231-7/+7
| | | | | | much easier to write git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@396 b3834d28-1941-0410-a4f8-b48e95affb8f
* Begin work on voting systemGravatar cweiske2009-10-231-2/+2
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@391 b3834d28-1941-0410-a4f8-b48e95affb8f
* make the application work againGravatar cweiske2009-10-031-50/+61
| | | | git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@388 b3834d28-1941-0410-a4f8-b48e95affb8f
* more file renamingsGravatar cweiske2009-10-031-0/+665
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@387 b3834d28-1941-0410-a4f8-b48e95affb8f