ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
BPMN2Parser.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 if ($_SERVER['argc'] < 5) {
5  die("Usage: " . basename(__FILE__) . " username password client infile [outfile]\n");
6 }
7 
8 chdir(dirname(__FILE__));
9 chdir('../../../../');
10 
11 include_once 'Services/Authentication/classes/class.ilAuthFactory.php';
12 ilAuthFactory::setContext(ilAuthFactory::CONTEXT_CRON);
13 
14 $_COOKIE['ilClientId'] = $_SERVER['argv'][3];
15 $_POST['username'] = $_SERVER['argv'][1];
16 $_POST['password'] = $_SERVER['argv'][2];
17 
18 include_once './include/inc.header.php';
19 
20 echo "\r\n[Invoking BPMN2-Parser]\r\n";
21 // -----------------------------------------------------------------------------
22 require_once dirname(__FILE__) . '/classes/parser/class.ilBPMN2Parser.php';
24 $infile_contents = file_get_contents($_SERVER['argv'][4]);
26 
27 if ($_SERVER['argv'][5]) {
28  file_put_contents($_SERVER['argv'][5], $parse_result);
29 } else {
31 }
32 echo "\r\n[Finished Parsing]\r\n";
33 // -----------------------------------------------------------------------------
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
$infile_contents
Definition: BPMN2Parser.php:24
$parse_result
Definition: BPMN2Parser.php:25
static setContext($a_context)
set context
$parser
Definition: BPMN2Parser.php:23
$_POST['username']
Definition: BPMN2Parser.php:15
$_COOKIE['ilClientId']
Definition: BPMN2Parser.php:14
Class ilBPMN2Parser.