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");
88 $root=$dom->createElement(
"root");
89 $root->appendChild($xml_content);
90 $root->appendChild($xml_status);
91 $dom->appendChild(
$root);
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;
106 $gestion->ag_comment=strip_tags(
$summary);
108 $gestion->ag_timestamp=$date_event;
109 $gestion->ag_remind_date=$date_event;
110 $gestion->ag_hour=$hour_event;
114 $gestion->save_short();
115 }
catch (Exception
$ex)
118 $content=
$ex->getMessage();
121 header(
'Content-type: text/xml; charset=UTF-8');
122 $dom=
new DOMDocument(
'1.0',
'UTF-8');
123 $xml_content=$dom->createElement(
'content', $content);
124 $xml_status=$dom->createElement(
'status',
$status);
125 $root=$dom->createElement(
"root");
126 $root->appendChild($xml_content);
127 $root->appendChild($xml_status);
128 $dom->appendChild(
$root);
129 echo $dom->saveXML();
record_log($p_message)
Record an error message into the log file of the server or in the log folder of NOALYSS Record also t...
_("actif, passif,charge,...")
define Class fiche and fiche def, those class are using class attribut. When adding or modifing new c...
class_action for manipulating actions action can be :