Updated copyright + use require_once instead of include
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
/*
|
||||
* Onion Link List - Main listing script
|
||||
*
|
||||
* Copyright (C) 2016 Daniel Winzen <daniel@danwin1210.me>
|
||||
* Copyright (C) 2016-2020 Daniel Winzen <daniel@danwin1210.me>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -21,7 +21,7 @@
|
||||
if($_SERVER['REQUEST_METHOD']==='HEAD'){
|
||||
exit; // ignore headers, no further processing needed
|
||||
}
|
||||
include('../common_config.php');
|
||||
require_once('../common_config.php');
|
||||
try{
|
||||
$db=new PDO('mysql:host=' . DBHOST . ';dbname=' . DBNAME . ';charset=utf8mb4', DBUSER, DBPASS, [PDO::ATTR_ERRMODE=>PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]);
|
||||
}catch(PDOException $e){
|
||||
|
Reference in New Issue
Block a user