Age | Commit message (Collapse) | Author | Files | Lines |
|
This view is routable from app/<pad_guid>/closed. It is a separate view
for displaying the closed issues of a pad. index.php as well as the pad
model code is also updated to support this view.
This view currently *does not* support paging. This will very likely be
added in the future.
Signed-off-by: Malf Furious <m@lfurio.us>
|
|
To be more compliant with the HTTP standard, we will _actually_ return
'404 Not Found' status when we decide to show the 404 view. A status of
'200 OK' is misleading and incorrect.
Signed-off-by: Malf Furious <m@lfurio.us>
|
|
Previously, when the app was asked for non-existant paths, no content
was returned and a blank page was presented to the user. Now a canned
message stating that the requested page does not exist is shown, along
with a helpful link back to the Dashboard page.
Signed-off-by: Malf Furious <m@lfurio.us>
|
|
|
|
|
|
|
|
The controller now (again) prevents browsing to objects the user is not
allowed to access.
|
|
|
|
|
|
|
|
|
|
Since several routes will use the current $user as the PAGE_OBJECT, I'm
just setting it once above most of the logic. Any route that needs
something else can change it.
There's a condition in the setPageObj() function that throws if we
attempt to call it more than once. I'm thinking this can be removed
it's not protecting from much.
|
|
|
|
|
|
Perform minor sanitization on the input $_SERVER['PATH_INFO']. This
commit adds logic that strips empty strings from main's $argv array.
The pass to array_values() is to discard original $tokens array keys
and re-number them starting from zero.
|
|
|
|
|
|
|
|
|
|
|
|
Setup to perform an iteration of development focused on a simpler
implementation and eliminating redundancy in design.
|
|
|
|
* Finished implementing app main function to instanciate root and delegate to it
|
|
|
|
! It has been observed that on server nginx, some of the assumptions from doing similar work on apache have broken down and a more general mechanism must be used to handle paths in the clean-url app.
! New scheme is this: app is invoked with `index.php?path=<absolute path on virtual server>` The app will be configured with its own root location on the virt. server and use logic to dedue the relative path requested from that. Also app will use the configured path to predend to urls linked/directed to during use of the app
|
|
|