createOption('folderLinks', _DTREE_DIR_LINK, 'yesno', 'yes'); $this->createOption('useSelection', _DTREE_SELECTION, 'yesno', 'no'); $this->createOption('useCookies', _DTREE_COOKIE, 'yesno', 'no'); $this->createOption('useLines', _DTREE_LINE, 'yesno', 'yes'); $this->createOption('useIcons', _DTREE_ICON, 'yesno', 'yes'); $this->createOption('useStatusText', _DTREE_ST_TEXT, 'yesno', 'no'); $this->createOption('closeSameLevel', _DTREE_CL_SLEVEL, 'yesno', 'no'); $this->createOption('inOrder', _DTREE_IN_ORDER, 'yesno', 'no'); } function init() { global $admin; $language = ereg_replace( '[\\|/]', '', getLanguageName()); if (file_exists($this->getDirectory().'language/'.$language.'.php')) { include_once($this->getDirectory().'language/'.$language.'.php'); }else { include_once($this->getDirectory().'language/english.php'); } } function doSkinVar($skinType, $itemid = 0) { global $blogid, $catid, $subcatid; $adminURL = htmlspecialchars($this->getAdminURL(), ENT_QUOTES, _CHARSET); if (is_numeric($blogid)) { $blogid = intval($blogid); } else { $id = getBlogIDFromName($blogid); $blogid = intval($id); } $itemid = intval($itemid); $catid = intval($catid); $subcatid = intval($subcatid); // $randomID = 'tree' . uniqid(rand()); $randomID = 'tree' . preg_replace('|[^0-9a-f]|i', '', uniqid(rand())); echo '' . "\n"; if ($skinType == 'template') { $data = '' . "\n"; echo $data; $data = '' . _DTREE_OPENALL . '' . "\n" . ' | ' . "\n" . '' . _DTREE_CLOSEALL . '' . "\n"; echo $data; return; } $eq = ''; if (!empty($catid)) { } $eq .= '&cid=' . $catid; if (!empty($subcatid)) { $eq .= '&sid=' . $subcatid; } $data = ''; echo $data; $data = '' . _DTREE_OPENALL . '' . "\n" . ' | ' . "\n" . '' . _DTREE_CLOSEALL . '' . "\n"; echo $data; /* if (!(intRequestVar('page') > 0) !$catid && !$subcatid) { echo ''; }*/ } function doTemplateVar(&$item) { $this->doSkinVar('template', $item->itemid); } } ?>