denbooru-php/config.php

34 lines
771 B
PHP
Raw Normal View History

2020-05-09 18:53:47 +00:00
<?php
2020-12-24 00:57:52 +00:00
$tmsu = "tmsu -D /strg/drw/.tmsu/db ";
2020-05-09 18:53:47 +00:00
$BASE_ROUTE = "";
2020-05-09 18:53:47 +00:00
/* Exclude */
$exclude = "";
$exclude_query = "";
$alone_exclude_query = "";
if(!isset($_SESSION["login"])){
$exclude = array("nipples", "nude", "lewd", "dick");
$exclude_copy = $exclude;
$exclude_query = $exclude_query . " and ";
$alone_exclude_query = " not " . $exclude_copy[0];
unset($exclude_copy[0]);
foreach($exclude_copy as $ex_tag){
$alone_exclude_query = $alone_exclude_query . " and not " . $ex_tag;
}
$exclude_query = $exclude_query . $alone_exclude_query;
$alone_exclude_query = "'" . $alone_exclude_query . "'";
}
2020-12-24 00:57:52 +00:00
$_IS_LOGGED = $_SESSION["login"] === "true";
$_IS_ADMIN = $_SESSION["username"] === "admin";
2020-12-24 09:04:19 +00:00
if(!is_array($_SESSION["msg"])){
$_SESSION["msg"] = array();
}
2020-05-09 18:53:47 +00:00
?>