New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database access should use PDO instead of mysql_ #20
Comments
ghost
assigned jeroenrnl
Jul 16, 2012
jeroenrnl
added a commit
that referenced
this issue
Nov 2, 2014
Created a basic framework consisting of a class db and a class query. #20
jeroenrnl
added a commit
that referenced
this issue
Nov 2, 2014
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
Also added code to add an array of parameters to a query. This useful for, for example an WHERE ... IN (..., ..., ...) query. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
Refactored some of the code from last commit for cleaner code. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
- Also created a new getAutoCoverOrder() function, that for now exists besides the old one, until all classes have moved to the new db. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
Also moved the generation of JOIN queries to restrict a query to only the photos the currently logged in user is allowed to see into a separate function. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
jeroenrnl
added a commit
that referenced
this issue
Nov 28, 2014
…ueries Also refactored a bit to make things simpler and remove unused functions Issue #20
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
Also changed zophTable::expandQueryForUser() to static (which it should have been) Issue #20
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
Also removed the "alias" possibility from INSERT queries, because it turned out it didn't work (and is not really necessary). Changed a testcase as it turned out to generate an SQL error (which was ignored by the "old" db code). Issue #20
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Dec 26, 2014
jeroenrnl
added a commit
that referenced
this issue
Feb 8, 2015
jeroenrnl
added a commit
that referenced
this issue
Feb 8, 2015
jeroenrnl
added a commit
that referenced
this issue
Feb 8, 2015
jeroenrnl
added a commit
that referenced
this issue
Mar 31, 2015
… to new db Moved person::addPhoto() and person::removePhoto() to new db code issue #20
jeroenrnl
added a commit
that referenced
this issue
Mar 31, 2015
jeroenrnl
added a commit
that referenced
this issue
Mar 31, 2015
- Split zophTable::addPhotoTableToQuery() into addRelationTableToQuery() and addPhotoTableToQuery() to keep complexity down - Fixed wrong test result Issue #20
jeroenrnl
added a commit
that referenced
this issue
May 17, 2015
…rSearch() to new db code Issue #20
jeroenrnl
added a commit
that referenced
this issue
May 17, 2015
jeroenrnl
added a commit
that referenced
this issue
Jun 29, 2015
Changed photo::lookup(), photo::getLastPersonPos(), photo::getAlbums() and photo::getCategories() to new database code. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jun 29, 2015
Changed photo::getPeople(), photo::getComments() to new database code. Also, whitespace fixes Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jun 29, 2015
Also: whitespace fixes and a small change in query object (var naming) Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
- Changed place::delete(), place::getChildren() to new db code - Got rid of place::getChildrenForUser(), moved this function (back) into getChildren() - Also made this same change in category, person and album objects - Reactivated failing testcases for place (which no longer fail with new db code) - removed get_sql_for_order() util function as it is no longer used - many whitespace fixes Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
…hotoCount() to new db Also some cleanup in place object Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
Also some whitespace fixes & cleanup in album & category object Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
jeroenrnl
added a commit
that referenced
this issue
Jul 13, 2015
Moved place::getPhotographed back into place::getCount() Issue #20
jeroenrnl
added a commit
that referenced
this issue
Jul 17, 2015
Issue #20 Also some whitespace fixes in database.inc.php
jeroenrnl
added a commit
that referenced
this issue
Jul 17, 2015
Issue #20 Also some whitespace fixes
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
- Added some code to insert class to be able to retrieve last insert id - Added possibility to use functions (such as now() and password()) in INSERT statements. - Corrected a reversed order of 'expected' and 'actual' in groupPermissions test case. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
Also some whitespace fixes and removed no longer used zophTable::createConstraints() Issue #20
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
Also - some whitespace fixes - added a few missing access modifiers (public, private, protected) Issue #20
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
user::get_groups(), user::get_album_permissions() user::get_permissions_for_photo() Added possibility to query::addFields() to add fields with a table name or alias Added possibility to zophTable::expandQueryForUser() to pass a user object (instead of using the currently logged on user). Issue #20
jeroenrnl
added a commit
that referenced
this issue
Sep 3, 2015
...and some whitespace fixes. Issue #20
jeroenrnl
added a commit
that referenced
this issue
Sep 6, 2015
jeroenrnl
referenced
this issue
Nov 2, 2015
jeroenrnl
added a commit
that referenced
this issue
Nov 5, 2015
Also split up include.inc.php into include.inc.php and autoload.inc.php. issue #20
jeroenrnl
added a commit
that referenced
this issue
Nov 5, 2015
This transformation is now complete... Funny, I actually worked on this for almost exactly a year :-) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zoph is still using the "old" mysql_* functions to access the database. This should change to PDO. This will also make it possible to use other databases instead of MySQL.
The text was updated successfully, but these errors were encountered: