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

Procedural File: moderation.php

Source Location: /public_html/admin/moderation.php



Page Details:



Includes:

require_once('auth.inc.php') [line 36]
require_once('../lib-common.php') [line 35]
require_once($_CONF['path_system'].'lib-user.php') [line 37]
require_once($_CONF['path_system'].'lib-story.php') [line 38]
require_once($_CONF['path_system'].'lib-comment.php') [line 39]





ICONS_PER_ROW [line 47]

ICONS_PER_ROW = 6

[ Top ]




commandcontrol [line 80]

string commandcontrol( string $token)

Prints the command & control block at the top



Tags:

return:  HTML for the C&C block


Parameters

string   $token   CSRF token
[ Top ]



itemlist [line 259]

string itemlist( string $type, string $token)

Displays items needing moderation

Displays the moderation list of items from the submission tables




Tags:

return:  HTML for the list of items


Parameters

string   $type   Type of object to build list for
string   $token   CSRF token
[ Top ]



moderateusers [line 598]

string moderateusers( int $uid, array $action, int $count)

Moderate user submissions

Users from the user submission queue are either appoved (an email containing the password is sent out) or deleted.




Tags:

return:  HTML for "command and control" page


Parameters

int   $uid   Array of items
array   $action   Action to perform ('delete', 'approve')
int   $count   Number of items
[ Top ]



moderation [line 454]

string moderation( array $mid, array $action, string $type, int $count)

Moderates an item

This will actually perform moderation (approve or delete) one or more items




Tags:

return:  HTML for "command and control" page


Parameters

array   $mid   Array of items
array   $action   Array of actions to perform on items
string   $type   Type of items ('story', etc.)
int   $count   Number of items to moderate
[ Top ]



render_cc_item [line 59]

string render_cc_item( &$template, [string $url = ''], [string $image = ''], [string $label = ''], template $template)

Renders an entry (icon) for the "Command and Control" center



Tags:

return:  HTML for rendered item


Parameters

template   $template   template to use
string   $url   URL the entry links to
string   $image   URL of the icon
string   $label   text to use under the icon
   &$template  
[ Top ]



security_check_reminder [line 656]

string security_check_reminder( )

Display a reminder to execute the security check script



Tags:

return:  HTML for security reminder (or empty string)


[ Top ]



userlist [line 387]

string userlist( string $token)

Displays new user submissions

When enabled, this will list all the new users which have applied for a site membership. When approving an application, an email containing the password is sent out immediately.




Tags:

return:  HTML for the list of users


Parameters

string   $token   CSRF token
[ Top ]



Documentation generated on Wed, 17 Mar 2010 02:08:00 -0400 by phpDocumentor 1.4.3