Convert a WowBB database file to an ocPortal uploaded file (stored on disk).
URLPATH
data_to_disk
(string $data, string $filename, ID_TEXT $sections)
-
string
$data: The file data
-
string
$filename: The optimal filename
-
ID_TEXT
$sections: The upload type (e.g. ocf_photos)
Convert WowBB URLs pasted in text fields into ocPortal ones.
string
fix_links
(string $post, object The $db, string $table_prefix, PATH $file_base)
-
string
$post: The text field text (e.g. a post)
-
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_calendar
(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_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_categories
(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_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_personal_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_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. Note that this is designed for a very popular phpBB mod, and will exit silently if the mod hasn't been installed.
void
import_ocf_post_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_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_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
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)