5 $baseDir = dirname(dirname(dirname(dirname(__FILE__))));
8 require_once(
$baseDir .
'/lib/_autoload.php');
20 foreach (
$argv as $a) {
21 if (strlen($a) === 0) {
24 if (strpos($a,
'=') !==
false) {
26 $v = substr($a, $p + 1);
27 $a = substr($a, 0, $p);
33 $shortOptMap =
array(
'-d' =>
'--debug');
34 if (array_key_exists($a, $shortOptMap)) {
35 $a = $shortOptMap[$a];
55 echo(
'Unknown option: ' . $a .
"\n");
56 echo(
'Please run `' .
$progName .
' --help` for usage information.' .
"\n");
65 echo
"Cleaning these trackIDs: " . join(
', ',
$todelete) .
"\n";
79 Usage: $progName [options]
81 This program cleans logs. This script
is experimental. Do not run it unless you have talked
to Andreas about it.
82 The script deletes log
lines related
to sessions that produce more than 200
lines.
85 -d, --debug Used when configuring the log
file syntax. See doc.
86 --dry-run Aggregate but
do not store the results.
88 --outfile File
to output the results.
static setConfigDir($path, $configSet='simplesaml')
Set the directory for configuration files for the given configuration set.
foreach($argv as $a) $cleaner
Reload workbook from saved file
if(! $dryrun) printHelp()
This function prints the help output.
Create styles array
The data for the language used.