include_once('fixcaption.php'); $slug = $_GET['slug']; function filesize_formatted($path) { $size = filesize($path); $units = array( 'B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'); $power = $size > 0 ? floor(log($size, 1024)) : 0; return number_format($size / pow(1024, $power), 2, '.', ',') . ' ' . $units[$power]; } $conn = mysqli_connect("localhost","root","ftUs3vn9wYTXpnoG9QsJ","logodix"); mysqli_query($conn, "SET NAMES UTF8"); if (mysqli_connect_errno()) { printf("Connection error: %s\n", mysqli_connect_error()); exit(); } mysqli_query($conn, "UPDATE dimgs SET views = views + 1 WHERE id = " . $_GET['id']); $query = "SELECT * from dimgs WHERE id = '" . $_GET['id'] . "' and hidden=0"; $result = mysqli_query($conn, $query); $dimg = mysqli_fetch_assoc($result); $query = "SELECT * from imgs WHERE hash = '" . $_GET['id'] . "' order by id asc limit 1"; $result = mysqli_query($conn, $query); $img = mysqli_fetch_assoc($result); $query = "SELECT * from kws WHERE slug = '" . $img['slug'] . "'"; $result = mysqli_query($conn, $query); $kw = mysqli_fetch_assoc($result); $caption = fixcaption($img['caption']); if($dimg['id'] == '') { header("HTTP/1.0 404 Not Found"); include_once('404.php'); die(); } $ads=1; $title= $kw['kw']." Logo in vector format (SVG)" ; $page='logo'; include_once('header.php'); ?>