26 lines
604 B
PHP
26 lines
604 B
PHP
<?php
|
|
|
|
$tmsu = "tmsu -D drw/.tmsu/db ";
|
|
|
|
$BASE_ROUTE = "";
|
|
|
|
/* 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 . "'";
|
|
}
|
|
?>
|