22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
47 $user_id=
$http->get(
"p_user",
"number");
55 $user->set_status_security_action(0);
56 $user->set_status_security_ledger(0);
57 $user->save_profile(1);
62 HtmlInput::anchor(_(
'Enleve'),
"",
" onclick=\"folder_remove({$user_id},{$dossier_id});\"").
66 catch (Exception $exc)
68 error_log($exc->getTraceAsString());
77 header(
'Content-type: text/xml; charset=UTF-8');
78 $dom=
new DOMDocument(
'1.0',
'UTF-8');
82 $root->appendChild($xml_content);
83 $root->appendChild($xml_status);
90if (
$op==
'folder_remove')
95 $user_id=
$http->get(
"p_user",
"number");
102 catch (Exception $exc)
104 error_log($exc->getTraceAsString());
111 header(
'Content-type: text/xml; charset=UTF-8');
112 $dom=
new DOMDocument(
'1.0',
'UTF-8');
114 $xml_status=
$dom->createElement(
'status',
$status);
116 $root->appendChild($xml_content);
117 $root->appendChild($xml_status);
119 echo
$dom->saveXML();
128if (
$op==
'folder_display')
134 $user_id=
$http->get(
"p_user",
"number");
141 <form method=
"get" onsubmit=
"folder_display('<?php echo $user_id ?>');
143 <
p style=
"text-align: center">
144 <?php echo _(
'Recherche'); ?>
146 <input
type=
"text" id=
"database_filter_input" class=
"input_text" autofocus=
"true" autocomplete=
"off" nohistory autocomplete=
"false" value=
"<?php echo $p_filter ?>"
147 onkeyup=
"filter_table(this, 'folder_display_tb', '1,2,3', 0)" >
148 <input
type=
"button" class=
"smallbutton" onclick=
"$('database_filter_input').value = '';filter_table($('database_filter_input'), 'folder_display_tb', '1,2,3', 0);" value=
"X">
149 <input
type=
"submit" class=
"smallbutton" value=
"<?php echo _('Rechercher') ?>">
160 require NOALYSS_TEMPLATE.
'/folder_display.php';
164 catch (Exception $exc)
166 error_log($exc->getTraceAsString());
176 header(
'Content-type: text/xml; charset=UTF-8');
177 $dom=
new DOMDocument(
'1.0',
'UTF-8');
179 $xml_content=
$dom->createElement(
'content',
$xml);
180 $xml_status=
$dom->createElement(
'status',
$status);
182 $root->appendChild($xml_content);
183 $root->appendChild($xml_status);
185 echo
$dom->saveXML();
190if (in_array(
$op, array(
'modele_drop',
'modele_modify',
'folder_modify',
'folder_drop')))
198 catch (Exception $exc)
200 error_log($exc->getTraceAsString());
205 header(
'Content-type: text/xml; charset=UTF-8');
206 $dom=
new DOMDocument(
'1.0',
'UTF-8');
208 $xml_content=
$dom->createElement(
'content',
$xml);
209 $xml_status=
$dom->createElement(
'status',
$status);
211 $root->appendChild($xml_content);
212 $root->appendChild($xml_status);
214 echo
$dom->saveXML();
219 if (
$op==
'folder_modify')
226 echo
'<form action="admin-noalyss.php" method="post">';
230 echo $wText->input(
'name', $dos->get_parameter(
'name'));
234 echo _(
'Description').
' : <br>';
235 echo
$wDesc->input(
'desc', $dos->get_parameter(
'desc'));
238 echo _(
'Max. email / jour (-1 = illimité)');
243 echo
'<ul class="aligned-block">';
257 else if (
$op==
'folder_drop')
264 echo
'<form action="admin-noalyss.php" method="post">';
268 echo
'<h2 class="error">'._(
'Etes vous sûr et certain de vouloir effacer ').$dos->dos_name.
' ???</h2>';
270 $confirm->name=
"p_confirm";
272 echo _(
"Tapez le code de confirmation");
275 echo
'<ul class="aligned-block">';
288 else if (
$op==
'modele_drop')
292 $name=
$cn->get_value(
'select mod_name from modeledef where mod_id=$1', array(
$dossier));
295 echo
'<form action="admin-noalyss.php" method="post">';
299 echo
'<h2 class="error">'._(
'Etes vous sure et certain de vouloir effacer ').$name.
' ?</h2>';
301 $confirm->name=
"p_confirm";
303 echo _(
'Cochez la case si vous êtes sûr de vouloir effacer ce modèle');
304 echo $confirm->input();
306 echo
'<ul class="aligned-block">';
319 else if (
$op==
'modele_modify')
325 echo
'<form method="post">';
327 "select mod_name from modeledef where ".
331 "select mod_desc from modeledef where ".
334 echo
'Nom : '.$wText->input(
'name',
$name);
337 echo
'<br>Description :<br>';
342 echo
'<ul class="aligned-block">';
358 header(
'Content-type: text/xml; charset=UTF-8');
359 $dom=
new DOMDocument(
'1.0',
'UTF-8');
361 $xml_content=
$dom->createElement(
'content',
$xml);
362 $xml_status=
$dom->createElement(
'status',
$status);
364 $root->appendChild($xml_content);
365 $root->appendChild($xml_status);
367 echo
$dom->saveXML();
373if (
$op==
'upgradeCore')
384 if ( DEBUGNOALYSS == 0 )
390 $url=sprintf(
'<a href="%s"> install.php</a>', NOALYSS_URL.
"/install.php");
391 printf(_(
"Afin de terminer l'installation aller sur %s , à la fin de la procédure , demandez à effacer le fichier install.php"),
393 }
catch (Exception
$ex ) {
394 echo
'<p class="notice">';
395 echo
$ex->getMessage();
404if (
$op==
'upgradePlugin')
417 echo _(
"L'extension doit être activée dans le dossier avec CFGPLUGIN");
423if (
$op==
"installTemplate")
437 echo _(
"Modèle installé");
confirm_with_string($p_ctl_name, $p_car)
generate a string of p_car character and a input text with name p_ctl_name work like a kind of captch...
set_language()
set the lang thanks the _SESSION['g_lang'] var.
h( $row[ 'oa_description'])
if(isset($_REQUEST['gDossier']) && $http->request("gDossier","number", 0) !=0) $repo
contains the class for connecting to Noalyss
manage the current dossier, everywhere we need to know to which folder we are connected,...
static show_dossier($p_type, $p_login="", $p_text="", $limit=0)
Show the folder where user have access.
This class handles only the numeric input, the input will call a javascript to change comma to period...
Data & function about connected users.
connect to NOALYSS_PACKAGE and fetch the file web.xml , it displays content of this file ,...
Use one db for tracking progress bar value, the task id must be unique and let you follow the progres...
const MAX_FOLDER_TO_SHOW(!defined('MAX_SEARCH_CARD'))
for($i=0;$i< $count;$i++) $template
for($e=0; $e< count($afiche); $e++) exit
if(count($a_dossier)==0) $nb_dossier
escape_xml($p_xml)
When data are transfered thanks ajax in a xml document, the xml can not contains some character,...