[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/admin/ -> story.php (sommaire)

This is the Geeklog story administration page.

Author: Jason Whittenburg
Author: Tony Bibbs
Poids: 1394 lignes (63 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 2 fichiers
 public_html/admin/auth.inc.php
 public_html/lib-common.php

Définit 4 fonctions

  userlist()
  liststories()
  storyeditor()
  submitstory()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

userlist($uid = 0)   X-Ref
Returns a list of all users and their user ids, wrapped in <option> tags.

param: int     uid     current user (to be displayed as selected)
return: string          string with <option> tags, to be wrapped in <select>

liststories()   X-Ref
Pas de description

storyeditor($sid = '', $mode = '', $errormsg = '', $currenttopic = '')   X-Ref
Shows story editor

Displays the story entry form

param: string      $sid            ID of story to edit
param: string      $mode           'preview', 'edit', 'editsubmission'
param: string      $errormsg       a message to display on top of the page
param: string      $currenttopic   topic selection for drop-down menu
return: string      HTML for story editor

submitstory($type='',$sid,$uid,$tid,$title,$introtext,$bodytext,$hits,$unixdate,$expiredate,$featured,$commentcode,$trackbackcode,$statuscode,$postmode,$frontpage,$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$delete,$show_topic_icon,$old_sid)   X-Ref
Saves story to database

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



Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics