Procedural File: topic.php
Source Location: /public_html/admin/topic.php
Page Details:
Topic administration page: Create, edit, delete topics.
Includes:
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 |
|
deleteTopic [line 531]
string deleteTopic(
string $tid)
|
|
Delete a topic
Tags:
Parameters
edittopic [line 78]
string edittopic(
[string $tid = ''])
|
|
Show topic administration form
Tags:
Parameters
| string |
$tid |
tid ID of topic to edit |
handleIconUpload [line 581]
string handleIconUpload(
string $tid)
|
|
Upload new topic icon, replaces previous icon if one exists
Tags:
Parameters
| string |
$tid |
tid ID of topic to prepend to filename |
listtopics [line 438]
Displays a list of topics Lists all the topics and their icons.
Tags:
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:
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 |
|
|
|