fixing preg_replace / preg_match (UTF-8)

This commit is contained in:
2013-10-30 21:00:25 +01:00
parent d111488b7b
commit 51076631fe
2 changed files with 41 additions and 37 deletions

View File

@@ -155,7 +155,7 @@ if($bUserOk && $sAction!=Databap::EXT_ACCESS)
{
case 'add_user':
$asInfo = explode('-', strtolower($oUser));
$oDatabap->addUser($asInfo[0], $asInfo[1], $asInfo[2]);
$sResult = 'User added. Id='.$oDatabap->addUser($asInfo[0], $asInfo[1], $asInfo[2]);
break;
case 'reset_token':
$sResult = print_r($oDatabap->resetToken(), true);
@@ -164,10 +164,13 @@ if($bUserOk && $sAction!=Databap::EXT_ACCESS)
$oDatabap->buildCompleteIndex();
$sResult = 'Index ok';
break;
case 'install':
case 'install_queries':
$oMySqlInstall = new MySqlManager();
$sResult = $oMySqlInstall->getFullInstallQuery();
break;
case 'reset_chan_safe_names':
$sResult = $oDatabap->resetChanSafeNames();
break;
}
}
}