Standard import function to get extra fields to ask for when starting the import.
tempcode
get_extra_fields
()
Standard import function.
void
import_pages
(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
()
void
levenshtein_strip_search
( $to_strip, $subject, $backwards, $i)
-
$to_strip
-
$subject
-
$backwards
-
$i
Probe a file path for DB access details.
array
probe_db_access
(string $file_base)
-
string
$file_base: The probe path
Filter HTML that has been read, to make it more compatible with ocPortal.
string
_html_filter
(string $file_contents, BINARY $fix_html, PATH $base_url, array $files, PATH $file_base)
-
string
$file_contents: The HTML
-
BINARY
$fix_html: Whether to fix XHTML errors
-
PATH
$base_url: The base URL of the old site
-
array
$files: A list of all files on the site
-
PATH
$file_base: The base directory we are importing from