瀏覽代碼

Added detection of windows + non sqlite

Matthew Vale 9 年之前
父節點
當前提交
b66cfa1c89
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/install/install_first_time.php

+ 4 - 0
core/install/install_first_time.php

@@ -168,6 +168,10 @@ if(!$install_step) { $install_step = 'select_language'; }
 				"<sm>You can use the following to find what ports are allowed<pre>semanage port -l | grep '^http_port_t'</pre></sm>";
 				"<sm>You can use the following to find what ports are allowed<pre>semanage port -l | grep '^http_port_t'</pre></sm>";
 			}
 			}
 		}
 		}
+	//test for windows and non sqlite
+		if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') and strlen($db_type) > 0 and $db_type !='sqlite') {
+			$messages[] = "<b>Windows requires a system DSN ODBC connection</b> this must be configured after installing then restart freeswitch.";
+		}
 
 
 	//action code
 	//action code
 	if($return_install_step == 'config_detail'){
 	if($return_install_step == 'config_detail'){