Procedural File: index.php
Source Location: /public_html/admin/plugins/polls/index.php
Page Details:
Polls plugin administration page
Includes:
require_once('../../../lib-common.php') [line 45]
Geeklog common function library and Admin authentication
require_once('../../auth.inc.php') [line 46]
deletePoll [line 564]
string deletePoll(
string $pid)
|
|
Delete a poll
Tags:
Parameters
| string |
$pid |
ID of poll to delete |
editpoll [line 346]
string editpoll(
[string $pid = ''])
|
|
Shows poll editor Diplays the poll editor form
Tags:
Parameters
| string |
$pid |
ID of poll to edit |
listpolls [line 67]
savepoll [line 153]
string savepoll(
string $pid, string $old_pid, array $Q, string $mainpage, string $topic, string $meta_description, string $meta_keywords, int $statuscode, string $open, string $hideresults, int $commentcode, array $A, array $V, array $R, int $owner_id, int $group_id, int $perm_owner, $perm_group, int $perm_members, int $perm_anon, int $perm_grup)
|
|
Saves a poll Saves a poll topic and potential answers to the database
Tags:
Parameters
| string |
$pid |
Poll topic ID |
| string |
$old_pid |
Previous poll topic ID |
| array |
$Q |
Array of poll questions |
| string |
$mainpage |
Checkbox: poll appears on homepage |
| string |
$topic |
The text for the topic |
| string |
$meta_description |
|
| string |
$meta_keywords |
|
| int |
$statuscode |
(unused) |
| string |
$open |
Checkbox: poll open for voting |
| string |
$hideresults |
Checkbox: hide results until closed |
| int |
$commentcode |
Indicates if users can comment on poll |
| array |
$A |
Array of possible answers |
| array |
$V |
Array of vote per each answer |
| array |
$R |
Array of remark per each answer |
| int |
$owner_id |
ID of poll owner |
| int |
$group_id |
ID of group poll belongs to |
| int |
$perm_owner |
Permissions the owner has on poll |
| int |
$perm_grup |
Permissions the group has on poll |
| int |
$perm_members |
Permissions logged in members have on poll |
| int |
$perm_anon |
Permissions anonymous users have on poll |
| |
$perm_group |
|
|