fix_path_redirect [line 71]
Checks to see if the current URL matches the correct one, redirects to the corrected URL if not with a 301 Moved Permanently.
void fix_path_redirect(
)
|
|
is_query_request [line 14]
prepareAlbumPage [line 476]
sets up for loading an album page
prepareCustomPage [line 511]
sets up for loading p=page pages
string prepareCustomPage(
)
|
|
prepareImagePage [line 494]
sets up for loading an image page
string prepareImagePage(
)
|
|
prepareIndexPage [line 464]
sets up for loading the index page
string prepareIndexPage(
)
|
|
zenpage_load_news [line 311]
Loads a zenpage news page Sets up $_zp_current_zenpage_news and returns it as the function result.
object zenpage_load_news(
)
|
|
zenpage_load_page [line 289]
Loads a zenpage pages page Sets up $_zp_current_zenpage_page and returns it as the function result.
Parameters:
|
$titlelink |
0: |
the titlelink of a zenpage page to setup a page object directly. Meant to be used only for the Zenpage homepage feature. |
object zenpage_load_page(
[$titlelink 0 = the titlelink of a zenpage page to setup a page object directly. Meant to be used only for the Zenpage homepage feature.]
)
|
|
zpurl [line 28]
Returns the URL of any main page (image/album/page#/etc.) in any form desired (rewrite or query-string).
Parameters:
|
$with_rewrite |
$with_rewrite: |
boolean or null, whether the returned path should be in rewrite form. Defaults to null, meaning use the mod_rewrite configuration to decide. |
|
$album |
$album: |
: the Album object to use in the path. Defaults to the current album (if null). |
|
$image |
$image: |
: the Image object to use in the path. Defaults to the current image (if null). |
|
$page |
$page: |
: the page number to use in the path. Defaults to the current page (if null). |
|
|
$special: |
|
void zpurl(
[$with_rewrite $with_rewrite = NULL], [$album $album = NULL], [$image $image = NULL], [$page $page = NULL], [ $special = '']
)
|
|
zp_handle_comment [line 97]
****************************************************************************
**** Action Handling and context data loading functions ********************* ****************************************************************************
void zp_handle_comment(
)
|
|
zp_load_album [line 252]
zp_load_album - loads the album given by the folder name $folder into the global context, and sets the context appropriately.
Parameters:
|
$folder |
$folder: |
the folder name of the album to load. Ex: 'testalbum', 'test/subalbum', etc. |
|
$force_cache |
$force_nocache: |
whether to force the use of the global object cache. |
API Tags:
| Return: | loaded album object on success, or (===false) on failure. |
the zp_load_album(
$folder $folder, [$force_cache $force_nocache = false]
)
|
|
zp_load_gallery [line 222]
Loads the gallery if it hasn't already been loaded.
zp_load_image [line 267]
zp_load_image - loads the image given by the $folder and $filename into the global context, and sets the context appropriately.
Parameters:
|
$folder |
$folder: |
is the folder name of the album this image is in. Ex: 'testalbum' |
|
$filename |
$filename: |
is the filename of the image to load. |
API Tags:
| Return: | loaded album object on success, or (===false) on failure. |
the zp_load_image(
$folder $folder, $filename $filename
)
|
|
zp_load_image_from_id [line 349]
zp_load_image_from_id - loads and returns the image "id" from the database, without altering the global context or zp_current_image.
Parameters:
|
$id |
$id: |
the database id-field of the image. |
API Tags:
| Return: | loaded image object on success, or (===false) on failure. |
the zp_load_image_from_id(
$id $id
)
|
|
zp_load_page [line 209]
Handle AJAX editing in place
Parameters:
|
string |
$context: |
either 'image' or 'album', object to be updated |
|
string |
$field: |
field of object to update (title, desc, etc...) |
|
string |
$value: |
new edited value of object field |
|
|
$pagenum: |
|
Information Tags:
void zp_load_page(
[ $pagenum = NULL], string $context, string $field, string $value
)
|
|
zp_load_request [line 370]
Figures out what is being accessed and calls the appropriate load function
zp_load_search [line 233]
Loads the search object if it hasn't already been loaded.