✏️ Edit: image_logo.php
Path:
/home/thiqat5/cargo.thiqatech.com/image_logo.php
Size: 2.09 KB · Modified: 2016-09-22 23:17:26 · Perm: 0644 · Writable
← Back to directory
👁 View
⬇ Download
<?php // ************************************************************************* // * * // * DEPRIXA - logistics Worldwide Software * // * Copyright (c) JAOMWEB. All Rights Reserved * // * * // ************************************************************************* // * * // * Email: osorio2380@yahoo.es * // * Website: http://www.jaom.info * // * * // ************************************************************************* // * * // * This software is furnished under a license and may be used and copied * // * only in accordance with the terms of such license and with the * // * inclusion of the above copyright notice. * // * If you Purchased from Codecanyon, Please read the full License from * // * here- http://codecanyon.net/licenses/standard * // * * // ************************************************************************* error_reporting(E_ERROR | E_WARNING | E_PARSE); session_start(); require_once('deprixa/database.php'); if ($_GET['id'] > 0) { // Consulta de búsqueda de la imagen. $consulta = "SELECT imagen, tipo FROM subir_imagen WHERE id={$_GET['id']}"; $resultado = @mysql_query($consulta); $datos = mysql_fetch_assoc($resultado); $imagen = $datos['imagen']; // Datos binarios de la imagen. $tipo = $datos['tipo']; // Mime Type de la imagen. // Mandamos las cabeceras al navegador indicando el tipo de datos que vamos a enviar. header("Content-type: $tipo"); // A continuación enviamos el contenido binario de la imagen. echo $imagen; } ?>
💾 Save
Cancel
Save as UTF-8, newlines normalized to LF