Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 28) sorted by last modified time

12

/dokuwiki/lib/plugins/acl/
H A Dadmin.php137 // prepare lines
138 $lines = [];
142 $lines[] = $line;
158 $lines[] = "$where\t$who\t$perm\n";
162 io_saveFile($config_cascade['acl']['default'], implode('', $lines));
735 // first make sure we won't end up with 2 lines matching this user and scope. See issue #1115
/dokuwiki/inc/
H A Dio.php145 * @param bool $array return array of lines
157 $lines = [];
170 $lines[] = substr($str, 0, $pos + 1);
179 $lines[] = $str;
181 return $lines;
320 * The default, when $maxlines is 0 is to delete all matching lines then append a single line.
324 * Otherwise each line is matched and replaced individually, up to the first $maxlines lines
325 * or all lines if $maxlines is -1. If $regex is true then captures can be used in $newline.
327 * Be sure to include the trailing newline in $oldline when replacing entire lines.
357 $lines
[all...]
H A Dchangelog.php183 $lines = @file($conf['media_changelog']) ?: [];
185 $lines = @file($conf['changelog']) ?: [];
187 if (!is_array($lines)) {
188 $lines = [];
190 $lines_position = count($lines) - 1;
202 $seen = []; // caches seen lines, _handleRecentLogLine() skips them
204 // handle lines
207 $rec = _handleRecentLogLine(@$lines[$lines_position], $ns, $flags, $seen);
284 $lines = @file($conf['media_changelog']);
286 $lines
[all...]
H A Dconfutils.php145 $lines = file(DOKU_INC . 'lib/scripts/jquery/versions');
146 foreach ($lines as $line) {
212 * Builds a hash from an array of lines
221 * @param array $lines
226 function linesToHash($lines, $lower = false)
230 if (isset($lines[0]) && str_starts_with($lines[0], pack('CCC', 0xef, 0xbb, 0xbf)))
231 $lines[0] = substr($lines[0], 3);
232 foreach ($lines a
218 linesToHash($lines, $lower = false) global() argument
[all...]
H A DLogger.php172 * @return string[] the lines to log
222 * Write the given lines to today's facility log
224 * @param string[] $lines the raw lines to append to the log
228 protected function writeLogLines($lines, $logfile)
231 fwrite(STDERR, "\n[" . $this->facility . '] ' . implode("\n", $lines) . "\n");
233 return io_saveFile($logfile, implode("\n", $lines) . "\n", true);
221 writeLogLines($lines, $logfile) global() argument
H A DTaskRunner.php117 $lines = file($fn);
118 if (count($lines) <= $conf['recent']) {
129 $counter = count($lines);
131 $log = ChangeLog::parseLogLine($lines[$i]);
137 // keep old lines for now (append .$i to prevent key collisions)
138 $old_lines[$log['date'] . ".$i"] = $lines[$i];
140 // definitely keep these lines
141 $out_lines[$log['date'] . ".$i"] = $lines[$i];
145 if (count($lines) === count($out_lines)) {
156 $extra = $conf['recent'] - count($out_lines); // do we need extra lines d
[all...]
/dokuwiki/conf/
H A Dacl.auth.php.dist3 # Don't modify the lines above
H A Dusers.auth.php.dist3 # Don't modify the lines above
/dokuwiki/inc/Search/
H A DIndexer.php737 // load all lines and pages so the used lines can be taken and matched with the pages
738 $lines = $this->getIndex($metaname . '_i', '');
743 $pages = array_keys($this->parseTuples($page_idx, $lines[$value_id]));
866 $lines = $this->getIndex($metaname . '_i', '');
867 foreach ($lines as $line) {
994 * @return array list of lines without CR or LF argument
1011 * @param array $lines list of lines without LF
1016 protected function saveIndex($idx, $suffix, &$lines)
[all...]
/dokuwiki/vendor/splitbrain/php-cli/src/
H A DTableFormatter.php295 $lines = explode($break, $str);
296 foreach ($lines as &$line) {
323 return implode($break, $lines);
/dokuwiki/lib/plugins/logviewer/
H A Dadmin.php99 $lines = $this->getLogLines($logfile);
100 $this->printLogLines($lines);
133 * Read the lines of the logfile and return them as array
158 $lines = explode("\n", $logData);
162 array_shift($lines); // Discard the first line
163 while ($lines !== [] && str_starts_with($lines[0], ' ')) {
164 array_shift($lines); // Discard indented lines
167 // A message to inform users that previous lines ar
178 printLogLines($lines) global() argument
[all...]
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php
/dokuwiki/vendor/openpsa/universalfeedcreator/
H A DLICENSE265 functions (ten lines or less in length), then the use of the object
/dokuwiki/vendor/openpsa/universalfeedcreator/lib/Creator/
H A DMBOXCreator.php26 * @param int $line_max wrap lines after these number of characters
32 $lines = preg_split("/(?:\r\n|\r|\n)/", $input);
36 foreach ($lines as $line) {
/dokuwiki/inc/Subscriptions/
H A DSubscriberManager.php190 $lines = file($file);
191 foreach ($lines as $line) {
/dokuwiki/data/pages/wiki/
H A Dsyntax.txt20 **Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line.
422 There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
/dokuwiki/lib/tpl/dokuwiki/css/
H A D_diff.css15 /* no style.ini colours because deleted and added lines have a fixed background colour */
H A D_links.css62 /* RTL corrections; if link icons don't work as expected, remove the following lines */
/dokuwiki/vendor/simplepie/simplepie/idn/
H A DLICENCE261 functions (ten lines or less in length), then the use of the object
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php75 /** Use a pre to wrap lines when line numbers are enabled or to wrap the whole code. */
384 * Styles of lines that should be highlighted extra
390 * Styles of extra-highlighted lines
440 * Line number styles for fancy lines
944 * For fancy line numbers, the second parameter is used to signal which lines
949 * @param int $nth_row Defines which lines are fancy
963 * span over multiple lines or not. Defaults to true to reduce overhead.
1811 * Specifies which lines to highlight extra
1815 * @param mixed $lines An array of line numbers to highlight, or just a line
1824 public function highlight_lines_extra($lines, argument
[all...]
/dokuwiki/vendor/geshi/geshi/
H A DCHANGELOG552 * Fixed HTML comments spawning multiple lines producing invalid XHTML output (SF#1738173, BenBE)
715 multiple lines properly when line numbers are on (Validome)
772 - Fixed lines being collapsed when they contain just a space (artlover)
797 - Reset extra lines to highlight if source is changed (Diogo Resende)
903 - Bugfix: the line style for non-fancy lines when fancy highlighting is enabled
991 - Code lines can have their own unique ID (for use with javascript)
/dokuwiki/lib/plugins/authplain/
H A Dauth.php417 $lines = file($file);
418 foreach ($lines as $line) {
/dokuwiki/lib/exe/
H A Dcss.php232 $lines = explode("\n", $css);
234 if (preg_match('/\/(\* XXXXXXXXX )(.*?)( XXXXXXXXX \*)\//', $lines[$i], $m)) {
/dokuwiki/inc/Cache/
H A DCache.php206 $lines = explode("\n", io_readFile($file));
208 foreach ($lines as $line) {
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php128 * Adjacent changelog lines are optimistically parsed and cached to speed up
165 //read lines from changelog
166 [$fp, $lines] = $this->readloglines($rev);
170 if (empty($lines)) return false;
172 // parse and cache changelog lines
173 foreach ($lines as $line) {
191 * For efficiency, the log lines are parsed and cached for later
194 * lines are received.
196 * @param int $first skip the first n changelog lines
206 $lines
[all...]

12