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

Procedural File: topic.php

Source Location: /public_html/admin/topic.php



Page Details:

Topic administration page: Create, edit, delete topics.



Includes:

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

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

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







changetopicid [line 267]

void changetopicid( string $tid, $old_tid)

Change a topic's ID in various places



Parameters

string   $tid   new Topic ID
   $old_tid  
[ Top ]



deleteTopic [line 531]

string deleteTopic( string $tid)

Delete a topic



Tags:

return:  HTML redirect


Parameters

string   $tid   Topic ID
[ Top ]



edittopic [line 78]

string edittopic( [string $tid = ''])

Show topic administration form



Tags:

return:  HTML for the topic editor


Parameters

string   $tid   tid ID of topic to edit
[ Top ]



handleIconUpload [line 581]

string handleIconUpload( string $tid)

Upload new topic icon, replaces previous icon if one exists



Tags:

return:  filename of new photo (empty = no new photo)


Parameters

string   $tid   tid ID of topic to prepend to filename
[ Top ]



listtopics [line 438]

string listtopics( )

Displays a list of topics

Lists all the topics and their icons.




Tags:

return:  HTML for the topic list


[ Top ]



savetopic [line 337]

string savetopic( string $tid, string $topic, string $imageurl, string $meta_description, string $meta_keywords, int $sortnum, int $limitnews, int $owner_id, int $group_id, int $perm_owner, int $perm_group, $perm_members, int $perm_anon, string $is_default, string $is_archive, int $perm_member)

Save topic to the database



Tags:

return:  HTML redirect or error message


Parameters

string   $tid   Topic ID
string   $topic   Name of topic (what the user sees)
string   $imageurl   (partial) URL to topic image
string   $meta_description   Topic meta description
string   $meta_keywords   Topic meta keywords
int   $sortnum   number for sort order in "Topics" block
int   $limitnews   number of stories per page for this topic
int   $owner_id   ID of owner
int   $group_id   ID of group topic belongs to
int   $perm_owner   Permissions the owner has
int   $perm_group   Permissions the group has
int   $perm_member   Permissions members have
int   $perm_anon   Permissions anonymous users have
string   $is_default   'on' if this is the default topic
string   $is_archive   'on' if this is the archive topic
   $perm_members  
[ Top ]



Documentation generated on Thu, 24 May 2012 02:09:23 -0400 by phpDocumentor 1.4.3