From: Kevin Day Date: Wed, 5 Apr 2017 02:56:01 +0000 (-0500) Subject: Cleanup: set the default examples and program settings for connecting to the database... X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=eb1b92bb7ef1fa6db755aa8d28a078fa0e8d67d3;p=koopa Cleanup: set the default examples and program settings for connecting to the database to non-ssl This simplifies the work necessary for testing and initial setups. Setting up a cert is extra work, so do no use it by default for database calls. --- diff --git a/examples/http.php b/examples/http.php index 93f910d..8e02d09 100644 --- a/examples/http.php +++ b/examples/http.php @@ -414,7 +414,8 @@ if (!is_null($password)) { $connection_string->set_password($password); } - $connection_string->set_ssl_mode('require'); + #$connection_string->set_ssl_mode('require'); + $connection_string->set_ssl_mode('disable'); $connection_string->set_connect_timeout(4); $database->set_connection_string($connection_string); unset($connection_string); diff --git a/examples/test.php b/examples/test.php index 5f6ae0c..992ccce 100755 --- a/examples/test.php +++ b/examples/test.php @@ -744,7 +744,8 @@ $connection_string->set_database('reservation'); $connection_string->set_user($username); $connection_string->set_password($password); - $connection_string->set_ssl_mode('require'); + #$connection_string->set_ssl_mode('require'); + $connection_string->set_ssl_mode('disable'); $connection_string->set_connect_timeout(4); $database->set_connection_string($connection_string); unset($connection_string); diff --git a/program/reservation/index.php b/program/reservation/index.php index 669daec..f1b6326 100644 --- a/program/reservation/index.php +++ b/program/reservation/index.php @@ -42,7 +42,8 @@ $settings['database_user'] = 'u_reservation_public'; $settings['database_password'] = NULL; $settings['database_timeout'] = 4; - $settings['database_ssl_mode'] = 'require'; + #$settings['database_ssl_mode'] = 'require'; + $settings['database_ssl_mode'] = 'disable'; $settings['database_create_account_host'] = '127.0.0.1'; $settings['database_create_account_port'] = 5433;