[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

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

(pas de description)

Poids: 564 lignes (25 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 5 fonctions

  edittopic()
  savetopic()
  listtopics()
  deleteTopic()
  handleIconUpload()

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

edittopic($tid = '')   X-Ref
Show topic administration form

param: string  tid     ID of topic to edit
return: string          HTML for the topic editor

savetopic($tid,$topic,$imageurl,$sortnum,$limitnews,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$is_default,$is_archive)   X-Ref
Save topic to the database

param: string  $tid            Topic ID
param: string  $topic          Name of topic (what the user sees)
param: string  $imageurl       (partial) URL to topic image
param: int     $sortnum        number for sort order in "Topics" block
param: int     $limitnews      number of stories per page for this topic
param: int     $owner_id       ID of owner
param: int     $group_id       ID of group topic belongs to
param: int     $perm_owner     Permissions the owner has
param: int     $perm_group     Permissions the group has
param: int     $perm_member    Permissions members have
param: int     $perm_anon      Permissions anonymous users have
param: string  $is_default     'on' if this is the default topic
param: string  $is_archive     'on' if this is the archive topic
return: string                  HTML redirect or error message

listtopics()   X-Ref
Displays a list of topics

Lists all the topics and their icons.

return: string      HTML for the topic list

deleteTopic($tid)   X-Ref
Delete a topic

param: string  $tid    Topic ID
return: string          HTML redirect

handleIconUpload($tid)   X-Ref
Upload new topic icon, replaces previous icon if one exists

param: string  tid     ID of topic to prepend to filename
return: string          filename of new photo (empty = no new photo)



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