ÿØÿà JFIF ` ` ÿþxØ
| Server IP : 109.234.164.53 / Your IP : 216.73.216.110 Web Server : Apache System : Linux cervelle.o2switch.net 4.18.0-553.32.1.lve.el8.x86_64 #1 SMP Thu Dec 19 13:14:03 UTC 2024 x86_64 User : computer3 ( 1098) PHP Version : 7.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/computer3/ab-location-services.fr/seo-mailing/tasks/ |
Upload File : |
<?php
require_once('../_config.php');
$db = mysqli_connect($INFO['sql_host'], $INFO['sql_user'], $INFO['sql_pass'], $INFO['sql_database'])
or die ("Connexion impossible au serveur !");
$result = '';
if ($_GET['id_tmpl'] && is_numeric($_GET['id_tmpl'])){
$id = $_GET['id_tmpl'];
$sql = mysqli_query($db,"SELECT * FROM ".$INFO['sql_tbl_prefix']."templates WHERE id=".$id." LIMIT 1");
if(mysqli_num_rows($sql)>0){
$row = mysqli_fetch_array($sql);
$result = $row['templ'];
} else{ $result = 'error';}
print json_encode($result);
}