Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
The abstract functions of database have been made protected and their
names prefixed with '_'. The database class has been given new static
functions query() and esc(), which call the _query() and _esc() function
from the database instance object. This change was made to address the
use of db routines from static contexes. Calls like
`database::get()->query()` which mix static and instance function access
operators, can now be `database::query()`, and all singleton is
abstracted away; the instance's destructor continues to close the db
connection.
|
|
|
|
While forcing a logout, we need to also redirect to the app root.
|
|
These classes were stubs before and lacked any implementation.
|
|
|
|
|
|
Need to remove the NULL return value from fetch_assoc() to fix usages of
count($res) for determining the number of results from a MySQL query.
This NULL return value is returned from mysqli's fetch_assoc() function
to signal no more result rows.
|
|
Just use a generic exception in these cases. I don't want to handle
these any differently, and just fall back on the main Exception() error
page once we get to a UI.
|
|
|
|
|
|
The getOwner() function should have had a nullable return type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'desc' is a SQL reserved word, changing this column name to
'description'.
|
|
|
|
Biggest changes include:
better comments
merged user and extern-user tables
separate fields for different permissions (not a bitmask)
added fields to mesgs table for handling attachments
renamed some fields to avoid using SQL reserved words
|
|
Replace use of GPLv3 with the unlicense. This is now public domain
code. As per my contributor copyright waiver policy, I also include my
signature of the UNLICENSE file to declare my work is public domain
material.
|
|
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit cc285f5d019e5b586931a2a582374074825de947.
|
|
This reverts commit ee3b66018804b332ec2a2953a1d04b7e0beb68fa.
|
|
|
|
|
|
This change will allow us to use this in different contextes, even on a
single page render.
|
|
I am committing this change incomplete. I'm stopping work on this
particular piece to save some work overall and explore view templating
using PHP features. The idea is to define this markup once in just one
file, rather than having to duplicate it for each object type.
|
|
|
|
This view template can be included from object setting tab view to
display controls for adjusting object permissions.
|
|
Increase the scope of this function so it may be used by groups.
|
|
|
|
To maintain forward compatability with newer versions of PHP (and since
my dev environment is now running PHP 7), this patch is made to address
the following breaking change from PHP 5:
PHP 7 now uses an abstract syntax tree when parsing source files. This
has permitted many improvements to the language which were previously
impossible due to limitations in the parser used in earlier versions of
PHP, but has resulted in the removal of a few special cases for
consistency reasons, which has resulted in backward compatibility
breaks. Indirect access to variables, properties, and methods will now
be evaluated strictly in left-to-right order, as opposed to the previous
mix of special cases.
|
|
This reverts commit 112a510bb7ba358fd4195b5b2f3c8203ab4fb91d.
Conflicts:
app/model/obj.mod.php
|
|
Created empty <div> for the group setting tab. Also added code to the
common model for initializing the $mod->group variable and setting a
flag marking what tabs to include in the setting modal (group tab in
this case). Added logic to the main setting modal view file for picking
up these flags and including appropriate additional content.
|
|
This commit makes the Obj controller compatable with changes introduced
in the previous commit.
|