Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Procedural File: story.php

Source Location: /public_html/admin/story.php



Page Details:

This is the Geeklog story administration page.



Tags:

author:  Jason Whittenburg
author:  Tony Bibbs, tony AT tonybibbs DOT com


Includes:

require_once($_CONF['path_system'].'lib-story.php') [line 55]
Geeklog story function library

require_once('../lib-common.php') [line 45]
Geeklog common function library

require_once('auth.inc.php') [line 50]
Security check to ensure user even belongs on this page







liststories [line 109]

string liststories( [string $current_topic = ''])

Provide list of stories



Tags:

return:  HTML for the list of stories


Parameters

string   $current_topic   (optional) currently selected topic
[ Top ]



storyeditor [line 254]

string storyeditor( [string $sid = ''], [string $mode = ''], [string $errormsg = ''])

Shows story editor Displays the story entry form



Tags:

return:  HTML for story editor


Parameters

string   $sid   ID of story to edit
string   $mode   'preview', 'edit', 'editsubmission', 'clone'
string   $errormsg   a message to display on top of the page
[ Top ]



submitstory [line 862]

void submitstory( [string $type = ''], string $sid, int $uid, string $tid, string $title, string $page_title, string $introtext, string $bodytext, int $hits, string $unixdate, int $featured, string $commentcode, string $trackbackcode, string $statuscode, string $postmode, string $frontpage, int $draft_flag, int $numemails, int $owner_id, int $group_id, int $perm_owner, int $perm_group, int $perm_member, int $perm_anon, int $delete)

Saves story to database



Parameters

string   $type   story submission or (new) story
string   $sid   ID of story to save
int   $uid   ID of user that wrote the story
string   $tid   Topic ID story belongs to
string   $title   Title of story
string   $page_title   Title of the page
string   $introtext   Introduction text
string   $bodytext   Text of body
int   $hits   Number of times story has been viewed
string   $unixdate   Date story was originally saved
int   $featured   Flag on whether or not this is a featured article
string   $commentcode   Indicates if comments are allowed to be made to article
string   $trackbackcode   Indicates if trackbacks are allowed to be made to article
string   $statuscode   Status of the story
string   $postmode   Is this HTML or plain text?
string   $frontpage   Flag indicates if story will appear on front page and topic or just topic
int   $draft_flag   Flag indicates if story is a draft or not
int   $numemails   Number of times this story has been emailed to someone
int   $owner_id   ID of owner (not necessarily the author)
int   $group_id   ID of group story belongs to
int   $perm_owner   Permissions the owner has on story
int   $perm_group   Permissions the group has on story
int   $perm_member   Permissions members have on story
int   $perm_anon   Permissions anonymous users have on story
int   $delete   String array of attached images to delete from article
[ Top ]



Documentation generated on Sun, 02 Oct 2016 07:55:51 +0000 by phpDocumentor 1.4.3