Bei deinem 2 Ilch (ic2) kannst du folgendes machen.
include/include/func/db/mysql.php
db_query()
function db_query ($q) {
global $count_query_xyzXYZ;
$count_query_xyzXYZ++;
if (preg_match ("/^UPDATE `?prefix_\S+`?\s+SET/is", $q)) {
$q = preg_replace("/^UPDATE `?prefix_(\S+?)`?([\s\.,]|$)/i","UPDATE `".DBPREF."\\1`\\2", $q);
} elseif (preg_match ("/^INSERT INTO `?prefix_\S+`?\s+[a-z0-9\s,\)\(]*?VALUES/is", $q)) {
$q = preg_replace("/^INSERT INTO `?prefix_(\S+?)`?([\s\.,]|$)/i", "INSERT INTO `".DBPREF."\\1`\\2", $q);
} else {
$q = preg_replace("/prefix_(\S+?)([\s\.,]|$)/", DBPREF."\\1\\2", $q);
}
return (db_check_error(@mysql_query($q, CONN), $q));
}
in
function db_query ($q) {
global $count_query_xyzXYZ;
$count_query_xyzXYZ++;
if (preg_match ("/^UPDATE `?prefix_\S+`?\s+SET/is", $q)) {
$q = preg_replace("/^UPDATE `?prefix_(\S+?)`?([\s\.,]|$)/i","UPDATE `".DBPREF."\\1`\\2", $q);
} elseif (preg_match ("/^INSERT INTO `?prefix_\S+`?\s+[a-z0-9\s,\)\(]*?VALUES/is", $q)) {
$q = preg_replace("/^INSERT INTO `?prefix_(\S+?)`?([\s\.,]|$)/i", "INSERT INTO `".DBPREF."\\1`\\2", $q);
} else {
if (preg_match ("=prefix_user=", $q))) { $q = preg_replace("/prefix_user/","ic1_user",$q); }
$q = preg_replace("/prefix_(\S+?)([\s\.,]|$)/", DBPREF."\\1\\2", $q);
}
return (db_check_error(@mysql_query($q, CONN), $q));
}
Nun müsste alles was in der Tabelle des Users auf die ic1_user umgeleitet werden.
*EDIT* Code
Thx gORDon_vdLg
Zuletzt modifiziert von she am 28.01.2011 - 18:15:48