1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
|
<?php
//
// created by nuocnam for l2j.sf.net, distributed under GNU/GPL
//
$header = ("
<html><head><title>phpBB v2.0.11 to wBBlite v1.0.2-Converter</title><link href=\"phpbb-to-wbblite102.css\" rel=\"stylesheet\" type=\"text/css\" /></head><body>
<table style=\"width:100%; background-color:646464;\" border=\"0\" cellspacing=\"0\" cellpadding=\"6\">
<tr><td width=\"100%\" align=\"right\"><span class=\"content-head\" align=\"right\">
<b>.:: phpBB v2.0.11 to wBBlite v1.0.2(Users-Cats-Topics-PMs-Posts - Converter) </b><br /></span>
<span class=\"content-texta\"><b>.:: beta (20050226) .:. Edited by N!ghtY 2oo5 </b><br /></span>
</td></tr></table>
<br />
");
$dbname =""; //database name
$dbhost = "localhost"; //database host
$dbuser ="root"; //database user name
$dbpwd = ""; //database password
//table prefixes
$phpbb = "phpbb_";
$phpbbu = "phpbb_"; //prefix of user table, nuke has it differentfromother bb prefixes
$wbb = "bb1_";
//user settings
$isunixtime = 0; //is time in SOURCE table in unix format ? (phpbb is, nuke isn't)
$usergroupid = "4"; // change to default user group on your wbb board
//category settings
$category_offset = 100; //what will be starting id for categories converted?
//function backslash some chars in names/topics/descriptions
function chck($a) {
$a = str_replace('"', '\"', $a);
$a = str_replace("'", "\'", $a);
$a = str_replace('$', '\$', $a);
return $a;
}
?> |