Ok, I did a few tests and as far as I can see now everything works fine. Please note that this is just a temporarely solution for those who can't wait for the next release.
To install osTicket on a localhost, do the following:
In class.validator.php change:
function is_url($url) {
return preg_match('/^(http|https|ftp):\/\/(*(?:\.*)+):?(\d+)?\/?/i',$url)?true;
}
into
function is_url($url) {
$urlregex = "^(https?)\:\/\/";
// USER AND PASS (optional)
$urlregex .= "(+(\:+)?@)?";
// HOSTNAME OR IP
$urlregex .= "+(\.+)*"; // http://x = allowed (ex. http://localhost, http://routerlogin)
//$urlregex .= "+(\.+)+"; // http://x.x = minimum
//$urlregex .= "(+\.)*{2,3}"; // http://x.xx(x) = minimum
//use only one of the above
// PORT (optional)
$urlregex .= "(\:{2,5})?";
// PATH (optional)
$urlregex .= "(\/(\.?)+)*\/?";
// GET Query (optional)
$urlregex .= "(\?*)?";
// ANCHOR (optional)
$urlregex .= "(#*)?\$";
return eregi($urlregex, $url)?true;
}
Now you should be able to install osTicket without any problems.
After installation (not before) you have to do something else.
In main.inc.php change:
require('config.php');
into
require('ostconfig.php');
and rename the file "config.php" to "ostconfig.php".
It's important to do this after installation, because the setup needs the config.php.
If this "fix" gives you any errors, just post it here. If you don't get any errors regarding this also let it know, because we need to know if it's suitable to put it in the next release.