db_create not create_db
corrected version detection corrected constant
This commit is contained in:
parent
d305dd2f79
commit
db1e53296e
|
|
@ -125,7 +125,7 @@ require_once "resources/classes/EventSocket.php";
|
|||
throw new Exception('Failed to use event socket');
|
||||
}
|
||||
$FS_Version = $this->event_socket_request('api version');
|
||||
preg_match("/FreeSWITCH Version (\d+)\.(\d+)\.(\d(?:\.\d+)?)$/", $FS_Version, $matches);
|
||||
preg_match("/FreeSWITCH Version (\d+)\.(\d+)\.(\d+(?:\.\d+)?)/", $FS_Version, $matches);
|
||||
$this->_major = $matches[1];
|
||||
$this->_minor = $matches[2];
|
||||
$this->_build = $matches[3];
|
||||
|
|
|
|||
|
|
@ -294,7 +294,6 @@ include "root.php";
|
|||
}
|
||||
|
||||
protected function create_database_pgsql() {
|
||||
|
||||
if ($this->db_create_option == 'user') {
|
||||
//Attempt to create new PG role and database
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -242,13 +242,13 @@
|
|||
echo " Create Database Options\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
echo " <label class='radio'><input type='radio' name='create_db_option' value='none'";
|
||||
echo " <label class='radio'><input type='radio' name='db_create_option' value='none'";
|
||||
if($db_create_option=='none') { echo " checked='checked'"; }
|
||||
echo "/>Do not create database</label>\n";
|
||||
echo " <label class='radio'><input type='radio' name='create_db_option' value='same'";
|
||||
echo " <label class='radio'><input type='radio' name='db_create_option' value='same'";
|
||||
if($db_create_option=='same') { echo " checked='checked'"; }
|
||||
echo "/>Create database using above username/password</label>\n";
|
||||
echo " <label class='radio'><input type='radio' name='create_db_option' value='user'";
|
||||
echo " <label class='radio'><input type='radio' name='db_create_option' value='user'";
|
||||
if($db_create_option=='user') { echo " checked='checked'"; }
|
||||
echo "/>Create database using below username/password</label>\n";
|
||||
echo "<br />\n";
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@
|
|||
|
||||
if ( !function_exists('normalize_path')) {
|
||||
function normalize_path($path) {
|
||||
return str_replace(DIRECTORY_SEPERATOR, '\\', $path);
|
||||
return str_replace(DIRECTORY_SEPARATOR, '\\', $path);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue