[ Index ] |
PHP Cross Reference of phpBB 3.0 Beta 3 |
[Source view] [Print]
(no description)
Copyright: | (c) 2005 phpBB Group |
License: | http://opensource.org/licenses/gpl-license.php GNU Public License |
Version: | $Id: functions_admin.php,v 1.186 2006/11/03 23:09:15 davidmj Exp $ |
File Size: | 2653 lines (69 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
make_forum_select($select_id = false, $ignore_id = false, $ignore_acl = false, $ignore_nonpost = false, $ignore_emptycat = true, $only_acl_post = false, $return_array = false) X-Ref |
Simple version of jumpbox, just lists authed forums |
size_select_options($size_compare) X-Ref |
Generate size select options |
group_select_options($group_id, $exclude_ids = false) X-Ref |
Generate list of groups |
get_forum_list($acl_list = 'f_list', $id_only = true, $postable_only = false, $no_cache = false) X-Ref |
Obtain authed forums list |
get_forum_branch($forum_id, $type = 'all', $order = 'descending', $include_forum = true) X-Ref |
Get forum branch |
filelist($rootdir, $dir = '', $type = 'gif|jpg|jpeg|png') X-Ref |
Get physical file listing |
move_topics($topic_ids, $forum_id, $auto_sync = true) X-Ref |
Move topic(s) |
move_posts($post_ids, $topic_id, $auto_sync = true) X-Ref |
Move post(s) |
delete_topics($where_type, $where_ids, $auto_sync = true) X-Ref |
Remove topic(s) |
delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync = true) X-Ref |
Remove post(s) |
delete_attachments($mode, $ids, $resync = true) X-Ref |
Delete Attachments param: string $mode can be: post|topic|attach|user param: mixed $ids can be: post_ids, topic_ids, attach_ids, user_ids param: bool $resync set this to false if you are deleting posts or topics |
delete_topic_shadows($max_age, $forum_id = '', $auto_sync = true) X-Ref |
Remove topic shadows |
update_posted_info(&$topic_ids) X-Ref |
Update/Sync posted informations for topics |
phpbb_unlink($filename, $mode = 'file') X-Ref |
Delete File |
sync($mode, $where_type = '', $where_ids = '', $resync_parents = false, $sync_extra = false) X-Ref |
All-encompasing sync function Exaples: <code> sync('topic', 'topic_id', 123); // resync topic #123 sync('topic', 'forum_id', array(2, 3)); // resync topics from forum #2 and #3 sync('topic'); // resync all topics sync('topic', 'range', 'topic_id BETWEEN 1 AND 60'); // resync a range of topics/forums (only available for 'topic' and 'forum' modes) </code> Modes: - forum Resync complete forum - topic Resync topics - topic_moved Removes topic shadows that would be in the same forum as the topic they link to - topic_approved Resyncs the topic_approved flag according to the status of the first post - post_reported Resyncs the post_reported flag, relying on actual reports - topic_reported Resyncs the topic_reported flag, relying on post_reported flags - post_attachement Same as post_reported, but with attachment flags - topic_attachement Same as topic_reported, but with attachment flags |
prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync = true) X-Ref |
Prune function |
auto_prune($forum_id, $prune_mode, $prune_flags, $prune_days, $prune_freq) X-Ref |
Function auto_prune(), this function now relies on passed vars |
remove_comments(&$output) X-Ref |
remove_comments will strip the sql comment lines out of an uploaded sql file specifically for mssql and postgres type files in the install.... |
remove_remarks(&$sql) X-Ref |
remove_remarks will strip the sql comment lines out of an uploaded sql file |
split_sql_file($sql, $delimiter) X-Ref |
split_sql_file will split an uploaded sql file into single sql statements. Note: expects trim() to have already been run on $sql. |
cache_moderators() X-Ref |
Cache moderators, called whenever permissions are changed via admin_permissions. Changes of username and group names must be carried through for the moderators table |
view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id = 0, $topic_id = 0, $user_id = 0, $limit_days = 0, $sort_by = 'l.log_time DESC') X-Ref |
View log |
update_foes() X-Ref |
Update foes - remove moderators and administrators from foe lists... |
view_inactive_users(&$users, &$user_count, $limit = 0, $offset = 0, $limit_days = 0, $sort_by = 'user_inactive_time DESC') X-Ref |
Lists inactive users |
view_warned_users(&$users, &$user_count, $limit = 0, $offset = 0, $limit_days = 0, $sort_by = 'user_warnings DESC') X-Ref |
Lists warned users |
get_database_size() X-Ref |
Get database size Currently only mysql and mssql are supported |
get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port = 80, $timeout = 10) X-Ref |
Retrieve contents from remotely stored file |
tidy_warnings() X-Ref |
Tidy Warnings Remove all warnings which have now expired from the database The duration of a warning can be defined by the administrator This only removes the warning and reduces the assosciated count, it does not remove the user note recording the contents of the warning |
tidy_database() X-Ref |
Tidy database, doing some maintanance tasks |
add_permission_language() X-Ref |
Add permission language - this will make sure custom files will be included |
Generated: Wed Nov 22 00:35:05 2006 | Cross-referenced by PHPXref 0.6 |