Browse Source

Bad passwords, bad!

tags/SensorLogger/0.1.3
Chris Smith 14 years ago
parent
commit
626f9c49f3
2 changed files with 5 additions and 2 deletions
  1. 1
    0
      .gitignore
  2. 4
    2
      website/common.php

+ 1
- 0
.gitignore View File

@@ -2,3 +2,4 @@
2 2
 /code/*/build
3 3
 /code/*/nbproject/private
4 4
 /reports/*~
5
+/website/settings.php

+ 4
- 2
website/common.php View File

@@ -1,7 +1,9 @@
1 1
 <?PHP
2 2
 
3
- mysql_connect('localhost', 'md87_android', 'android73274');
4
- mysql_select_db('md87_android');
3
+ require_once('settings.php');
4
+
5
+ mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS);
6
+ mysql_select_db(MYSQL_DB);
5 7
 
6 8
  function Oblong($message) {
7 9
         $key = trim(file_get_contents('/home/chris/oblong.key'));

Loading…
Cancel
Save