<?php require_once __DIR__.'/config.php'; $mysqli=@new mysqli(DB_HOST,DB_USER,DB_PASS,DB_NAME); if($mysqli->connect_errno){die('DB Error: '.$mysqli->connect_error);} $mysqli->set_charset('utf8mb4'); function esc($s){return htmlspecialchars($s,ENT_QUOTES,'UTF-8');} function slugify($t){$t=preg_replace('~[^\pL\d]+~u','-',$t);$t=trim($t,'-');$t=iconv('utf-8','us-ascii//TRANSLIT',$t);$t=strtolower($t);$t=preg_replace('~[^-\w]+~','',$t);return $t?:'n-a';} ?>