Convert a phpBB topic icon code into a standard ocPortal theme image code (assumes the default ones).
ID_TEXT
convert_topic_emoticon
(integer $iconid)
-
integer
$iconid: phpBB code
Convert phpBB URLs pasted in text fields into ocPortal ones.
string
fix_links
(string $post, string $uid, object The $db, string $table_prefix, [?AUTO_LINK $post_id = NULL], [boolean $is_pm = false])
-
string
$post: The text field text (e.g. a post)
-
string
$uid: Bbcode uid
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
?AUTO_LINK
$post_id: The ID of the post/message being imported (NULL: attachments not supported)
-
boolean
$is_pm: Whether it is a personal message
Standard import function.
void
import_attachments
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_bookmarks
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_config
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_custom_comcode
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_friends
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ip_bans
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_custom_profile_fields
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_forums
(object The $db, string $table_prefix, PATH $old_base_dir)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$old_base_dir: The base directory we are importing from
Standard import function.
void
import_ocf_groups
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_members
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_member_files
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_personal_topics
(object The $db, string $table_prefix, PATH $old_base_dir)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$old_base_dir: The base directory we are importing from
Standard import function.
void
import_ocf_polls_and_votes
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_posts
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_topics
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_tracking
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_ocf_warnings
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_reported_posts_forum
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard import function.
void
import_wordfilter
(object The $db, string $table_prefix, PATH $file_base)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
PATH
$file_base: The base directory we are importing from
Standard modular info function.
?array
info
()
Probe a file path for DB access details.
array
probe_db_access
(string $file_base)
-
string
$file_base: The probe path
Helper function to locate parent forum and category of a forum. Has to be clever to locate both, by tree traversal.
array
_find_parent_forum_and_category
(array $rows, integer $parent_forum)
-
array
$rows: Rows of forums/categories
-
integer
$parent_forum: Key for the 'parent' (which may be for cat or may be for real parent)
Substitution callback for 'fix_links'.
string
_fix_links_callback_forum
(array $m)
Substitution callback for 'fix_links'.
string
_fix_links_callback_member
(array $m)
Substitution callback for 'fix_links'.
string
_fix_links_callback_topic
(array $m)
Helper function to import a permission to a usergroup, from a specific phpBB option row.
void
_import_perm
(object The $db, string $table_prefix, integer $option_id, GROUP $group_id, AUTO_LINK $forum_id, BINARY $auth_setting)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
integer
$option_id: Option row ID
-
GROUP
$group_id: Group it applies to
-
AUTO_LINK
$forum_id: Forum it applies to
-
BINARY
$auth_setting: Setting
Helper function to import a global permission to a usergroup, from a specific phpBB option row.
void
_import_permg
(object The $db, string $table_prefix, integer $option_id, GROUP $group_id, BINARY $auth_setting)
-
object The
$db: DB connection to import from
-
string
$table_prefix: The table prefix the target prefix is using
-
integer
$option_id: Option row ID
-
GROUP
$group_id: Group it applies to
-
BINARY
$auth_setting: Setting
Helper function to translate phpBB permissions to ocPortal permissions.
?string
_translate_permission
(string $perm)
Convert an IP address from phpBB hexadecimal string format.
IP
_un_phpbb_ip
(string $ip)
-
string
$ip: The phpBB IP address