Home
last modified time | relevance | path

Searched refs:dir (Results 1 - 25 of 26) sorted by relevance

12

/dokuwiki/lib/plugins/safefnrecode/
H A Daction.php54 private function recode($dir)
56 $dh = opendir($dir);
59 if ($file == '.' || $file == '..') continue; # cur and upper dir
60 if (is_dir("$dir/$file")) $this->recode("$dir/$file"); #recurse
64 rename("$dir/$file", "$dir/$new"); # rename it
/dokuwiki/lib/plugins/config/core/Setting/
H A DSettingDirchoice.php10 protected $dir = ''; variable
18 if($dh = @opendir($this->dir)) {
23 $file = (is_link($this->dir . $entry)) ? readlink($this->dir . $entry) : $this->dir . $entry;
/dokuwiki/bin/
H A Dwantedpages.php121 * @param string $dir
125 protected function getPages($dir) {
132 if(!is_dir($dir)) {
133 throw new DokuCLI_Exception("Unable to read directory $dir");
137 $dh = opendir($dir);
139 $status = $this->dirFilter($entry, $dir);
143 $pages = array_merge($pages, $this->getPages($dir . '/' . $entry));
146 'id' => pathID(substr($dir . '/' . $entry, $trunclen)),
147 'file' => $dir . '/' . $entry,
H A Dstriplangs.php70 * @param string $path path to plugin or template dir
95 * @param string $path path to lang dir
99 $dir = dir($path); variable
101 while(($cur_dir = $dir->read()) !== false) {
109 $dir->close();
/dokuwiki/inc/
H A Dinit.php31 // define Plugin dir
394 * will be used to change the permission of a newly created dir or
444 $dir = $conf['basedir']; variable
446 $dir = dirname($_SERVER['SCRIPT_NAME']); variable
448 $dir = dirname($_SERVER['PHP_SELF']); variable
450 $dir = preg_replace ('/^'.preg_quote($_SERVER['DOCUMENT_ROOT'],'/').'/','', variable
452 $dir = dirname('/'.$dir); variable
454 $dir = '.'; //probably wrong variable
457 $dir variable
458 $dir = preg_replace('#//+#','/',"/$dir/"); // ensure leading and trailing slashes global() variable
461 $dir = preg_replace('!lib/exe/$!','',$dir); global() variable
464 $dir = preg_replace('!lib/plugins/.*$!','',$dir); global() variable
[all...]
H A Dsearch.php21 * @param string $dir Current directory beyond $base
27 function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){
38 $dh = @opendir($base.'/'.$dir);
42 if(is_dir($base.'/'.$dir.'/'.$file)){
43 $dirs[] = $dir.'/'.$file;
46 $files[] = $dir.'/'.$file;
47 $filepaths[] = $base.'/'.$dir.'/'.$file;
60 foreach($dirs as $dir){
61 if (call_user_func_array($func, array(&$data,$base,$dir,'d',$lvl,$opts))){
62 search($data,$base,$func,$opts,$dir,
[all...]
H A Dfarm.php67 $dir = implode('.', array_slice($server, -$j)) . implode('.', array_slice($uri, 0, $i)); variable
68 if(is_dir("$farm/$dir/conf/")) {
70 return "$farm/$dir/conf/";
H A Dio.php36 $dir = $conf[$basedir].'/'.utf8_encodeFN(str_replace(':','/',$id)); variable
38 //try to delete dir else return
39 if(@rmdir($dir)) {
42 $delone = true; // we deleted at least one dir
485 $dir = dirname($file); variable
486 if(!@is_dir($dir)){
487 io_mkdir_p($dir) || msg("Creating directory $dir failed",-1);
507 $ret = @mkdir($target,$conf['dmode']); // crawl back up & create dir tree
547 foreach($dirs as $dir) {
576 $dir = md5(uniqid(mt_rand(), true)); global() variable
[all...]
H A DAjax.php186 $dir = utf8_encodeFN(str_replace(':', '/', $ns)); variable
191 search($data, $conf['mediadir'], 'search_index', array('nofiles' => true), $dir);
320 $dir = utf8_encodeFN(str_replace(':', '/', $ns)); variable
325 search($data, $conf['datadir'], 'search_index', array('ns' => $ns), $dir);
377 foreach($dirs as $dir => $junk) {
379 'id' => $dir,
H A Dindexer.php294 $dir = @opendir($conf['indexdir']); variable
295 if ($dir === false)
298 while (($f = readdir($dir)) !== false) {
305 closedir($dir);
H A Dpageutils.php478 foreach ($pathA AS $key => $dir) {
479 if ($dir == '..') {
485 } elseif ($dir && $dir != '.') {
486 $result[] = $dir;
H A Dtemplate.php32 * Convenience function to access template dir from local FS
47 * Convenience function to access template dir from web
1692 $dir = dirname($conf_file); variable
1693 if(file_exists("$dir/$file")) {
1694 include("$dir/$file");
1700 // still here? try the template dir
H A Dmedia.php700 $dir = utf8_encodeFN(str_replace(':','/',$ns)); variable
703 array('showmsg'=>true,'depth'=>1),$dir,1,$sort);
1536 $dir = utf8_encodeFN(str_replace(':','/',$evdata['ns'])); variable
1549 $dir,
/dokuwiki/vendor/phpseclib/phpseclib/phpseclib/Net/
H A DSFTP.php737 foreach ($path as $dir) {
738 if (!strlen($dir)) {
741 switch ($dir) {
747 $new[] = $dir;
757 * @param string $dir
761 function chdir($dir)
767 // assume current dir if $dir is empty
768 if ($dir === '') {
769 $dir variable
775 $dir = $this->_realpath($dir); global() variable
924 $dir = $this->_realpath($dir . '/'); global() variable
1795 $dir = $this->_realpath($dir); global() variable
1864 $dir = $this->_realpath($dir); global() variable
[all...]
/dokuwiki/lib/plugins/config/core/
H A DLoader.php239 * @param string $dir directory of the extension
244 protected function loadExtensionLang($dir, $type, $extname) {
251 if(file_exists($dir . 'lang/en/settings.php')) {
252 include $dir . 'lang/en/settings.php';
254 if($ll != 'en' && file_exists($dir . 'lang/' . $ll . '/settings.php')) {
255 include $dir . 'lang/' . $ll . '/settings.php';
/dokuwiki/vendor/composer/
H A DClassLoader.php417 foreach ($this->prefixDirsPsr4[$search] as $dir) {
418 if (file_exists($file = $dir . $pathEnd)) {
427 foreach ($this->fallbackDirsPsr4 as $dir) {
428 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
446 foreach ($dirs as $dir) {
447 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
456 foreach ($this->fallbackDirsPsr0 as $dir) {
457 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
/dokuwiki/
H A Dinstall.php45 <html lang="<?php echo $LC?>" dir="<?php echo $lang['direction']?>">
93 print "<div lang=\"en\" dir=\"ltr\">\n";
510 * Check other installation dir/file permission requirements
536 foreach($dirs as $dir){
537 if(!file_exists("$dir/.") || !is_writable($dir)){
538 $dir = str_replace($_SERVER['DOCUMENT_ROOT'],'{DOCUMENT_ROOT}', $dir); variable
539 $error[] = sprintf($lang['i_permfail'],$dir);
622 $dir variable
[all...]
/dokuwiki/lib/plugins/logviewer/
H A Dadmin.php144 foreach ($dirs as $dir) {
145 $facilities[] = basename($dir);
/dokuwiki/lib/plugins/extension/helper/
H A Dextension.php47 foreach ($this->temporary as $dir) {
48 io_rmdir($dir, true);
881 $dir = io_mktmpdir(); variable
882 if (!$dir) return false;
883 $this->temporary[] = $dir;
884 return $dir;
899 * @return bool|string if failed false, otherwise true or the name of the file in the given dir
/dokuwiki/inc/Remote/
H A DApiCore.php348 $dir = utf8_encodeFN(str_replace(':', '/', $ns)); variable
351 search($data, $conf['datadir'], 'search_allpages', $opts, $dir);
431 $dir = utf8_encodeFN(str_replace(':', '/', $ns)); variable
434 search($data, $conf['mediadir'], 'search_media', $options, $dir);
/dokuwiki/lib/scripts/
H A Dqsearch.js119 if (document.documentElement.dir === 'rtl') {
/dokuwiki/vendor/splitbrain/php-archive/src/
H A DTar.php516 $dir = dirname($name); variable
517 if (strlen($file) > 100 || strlen($dir) > 155) {
526 $prefix = $dir;
/dokuwiki/vendor/marcusschwarz/lesserphp/
H A Dlessc.inc.php76 foreach ((array)$this->importDir as $dir) {
77 $full = $dir.(substr($dir, -1) != '/' ? '/' : '').$url;
149 $dir = $pi["dirname"]; variable
152 $this->compileImportedProps($top, $parentBlock, $out, $parser, $dir);
154 return array(true, $bottom, $parser, $dir);
2312 public function addImportDir($dir) {
2314 $this->importDir[] = $dir;
2684 $dir = $this->pushSpecialBlock("directive"); variable
2685 $dir
2699 $dir = $this->pushBlock($this->fixTags(array("@".$dirName))); global() variable
[all...]
/dokuwiki/inc/Search/
H A DIndexer.php454 $dir = @opendir($conf['indexdir']); variable
455 if($dir!==false){
456 while(($f = readdir($dir)) !== false){
/dokuwiki/vendor/geshi/geshi/src/
H A Dgeshi.php735 $dir = dir($this->language_path); variable
738 while (false !== ($entry = $dir->read()))
770 $dir->close();

Completed in 40 milliseconds

12