/plugin/nspages/fileHelper/ |
H A D | namespacePreparer.php | 22 function prepareFileTitle(&$ns){ 23 $idMainPage = $this->getMainPageId($ns); 25 $ns['title'] = p_get_first_heading($idMainPage, true); 27 $ns['title'] = null; 36 * @param $ns A structure which represents a namespace 38 function prepareFile(&$ns){ 39 $ns['nameToDisplay'] = $this->buildNameToDisplay($ns['title'], noNS($ns['id'])); 40 $ns['i 19 prepareFileTitle(& $ns) global() argument 35 prepareFile(& $ns) global() argument 41 getMainPageId(& $ns) global() argument [all...] |
/plugin/subpages/ |
H A D | syntax.php | 145 $ns = ':'.getNS($ID).substr($ns, 1); 147 $ns = $this->_getParentNS($ID).substr($ns, 3); 148 } elseif($ns == '..') { 151 } elseif($ns == '.' || $ns == '*') { 154 $ns = ':'.getNS($ID).':'.$ns; 157 if($mustBeNSnoPage && substr($ns, -1) <> ':') $ns .= ':'; 159 return $ns; 166 if($ns == ':' || $ns == '') return $this->datadir; 167 $ns = trim($ns, ':'); 240 $ns = '.'; [all …]
|
/plugin/linkmanager/ |
H A D | functions.php | 30 $ns = cleanID($NS); 32 if(empty($ns)){ 34 if($ns == '.') $ns =''; 49 $ns = cleanID($ns); 71 linkpage_newpage($ns); 158 function linkpage_nstree($ns){ argument 163 $ns = cleanID($ns); 164 if(empty($ns)){ 166 if($ns == '.') $ns =''; 168 $ns = utf8_encodeFN(str_replace(':','/',$ns)); [all …]
|
/plugin/dokutranslate/ |
H A D | admin.php | 28 var $ns = null; variable in admin_plugin_dokutranslate 61 $this->ns = '*'; 69 if($this->ns == '*'){ 164 if($this->ns) $opts['ns'] = $this->ns; 181 $ns = $this->ns; 182 if(empty($ns)){ 184 if($ns == '.') $ns =''; 186 $ns =''; 188 $ns = utf8_encodeFN(str_replace(':','/',$ns)); 250 $ns = $this->ns . ($this->ns == '*' ? '' : ':*'); [all …]
|
H A D | ajax.php | 39 $ns = $_REQUEST['ns']; variable 41 if($ns == '*'){ 42 $ns =''; variable 45 $ns = cleanID($ns); variable 46 $lvl = count(explode(':',$ns)); 47 $ns = utf8_encodeFN(str_replace(':','/',$ns)); variable 49 $data = $dokutranslate->_get_tree($ns,$ns);
|
/plugin/tiledblog/ |
H A D | syntax.php | 47 $ns = getNS ($ID); 50 $ns = $dumy[1][0]; 51 if (($ns == '*') || ($ns == ':')) 52 $ns = ''; 53 elseif ($ns == '.') 54 $ns = getNS ($ID); 56 $ns = cleanID ($ns); 67 $this->sample ($renderer, $ns, $cacheDir); 70 $this->tile ($renderer, $ns, $cacheDir); 83 $entries = $helperPlugin->getBlog ($ns); [all …]
|
/plugin/nspages/ |
H A D | namespaceFinder.php | 64 * Therefore, provides a ns which passes the cleanid() function, 67 $ns = explode(':', $this->wantedNs); 69 for($i = 0; $i < count($ns); $i++) { 70 if($ns[$i] === '' || $ns[$i] === '.') { 71 array_splice($ns, $i, 1); 73 } else if($ns[$i] == '..') { 78 //simplify the path, getting rid of 'ns:..' 79 array_splice($ns, $i - 1, 2); 85 $this->isSafe = (count($ns) 81 namespaceToDirectory($ns) global() argument [all...] |
/plugin/blog/syntax/ |
H A D | blog.php | 29 list($ns, $num) = array_pad(explode('?', $match, 2), 2, null); 32 if (is_numeric($ns)) { 33 $num = $ns; 34 $ns = ''; 40 if ($ns == '') $ns = cleanID($this->getConf('namespace')); 41 elseif (($ns == '*') || ($ns == ':')) $ns = ''; 42 elseif ($ns 197 _newEntryForm($ns, $newentrytitle) global() argument [all...] |
/plugin/discussion/syntax/ |
H A D | threads.php | 79 list($ns, $refine) = explode(' ', $match, 2); 81 if (($ns == '*') || ($ns == ':')) $ns = ''; 82 elseif ($ns == '.') $ns = getNS($ID); 83 else $ns = cleanID($ns); 85 return array($ns, $flags, $refine, $customFlags); 97 list($ns, $flags, $refine, $customFlags) = $data; 121 $renderer->doc .= $this->_newThreadForm($ns); 136 $renderer->doc .= $this->_newThreadForm($ns); 162 $renderer->doc .= $this->_newThreadForm($ns); 185 * @param string $ns [all …]
|
/plugin/dokugource/ |
H A D | action.php | 55 fwrite($fp, $ns.' '.$c."\n"); 75 $ns = $ID; 76 if($ns) { 77 $ns = str_replace('/', ':', trim($ns, '/:')); 80 $ns = preg_replace('`^(.*)\:[^\:]+$`', '$1', $ns); 84 $ns = trim($ns, '/:'); 95 if(substr($ns, 0, strlen($autons)) != $autons) die(); 106 $strip = explode(':', $ns); 109 $this->crawl($conf['metadir'].($ns ? '/'.str_replace(':', '/', $ns) : ''), $strip, $from); 118 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p); [all …]
|
H A D | admin.php | 25 var $ns = ''; variable in admin_plugin_dokugource 88 if($this->ns) { 89 $this->ns = str_replace('/', ':', trim($this->ns, '/:')); 90 if(!@is_dir($conf['datadir'].'/'.str_replace(':', '/', $this->ns).'/')) { 91 if(@is_file($conf['datadir'].'/'.str_replace(':', '/', $this->ns).'.txt')) { 92 $this->ns = preg_replace('`^(.*)\:[^\:]+$`', '$1', $this->ns); 104 $strip = explode(':', $this->ns); 107 …$this->crawl($conf['metadir'].($this->ns ? '/'.str_replace(':', '/', $this->ns) : ''), $strip, $th… 120 $ns = preg_replace('`^(.*\:)[^\:]+$`', '$1', $p); 122 if(isset($this->colors[$ns])) return $this->colors[$ns]; [all …]
|
/plugin/superacl/ |
H A D | admin.php | 23 var $ns = null; variable in admin_plugin_superacl2 198 if($this->ns) $opts['ns'] = $this->ns; 217 $ns = $this->ns; 220 if($ns == '.') $ns =''; 222 $ns =''; 224 $ns = utf8_encodeFN(str_replace(':','/',$ns)); 344 $ns = $this->ns; 347 if($ns){ 377 if($ns){ 611 $ns = $this->ns; [all …]
|
/plugin/searchresultswithpath/ |
H A D | action.php | 42 $ns = getNS($id); 45 $ns = p_get_first_heading(getNS($id)); 46 if(!$ns) $ns = p_get_first_heading(getNS($id). ':start'); 48 if (!$ns && !$showPathOnlyAsHeading) { 49 $ns = getNS($id); 53 if($ns) $ns = ' ['.$ns.']'; 60 $event->result[$id] = $title . $ns;
|
/plugin/autlogin/ |
H A D | ajax.php | 34 $ns = $_REQUEST['ns']; variable 35 if($ns == '*'){ 36 $ns =''; variable 38 $ns = cleanID($ns); variable 39 $lvl = count(explode(':',$ns)); 40 $ns = utf8_encodeFN(str_replace(':','/',$ns)); variable 42 $data = $acl->_get_tree($ns,$ns);
|
/plugin/editor/ |
H A D | syntax.php | 35 list($ns, $user) = explode('?', $match); 38 $user = $ns; 39 $ns = ''; 42 if (($ns == '*') || ($ns == ':')) $ns = ''; 43 elseif ($ns == '.') $ns = getNS($ID); 44 else $ns = cleanID($ns); 46 return array($ns, trim($user), $flags, $refine); 50 list($ns, $user, $flags, $refine) = $data; 54 if ($my =& plugin_load('helper', 'editor')) $pages = $my->getEditor($ns, '', $user);
|
/plugin/scrape/HTMLPurifier/Printer/ |
H A D | ConfigForm.php |
|
/plugin/task/syntax/ |
H A D | taskform.php | 32 list($ns, $flags) = explode('&', $match, 2); 35 if (($ns == '*') || ($ns == ':')) $ns = ''; 36 elseif ($ns == '.') $ns = getNS($ID); 37 else $ns = cleanID($ns); 46 return array($ns, $flags, $selectUserGroup); 54 list($ns, $flags, $selectUserGroup) = $data; 57 …if ($this->helper) $renderer->doc .= $this->helper->_newTaskForm($ns, $selectUser, $selectUserGrou…
|
/plugin/elasticsearch/vendor/symfony/polyfill-php73/ |
H A D | Php73.php | 31 $ns = microtime(false); 32 $s = substr($ns, 11) - self::$startAt; 33 $ns = 1E9 * (float) $ns; 36 $ns += $s * 1E9; 38 return \PHP_INT_SIZE === 4 ? $ns : (int) $ns; 41 return [$s, (int) $ns];
|
/plugin/tagfilter/ |
H A D | helper.php | 60 * @param string $ns list only pages from this namespace 65 public function getTagsByRegExp($tagExpression, $ns = '', $aclSafe = false) argument 75 if ($this->matchesTagExpression($tagExpression, $tag) && $this->isTagInNamespace($tag, $ns, $aclSafe)) { 113 * @param string $ns list only tags used on pages from this namespace 117 public function getTagsByNamespace($ns = '', $aclSafe = true) argument 123 return array_keys($this->getTagsByRegExp('.*', $ns, $aclSafe)); 169 * @param string $ns list pages from this namespace 173 protected function isTagInNamespace($tag, $ns, $aclSafe = true) argument 175 if ($ns == '') { 186 if ($this->taghelper->isVisible($page, $ns)) { 229 getPagesByTag($tag, $ns = '') global() argument 248 startPageSearch($ns = '') global() argument 358 getTagImageColumn($id, $col, $ns) global() argument 402 getAllPages($ns, $tag_list_r) global() argument 443 getPagesByTags($ns, $tag_list) global() argument 526 getPagesByMatchedTags($tags, $ns = '') global() argument [all...] |
/plugin/siteexport/syntax/ |
H A D | aggregate.php | 56 $ns = $value; 58 $ns .= ':'; 62 $ns .= 'index'; 63 $namespace[] = $ns; 115 foreach( $allNamespaces as $ns ) { 116 if ( !array_key_exists('_'.$ns[2], $values) ) { 117 $values['_'.$ns[2]] = $ns; 118 } else if ( !in_array($ns[0], $values['_'.$ns[2]][4]) ) { 119 $values['_'.$ns[2]][0] .= '|' . $ns[0]; 121 $values['_'.$ns[2]][4][] = $ns[0];
|
/plugin/tag/syntax/ |
H A D | topic.php | 52 list($ns, $tag) = array_pad(explode('?', $match), 2, ''); 55 $tag = $ns; 56 $ns = ''; 59 if ($ns == '*' || $ns == ':') { 60 $ns = ''; 61 } elseif ($ns == '.') { 62 $ns = getNS($ID); 64 $ns = cleanID($ns); [all...] |
/plugin/subconfhelper/ |
H A D | action.php | 72 if( $ACT == 'index' && $sconf['ns'] ) { 79 search($data,$conf['datadir'],'search_index',array( 'ns' => $ns ), $sconf['ns'] ); 174 if( !$conf_override['ns'] ) { return ''; } 176 if( strpos( $ID, $conf_override['ns'] ) === 0 ) { return ''; } 178 $conf_override['ns'] )) === 0 ) { return ''; } 180 $newfile = wikiFN( $conf_override['ns'].':'.$ID ); 181 if( !file_exists( wikiFN( $conf_override['ns'].':'.$ID )) 183 $ID = $conf_override['ns'].':'.$ID;
|
/plugin/elasticsearch/helper/ |
H A D | acl.php | 52 $ns = $id; 54 $ns = getNS($ns); 56 if (!$ns && isset($acl['*'])) { 60 $ns = false; 65 if (isset($acl[$ns . ':*'])) { 66 $this->addRule($acl[$ns . ':*'], $rules); 68 if (isset($acl[$ns . ':*']['@ALL'])) $ns = false; 70 } while ($ns); [all...] |
/plugin/tagging/helper/ |
H A D | querybuilder.php | 14 protected $ns = []; variable in helper_plugin_tagging_querybuilder 94 * @param array $ns 96 public function includeNS($ns) argument 98 $this->ns = $this->globNS($ns); 103 * @param array $ns 105 public function excludeNS($ns) argument 107 $this->notns = $this->globNS($ns); 217 if ($this->ns) { 220 $nsCnt = count($this->ns); [all...] |
/plugin/usersubscriptions/ |
H A D | syntax.php | 50 $ns = ''; 52 $ns = trim($options[0]); 82 $ns = $data[0]; 130 if($ns == '' || $ns == '.') { 132 $ns = getNS($ID); 133 }else if($ns == '*') { 135 $ns = ''; 174 $isns = !preg_match('/\.txt:$/', $ns); 176 if(auth_quickaclcheck($ns) < AUTH_READ) return $us; 177 $cns = preg_replace('/\.txt:$/', '', $ns); [all …]
|