Place the config information in an outside file.
This commit is contained in:
parent
f9852632c4
commit
74bebb570c
2 changed files with 2 additions and 14 deletions
|
@ -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'] : '';
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue