26if (!defined(
'ALLOWED'))
27 die(
'Appel direct ne sont pas permis');
31if (
$op==
'action_show')
37 $array=$gestion->get_last(35);
39 require_once NOALYSS_TEMPLATE.
'/action_show.php';
45 $gestion->display_short();
48if (
$op==
'action_save')
56 $date_event=
$http->get(
"date_event",
"string",
"");
58 $event_group=
$http->get(
"event_group",
"string",0);
59 $event_priority=
$http->get(
"event_priority",
"string",0);
62 $type_event=
$http->get(
'type_event',
"string",-1);
63 $hour_event=
$http->get(
'hour_event',
"string",
null);
64 if ($date_event==-1||
isDate($date_event)==0)
65 throw new Exception(_(
'Date invalide'));
74 throw new Exception(_(
'Destinataire invalide'));
77 throw new Exception(_(
'Type invalide'));
79 throw new Exception(_(
'Aucun titre'));
84 header(
'Content-type: text/xml; charset=UTF-8');
85 $dom=
new DOMDocument(
'1.0',
'UTF-8');
86 $xml_content=
$dom->createElement(
'content',
$ex->getMessage());
87 $xml_status=
$dom->createElement(
'status',
"NOK");
89 $root->appendChild($xml_content);
90 $root->appendChild($xml_status);
99 $gestion->ag_priority=$event_priority;
100 $gestion->ag_title=
$title;
101 $gestion->ag_dest=$event_group;
102 $gestion->ag_type=$type_event;
103 $gestion->f_id_dest=$dest_id;
104 $gestion->ag_state=3;
105 $gestion->dt_id=$type_event;
107 $gestion->ag_timestamp=$date_event;
108 $gestion->ag_remind_date=$date_event;
109 $gestion->ag_hour=$hour_event;
113 $gestion->save_short();
114 }
catch (Exception
$ex)
120 header(
'Content-type: text/xml; charset=UTF-8');
121 $dom=
new DOMDocument(
'1.0',
'UTF-8');
123 $xml_status=
$dom->createElement(
'status',
$status);
125 $root->appendChild($xml_content);
126 $root->appendChild($xml_status);
128 echo
$dom->saveXML();
record_log($p_message)
Record an error message into the log file of the server.
h( $row[ 'oa_description'])
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...