Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for running a view-only MeshMap on Heroku. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ampledata
Copy link

No description provided.

Copy link

@EvanKrall EvanKrall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does anywhere else in the codebase use $GLOBALS['USER_SETTINGS']['sql_server'], sql_user, sql_passwd, sql_db, etc? If so you may also want to assign to those on lines 335-339.

@ampledata
Copy link
Author

ampledata commented Feb 1, 2020

@EvanKrall per grep -iR sql_server *, only the admin interface:

scripts/user-settings.ini-default:;You **must** at least update sql_user, sql_passwd, and sql_server to reflect *your* environment!
scripts/user-settings.ini-default:sql_server = "localhost"
scripts/wxc_functions.inc:      $GLOBALS['sql_connection'] = mysqli_connect($GLOBALS['USER_SETTINGS']['sql_server'],$GLOBALS['USER_SETTINGS']['sql_user'],$GLOBALS['USER_SETTINGS']['sql_passwd'],$GLOBALS['USER_SETTINGS']['sql_db']) or die('Could not connect to mySQL database: ' . mysqli_error($GLOBALS['connection']) . "\n");
scripts/wxc_functions.inc://    $connection = mysqli_connect($sql_server,$sql_user,$sql_passwd,$sql_db) or die('Could not connect to mySQL database: ' . mysqli_error() . "\n");
webpage/admin/status_updates.php:echo " ( " . $USER_SETTINGS['sql_server'] . " ): \n";
webpage/admin/admin.php:        echo " ( " . $USER_SETTINGS['sql_server'] . " ): \n";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants