Go to the source code of this file.
Functions | |
| importPages () | |
| importPageDirectory ($dir, $prefix="") | |
| useModFilename ($title) | |
| fetchPage ($title) | |
| fetchKeptPages ($title) | |
| splitHash ($sep, $str) | |
| checkUserCache ($name, $host) | |
| importPage ($title) | |
| recodeText ($string) | |
| wfUtf8Sequence ($codepoint) | |
| wfMungeToUtf8 ($string) | |
| timestamp2ISO8601 ($ts) | |
| xmlsafe ($string) | |
| xmlCommentSafe ($text) | |
| array2object ($arr) | |
| mungeFormat ($text) | |
| Make CamelCase and /Talk links work. | |
| placeholder ($x=null) | |
| nowikiPlaceholder ($matches) | |
Variables | |
| if(php_sapi_name()!= 'cli') | $wgImportEncoding = "CP1252" |
| Set these correctly! | |
| $wgRootDirectory = "/kalman/Projects/wiki2002/wiki/lib-http/db/wiki" | |
| $wgFieldSeparator = "\xb3" | |
| $FS = $wgFieldSeparator | |
| $FS1 = $FS."1" | |
| $FS2 = $FS."2" | |
| $FS3 = $FS."3" | |
| $usercache = array() | |
Updated limited version to get something working temporarily 2003-10-09 Be sure to run the link & index rebuilding scripts!
Some more munging for charsets etc 2003-11-28
Partial fix for pages starting with lowercase letters (??) and CamelCase and /Subpage link conversion 2004-11-17
Rewrite output to create Special:Export format for import instead of raw SQL. Should be 'future-proof' against future schema changes. 2005-03-14
Definition in file importUseModWiki.php.
| array2object | ( | $ | arr | ) |
Definition at line 319 of file importUseModWiki.php.
Referenced by fetchKeptPages(), fetchPage(), and importPage().
| checkUserCache | ( | $ | name, | |
| $ | host | |||
| ) |
Definition at line 181 of file importUseModWiki.php.
References $name, $usercache, and $username.
Referenced by importPage().
| fetchKeptPages | ( | $ | title | ) |
Definition at line 142 of file importUseModWiki.php.
References $fname, $FS1, $FS2, $FS3, $section, $text, $title, $wgRootDirectory, array2object(), splitHash(), and useModFilename().
Referenced by importPage().
| fetchPage | ( | $ | title | ) |
Definition at line 123 of file importUseModWiki.php.
References $fname, $FS1, $FS2, $FS3, $page, $section, $text, $title, $wgRootDirectory, array2object(), splitHash(), and useModFilename().
Referenced by importPage().
| importPage | ( | $ | title | ) |
Definition at line 200 of file importUseModWiki.php.
References $minor, $page, $text, $title, $usercache, $username, array2object(), checkUserCache(), END, fetchKeptPages(), fetchPage(), mungeFormat(), recodeText(), timestamp2ISO8601(), xmlCommentSafe(), and xmlsafe().
Referenced by importPageDirectory().
| importPageDirectory | ( | $ | dir, | |
| $ | prefix = "" | |||
| ) |
Definition at line 88 of file importUseModWiki.php.
References $prefix, importPage(), and xmlCommentSafe().
Referenced by importPages().
| importPages | ( | ) |
Definition at line 57 of file importUseModWiki.php.
References $wgRootDirectory, END, importPageDirectory(), and xml.
| mungeFormat | ( | $ | text | ) |
Make CamelCase and /Talk links work.
Definition at line 331 of file importUseModWiki.php.
References $text, and placeholder().
Referenced by importPage().
| nowikiPlaceholder | ( | $ | matches | ) |
| placeholder | ( | $ | x = null |
) |
Definition at line 356 of file importUseModWiki.php.
Referenced by mungeFormat(), and nowikiPlaceholder().
| recodeText | ( | $ | string | ) |
Definition at line 266 of file importUseModWiki.php.
References $wgImportEncoding, and wfMungeToUtf8().
Referenced by importPage(), and xmlCommentSafe().
| splitHash | ( | $ | sep, | |
| $ | str | |||
| ) |
Definition at line 167 of file importUseModWiki.php.
Referenced by fetchKeptPages(), and fetchPage().
| timestamp2ISO8601 | ( | $ | ts | ) |
| useModFilename | ( | $ | title | ) |
Definition at line 115 of file importUseModWiki.php.
References $title.
Referenced by fetchKeptPages(), and fetchPage().
| wfMungeToUtf8 | ( | $ | string | ) |
| wfUtf8Sequence | ( | $ | codepoint | ) |
Definition at line 275 of file importUseModWiki.php.
| xmlCommentSafe | ( | $ | text | ) |
Definition at line 314 of file importUseModWiki.php.
References $text, recodeText(), and xmlsafe().
Referenced by importPage(), and importPageDirectory().
| xmlsafe | ( | $ | string | ) |
| $FS = $wgFieldSeparator |
Definition at line 43 of file importUseModWiki.php.
| $FS1 = $FS."1" |
Definition at line 44 of file importUseModWiki.php.
Referenced by fetchKeptPages(), and fetchPage().
| $FS2 = $FS."2" |
Definition at line 45 of file importUseModWiki.php.
Referenced by fetchKeptPages(), and fetchPage().
| $FS3 = $FS."3" |
Definition at line 46 of file importUseModWiki.php.
Referenced by fetchKeptPages(), and fetchPage().
| $usercache = array() |
Definition at line 51 of file importUseModWiki.php.
Referenced by checkUserCache(), and importPage().
| $wgFieldSeparator = "\xb3" |
Definition at line 42 of file importUseModWiki.php.
| if (php_sapi_name()!= 'cli') $wgImportEncoding = "CP1252" |
Set these correctly!
Definition at line 35 of file importUseModWiki.php.
Referenced by recodeText().
| $wgRootDirectory = "/kalman/Projects/wiki2002/wiki/lib-http/db/wiki" |
Definition at line 36 of file importUseModWiki.php.
Referenced by fetchKeptPages(), fetchPage(), and importPages().
1.5.9