Home
last modified time | relevance | path

Searched refs:rev (Results 1 - 21 of 21) sorted by relevance

/dokuwiki/inc/Subscriptions/
H A DBulkSubscriptionSender.php86 foreach ($changes as $rev) {
88 while (!is_null($rev) && $rev['date'] >= $lastupdate &&
89 ($INPUT->server->str('REMOTE_USER') === $rev['user'] ||
90 $rev['type'] === DOKU_CHANGE_TYPE_MINOR_EDIT)) {
91 $pagelog = new PageChangeLog($rev['id']);
92 $rev = $pagelog->getRevisions($n++, 1); variable
93 $rev = (count($rev) > 0) ? $rev[ variable
200 $rev = $pagelog->getRevisions($n++, 1); global() variable
201 $rev = (count($rev) > 0) ? $rev[0] : null; global() variable
[all...]
H A DMediaSubscriptionSender.php18 * @param int|bool $rev Old revision if any
21 public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false)
30 'MEDIA' => ml($id, $current_rev?('rev='.$current_rev):'', true, '&', true),
34 if ($rev && $conf['mediarevisions']) {
35 $trep['OLD'] = ml($id, "rev=$rev", true, '&', true);
41 if ($rev) {
42 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
H A DPageSubscriptionSender.php20 * @param int|null $rev Old revision if any
26 public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $current_rev = null)
33 'NEWPAGE' => wl($id, $current_rev?('rev='.$current_rev):'', true, '&'),
39 if ($rev) {
41 $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&');
43 $old_content = rawWiki($id, $rev);
73 if ($rev) {
74 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
H A DSubscriptionSender.php23 * @param string $rev The revision of the page, set to the current revision of the page $id if not set
27 protected function getMessageID($id, $rev = null)
37 if (is_null($rev)) {
38 $rev = @filemtime(wikiFN($id)); variable
41 return "<$id?rev=$rev@$listid>";
/dokuwiki/inc/Ui/
H A DRevisions.php79 $rev = $info['date']; variable
86 } elseif (file_exists(mediaFN($id, $rev))) {
87 $form->addCheckbox('rev2[]')->val($rev);
89 $form->addCheckbox('')->val($rev)->attr('disabled','disabled');
150 $rev = $info['date']; variable
155 if (page_exists($id, $rev)) {
156 $form->addCheckbox('rev2[]')->val($rev);
158 $form->addCheckbox('')->val($rev)->attr('disabled','disabled');
223 $rev = filemtime(fullpath(mediaFN($this->media_id))); variable
225 $revinfo = $changelog->getRevisionInfo($rev)
378 $rev = $this->info['date']; global() variable
411 $rev = $this->info['date']; global() variable
[all...]
H A DDiff.php69 // given as rev and rev2 parameters, with rev2 being optional. Or in an
277 $l_head = '<bdi><a class="wikilink1" href="'.$ml_or_wl($id,"rev=$l_rev").'">'
294 $r_head = '<bdi><a class="wikilink1" href="'.$ml_or_wl($id,"rev=$r_rev").'">'
347 foreach ($l_revs as $rev) {
348 $info = $pagelog->getRevisionInfo($rev);
349 $l_revisions[$rev] = array(
351 'attrs' => ['title' => $rev],
353 if ($r_rev ? $rev >= $r_rev : false) $l_revisions[$rev]['attrs']['disabled'] = 'disabled';
360 foreach ($r_revs as $rev) {
[all...]
/dokuwiki/inc/ChangeLog/
H A DChangeLog.php72 * @param int $rev revision timestamp
85 public function getRevisionInfo($rev)
87 $rev = max($rev, 0); variable
90 if (isset($this->cache[$this->id]) && isset($this->cache[$this->id][$rev])) {
91 return $this->cache[$this->id][$rev];
95 list($fp, $lines) = $this->readloglines($rev);
108 if (!isset($this->cache[$this->id][$rev])) {
111 return $this->cache[$this->id][$rev];
248 * reference revision $rev i
261 $rev = max($rev, 0); global() variable
338 $rev = $rev2; global() variable
[all...]
/dokuwiki/inc/
H A Dpageutils.php264 * @param string|int $rev empty or revision timestamp
269 function page_exists($id,$rev='',$clean=true, $date_at=false) {
270 if($rev !== '' && $date_at) {
272 $pagelog_rev = $pagelog->getLastRevisionAt($rev);
274 $rev = $pagelog_rev; variable
276 return file_exists(wikiFN($id,$rev,$clean));
285 * @param $rev int|string page revision, empty string for current
292 function wikiFN($raw_id,$rev='',$clean=true){
303 if (isset($cache[$id]) && isset($cache[$id][$rev])) {
304 return $cache[$id][$rev];
517 $rev = $medialog_rev; global() variable
560 $rev = $pagelog_rev; global() variable
[all...]
H A Dio.php61 * $data[3] rev: The page revision, false for current wiki pages.
67 * @param bool|int $rev revision timestamp
70 function io_readWikiPage($file, $id, $rev=false) {
71 if (empty($rev)) { $rev = false; }
72 $data = array(array($file, true), getNS($id), noNS($id), $rev);
179 * $data[3] rev: The page revision, false for current wiki pages.
186 * @param int|bool $rev timestamp of revision
189 function io_writeWikiPage($file, $content, $id, $rev=false) {
190 if (empty($rev)) {
[all...]
H A Dfetch.functions.php139 * @param string $rev
144 function checkFileStatus(&$media, &$file, $rev = '', $width=0, $height=0) {
173 $file = mediaFN($media, $rev);
H A Ddeprecated.php492 * @param int|null $rev Old revision if any
498 public function send_diff($subscriber_mail, $template, $id, $rev = null, $summary = '') {
501 return $subscriptionSender->sendPageDiff($subscriber_mail, $template, $id, $rev, $summary);
512 * @param int|bool $rev Old revision if any
516 public function send_media_diff($subscriber_mail, $template, $id, $rev = false) {
519 return $subscriptionSender->sendMediaDiff($subscriber_mail, $template, $id, $rev);
H A Dmedia.php947 * @param string|int $rev revision timestamp or empty string
949 function media_tab_view($image, $ns, $auth=null, $rev='') {
954 $meta = new JpegMeta(mediaFN($image, $rev));
955 media_preview($image, $auth, $rev, $meta);
956 media_preview_buttons($image, $auth, $rev);
957 media_details($image, $auth, $rev, $meta);
1015 * @param int|string $rev revision timestamp or empty string
1020 function media_preview($image, $auth, $rev='', $meta=false) {
1022 $size = media_image_preview_size($image, $rev, $meta);
1029 if ($rev) {
[all...]
H A Dtemplate.php866 if($INFO['rev']) {
1123 $url = ml($IMG, array('cache'=> $INPUT->str('cache'),'rev'=>$REV), true, '&');
1124 $src = ml($IMG, array('cache'=> $INPUT->str('cache'),'rev'=>$REV, 'w'=> $w, 'h'=> $h), true, '&');
1422 * @param boolean $rev
1424 function tpl_mediaFileDetails($image, $rev) {
1435 if($rev && !file_exists(mediaFN($image, $rev))) $rev = false;
1460 $attributes = $rev ? ['rev'
1750 $rev = ''; global() variable
[all...]
H A Dparserutils.php65 * @param string|int $rev revision timestamp or empty string
71 function p_wiki_xhtml($id, $rev='', $excuse=true,$date_at=''){
72 $file = wikiFN($id,$rev);
80 if($rev || $date_at){
83 $ret = p_render('xhtml',p_get_instructions(io_readWikiPage($file,$id,$rev)),$info,$date_at);
H A DAjax.php231 $rev = false; variable
232 if(isset($REV) && !$JUMPTO) $rev = $REV;
235 tpl_mediaFileDetails($image, $rev);
H A Dcommon.php209 $info['rev'] = $REV;
233 $info['rev'] = $REV;
488 if(isset($urlParameters['rev']) && !$urlParameters['rev']) unset($urlParameters['rev']);
600 if(isset($more['rev']) && !$more['rev']) unset($more['rev']);
1058 * @param string|int $rev timestamp when a revision of wikitext is desired
1061 function rawWiki($id, $rev
[all...]
H A DDifferenceEngine.php543 * $rev = $diff->reverse();
549 $rev = $this; variable
550 $rev->edits = array();
552 $rev->edits[] = $edit->reverse();
554 return $rev;
636 $rev = $this->reverse(); variable
637 if (serialize($to_lines) != serialize($rev->orig()))
639 if (serialize($from_lines) != serialize($rev->closing()))
/dokuwiki/inc/Remote/
H A DApiCore.php209 * @param int|string $rev revision timestamp of the page or empty string
213 public function rawPage($id, $rev = '')
219 $text = rawWiki($id, $rev);
291 * @param string|int $rev revision timestamp or empty string
295 public function htmlPage($id, $rev = '')
301 return p_wiki_xhtml($id, $rev, false);
382 'rev' => filemtime($file),
465 * @param string|int $rev revision timestamp or empty string
470 public function pageInfo($id, $rev = '')
476 $file = wikiFN($id, $rev);
485 $rev = $time; global() variable
[all...]
/dokuwiki/
H A Dfeed.php122 // One of: diff, page, rev, current
257 'rev' => $date
261 $item->link = wl($id, 'rev='.$date, true, '&');
264 case 'rev':
270 'rev' => $date,
275 $item->link = wl($id, 'do=revisions&rev='.$date, true, '&');
297 'rev' => $date,
303 $item->link = wl($id, 'rev='.$date.'&do=diff', true, '&');
314 $rev = $revs[0]; variable
322 if($rev
340 $rev = $revs[0]; global() variable
[all...]
/dokuwiki/inc/File/
H A DMediaFile.php23 * @param string|int $rev optional revision
25 public function __construct($id, $rev = '')
28 $this->path = mediaFN($id, $rev);
/dokuwiki/lib/plugins/authad/adLDAP/classes/
H A DadLDAPUtils.php148 $rev = hexdec(substr($hex_sid, 0, 2)); variable
151 $result = "$rev-$auth";

Completed in 17 milliseconds