Procedural File: index.php
Source Location: /public_html/admin/plugins/staticpages/index.php
Page Details:
Static Pages plugin administration page
Includes:
require_once('../../auth.inc.php') [line 46]
require_once('../../../lib-common.php') [line 45]
Geeklog common function library and Admin authentication
liststaticpages [line 527]
List all static pages that the user has access to
staticpageeditor [line 617]
string staticpageeditor(
string $sp_id, [string $mode = ''], [string $editor = ''])
|
|
Displays the Static Page Editor
Tags:
Parameters
| string |
$sp_id |
ID of static page to edit |
| string |
$mode |
Mode |
| string |
$editor |
Editor mode? (unused?) |
staticpageeditor_form [line 67]
string staticpageeditor_form(
array $A, [ $error = false])
|
|
Displays the static page editor form
Tags:
Parameters
| array |
$A |
Data to display |
| |
$error |
|
submitstaticpage [line 730]
void submitstaticpage(
string $sp_id, string $sp_title, string $sp_page_title, string $sp_content, int $sp_hits, string $sp_format, string $sp_onmenu, string $sp_label, int $commentcode, int $owner_id, int $group_id, int $perm_owner, int $perm_group, int $perm_members, int $perm_anon, string $sp_php, string $sp_nf, string $sp_old_id, string $sp_centerblock, string $sp_help, int $sp_tid, string $sp_where, string $sp_inblock, string $postmode, string $meta_description, string $meta_keywords, $draft_flag, $template_flag, $template_id)
|
|
Saves a Static Page to the database
Parameters
| string |
$sp_id |
sp_id ID of static page |
| string |
$sp_title |
sp_title title of page |
| string |
$sp_page_title |
sp_page_title page title of the staticpage |
| string |
$sp_content |
sp_content page content |
| int |
$sp_hits |
sp_hits Number of page views |
| string |
$sp_format |
sp_format HTML or plain text |
| string |
$sp_onmenu |
sp_onmenu Flag to place entry on menu |
| string |
$sp_label |
sp_label Menu Entry |
| int |
$commentcode |
commentcode Comment Code |
| int |
$owner_id |
owner_id Permission bits |
| int |
$group_id |
group_id |
| int |
$perm_owner |
perm_owner |
| int |
$perm_group |
perm_members |
| int |
$perm_members |
perm_anon |
| int |
$perm_anon |
sp_php Flag to indicate PHP usage |
| string |
$sp_php |
sp_nf Flag to indicate type of not found message |
| string |
$sp_nf |
sp_old_id original ID of this static page |
| string |
$sp_old_id |
sp_centerblock Flag to indicate display as a center block |
| string |
$sp_centerblock |
sp_help Help URL that displays in the block |
| string |
$sp_help |
sp_tid topid id (for center block) |
| int |
$sp_tid |
sp_where position of center block |
| string |
$sp_where |
sp_inblock Flag: wrap page in a block (or not) |
| string |
$sp_inblock |
postmode |
| string |
$postmode |
meta_description |
| string |
$meta_description |
meta_keywords |
| string |
$meta_keywords |
draft_flag Flag: save as draft |
| |
$draft_flag |
|
| |
$template_flag |
|
| |
$template_id |
|
templatelist [line 491]
void templatelist(
[ $selected = ''])
|
|
List all template static pages. For use with a dropdown.
Parameters
|