= strlen($string)) return FALSE; for($i = $offset; $i < strlen($string); $i++) { if(!is_numeric($string[$i])) return $i; } return strlen($string); } class syntax_plugin_dokugitviewer extends DokuWiki_Syntax_Plugin { function getType(){ return 'substition'; } function getSort(){ return 999; } function connectTo($mode) { $this->Lexer->addSpecialPattern('',$mode,'plugin_dokugitviewer'); } function handle($match, $state, $pos, &$handler) { $start = strlen(' 'features', 'bug' => 'bugs'); if($mode == 'xhtml'){ if(isset($data['repository'])) { if(isset($data['limit']) && is_numeric($data['limit'])) $limit = (int)($data['limit']); else $limit = 10; if (empty($data['bare'])) $bare=false; else $bare=true; $log = git_get_log($data['repository'], $limit,$bare); $renderer->doc .= ''; } return true; } return false; } } ?>