Application->GetVar('h_prefix') ); $this->Prefix = $rets[0]; $this->Special = isset($rets[1]) ? $rets[1] : ''; //$this->Prefix = $this->Application->GetVar('h_prefix'); $title_preset_name = $this->Application->GetVar('h_title_preset'); $title_presets = $this->Application->getUnitOption($this->Prefix,'TitlePresets'); $format = $title_presets[$title_preset_name]['format']; $format = preg_replace('/[ ]*( ([\'"]{1}) | ([\(]{1}) ) \#.*\# (?(2) \1 | \) )[ ]*/Ux', ' ', $format); $title_presets[$title_preset_name]['format'] = $format; $this->Application->setUnitOption($this->Prefix,'TitlePresets',$title_presets); $params['title_preset'] = $title_preset_name; $ret = parent::SectionTitle($params); return $ret; } function ShowHelp($params) { $module = $this->Application->GetVar('h_module'); $title_preset = $this->Application->GetVar('h_title_preset'); $sql = 'SELECT Path FROM '.TABLE_PREFIX.'Modules WHERE LOWER(Name)='.$this->Conn->qstr( strtolower($module) ); $module_path = $this->Conn->GetOne($sql); $help_file = FULL_PATH.'/'.$module_path.'module_help/'.$title_preset.'.txt'; if( $this->Application->isDebugMode() && dbg_ConstOn('DBG_EDIT_HELP') ) { global $debugger; $ret = 'Help file: '.$debugger->getLocalFile($help_file).'
'; } else { $ret = ''; } if( file_exists($help_file) ) { $ret .= file_get_contents($help_file); } else { $ret .= $this->Application->Phrase('la_section_help_file_missing'); } return $ret; } } ?>