WIP rewrite of newsLib
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
<?
|
<?
|
||||||
require_once("config.php");
|
require_once("config.php");
|
||||||
|
|
||||||
|
require_once("phpLibs/cwsvjudo/news.php");
|
||||||
|
|
||||||
$config = json_decode(
|
$config = json_decode(
|
||||||
json: file_get_contents(filename: $home."/.local/config.json"),
|
json: file_get_contents(filename: $home."/.local/config.json"),
|
||||||
associative: true
|
associative: true
|
||||||
@@ -12,6 +14,7 @@ $secrets = json_decode(
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$conn = new PDO(
|
$conn = new PDO(
|
||||||
dsn: join(separator: ";",array: [
|
dsn: join(separator: ";",array: [
|
||||||
|
|||||||
Reference in New Issue
Block a user