".$BBCODE_TEMPLATE; if($temp[$mode]) { $BBCODE_TEMPLATE = $temp[$mode]; } if(is_readable(e_FILE."shortcode/batch/bbcode_shortcodes.php")) { require_once(e_FILE."shortcode/batch/bbcode_shortcodes.php"); return $tp->parseTemplate($BBCODE_TEMPLATE, FALSE, $bbcode_shortcodes); } else { return "ERROR: ".e_FILE."shortcode/batch/bbcode_shortcodes.php IS NOT READABLE."; } } function Size_Select($formid='size_selector') { $text =" \n"; return $text; } function Color_Select($formid='col_selector') { $text = " "; return $text; } function PreImage_Select($formid) { global $fl, $tp, $bbcode_imagedir; $path = ($bbcode_imagedir) ? $bbcode_imagedir : e_IMAGE."newspost_images/"; $formid = ($formid) ? ($formid) : "preimage_selector"; if(!is_object($fl)){ require_once(e_HANDLER."file_class.php"); $fl = new e_file; } $rejecthumb = array('$.','$..','/','CVS','thumbs.db','*._$', 'index', 'null*'); $imagelist = $fl->get_files($path,"",$rejecthumb,2); sort($imagelist); $text =" \n\n"; return $text; } function PreFile_Select($formid='prefile_selector',$bbcode_filedir) { require_once(e_HANDLER."userclass_class.php"); global $IMAGES_DIRECTORY, $fl, $sql; $rejecthumb = array('$.','$..','/','CVS','thumbs.db','*._$', 'index', 'null*'); $filelist = array(); $downloadList = array(); $sql->db_Select("download", "*", "download_class != ".e_UC_NOBODY); while ($row = $sql->db_Fetch()) { extract($row); if($download_url) { $filelist[] = array("id" => $download_id, "name" => $download_name, "url" => $download_url, "class" => $download_class); $downloadList[] = $download_url; } } $tmp = $fl->get_files(e_FILE."downloads/","",$rejecthumb); foreach($tmp as $value) { if(!in_array($value['fname'], $downloadList)) { $filelist[] = array("id" => 0, "name" => $value['fname'], "url" => $value['fname']); } } $text =" \n\n"; return $text; } function Emoticon_Select($formid='emoticon_selector') { require_once(e_HANDLER."emote.php"); $text =" \n\n"; return $text; } ?>