. * * @author Laurent Giovannoni */ $admin = new core_tools(); $admin->test_admin('admin_parameters', 'apps'); $_SESSION['m_admin']= array(); /****************Management of the location bar ************/ $init = false; if (isset($_REQUEST['reinit']) && $_REQUEST['reinit'] == "true") { $init = true; } $level = ""; if( isset($_REQUEST['level']) && ($_REQUEST['level'] == 2 || $_REQUEST['level'] == 3 || $_REQUEST['level'] == 4 || $_REQUEST['level'] == 1) ) { $level = $_REQUEST['level']; } $page_path = $_SESSION['config']['businessappurl'] . 'index.php?page=control_param_technic&admin=parameters'; $page_label = _CONTROL_PARAM_TECHNIC; $page_id = "control_param_technic"; $admin->manage_location_bar($page_path, $page_label, $page_id, $init, $level); /***********************************************************/ //load XML configuration if (file_exists( $_SESSION['config']['corepath'] . 'custom' . DIRECTORY_SEPARATOR . $_SESSION['custom_override_id'] . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'config.xml' ) ) { $path = $_SESSION['config']['corepath'] . 'custom' . DIRECTORY_SEPARATOR . $_SESSION['custom_override_id'] . DIRECTORY_SEPARATOR . 'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'control_params.xml'; } else { $path = 'apps' . DIRECTORY_SEPARATOR . $_SESSION['config']['app_id'] . DIRECTORY_SEPARATOR . 'xml' . DIRECTORY_SEPARATOR . 'control_params.xml'; } if (!file_exists($path)) { echo 'first create and configure ' . $path . '
'; exit(); } $xmlconfig = new DOMDocument(); $xmlconfig->load($path); $MaarchCaptureGenParam = $xmlconfig->getElementsByTagName('MaarchCapture'); foreach ($MaarchCaptureGenParam as $MccParam) { //do nothing } $MccTestIt = $MccParam->getElementsByTagName('testIt')->item(0)->nodeValue; $pathToMaarchCapture = $MccParam->getElementsByTagName('pathToMaarchCapture')->item(0)->nodeValue; $func = new functions(); $pathToMailCapture = $pathToMaarchCapture . 'modules/MailCapture/'; echo '

' . _COMPONENT . ' : MaarchCapture/MailCapture


'; echo '
'; echo ''; echo '
'; /***********************************************************************************************/ /***********************************************************************************************/ /***********************************************************************************************/ echo '

' . _COMPONENT . ' : notifications/sendmail


'; echo '
'; echo ''; echo '
'; function loadXmlParams ($pathToParams, $arrayOfParams = array()) { if (is_dir($pathToParams)) { $dir = opendir($pathToParams); while($file = readdir($dir)) { if (strtoupper(pathinfo($file, PATHINFO_EXTENSION)) == 'XML') { $pathToXml = $pathToParams . $file; $paramXml = new DOMDocument(); $paramXml->load($pathToXml); array_push($arrayOfParams, $paramXml); } } closedir($dir); } else { functions::xecho ('path not exists : ' . $pathToParams); } return $arrayOfParams; }