Home
last modified time | relevance | path

Searched refs:id (Results 1 - 25 of 82) sorted by relevance

1234

/dokuwiki/inc/
H A Dpageutils.php19 * For $param='id' $conf['start'] is returned if no id was found.
24 * @param string $param the $_REQUEST variable name, default 'id'
28 function getID($param='id',$clean=true){
34 $id = $INPUT->str($param); variable
36 //construct page id from request URI
37 if(empty($id) && $conf['userewrite'] == 2){
44 if($param != 'id') {
64 //remove script URL and Querystring to gain the id
66 $id variable
68 $id = urldecode($id); global() variable
70 $id = preg_replace('!^/+!','',$id); global() variable
77 $id = $id.$conf['start']; global() variable
80 $id = $id.noNS(cleanID($id)); global() variable
83 $id = substr($id,0,-1); global() variable
86 $id = $id.$conf['start']; global() variable
130 $id = trim((string)$raw_id); global() variable
131 $id = \\dokuwiki\\Utf8\\PhpString::strtolower($id); global() variable
135 $id = strtr($id,';/','::'); global() variable
137 $id = strtr($id,';/',':'.$sepchar); global() variable
144 $id = \\dokuwiki\\Utf8\\Clean::stripspecials($id,$sepchar,'\\*'); global() variable
149 $id = preg_replace($sepcharpat,$sepchar,$id); global() variable
150 $id = preg_replace('#:+#',':',$id); global() variable
151 $id = trim($id,':._-'); global() variable
152 $id = preg_replace('#:[:\\._\\-]+#',':',$id); global() variable
153 $id = preg_replace('#[:\\._\\-]+:#',':',$id); global() variable
297 $id = $raw_id; global() variable
300 $id = str_replace(':','/',$id); global() variable
353 $id = cleanID($id); global() variable
354 $id = str_replace(':','/',$id); global() variable
370 $id = cleanID($id); global() variable
371 $id = str_replace(':','/',$id); global() variable
409 $id = str_replace(':','/',$id); global() variable
469 $id = preg_replace('/^((\\.+:)*)(\\.+)(?=[^:\\.])/','\\1\\3:',$id); global() variable
471 $id = $ns.':'.$id; global() variable
489 $id = implode(':', $result); global() variable
492 $id = $ns.':'.$id; global() variable
[all...]
H A Dparserutils.php57 * Returns the parsed Wikitext in XHTML for the given id and revision.
64 * @param string $id page id
71 function p_wiki_xhtml($id, $rev='', $excuse=true,$date_at=''){
72 $file = wikiFN($id,$rev);
75 //ensure $id is in global $ID (needed for parsing)
78 $ID = $id;
83 $ret = p_render('xhtml',p_get_instructions(io_readWikiPage($file,$id,$rev)),$info,$date_at);
89 $ret = p_cached_output($file,'xhtml',$id);
92 $changelog = new PageChangeLog($id);
[all...]
H A Dcommon.php137 * Determine basic information for a request of $id
142 * @param string $id pageid
144 * @return array with info for a request of $id
147 function basicinfo($id, $htmlClient=true){
158 $info['perm'] = auth_quickaclcheck($id);
174 $info['perm'] = auth_aclcheck($id, '', null);
178 $info['namespace'] = getNS($id);
208 $info['id'] = $ID;
308 $JSINFO['id'] = $ID;
446 * @param string $id pagei
456 $id = strtr($id, ':', '/'); global() variable
461 $id = strtr($id, ':', ';'); global() variable
464 $id = rawurlencode($id); global() variable
465 $id = str_replace('%3A', ':', $id); //keep as colon global() variable
466 $id = str_replace('%3B', ';', $id); //keep as semicolon global() variable
467 $id = str_replace('%2F', '/', $id); //keep as slash global() variable
497 $id = $conf['start']; global() variable
499 $id = idfilter($id); global() variable
545 $id = idfilter($id); global() variable
585 $id = cleanID($id); global() variable
631 $id = idfilter($id); global() variable
[all...]
H A Dcache.php26 public function __construct($id, $file, $mode)
29 parent::__construct($id, $file, $mode);
40 public function __construct($id, $file, $mode)
43 parent::__construct($id, $file, $mode);
52 public function __construct($id, $file)
55 parent::__construct($id, $file);
H A DAjax.php60 foreach($data as $id => $title) {
64 $ns = getNS($id);
66 $name = noNS($id) . ' (' . $ns . ')';
68 $name = $id;
71 echo '<li>' . html_wikilink(':' . $id, $name) . '</li>';
128 $ID = cleanID($INPUT->post->str('id'));
165 $id = cleanID($INPUT->str('id')); variable
166 if(empty($id)) return;
171 $cname = getCacheName($client . $id, '
262 $id = ''; global() variable
264 $id = $INPUT->post->str('mediaid', $_FILES['qqfile']['name']); global() variable
266 $id = $INPUT->get->str('qqfile'); global() variable
269 $id = cleanID($id); global() variable
344 $id = noNS($q); global() variable
348 $id = cleanID($id); global() variable
[all...]
H A Dfulltext.php71 foreach ($Indexer->getPages() as $id) {
72 $pages_all[$id] = 0; // base: 0 hit
93 foreach(array_keys($pages) as $id){
95 'id' => $id,
97 'text' => rawWiki($id)
108 $pages_matched[$id] = 0; // phrase: always 0 hit
117 foreach (array_keys($pages_all) as $id) {
118 if (strpos($id, $ns) === 0) {
119 $pages_matched[$id]
262 $id = $data['id']; global() variable
267 $id = implode(' ', $parsedQuery['highlight']); global() variable
[all...]
H A Dsearch.php172 * $opts['showmsg'] shows message if invalid media id is used
199 $info['id'] = pathID($file,true);
200 if($info['id'] != cleanID($info['id'])){
202 msg(hsc($info['id']).' is not a valid file name for DokuWiki - skipped',-1);
207 $info['perm'] = auth_quickaclcheck(getNS($info['id']).':*');
213 if(!empty($opts['pattern']) && !@preg_match($opts['pattern'], $info['id'])){
228 $info['hash'] = md5(io_readFile(mediaFN($info['id']),false));
239 * $opts['showmsg'] shows message if invalid media id is used
265 $id variable
308 $id = pathID($file); global() variable
343 $id = pathID($file); global() variable
442 $id = utf8_decodeFN($path); global() variable
443 $id = str_replace('/',':',$id); global() variable
445 $id = trim($id, ':'); global() variable
[all...]
H A Dform.php37 // Form id attribute
68 $this->params = array('id' => $params);
213 * @param string $id ID of the element to find.
218 public function findElementById($id)
221 if (is_array($elem) && isset($elem['id']) && $elem['id'] == $id)
391 * a name of 'wikitext' and id 'wiki__text'. The text will
443 * @param string $id ID attribute of the input. If set, the label will
450 function form_makeField($type, $name, $value='', $label=null, $id
[all...]
/dokuwiki/inc/Remote/
H A DApiCore.php208 * @param string $id wiki page id
213 public function rawPage($id, $rev = '')
215 $id = $this->resolvePageId($id); variable
216 if (auth_quickaclcheck($id) < AUTH_READ) {
219 $text = rawWiki($id, $rev);
221 return pageTemplate($id);
232 * @param string $id file id
239 $id = cleanID($id); global() variable
263 $id = cleanID($id); global() variable
297 $id = $this->resolvePageId($id); global() variable
472 $id = $this->resolvePageId($id); global() variable
518 $id = $this->resolvePageId($id); global() variable
617 $id = cleanID($id); global() variable
652 $id = cleanID($id); global() variable
679 $id = $this->resolvePageId($id); global() variable
706 $id = $this->resolvePageId($id); global() variable
843 $id = $this->resolvePageId($id); global() variable
924 $id = $this->resolvePageId($id); global() variable
934 $id = $this->resolvePageId($id); global() variable
1020 $id = cleanID($id); global() variable
1023 $id = cleanID($conf['start']); global() variable
[all...]
/dokuwiki/inc/Subscriptions/
H A DMediaSubscriptionSender.php17 * @param string $id Media file for which the notification is
21 public function sendMediaDiff($subscriber_mail, $template, $id, $rev = false, $current_rev = false)
25 $file = mediaFN($id);
26 list($mime, /* $ext */) = mimetype($id);
30 'MEDIA' => ml($id, $current_rev?('rev='.$current_rev):'', true, '&', true),
35 $trep['OLD'] = ml($id, "rev=$rev", true, '&', true);
40 $headers = ['Message-Id' => $this->getMessageID($id, @filemtime($file))];
42 $headers['In-Reply-To'] = $this->getMessageID($id, $rev);
45 $this->send($subscriber_mail, 'upload', $id, $template, $trep, null, $headers);
H A DPageSubscriptionSender.php19 * @param string $id Page for which the notification is
26 public function sendPageDiff($subscriber_mail, $template, $id, $rev = null, $summary = '', $current_rev = null)
32 'PAGE' => $id,
33 'NEWPAGE' => wl($id, $current_rev?('rev='.$current_rev):'', true, '&'),
35 'SUBSCRIBE' => wl($id, ['do' => 'subscribe'], true, '&'),
41 $trep['OLDPAGE'] = wl($id, "rev=$rev", true, '&');
43 $old_content = rawWiki($id, $rev);
44 $new_content = rawWiki($id);
65 $tdiff = rawWiki($id);
72 $headers = ['Message-Id' => $this->getMessageID($id)];
[all...]
H A DSubscriberManager.php30 * @param string $id The target page or namespace, specified by id; Namespaces
38 public function add($id, $user, $style, $data = '')
45 $this->remove($id, $user);
62 $file = $this->file($id);
74 * @param string $id The target object’s (namespace or page) id
81 public function remove($id, $user = null, $style = null, $data = null)
87 $file = $this->file($id);
106 * @param string $id Pag
121 $id = $ID; global() variable
238 $id = $data['id']; global() variable
[all...]
H A DBulkSubscriptionSender.php91 $pagelog = new PageChangeLog($rev['id']);
98 $change_ids[] = $rev['id'];
137 * @param string $id The target page or namespace, specified by id; Namespaces
143 protected function lock($id)
147 $lock = $conf['lockdir'] . '/_subscr_' . md5($id) . '.lock';
168 * @param string $id The target page or namespace, specified by id; Namespaces
174 protected function unlock($id)
177 $lock = $conf['lockdir'] . '/_subscr_' . md5($id)
242 $id = prettyprint_id($ns_id); global() variable
[all...]
/dokuwiki/
H A Dfeed.php214 $ditem = array('id' => $ditem);
218 $id = $ditem['id']; variable
220 $meta = p_get_metadata($id);
229 $date = @filemtime(mediaFN($id));
230 } elseif (file_exists(wikiFN($id))) {
231 $date = @filemtime(wikiFN($id));
243 $item->title = $ditem['id'];
255 'image' => $id,
256 'ns' => getNS($id),
[all...]
/dokuwiki/lib/scripts/
H A Dfileuploader.js46 var id = 0;
47 return function(){ return id++; };
268 onSubmit: function(id, fileName){},
269 onProgress: function(id, fileName, loaded, total){},
270 onComplete: function(id, fileName, responseJSON){},
271 onCancel: function(id, fileName){},
329 onProgress: function(id, fileName, loaded, total){
330 self._onProgress(id, fileName, loaded, total);
331 self._options.onProgress(id, fileName, loaded, total);
333 onComplete: function(id, fileNam
[all...]
H A Ddelay.js18 execDispatch: function (id) {
19 timer._handlers[id]();
23 var id = ++timer._cur_id;
24 timer._handlers[id] = func;
25 return window.setTimeout('timer.execDispatch(' + id + ')', timeout);
/dokuwiki/inc/Ui/Media/
H A DDisplayRow.php18 $id = $this->mediaFile->getId(); variable
21 $jump = $this->scrollIntoView ? 'id="scroll__here"' : '';
23 echo '<div title="' . $id . '" ' . $jump . '>';
24 echo '<a id="h_:' . $id . '" class="' . $class . '">' .
30 $link = ml($id, '', true);
35 $link = wl('', array('do' => 'media', 'image' => $id, 'ns' => getNS($id)));
41 $link = DOKU_BASE . 'lib/exe/mediamanager.php?delete=' . rawurlencode($id) .
43 echo ' <a href="' . $link . '" class="btn_media_delete" title="' . $id
62 $id = $this->mediaFile->getId(); global() variable
[all...]
/dokuwiki/inc/Extension/
H A DPluginInterface.php58 * @param string $id id of the string to be retrieved
61 public function getLang($id);
67 * @param string $id id of language dependent wiki page
70 public function locale_xhtml($id);
76 * @param string $id id of localization file
80 public function localFN($id, $ext = 'txt');
/dokuwiki/inc/Ui/
H A DRevisions.php23 * @param bool|string $media_id id of media, or false for current page
55 * @param string $id media id
58 protected function showMediaRevisions($id)
69 'id' => 'page__revisions', // must not be "media__revisions"
70 'action' => media_managerURL(['image' => $id], '&'),
86 } elseif (file_exists(mediaFN($id, $rev))) {
120 print $this->htmlNavigation($id, $first, $hasNext);
128 protected function showPageRevisions($id)
142 'id'
377 $id = $this->info['id']; global() variable
410 $id = $this->info['id']; global() variable
[all...]
H A DRecent.php61 $form = new Form(['id'=>'dw__recent', 'method'=>'GET', 'action'=> wl($ID), 'class'=>'changes']);
65 $form->setHiddenField('id', $ID);
218 $id = $this->info['id']; variable
220 $html = media_printicon($id);
222 $html = '<img class="icon" src="'.DOKU_BASE.'lib/images/fileicons/file.png" alt="'.$id.'" />';
256 $id = $this->info['id']; variable
258 $href = media_managerURL(['tab_details'=>'view', 'image'=> $id, 'ns'=> getNS($id)], '
271 $id = $this->info['id']; global() variable
302 $id = $this->info['id']; global() variable
[all...]
/dokuwiki/inc/File/
H A DMediaFile.php9 protected $id; variable
22 * @param string $id
25 public function __construct($id, $rev = '')
27 $this->id = $id; //FIXME should it be cleaned? variable
28 $this->path = mediaFN($id, $rev);
36 return $this->id;
52 return noNS($this->id);
157 return auth_quickaclcheck(getNS($this->id).':*');
/dokuwiki/inc/Sitemap/
H A DItem.php34 * Helper function for creating an item for a wikipage id.
36 * @param string $id A wikipage id.
43 public static function createFromID($id, $changefreq = null, $priority = null) {
44 $id = trim($id); variable
45 $date = @filemtime(wikiFN($id));
47 return new Item(wl($id, '', true), $date, $changefreq, $priority);
/dokuwiki/inc/Cache/
H A DCacheParser.php17 * @param string $id page id
21 public function __construct($id, $file, $mode)
23 if ($id) {
24 $this->page = $id;
/dokuwiki/inc/Form/
H A DTagCloseElement.php39 * @param null|string $id
43 public function id($id = null) function
45 if ($id === null) {
H A DElement.php129 * @param null|string $id
132 public function id($id = null) function
134 if (strpos($id, '__') === false) {
138 return $this->attr('id', $id);

Completed in 14 milliseconds

1234