2017-06-13 16:49:25 +02:00
|
|
|
<?php
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
require_once 'include/config.php';
|
|
|
|
require_once 'include/functions.php';
|
|
|
|
require_once 'include/functions_db.php';
|
|
|
|
require_once 'include/auth/mysql.php';
|
2017-06-13 16:49:25 +02:00
|
|
|
|
|
|
|
$id = get_parameter('get_image');
|
|
|
|
|
|
|
|
$sql = 'SELECT datos FROM tagente_estado WHERE id_agente_modulo = '.$id;
|
|
|
|
|
|
|
|
$result = db_get_sql($sql);
|
|
|
|
|
|
|
|
$image = strpos($result, 'data:image');
|
|
|
|
|
2019-01-30 16:18:44 +01:00
|
|
|
if ($image === false) {
|
|
|
|
echo 0;
|
|
|
|
} else {
|
|
|
|
echo 1;
|
2017-06-13 16:49:25 +02:00
|
|
|
}
|