#
9531cd15 |
| 22-May-2019 |
Pieter Hordijk |
Converted the current admin pages (/admin) to use proper templates and repositories
|
#
9d47b05f |
| 22-May-2019 |
Peter Kokot |
Convert all tabs to spaces
|
#
5cd2630a |
| 24-Dec-2018 |
Peter Kokot |
Add dependency injection container This patch introduces a dependency injection container for the PHP bug tracker application. Container deals with the creation of all service classe
Add dependency injection container This patch introduces a dependency injection container for the PHP bug tracker application. Container deals with the creation of all service classes and additionally provides retrieving of configuration parameters. Service classes are used everywhere in the app - from accessing database to uploading files. Configuration parameters include infrastructure configuration (database credentials...) and application level configuration (directories locations...). Container is compatible with the PSR-11 container interface defined so it is simple to quickly understand its usage. Advanced features such as autowiring are not included in this phase.
show more ...
|
#
11fd2afd |
| 19-Dec-2018 |
Peter Kokot |
Move lists query to repository class
|
#
14f8c07a |
| 14-Dec-2018 |
Peter Kokot |
Refactor PDO wrapper Some considerations were raised on the mailing list that this PHP application doesn't need a PDO wrapper at all. Changes: - ::fetchRow() method removed
Refactor PDO wrapper Some considerations were raised on the mailing list that this PHP application doesn't need a PDO wrapper at all. Changes: - ::fetchRow() method removed in favor of the vanilla PDOStatement::fetch() - ::fetchAll() override removed in favor of the vanilla PDOStatement::fetchAll() - ::fetchCol() removed since it is not used and is only a wrapper for the PDOStatement::fetchColumn() - PDO fetch_style synced accross the app. When no fetch style is passed the default PDO::FETCH_ASSOC is used as set when connecting to db. - Remove Database::escape() method The custom ::escape() method is a wrapper around PDO::quote() which additionally trims leading and trailing quotes from the string. All this should ideally be done via prepared statements only, except where we can and need to use PDO::quote() this step can be done on the given string or variable at hand directly. - Remove escapeSQL() function The escapeSQL function is a wrapper around the PDO::quote() and is using $dbh from the global scope which is not testable nor good practice further on. Removed and refactored into only PDO::quote() usages on required places. - Remove ::fetchOne() method The fetchOne() method is a simple wrapper around the PDOStatement::fetch() method with very minor tweaks so the usage can be simplified even more. The PDOStatement::fetch(\PDO::FETCH_NUM)[0] will always return either a result from the database column or when row is empty a null. - Probably this should be refactored to the database tables respected repositories further on. - Remove PDO wrapper The app's current goal is to lean on a vanilla PDO wrapper only. Current set of features also don't require additional functionality and extending PDO to a wrapper or create a database abstraction layer yet.
show more ...
|
#
bae5fa6c |
| 14-Dec-2018 |
Peter Kokot |
Trim trailing whitespaces
|
#
a06f85b0 |
| 24-Oct-2018 |
Peter Kokot |
Refactor long array() syntax to short [] Since site is using PHP 5.4+ already, the longer `array()` syntax can be refactored to shorter `[]`. Also code is already using short array s
Refactor long array() syntax to short [] Since site is using PHP 5.4+ already, the longer `array()` syntax can be refactored to shorter `[]`. Also code is already using short array syntax on some places.
show more ...
|
#
c2a40c6b |
| 22-Oct-2018 |
Peter Kokot |
Replace PEAR MDB2 constants with PDO constants The changed constants are more understandable using PDO constants nor are the dedicated definition needed anymore.
|
#
180dccfe |
| 17-Oct-2018 |
Peter Kokot |
Trim trailing whitespace
|
#
3e4752a3 |
| 12-Oct-2017 |
Kalle Sommer Nielsen |
Also remove the Zend Engine logo like we do with the PHP logo
|
#
758f037a |
| 24-Aug-2017 |
Kalle Sommer Nielsen |
Attempt at making phpinfo() re-use some of the bug styles
|
#
e2f7998b |
| 24-Aug-2017 |
Kalle Sommer Nielsen |
Tweak the message part of quick fix responses to look a tiny bit nicer
|
#
d19801e5 |
| 24-Aug-2017 |
Kalle Sommer Nielsen |
Fix the format sent to admin_table_static()
|
#
43b45b69 |
| 24-Aug-2017 |
Kalle Sommer Nielsen |
Make the outputs a little prettier instead of print_r/var_dump calls
|
#
d6ea2e4a |
| 24-Aug-2017 |
Kalle Sommer Nielsen |
Integrate the phpinfo() page in the layout
|
#
d431197e |
| 25-Jul-2017 |
Kalle Sommer Nielsen |
Seems like _ENV was not working, use getenv() instead
|
#
8f536b42 |
| 24-Jul-2017 |
Johannes Schlüter |
List actions only in one place
|
#
187d5a7d |
| 24-Jul-2017 |
Johannes Schlüter |
Add basic MySQL status info
|
#
ebd08f75 |
| 24-Jul-2017 |
Kalle Sommer Nielsen |
Attempt at hiding some of our special _ENV vars on bugs
|
#
eeb25b61 |
| 09-Jan-2017 |
Rasmus Lerdorf |
Wrong table name
|
#
b26ad823 |
| 19-Nov-2016 |
Kalle Sommer Nielsen |
Make /admin/?action=list_lists (index) a little nicer with some mailto: links
|
#
9fc2f8ce |
| 19-Nov-2016 |
Kalle Sommer Nielsen |
Remove unused var
|
#
46e4e0ae |
| 19-Nov-2016 |
Kalle Sommer Nielsen |
Added an inline content menu for /admin/ so it is easier to navigate
|
#
21084ee3 |
| 25-May-2016 |
philip |
I give up. The schema definition in bugs.sql for this table appears invalid. This data belongs in the source anyways, as clearly more people need access as it's so outdated today.
I give up. The schema definition in bugs.sql for this table appears invalid. This data belongs in the source anyways, as clearly more people need access as it's so outdated today. Moving it soonish.
show more ...
|
#
10cf0925 |
| 24-May-2016 |
philip |
Typo
|