1
0
Fork 0

Place the config information in an outside file.

This commit is contained in:
Andrew Tomaka 2011-11-04 18:33:36 -04:00
parent f9852632c4
commit 74bebb570c
2 changed files with 2 additions and 14 deletions

View file

@ -1,11 +1,5 @@
<?php
//for testing
$conf = (object)array(
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'screens',
);
$conf = json_decode(file_get_contents('database.conf'));
$id = isset($_GET['image']) ? $_GET['image'] : '';

View file

@ -9,13 +9,7 @@
* @version 1
**/
//for testing
$conf = (object)array(
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'database' => 'screens',
);
$conf = json_decode(file_get_contents('database.conf'));
define('UPLOADS','uploads/');
$extensions = array('jpg','jpeg','png','gif','bmp');