getright($session->getuser(), 'cxcms', 'allowed', 'help'.$helpgroup.'doc', 'booltrue') )) { $buffer = system_htmlcomp_class('error',trans('cxcms.help.notallowed')); } else { //Alle möglichen Hilfedateien aus dem Filesystem holen $structfile = CXCUSTOMERSTORAGE.'/cxcms/help/'.$helpgroup.'__'.$actlang.'.struc'; $docstruct = array(); if (file_exists($structfile)) { $readbuffer = file($structfile); if (is_array($readbuffer)) foreach($readbuffer as $line) { $docstruct[trim($line)] = trim($line); } } $helpfiles = array(); $allmodules = $reg->getallkeys('/system/modules'); foreach($allmodules as $modname=>$modid) { $fl = new cxdir(CXCUSTOMERSCRIPTS.'/modules/'.$modname.'/help','*__'.$actlang.'.hlp','f',false); $fl->go(); foreach($fl as $filename) { $key=substr(basename($filename),0,strpos(basename($filename),'__')); $orikey = $key; if (! isset($docstruct[$key])) continue; $help = cxlib_readhelpfile($modname,$key,$actlang); $helpfiles[$key]['f'] = substr(basename($filename),0,strpos(basename($filename),'__')); $helpfiles[$key]['m'] = $modname; $helpfiles[$key]['l'] = $help['label']; $helpfiles[$key]['g'] = $help['groups']; } $fl = new cxdir(CXCUSTOMERSTORAGE.'/'.$modname.'/help','*__'.$actlang.'.hlp','f',false); $fl->go(); foreach($fl as $filename) { $key=substr(basename($filename),0,strpos(basename($filename),'__')); $orikey = $key; if (! isset($docstruct[$key])) continue; $help = cxlib_readhelpfile($modname,$key,$actlang); if (isset($helpfiles[$help['ori']])) { unset($helpfiles[$help['ori']]); } $helpfiles[$key]['f'] = substr(basename($filename),0,strpos(basename($filename),'__')); $helpfiles[$key]['m'] = $modname; $helpfiles[$key]['l'] = $help['label']; $helpfiles[$key]['g'] = $help['groups']; } } ksort($helpfiles); $thehtml = ''; $pdfinfos = array(); $chapterlist = array(0,0,0,0,0,0,0,0,0,0,0); $chapternames= array(' ',' ',' ',' ',' ',' ',' ',' '); $thehtml .= '
'; $thehtml .= ''.trans('cxcms.helpadmin.docedit.doc').'

'."\n"; $thehtml .= '

'.trans('cxcms.helpadmin.docedit.toc').'

'."\n"; foreach($helpfiles as $name=>$fdata) { $filename = $fdata['f']; $module = $fdata['m']; $struct = explode('_',$name); $levels = count($struct); $outline = ''; $label = $fdata['l']; $groups = $fdata['g']; if (strpos(' '.$groups,$helpgroup)<1) { unset($helpfiles[$filename]); continue; } foreach($struct as $nr=>$entry) { if ($entry != $chapternames[$nr]) { for($i=($nr+1);$i'; $thehtml .= $nrs.' '.$label."
\n"; $thehtml .= ''; } foreach($helpfiles as $fname=>$fdata) { $thehtml .= '
'; $thehtml .= ''.$fdata['nrs'].' '.$fdata['l'].''; $help = cxlib_readhelpfile($fdata['m'],$fname,$actlang); $thehtml .= '

'.cxlib_wiki2html($fdata['m'],$help['wiki']).'

'."\n"; } $thehtml .= '
'; $buffer = $thehtml; } $js = 'window.print();'; $modules->registeronload($js); $index_main['html'] = $buffer; ?> NVG-BILD [...]