include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.mysql.inc'; include_once 'ressources/class.ini.inc'; if (isset($_GET["events-table"])) { events_table(); exit; } if (isset($_GET["ShowID"])) { ShowID(); exit; } if (isset($_GET["ShowID-js"])) { ShowID_js(); exit; } if (isset($_POST["empty-table"])) { empty_table(); exit; } popup(); function ShowID_js() { $id = $_GET["ShowID-js"]; if (!is_numeric($id)) { return; } $tpl = new templates(); header("content-type: application/x-javascript");
<?php include_once('ressources/class.templates.inc'); include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.mysql.inc'); include_once('ressources/class.ini.inc'); //ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);ini_set('error_prepend_string',null);ini_set('error_append_string',null); if(isset($_GET["items"])){items();exit;} if(isset($_GET["ShowID"])){ShowID();exit;} if(isset($_GET["ShowID-js"])){ShowID_js();exit;} if(isset($_POST["empty-table"])){empty_table();exit;} popup(); function ShowID_js(){ $id=$_GET["ShowID-js"]; if(!is_numeric($id)){ return; }$tpl=new templates(); header("content-type: application/x-javascript"); $page=CurrentPageName(); $sql="SELECT subject FROM artica_update_task WHERE ID=$id"; $q=new mysql(); $ligne=@mysql_fetch_array($q->QUERY_SQL($sql,"artica_events")); $subject=$tpl->javascript_parse_text($ligne["subject"]);