Browse Source

Make sure these don't run.

Joe Clarke 1 year ago
parent
commit
63bbbf8c8c
2 changed files with 8 additions and 0 deletions
  1. 4 0
      www/export.php
  2. 4 0
      www/export_deadman.php

+ 4 - 0
www/export.php

@@ -38,6 +38,10 @@ $options = [
     PDO::ATTR_EMULATE_PREPARES => false,
 ];
 
+if (EXPORT_PRIME === false) {
+    exit(0);
+}
+
 try {
     $dbh = new PDO($dsn, $db_user, $db_pass, $options);
 } catch (PDOException $e) {

+ 4 - 0
www/export_deadman.php

@@ -49,6 +49,10 @@ $options = [
     PDO::ATTR_EMULATE_PREPARES => false,
 ];
 
+if (EXPORT_DEADMAN === false) {
+    exit(0);
+}
+
 try {
     $dbh = new PDO($dsn, $db_user, $db_pass, $options);
 } catch (PDOException $e) {