summaryrefslogtreecommitdiff
path: root/common.php
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2024-03-12 00:29:30 +0200
committerdweller <dweller@cabin.digital>2024-03-12 00:29:30 +0200
commit867c582eb42ec8f28c1a5012d43b615df1ef75e1 (patch)
treeb1b521eab7dbc213596929b87e9062ea0a4dc9b2 /common.php
parent058b1805192ea1fd8f0bbd98b2c75aea69decac1 (diff)
separate deploy-related configs from common.php
Diffstat (limited to 'common.php')
-rw-r--r--common.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.php b/common.php
index e246b29..82c59a6 100644
--- a/common.php
+++ b/common.php
@@ -8,8 +8,11 @@
$root = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'];
- $manbin = "/home/dwlr/nfs_red/deb_man/mandoc/bin/man";
- $manpath = "/home/dwlr/nfs_red/deb_man/mans/bookworm/man";
+ require "config.php";
+
+ if(empty($manbin) || empty($manpath))
+ exit("ERROR: Unconfigured backend!");
+
require "$manpath/archs.php";
$action = trim($_GET['action'] ?? null);