Commit Graph

137 Commits

Author SHA1 Message Date
Peter Kokot
6b9833ed9f Move package info pages to template 2019-01-27 13:03:02 +01:00
Peter Kokot
95fe965bf3 Implement dependency injection container globally
This patch implements dependency injection container in the bootstrap file.
2019-01-25 20:28:48 +01:00
Peter Kokot
5ed911a14f Bump copyrights and license year range to 2019 2019-01-25 00:22:14 +01:00
Peter Kokot
fdba9e04c1 Sync checking admin level accross app
The ::isAdmin() method is currently used across the app. This patch uses
that instead of the Auth::check() method.
2018-12-13 00:18:25 +01:00
Peter Kokot
9269da80ad Remove Net_URL2 dependency
This patch simplifies handling page redirections.
2018-11-22 02:22:46 +01:00
Peter Kokot
13145f3fec Refactor authentication functions to class
This patch moves authentication functions to a new Auth class with PHP
5.6 support.

Additionally the md5() password checking has been replaced with newer
password_hash when editing passwords on user account page.
2018-11-22 01:47:44 +01:00
Peter Kokot
0d95106cb9 Revert "Refactor authentication functions to class"
This reverts commit 2d55df3079.

The newly refactored authentication doesn't work online.
2018-11-22 01:14:55 +01:00
Peter Kokot
2d55df3079 Refactor authentication functions to class
This patch moves authentication functions to new Auth class.

Additionally the md5() password checking has been replaced with newer
password_hash when editing passwords on user account page.
2018-11-22 00:23:16 +01:00
Peter Kokot
dd0f843f69 Migrate pear-format helper to PDO 2018-11-17 21:51:36 +01:00
Peter Kokot
58f7b2e0ca Sync images location to img from gifs
Images include gifs, PNGs, jpges so img is more universal name for
images in the public_html.
2018-11-17 03:35:48 +01:00
Peter Kokot
145aa6078e Use single favicon.ico file in document root 2018-11-17 03:28:52 +01:00
Peter Kokot
f66b4e0ce3 Add lang attribute to html root element for screen readers 2018-11-17 00:39:36 +01:00
Pavel Dyakonov
256d507390 use html5 doctype and utf-8 2018-11-16 16:37:36 +03:00
Peter Kokot
520c3fa1ef Remove DEVBOX in favor of the configuration value 2018-11-16 05:43:21 +01:00
Peter Kokot
a7ec997ee0 Remove report_success()
The report_success() is just a simple wrapper around printing a div with
class and success message.
2018-11-16 04:51:53 +01:00
Peter Kokot
cc7ba6f0fc Refactor display_user_notes() to repository
This patch adds a simple database adapter using PDO and migrates the
display_user_notes() function into a repository class.
2018-11-16 03:51:06 +01:00
Peter Kokot
7b932a76f6 Add more credits to empty and missing authors headers 2018-11-15 22:24:31 +01:00
Peter Kokot
26f22e60b1 Add use statements and namespaces 2018-11-15 04:25:08 +01:00
Peter Kokot
ccfca1fe45 Add namespace to BorderBox and Karma classes 2018-11-15 03:32:30 +01:00
Peter Kokot
4df83eb5fd Refactor database configuration
This patch moves database configuration from constants into a
configuration level values for dev and prod environments.
2018-11-15 02:29:43 +01:00
Peter Kokot
b820f674d6 Refactor pear-prepend and including app classes
This patch moves several classes from multiple files into a single place
dedicated for loading classes.
2018-11-13 20:42:57 +01:00
Peter Kokot
45b31bc936 Revert "Add dual autoloading mechanism"
This reverts commit e3c64d8aba.
2018-11-13 00:20:59 +01:00
Peter Kokot
e3c64d8aba Add dual autoloading mechanism
This patch adds a dual autoloading mechanism for classes until further
refactorings will be possible using Composer's autoloader and full
PSR-4 support.
2018-11-12 22:55:55 +01:00
Peter Kokot
5bdc928cee Replace sizeof() with count()
The sizeof() function is an alias of count() which is more used in PHP
and more intuitive when doing counting. This patch syncs usage of these
two functions in code.
2018-11-05 03:59:37 +01:00
Peter Kokot
2213218ccf Refactor get_license_link() into a class
This patch refactors a function get_license_link() into a class
Licenser.
2018-11-04 23:30:16 +01:00
Peter Kokot
011a93cea6 Sync code comments coding style 2018-11-04 22:31:28 +01:00
Peter Kokot
dd3c7620e4 Refactor make_image() template helper
This patch refactors function make_image() into a class and adds a unit
test. Several unnecessary make_image() calls have been refactored into a
plain HTML instead since the size attributes are not needed on them
exactly.
2018-11-04 21:42:25 +01:00
Peter Kokot
0063d56de5 Replace PEAR with PECL in comments 2018-11-03 14:53:43 +01:00
Peter Kokot
72d26e1ae5 Drop menu_link template helper in favor of CSS 2018-11-03 03:34:13 +01:00
Peter Kokot
ad8f418372 Add space to footer info 2018-11-01 03:40:51 +01:00
Peter Kokot
e27ed52a05 Remove make_link, make_mailto_link, make_bug_link
These are removed for better readability and future refactorings of
templates. HTML links are also simpler without additional wrappers on
most places.
2018-11-01 03:09:29 +01:00
Peter Kokot
8c2606ab7b Remove unused variables from pear-format-html 2018-10-31 22:24:41 +01:00
Peter Kokot
f2eeb413c6 Sync requiring dependencies
This patch syncs and updates required dependencies using
`require_once()` where it is more appropriate and syncs its usage across
the code.
2018-10-31 09:32:56 +01:00
Peter Kokot
21e1b29108 Sync tabs and spaces
This patch syncs and converts all files to include spaces for indentation
except for Makefile. Prior to this patch there were mixed tabs and
spaces in most files.
2018-10-30 02:30:07 +01:00
Peter Kokot
cb1fcea8ff Introduce new src directory dedicated for PHP classes
This patch is an introductory refactoring into a more OOP oriented
application with a `src` directory containing PHP classes. This will
help organize PHP code better in the future.

First BorderBox class has been moved into it.
2018-10-28 21:38:08 +01:00
Peter Kokot
18a84378b4 Replace print_link() with echo make_link()
The print_link() is a simple wrapper for echo make_link().
2018-10-28 19:51:14 +01:00
Peter Kokot
c86ff8119e Remove delim()
The helper function delim() is a simple wrapper for outputting delimiter
between menu items. Instead of using dedicated function for this a
simple HTML entry can be done.
2018-10-28 19:12:35 +01:00
Peter Kokot
b5318f18f6 Remove not needed spacer.gif
Instead of adjusting spacing between menu and the next header item, more
CSS adjustments can be done instead. This eliminates need for additional
image and some helper function in PHP code.
2018-10-28 19:03:38 +01:00
Peter Kokot
e1e774f605 Update headers
This patch syncs and updates all headers in source code files across the
PECL website code base.

- Authors preserved
- The PECL website titles used and synced as is the current project name
- PHP License version updated to the latest
- Year ranges synced
- Comment block synced as is used in php-src files - simplified
  multiline comment block.
- PHP Doc block tags @author removed in favor of the main file headers
2018-10-28 17:33:45 +01:00
Peter Kokot
d2c355e514 Update http to https 2018-10-27 23:11:56 +02:00
Peter Kokot
c40a7b31f4 Remove captcha and unused artefacts
This patch removes some unused parts:
- captcha files
- make_ticket_links()
- user_link()
2018-10-27 03:29:25 +02:00
Peter Kokot
e354cf02e1 Sync PHP closing tags in all PHP files
Closing tag is redundant and might output additional characters where in
certain PHP functions such as header(), session_* and similar causes
issues.
2018-10-26 18:11:23 +02:00
Peter Kokot
4345e037d2 Refactor long array() syntax to short [] 2018-10-26 17:06:00 +02:00
Peter Kokot
e41613e64b Use __construct() instead of class names 2018-10-26 03:05:11 +02:00
Peter Kokot
9d44586318 Trim trailing whitespace 2018-10-21 23:33:52 +02:00
Peter Kokot
da4fe2abd1 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-08-08 16:40:36 +02:00
kovacs.ferenc
80fb39103b make sure we are using utf-8 as we have packages with descriptions containing utf-8 strings 2015-12-09 01:48:25 +01:00
Pierre Joye
ef6edc7462 we never had mirrors 2015-03-30 06:54:58 +02:00
Johannes Schlüter
da36d72cf4 Fix bugs link 2013-07-17 17:40:11 +02:00
Ferenc Kovacs
4df73d0e77 kill the cookie storage, now we only keep info in the session (except the 'remember me' choice) 2011-09-08 19:21:01 +00:00