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);
 }
Example #2
0
 function plugin_indexer()
 {
     $this->_enabledlist = CONFIG_DIR . 'plugins.conf.php';
     parent::fs_filelister();
 }
Example #3
0
 function draft_indexer()
 {
     $this->_cachefile = CACHE_DIR . 'draft_index.php';
     return parent::fs_filelister();
 }
Example #4
0
 function getList()
 {
     sort($this->_list);
     return parent::getList();
 }
 function admin_themes_obj_style_idx()
 {
     $this->_directory = THEMES_DIR . THE_THEME;
     parent::fs_filelister();
 }
Example #6
0
/**
 * 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";
}
Example #7
0
 function s_entry_crawler()
 {
     $this->index = entry_init();
     parent::fs_filelister();
 }
Example #8
0
 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();
 }
Example #9
0
 function bdb_entrylister()
 {
     $this->_cachefile = CACHE_DIR . 'userlist.php';
     parent::cache_filelister();
 }
Example #10
0
<?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>