112
after reading this thread, which well to be honest is the most informative discussion i've read on XOOPS in a long while.. i was playing about with the installer..
i edited install/class/settingmanager.php as below
function getPrefix() {
$str= "";
$salt = "0123456789abchefghijklmnopqrstuvwxyz";
srand((double)microtime()*1000000);
for ($i=0; $i<=6; $i++)
$str.= substr($salt, rand() % strlen($str), 1);
return $str;
}
function setting_manager($post=false){
$this->sanitizer =& TextSanitizer::getInstance();
if($post){
$this->readPost();
}else{
$this->database = 'mysql';
$this->dbhost = 'localhost';
$this->prefix = $this->getPrefix();
the actual random sequence does function and works, but for some reason it only randomises the numeric part of the string.. if i change the letters to infront of the numbers it then randomizes letters.. i can't seem to get it to randomize the whole string :S
any tips?