* - i id */ define('ALLOWED', 1); require_once '../include/constant.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_todo_list.php'; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/class_user.php'; mb_internal_encoding("UTF-8"); $cn = Dossier::connect(); global $g_user; $g_user = new User($cn); $g_user->check(true); $g_user->check_dossier(Dossier::id(), true); set_language(); ajax_disconnected('add_todo_list'); //////////////////////////////////////////////////////////////////////////////// // Display the note //////////////////////////////////////////////////////////////////////////////// if (isset($_REQUEST['show'])) { $cn = new Database(dossier::id()); $todo = new Todo_list($cn); $todo->set_parameter('id', $_REQUEST['id']); $todo->load(); $content = $todo->display(); header('Content-type: text/xml; charset=UTF-8'); $dom = new DOMDocument('1.0', 'UTF-8'); $tl_id = $dom->createElement('tl_id', $todo->get_parameter('id')); $tl_content = $dom->createElement('tl_content', $content); $root = $dom->createElement("root"); $root->appendChild($tl_id);
foreach ($var as $v) { if (!isset($_REQUEST[$v])) { echo "{$v}._(' is not set ')"; $cont = 1; } } extract($_REQUEST); ajax_disconnected($ctl); if ($cont != 0) { exit; } set_language(); /* *echo a warning if disconnected */ ajax_disconnected($_REQUEST['ctl']); $cn = new Database($gDossier); global $g_user; $g_user = new User($cn); $g_user->check(true); $g_user->check_dossier($gDossier, true); $html = var_export($_REQUEST, true); if (LOGINPUT) { $file_loginput = fopen($_ENV['TMP'] . '/scenario-' . $_SERVER['REQUEST_TIME'] . '.php', 'a+'); fwrite($file_loginput, "<?php \n"); fwrite($file_loginput, '//@description:' . $op . "\n"); fwrite($file_loginput, '$_GET=' . var_export($_GET, true)); fwrite($file_loginput, ";\n"); fwrite($file_loginput, '$_POST=' . var_export($_POST, true)); fwrite($file_loginput, ";\n"); fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
define('ALLOWED', 1); } require_once '../include/constant.php'; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/class_user.php'; require_once NOALYSS_INCLUDE . '/class_dossier.php'; require_once NOALYSS_INCLUDE . '/class_periode.php'; require_once NOALYSS_INCLUDE . '/class_html_input.php'; require_once NOALYSS_INCLUDE . '/class_acc_account.php'; require_once NOALYSS_INCLUDE . '/class_exercice.php'; $div = $_REQUEST['div']; mb_internal_encoding("UTF-8"); /** *if $_SESSION['g_user'] is not set : echo a warning */ ajax_disconnected($div); global $g_user, $cn; $cn = new Database(dossier::id()); $g_user = new User($cn); set_language(); /* security */ if ($g_user->check_dossier(dossier::id(), true) == 'X') { exit; } $from_div = isset($_REQUEST['ajax']) ? 1 : $_GET['l']; if (LOGINPUT) { $file_loginput = fopen($_ENV['TMP'] . '/scenario-' . $_SERVER['REQUEST_TIME'] . '.php', 'a+'); fwrite($file_loginput, "<?php \n"); fwrite($file_loginput, "//@description:\n"); fwrite($file_loginput, '$_GET=' . var_export($_GET, true)); fwrite($file_loginput, ";\n");
require_once NOALYSS_INCLUDE . '/class_acc_ledger.php'; require_once NOALYSS_INCLUDE . '/class_database.php'; require_once NOALYSS_INCLUDE . '/function_javascript.php'; require_once NOALYSS_INCLUDE . '/class_acc_account_ledger.php'; mb_internal_encoding("UTF-8"); extract($_REQUEST); $var = array('gDossier', 'op', 'ctl'); $cont = 0; /* check if mandatory parameters are given */ foreach ($var as $v) { if (!isset($_REQUEST[$v])) { echo "{$v} is not set "; $cont = 1; } } ajax_disconnected($ctl); set_language(); if ($cont != 0) { exit; } $cn = new Database(dossier::id()); require_once NOALYSS_INCLUDE . '/class_user.php'; global $g_user; $g_user = new User($cn); $g_user->Check(); if ($g_user->check_dossier(dossier::id()) == 'X') { exit; } $xml = ""; if (LOGINPUT) { $file_loginput = fopen($_ENV['TMP'] . '/scenario-' . $_SERVER['REQUEST_TIME'] . '.php', 'a+');