Dieses Kalenderscript kann allerdings die Userdaten von anderen Foren und von cms-software imigrieren.
Allerdings ist EasyHP (noch) nicht dabei. Da ich bei EasyHP ähnlichkeit mit phpBB 2 feststelle, stell ich mal hier die Datei rein, die für das imigrieren der phpBB2-User notwendig ist.
Code: Alles auswählen
/* ****************************************************************************
* *
* Event-List Copyright (c) Markus Kachel *
* Download: http://www.event-list.de *
* Alle Rechte vorbehalten - All rights reserved *
* *
****************************************************************************
*/
if ( !defined('IN_KOC_ACP') AND !defined('IN_KOC') )
{
die("Do not call this file directly");
}
define('IN_PHPBB', true);
$phpbb_root_path = dirname(__FILE__)."/../../" . $pathtoboard. '/';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'config.'.$phpEx);
$bbdb = new db($dbhost, $dbuser, $dbpasswd, $dbname);
$bbdb->select_db($dbname);
$bbusername = trim(htmlspecialchars($username));
$bbusername = substr(str_replace("\\'", "'", $bbusername), 0, 25);
$bbusername = str_replace("'", "\\'", $bbusername);
$result = $bbdb->query("SELECT user_id AS userid,username,user_password,user_email,user_regdate,user_viewemail,user_actkey FROM ".$table_prefix."users WHERE username = '".str_replace("\\'","''", $bbusername)."'");
if ($bbdb->num_rows($result) > 0) $bbrow = $bbdb->fetch_array($result);
$db->select_db($mysqldb);
if (md5($formpw) == $bbrow['passwd'] AND $bbrow['user_actkey'] == "")
{
$result = $db->query("SELECT groupid FROM $dbtableusers WHERE userid = '".$bbrow['userid']."'");
if ($db->num_rows($result) > 0)
{
$db->query("UPDATE $dbtableusers SET username=\"".htmlentities($username)."\", password=\"".md5($formpw)."\", email=\"".$row['user_email']."\", activated=\"1\", activationcode='*',registerdate=\"".date("Y-m-d H:i:s",$row['user_regdate'])."\",lastactive=NOW() WHERE userid=\"".$bbrow['userid']."\"");
$loginok = "1";
}
else
{
$loginok = "0";
}
}
else
{
$loginok = "0";
}
$queryrow=$db->query_first("SELECT * FROM $dbtableusers WHERE username = '".htmlentities($username)."'");;