Age | Commit message (Collapse) | Author | Files | Lines |
|
Passing no argument (or NULL) now causes this function to redirect to
the 'app-path' (current request page). This is a way to reload the
current page.
|
|
The check that this commit adds to each of these functions enables users
with all permissions on themselves.
|
|
If the argument doesn't have an owner, then an access error is thrown
when we try to do ->guid. Since there is no owner, just return false.
Otherwise, do the comparision as usual.
|
|
|
|
This addresses a problem with most views. They need an object context
to display in. IE what pad, group, etc. are we viewing? This variable
is intended to be set by index.php and referenced by page models.
|
|
Previously, these functions would always call session_start() before
doing most of their work. However, I've found that calling that
function two or more times within the lifetime of a program results in
NOTICE messages output from the PHP interpreter. Therefore, I am now
only calling session_start() if the session is not already active.
|
|
If the session is set to an invalid (eg: deleted) user GUID, an
exception is (correctly) thrown. This commit catches that and enables
getCurrent() to close the bad session and return NULL.
|
|
|
|
|
|
Since 'object' is now a reserved word (as of PHP 7.2), I have to rename
this class. I really preferred the name object, but obj will have to
do.
|
|
|
|
|
|
|
|
|
|
Now setting the name for email FROM field using system config
'smtpFrom'.
|
|
This is the name to give on FROM headers to generated email messages.
|
|
Fixed a bug and fine-tuned some of the behavior of this function.
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit 45889e98e7a12b22cbaaceedd5531d4158888530.
This reverts commit 6b643d4bbb469d35c6664176bc1aa641d130d99f.
This reverts commit 7872377be7a0fc97316fc20d28a4bcfec15c6111.
This feature was moved to another file.
|
|
|
|
Adding this as an abstract function to class agent. Since we will only
be sending emails to stored users (and groups) this makes more sense and
allows us to remove this function from the global namespace as well.
|
|
Changing the $rcpt argument from an email address string to a user
object. This allows us to ensure the address has been confirmed, to not
send mail to a blank address, and to include the user's display name in
the TO mail headers.
Also, added support for mail attachments via PHPMailer. This can be
used to forward any attachments added to Scrott message objects to email
users as well.
|
|
Function should be only sending to one recipient at a time.
|
|
Helper routine to spin up a PHPMailer object, set all its options
(mostly from the database) and send off the message.
|
|
|
|
|
|
|
|
This function is needed in the scope of issue, mesgs, and pads alike.
It would also make sense to use this to retrive users' private messages.
For these reasons, this function is now being defined higher up in the
object hierarchy.
|
|
This feature allows a pad-level discussion to be promoted to an issue.
A new object is created, but all content is preserved. However, if the
thread OP message had an attachment, that attachment cannot be retained.
|
|
Now saving the original name of the attachment file in the message
object.
|
|
Value set to 512 megabytes.
|
|
|
|
If the issue is already closed, these functions should do nothing.
Continuing the logic in these functions could currupt the database.
|
|
The call to setParent() should have been in an else. It was being
called every time...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
User-supplied head images will need to be square in their dimensions, so
that bootstrap displays them correctly. This function will crop image
files after they are uploaded to the server.
|
|
|
|
Added arrays to the global $_SCROTT variable to keep lists of page
errors, warnings, and notices. Also added functions to globals.php for
interacting with these arrays.
|
|
Added call to refreshObj() to the end of function saveObj() to fetch all
default values defined by the database, not set on the object in PHP.
|
|
This reverts commit e7228676ce51bf69cc974fc0bd8f8135c51fd036.
|