function _checkFile($d, $f) { $p = "{$d}{$f}"; if (is_dir($p)) { $this->_dirlist[$f] = "{$this->basepanelurl}{$f}"; } else { $lbl = $f; $this->_filelist[$f] = "{$this->thumburl}{$this->urldir}{$f}"; } return parent::_checkFile($d, $f); }
function plugin_indexer() { $this->_enabledlist = CONFIG_DIR . 'plugins.conf.php'; parent::fs_filelister(); }
function draft_indexer() { $this->_cachefile = CACHE_DIR . 'draft_index.php'; return parent::fs_filelister(); }
function getList() { sort($this->_list); return parent::getList(); }
function admin_themes_obj_style_idx() { $this->_directory = THEMES_DIR . THE_THEME; parent::fs_filelister(); }
/** * Adds a Toolbar to admin panels write entry. * * @global $_FP_SMARTY */ function plugin_bbcode_toolbar() { global $_FP_SMARTY; // get all available images $indexer = new fs_filelister(IMAGES_DIR); $imageslist = $indexer->getList(); array_unshift($imageslist, '--'); $_FP_SMARTY->assign('images_list', $imageslist); // get all available attachements $indexer = new fs_filelister(ATTACHS_DIR); $attachslist = $indexer->getList(); array_unshift($attachslist, '--'); $_FP_SMARTY->assign('attachs_list', $attachslist); // DMKE: does not work #$bblang = lang_load('plugin:bbcode'); #$_FP_SMARTY->assign('bblang', $bblang); echo "<!-- bbcode plugin -->\n"; echo '<script type="text/javascript" src="' . plugin_geturl('bbcode') . 'res/editor.js"></script>' . "\n"; echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar'); echo "<!-- end of bbcode plugin -->\n"; }
function s_entry_crawler() { $this->index = entry_init(); parent::fs_filelister(); }
function fs_chmodder($directory, $ch_file = FILE_PERMISSIONS, $ch_dir = DIR_PERMISSIONS) { $this->_directory = $directory; $this->_chmod_file = $ch_file; $this->_chmod_dir = $ch_dir; parent::fs_filelister(); }
function bdb_entrylister() { $this->_cachefile = CACHE_DIR . 'userlist.php'; parent::cache_filelister(); }
<?php $o = new fs_filelister('./setup/lang/'); $languages = $o->getList(); ?> <h2><?php echo $l['head']; ?> </h2> <div class="post"> <input type="hidden" name="setupid" value="<?php echo $setupid; ?> " /> <?php echo wpautop(sprintf($l['descr'], FP_CONTENT)); if ($err) { echo wpautop(sprintf($l['descrw'], FP_CONTENT)); } ?> <div id="buttonbar"> <input type="submit" name="start" id="start" value="<?php echo $lang['buttonbar']['next']; ?> " /> </div>