'."\n", $file); if (!empty($jscode)) $ret .= sprintf('\n", implode("\n",$jscode)); return $ret; } function process() { if (!empty($_GET['login'])) { require_once('lib/login.php'); return mask_login(); } if (!empty($_GET['mask'])) { require_once('lib/mask.php'); return mask($_GET['mask']); } $masks = array('sys_user','sys_group','sys_mask', 'anbaugeraete','arbeitsarten','personal','materialien','gebiet','geraete', 'kostenstellen','materialverbrauch','einsatz'); $ret = ''; foreach ($masks as $m) $ret .= sprintf('%s
', $m, $m); return $ret; } function debug_log($text) { global $debug_info; $debug_info .= '
' . $text; } function debug_info() { global $jsfiles; global $debug_info; if (DEBUG !== true) return ''; $jsfiles[] = 'lib/debug_joey.js'; $html = '
'; $html .= "\n
\n\$_SESSION = " . var_export($_SESSION,true) . "\n";
  $html .= "\n\$_COOKIE = " . var_export($_COOKIE,true) . "\n
\n"; $html .= $debug_info; $html .= '
'; return $html; } ?>