/** * Class constructor * * @access protected */ function joominterface() { $mainframe =& JFactory::getApplication(); $database =& JFactory::getDBO(); if (!defined('_JOOM_LIVE_SITE')) { define('_JOOM_LIVE_SITE', JURI::base()); } // some definitions for joom_javascript if (!defined('_JOOM_PARENT_MODULE')) { define('_JOOM_PARENT_MODULE', 1); } $func = ''; $document =& JFactory::getDocument(); // include language for display $language =& JFactory::getLanguage(); $language->load('com_joomgallery'); // load JoomGallery plugins JPluginHelper::importPlugin('joomgallery'); require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_joomgallery' . DS . 'common.joomgallery.php'; $config = Joom_getConfig(); $this->_jg_config = $config; require_once JPATH_ROOT . DS . 'components' . DS . 'com_joomgallery' . DS . 'classes' . DS . 'modules.class.php'; require_once JPATH_ROOT . DS . 'components' . DS . 'com_joomgallery' . DS . 'includes' . DS . 'joom.javascript.php'; /** * set some default values for options given in global JG config * (may be overridden) */ $this->_config['showhits'] = $this->_jg_config->jg_showhits; $this->_config['showpicasnew'] = $this->_jg_config->jg_showpicasnew; $this->_config['showtitle'] = $this->_jg_config->jg_showtitle; $this->_config['showauthor'] = $this->_jg_config->jg_showauthor; $this->_config['showrate'] = $this->_jg_config->jg_showcatrate; $this->_config['shownumcomments'] = $this->_jg_config->jg_showcatcom; $this->_config['showdescription'] = $this->_jg_config->jg_showcatdescription; /** * further defaults (not given by JG config) */ // Category path links to category $this->_config['showcatlink'] = 1; // comma-separated list of categories to filter from (empty: all categories, default) $this->_config['categoryfilter'] = ''; // display last comment (see Module JoomImages) not implemented yet! $this->_config['showlastcomment'] = 0; // export globals for backwards compat. (JG 1.0): global $jg_perpage, $jg_colnumb; $jg_perpage = $this->_jg_config->jg_perpage; $jg_colnumb = $this->_jg_config->jg_colnumb; }
/** * dynamically output of RSS feeds to display them in Cooliris * * @param integer $catid * @param integer $catallpages, Count of pages, if navigation active, otherwise 1 * @param integer $currentpage, current site if navigation active, otherwise 0 * @param array $rows, Pictures */ function Joom_GetXMLFeed($catid, $catallpages, $currentpage, $rows) { $config = Joom_getConfig(); header('Content-type: text/xml'); $this->thumbnailpath = _JOOM_LIVE_SITE . $config->jg_paththumbs; $this->picturepath = _JOOM_LIVE_SITE . $config->jg_pathimages; $this->origpicturepath = _JOOM_LIVE_SITE . $config->jg_pathoriginalimages; $this->absolut_origpicturepath = JPATH_ROOT . DS . $config->jg_pathoriginalimages; $this->catid = $catid; $this->catpath = Joom_GetCatPath($this->catid); $this->catallpages = $catallpages; $this->currentpage = $currentpage; $this->rows = $rows; ob_clean(); echo $this->Joom_GetRSS(); exit; }
/** * Delete picture(s) from directory and database * * @param Array $cid: id's of pictures to be deleted */ function Joom_RemovePictures($ids) { $mainframe =& JFactory::getApplication('administrator'); $database =& JFactory::getDBO(); $config = Joom_getConfig(); jimport('joomla.filesystem.file'); //one or more pictures if (!is_array($ids) || count($ids) < 1) { //no picture(s) -> error message and abort $msg = JText::_('JGA_ALERT_SELECT_AN_ITEM_TO_DELETE'); $mainframe->redirect('index.php?option=' . _JOOM_OPTION . '&act=pictures', $msg, 'error'); } //two arrays, one for the succesful deleted, one for the pictures with //error in actions //TODO: error messages $deleted_items = array(); $notdeleted_items = array(); // loop through array foreach ($ids as $id) { //database query to get the category, name of picture and thumb $database->setQuery("SELECT id, catid, imgfilename, imgthumbname\n FROM #__joomgallery\n WHERE id = {$id}"); if ($database->query()) { $row = $database->loadObject(); //catpath for category $catpath = Joom_GetCatPath($row->catid); //database query to check if there are other pictures with this thumbnail //assigned and how many $database->setQuery("SELECT COUNT(id)\n FROM #__joomgallery\n WHERE imgthumbname = '" . $row->imgthumbname . "'\n AND id != '" . $row->id . "'\n AND catid = '" . $row->catid . "'"); $count = $database->loadResult(); //database query to check if there are other pictures with this detail //or original assigned ad how many $database->setQuery("SELECT COUNT(id)\n FROM #__joomgallery\n WHERE imgfilename = '" . $row->imgfilename . "'\n AND id != '" . $row->id . "'\n AND catid = '" . $row->catid . "'"); $count2 = $database->loadResult(); //delete the thumbnail if there are no other pictures //in same category assigned to it if ($count < 1) { if (!JFile::delete(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $row->imgthumbname)) { //if thumbnail is not deleteable error message and abort Joom_AlertErrorMessages(0, $row->catid, JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath), $row->imgthumbname); } } //delete the detail if there are no other detail and //originals from same category assigned to it if ($count2 < 1) { if (!JFile::delete(JPATH_ROOT . DS . $config->jg_pathimages . $catpath . $row->imgfilename)) { //if detail is not deleteable error message and abort Joom_AlertErrorMessages(0, $row->catid, JPath::clean(JPATH_ROOT . DS . $config->jg_pathimages . $catpath), $row->imgfilename); } //original exists? if (JFile::exists(JPATH_ROOT . DS . $config->jg_pathoriginalimages . $catpath . $row->imgfilename)) { //delete it if (!JFile::delete(JPATH_ROOT . DS . $config->jg_pathoriginalimages . $catpath . $row->imgfilename)) { //if original is not deleteable error message and abort Joom_AlertErrorMessages(0, $row->catid, JPath::clean(JPATH_ROOT . DS . $config->jg_pathoriginalimages . $catpath), $row->imgfilename); } } } //not succesful database query } else { echo "<script> alert('" . $database->getErrorMsg() . "');\n window.history.go(-1); </script>\n"; } //TODO aha: better wrap the following DB actions in 'begin...commit/rollback' //to get consistence in case of error //delete the database entry of picture $database->setQuery("DELETE\n FROM #__joomgallery\n WHERE id = {$id}"); if (!$database->query()) { echo "<script> alert('" . $database->getErrorMsg() . "');\n window.history.go(-1); </script>\n"; } //delete the corresponding database entries in comments $database->setQuery("DELETE\n FROM #__joomgallery_comments\n WHERE cmtpic = {$id}"); if (!$database->query()) { echo "<script> alert('" . $database->getErrorMsg() . "');\n window.history.go(-1); </script>\n"; } //delete the corresponding database entries in nameshields $database->setQuery("DELETE\n FROM #__joomgallery_nameshields\n WHERE npicid = {$id}"); if (!$database->query()) { echo "<script> alert('" . $database->getErrorMsg() . "');\n window.history.go(-1); </script>\n"; } //add the id of succesful deleted picture to array array_push($deleted_items, $id); } $mainframe->redirect('index.php?option=' . _JOOM_OPTION . '&act=pictures'); }
function Joom_LightboxImages($start, $end, $orderclause = null, $catid, $id) { global $func; $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); if (($func == 'viewcategory' && $config->jg_detailpic_open > 3 && ($config->jg_showdetailpage == 1 || $config->jg_showdetailpage == 0 && $user->get('aid') > 0) || $func == 'detail' && ($config->jg_bigpic == 1 && $user->get('aid') > 0 || $config->jg_bigpic == 2) && $config->jg_bigpic_open > 3) && $end != 0 && $start < $end && $config->jg_lightbox_slide_all == 1) { if ($orderclause == null) { if ($config->jg_secondorder != '' && $config->jg_thirdorder == '') { $orderclause = "a." . $config->jg_firstorder . ", a." . $config->jg_secondorder; } elseif ($config->jg_secondorder != '' && $config->jg_thirdorder != '') { $orderclause = "a." . $config->jg_firstorder . ", a." . $config->jg_secondorder . ", a." . $config->jg_thirdorder; } else { $orderclause = "a." . $config->jg_firstorder; } } if ($func == 'detail') { $type = $end == 1 ? "before" : "after"; $database->setQuery(" SELECT \n COUNT(id)\n FROM \n #__joomgallery\n WHERE \n catid = {$catid} \n AND approved = '1' \n AND published = '1'\n "); $end = $database->loadResult(); } $database->setQuery(" SELECT \n id, \n imgfilename, \n imgthumbname, \n imgtitle\n FROM \n #__joomgallery AS a\n LEFT JOIN \n #__joomgallery_catg AS c ON c.cid=a.catid\n WHERE \n a.published = '1' \n AND a.catid = {$catid} \n AND a.approved = '1' \n AND c.access <= '" . $user->get('aid') . "'\n ORDER BY \n {$orderclause}\n LIMIT {$start}," . ($end - $start)); $rows = $database->loadObjectList(); $zaehl = 0; $check = 0; if ($func == 'detail' && $type == 'after') { while ($rows[$zaehl]->id != $id) { $zaehl++; } $zaehl++; } elseif ($func == 'detail' && $type == 'before' && $rows[$zaehl]->id == $id) { $check = 1; } echo " <div class=\"jg_displaynone\">\n"; while ($zaehl < sizeof($rows) && $check != 1) { if ($func == 'detail' && $type == 'before' && $rows[$zaehl]->id == $id) { $check = 1; } $row = $rows[$zaehl]; $catpath = Joom_GetCatPath($catid); if ($func == 'detail' && is_file(JPath::clean(JPATH_ROOT . DS . $config->jg_pathoriginalimages . $catpath . $row->imgfilename)) || $func == 'viewcategory') { $link = Joom_OpenImage($config->jg_bigpic_open, $row->id, $catpath, $catid, $row->imgfilename, $row->imgtitle, ''); echo " <a href=\"" . $link . "\">" . $row->id . "</a>\n"; } $zaehl++; } echo " </div>\n"; } }
/** * Deletes the folders and the database entry of category * * @param integer $catid: id of category, e.g. 10 */ function Joom_DeleteCategory($catid) { $database =& JFactory::getDBO(); $config = Joom_getConfig(); $mainframe =& JFactory::getApplication('administrator'); //path of category $catpath = Joom_GetCatPath($catid); //compose the paths for originals, pictures, thumbs $catorigdir = JPath::clean(JPATH_ROOT . DS . $config->jg_pathoriginalimages . $catpath); $catpicdir = JPath::clean(JPATH_ROOT . DS . $config->jg_pathimages . $catpath); $catthumbdir = JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath); //check with function Joom_CheckEmptyDirectory() //if folders are empty and writeable (permissions set for deletion) Joom_CheckEmptyDirectory($catorigdir, $catid); Joom_CheckEmptyDirectory($catpicdir, $catid); Joom_CheckEmptyDirectory($catthumbdir, $catid); //delete the folder in originals $resorig = JFolder::delete($catorigdir); //if not succesful, output an error message and abort if (!$resorig) { Joom_AlertErrorMessages(0, $catid, $catorigdir, 0); } //delete the folder in pictures $respic = JFolder::delete($catpicdir); //if not succesful.... if (!$respic) { //try to recreate the folder in originals $resdiro = Joom_MakeDirectory($catorigdir); //if not succesful, output an error message and abort if ($resdiro != 0) { if ($resdiro == -1) { Joom_AlertErrorMessages(0, $catid, $catorigdir, 0); } if ($resdiro == -2) { Joom_AlertErrorMessages(0, $catid, $catorigdir, 0); } } else { //if not succesful, output an error message and abort Joom_AlertErrorMessages(0, $catid, $catpicdir, 0); } } //delete the thumbnail folder $resthumb = JFolder::delete($catthumbdir); //if not succesful.... if (!$resthumb) { //try to recreate the folder in originals $resdiro = Joom_MakeDirectory($catorigdir); //if not succesful, output an error message and abort if ($resdiro != 0) { if ($resdiro == -1) { Joom_AlertErrorMessages(0, $catid, $catorigdir, 0); } if ($resdiro == -2) { Joom_AlertErrorMessages(0, $catid, $catorigdir, 0); } } else { //if not succesful, output an error message about thumbnail folder and abort Joom_AlertErrorMessages(0, $catid, $catthumbdir, 0); } //and try to recreate the folder in pictures $resdirp = Joom_MakeDirectory($catpicdir); //if not succesful in recreation, output an error message and abort if ($resdirp != 0) { if ($resdirp == -1) { Joom_AlertErrorMessages(0, $catid, $catpicdir, 0); } if ($resdirp == -2) { Joom_AlertErrorMessages(0, $catid, $catpicdir, 0); } } else { //if not succesful, output an error message about picture folder and abort Joom_AlertErrorMessages(0, $catid, $catpicdir, 0); } } //delete database entry if all folders succesfully deleted $database->setQuery("DELETE\n FROM #__joomgallery_catg\n WHERE cid = {$catid}"); $database->query(); echo $database->getErrorMsg(); //update of ordering $fp = new mosCatgs($database); $fp->reorder(); //delete the userstate variable 'catid' if exists $mainframe->setUserState('joom.pictures.catid', '0'); }
/** * Check some settings and build the output for showing * configuration manager with Joom_ShowConfig_HTML * */ function Joom_ShowConfig() { $config = Joom_getConfig(); //load language files from frontend for exif and iptc data $language =& JFactory::getLanguage(); $language->load(_JOOM_OPTION . '.exif', JPATH_SITE); $language->load(_JOOM_OPTION . '.iptc', JPATH_SITE); //check the existence of component-xml from com_easycaptcha $xmlfile = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_easycaptcha' . DS . 'com_easycaptcha.xml'; if (is_file($xmlfile)) { $easycaptchamsg = '<div style="color:#080;">[' . JText::_('JGA_EASYCAPTCHA_INSTALLED') . ']</div>'; } else { $easycaptchamsg = '<div style="color:#f00;font-weight:bold">[' . JText::_('JGA_EASYCAPTCHA_NOT_INSTALLED') . ']</div>'; } //check the installation of GD $gdver = Joom_GDVersion(); // Returns version, 0 if not installed, or -1 if appears to be installed but // not verified if ($gdver > 0) { $gdmsg = JText::_('JGA_GD_INSTALLED_PARTONE') . $gdver . JText::_('JGA_GD_INSTALLED_PARTTWO'); } elseif ($gdver == -1) { $gdmsg = JText::_('JGA_GD_NO_VERSION'); } else { $gdmsg = JText::_('JGA_GD_NOT_INSTALLED') . '<a href="http://www.php.net/gd" target="_blank">http://www.php.net/gd</a>' . JText::_('JGA_GD_MORE_INFO'); } //check the installation of ImageMagick $imver = Joom_IMVersion(); //Returns version, 0 if not installed or path not properly configured if ($imver != "0") { $immsg = JText::_('JGA_IM_INSTALLED') . $imver; } else { $immsg = JText::_('JGA_IM_NOT_INSTALLED'); } //check the installation of Exif $exifmsg = ""; if (!extension_loaded('exif')) { $exifmsg = '<div style="color:#f00;font-weight:bold; text-align:center;">[' . JText::_('JGA_EXIF_NOT_INSTALLED') . ' ' . JText::_('JGA_EXIF_NO_OPTIONS') . ']</div>'; } else { $exifmsg = '<div style="color:#080; text-align:center;">[' . JText::_('JGA_EXIF_INSTALLED') . ']</div>'; if (!function_exists('exif_read_data')) { $exifmsg = '<div style="color:#f00;font-weight:bold; text-align:center;">[' . JText::_('JGA_EXIF_INSTALLED_BUT') . ' ' . JText::_('JGA_EXIF_NO_OPTIONS') . ']</div>'; } } //check pathes and watermark file $writeable = '<span style="color:#080;">' . JText::_('JGA_DIRECTORY_WRITEABLE') . '</span>'; $unwriteable = '<span style="color:#f00;">' . JText::_('JGA_DIRECTORY_UNWRITEABLE') . '</span>'; if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_pathimages))) { $write_pathimages = $writeable; } else { $write_pathimages = $unwriteable; } if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_pathoriginalimages))) { $write_pathoriginalimages = $writeable; } else { $write_pathoriginalimages = $unwriteable; } if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_paththumbs))) { $write_paththumbs = $writeable; } else { $write_paththumbs = $unwriteable; } if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_pathftpupload))) { $write_pathftpupload = $writeable; } else { $write_pathftpupload = $unwriteable; } if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_pathtemp))) { $write_pathtemp = $writeable; } else { $write_pathtemp = $unwriteable; } if (Joom_CheckWriteable(JPATH_ROOT . DS, JPath::clean($config->jg_wmpath))) { $write_wmpath = $writeable; } else { $write_wmpath = $unwriteable; } if (is_file(JPATH_ROOT . DS . JPath::clean($config->jg_wmpath) . DS . $config->jg_wmfile)) { $write_wmfile = '<span style="color:#080;">' . JText::_('JGA_FILE_EXIST') . '</span>'; } else { $write_wmfile = '<span style="color:#f00;">' . JText::_('JGA_ALERT_FILE_NOT_EXIST') . '</span>'; } //check whether CSS file (joom_settigns.css) is writeable if (Joom_CheckWriteable(JPATH_COMPONENT_SITE . DS, 'assets' . DS . 'css' . DS . 'joom_settings.css')) { $configmsg = '<div style="color:#080; text-align:center;">[' . JText::_('JGA_CSS_CONFIGURATION_WRITEABLE') . ']</div>'; } else { $configmsg = '<div style="color:#f00;font-weight:bold; text-align:center;">[' . JText::_('JGA_CSS_CONFIGURATION_NOT_WRITEABLE') . ' ' . JText::_('JGA_CHECK_PERMISSIONS') . ']</div>'; } //categories for frontend upload $arr_jg_category = explode(',', $config->jg_category); $clist = Joom_ShowBackendAllowedCat($arr_jg_category, "jg_category[]", $extras = " multiple=\"multiple\" size=\"6\"", $levellimit = "4"); //categories in which user categories can be created $arr_jg_usercategory = explode(',', $config->jg_usercategory); $clist2 = Joom_ShowBackendAllowedCat($arr_jg_usercategory, "jg_usercategory[]", $extras = " multiple size=\"6\"", $levellimit = "4"); //include javascripts for checking changes in variables //with joom_testDefaultValues() $document =& JFactory::getDocument(); $document->addScript("../includes/js/joomla.javascript.js"); $document->addScript(_JOOM_LIVE_SITE . 'administrator/components/com_joomgallery/assets/js/admin.joomscript.js'); $submitbtns = "function submitbutton(pressbutton) {\n" . " var form = document.adminForm;\n" . " if (pressbutton == 'cpanel') {\n" . " submitform(pressbutton);\n" . " return;\n" . " }\n" . " if (form.jg_paththumbs.value == ''){\n" . " alert('" . JText::_('JGA_ALERT_THUMBNAIL_PATH_SUPPORT', true) . "');\n" . " } else {\n" . " joom_testDefaultValues();\n" . " submitform(pressbutton);\n" . " }\n" . "};"; $document->addScriptDeclaration($submitbtns); HTML_Joom_AdminConfig::Joom_ShowConfig_HTML($clist, $clist2, $write_pathimages, $write_pathoriginalimages, $write_paththumbs, $write_pathtemp, $write_wmpath, $write_pathftpupload, $write_wmfile, $gdmsg, $immsg, $easycaptchamsg, $exifmsg, $configmsg); }
function Joom_ShowCategoryTree($rootcatid, $ctalign) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); // get all categories $query = " SELECT \n cid, \n name, \n parent, \n access\n FROM \n #__joomgallery_catg\n WHERE \n published = '1'\n ORDER BY \n parent ASC, \n name ASC\n "; $database->setQuery($query); $categories = $database->LoadObjectList(); // check access rights settings $filter_cats = false; $show_rmsm = false; $show_rmsm_cats = false; if (!$config->jg_rmsm && !$config->jg_showrmsmcats) { $filter_cats = true; } else { if ($config->jg_rmsm) { $show_rmsm = true; } if ($config->jg_showrmsmcats) { $show_rmsm_cats = true; } } // Array to hold the relevant subcategory objects $subcategories = array(); // array to hold the valid parent categories $validParentCats = array(); $validParentCats[] = $rootcatid; // get all relevant the subcategories foreach ($categories as $category) { if (($category->parent == $rootcatid || in_array($category->parent, $validParentCats)) && ($filter_cats == false || $user->get('aid') >= $category->access)) { $subcategories[] = $category; $validParentCats[] = $category->cid; } } // show the treeview $count = count($subcategories); if ($count > 0) { if ($ctalign == 'left') { ?> <div class="jg_treeview_l"> <?php } elseif ($ctalign == 'right') { ?> <div class="jg_treeview_r"> <?php } else { ?> <div class="jg_treeview_c"> <?php } // Debug // echo "ctalign=".$ctalign; ?> <table> <tr> <td> <script type="text/javascript" language="javascript"> <!-- // create new dTree object var jg_TreeView<?php echo $rootcatid; ?> = new jg_dTree( <?php echo "'" . "jg_TreeView" . $rootcatid . "'"; ?> , <?php echo "'" . _JOOM_LIVE_SITE . "components/com_joomgallery/assets/js/dTree/img/" . "'"; ?> ); // dTree configuration jg_TreeView<?php echo $rootcatid; ?> .config.useCookies = true; jg_TreeView<?php echo $rootcatid; ?> .config.inOrder = true; jg_TreeView<?php echo $rootcatid; ?> .config.useSelection = false; // add root node jg_TreeView<?php echo $rootcatid; ?> .add( 0, -1, ' ', <?php echo "'" . JRoute::_('index.php?option=com_joomgallery' . $rootcatid . _JOOM_ITEMID) . "'"; ?> , false ); // add node to hold all subcategories jg_TreeView<?php echo $rootcatid; ?> .add( <?php echo $rootcatid; ?> , 0, <?php echo "'" . JText::_('JGS_SUBCATEGORIES') . "(" . $count . ")" . "'"; ?> , <?php echo "'" . JRoute::_('index.php?option=com_joomgallery&func=viewcategory&catid=' . $rootcatid . _JOOM_ITEMID) . "'"; ?> , false ); <?php foreach ($subcategories as $category) { // create subcategory name and subcategory link $rm_or_sm = ""; if ($filter_cats == false || $user->get('aid') >= $category->access) { if ($user->get('aid') >= $category->access) { $cat_name = addslashes(trim($category->name)); $cat_link = JRoute::_('index.php?option=com_joomgallery&func=viewcategory&catid=' . $category->cid . _JOOM_ITEMID, false); } else { $cat_name = $show_rmsm_cats == true ? addslashes(trim($category->name)) : JText::_('JGS_NO_ACCESS'); $cat_link = ''; } } if ($show_rmsm == true) { if (intval($category->access) == 1) { $rm_or_sm = ' ' . '<span class="jg_rm">' . JText::_('JGS_REGISTERED_MEMBERS') . '</span>'; } elseif (intval($category->access) == 2) { $rm_or_sm = ' ' . '<span class="jg_sm">' . JText::_('JGS_SPECIAL_MEMBERS') . '</span>'; } $cat_name .= $rm_or_sm; } if ($config->jg_showcatasnew) { $isnew = Joom_CheckNewCatg($category->cid); } else { $isnew = ''; } $cat_name .= ' ' . $isnew; // add node if ($category->parent == $rootcatid) { ?> jg_TreeView<?php echo $rootcatid; ?> .add(<?php echo $category->cid; ?> , <?php echo $rootcatid; ?> , <?php echo "'" . $cat_name . "'"; ?> , <?php echo "'" . $cat_link . "'"; ?> , <?php echo $user->get('aid') >= $category->access ? 'false' : 'true'; ?> ); <?php } else { ?> jg_TreeView<?php echo $rootcatid; ?> .add(<?php echo $category->cid; ?> , <?php echo $category->parent; ?> , <?php echo "'" . $cat_name . "'"; ?> , <?php echo "'" . $cat_link . "'"; ?> , <?php echo $user->get('aid') >= $category->access ? 'false' : 'true'; ?> ); <?php } } ?> document.write(jg_TreeView<?php echo $rootcatid; ?> ); --> </script> </td> </tr> </table> </div> <?php } }
/** * JAVA Upload * */ function Joom_ShowJUpload() { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); $mainframe =& JFactory::getApplication('administrator'); //check the php.ini setting 'session.cookie_httponly' //if set and = 1 then build the parameter 'readCookieFrom Navigator=false' //in Applet (new since V 4.2.1c) //and provide the cookie with sessionname=token in parameter 'specificHeaders' $cookieNavigator = true; $sesscook = @ini_get('session.cookie_httponly'); if (!empty($sesscook) && $sesscook == 1) { $cookieNavigator = false; //get the actual session $currentSession = JSession::getInstance('', array()); $this->sessionname = $currentSession->getName(); //function getToken() delivers wrong token, so get the right one //from $_COOKIE array (since PHP 4.1.0) $this->sessiontoken = $_COOKIE[$this->sessionname]; } HTML_Joom_AdminUploads::Joom_ShowJUpload_HTML($cookieNavigator); }
function Joom_ShowSend2FriendArea_HTML() { $user =& JFactory::getUser(); $config = Joom_getConfig(); ?> <div class="jg_send2friend"> <div class="sectiontableheader"> <h4 <?php echo $this->toggler; ?> > <?php echo JText::_('JGS_SEND_TO_FRIEND'); ?> </h4> </div> <div <?php echo $this->slider; ?> > <p> <?php if ($user->get('id')) { ?> <p /> <form name="send2friend" action="<?php echo JRoute::_($this->joom_componenturl . '&func=send2friend&id=' . $this->id . _JOOM_ITEMID); ?> " target=_top method="post"> <input type="hidden" name="from2friendname" value="<?php echo $user->get('name'); ?> " /> <input type="hidden" name="from2friendemail" value="<?php echo $user->get('email'); ?> " /> <input type="hidden" name="id" value="<?php echo $this->id; ?> " /> <table width="100%" border="0" cellspacing="0px" cellpadding="0px"> <tr class="sectiontableentry1"> <td class="jg_s2fl"> <?php echo JText::_('JGS_FRIENDS_NAME'); ?> : </td> <td class="jg_s2fr"> <input type="text" name="send2friendname" size="15" class="inputbox" onfocus="jg_comment_active=1" onreset="jg_comment_active=0" onchange="jg_comment_active=0" onblur="jg_comment_active=0" /> </td> </tr> <tr class="sectiontableentry2"> <td class="jg_s2fl"> <?php echo JText::_('JGS_FRIENDS_MAIL'); ?> : </td> <td class="jg_s2fr"> <input type="text" name="send2friendemail" size="15" class="inputbox" onfocus="jg_comment_active=1" onreset="jg_comment_active=0" onchange="jg_comment_active=0" onblur="jg_comment_active=0" /> </td> </tr> <tr class="sectiontableentry1"> <td class="jg_s2fl"> </td> <td class="jg_s2fr"> <p> <input type="button" name="send" value="<?php echo JText::_('JGS_EMAILSEND'); ?> " class="button" onclick="joom_validatesend2friend()" /> </p> </td> </tr> </table> </form> <?php } else { ?> <div class="sectiontableentry1"> <?php echo JText::_('JGS_LOGIN_FIRST'); ?> </div> <?php } ?> </p> </div> </div> <?php }
function Joom_ShowIcons() { $config = Joom_getConfig(); $user =& JFactory::getUser(); $database =& JFactory::getDBO(); jimport('joomla.filesystem.file'); // Parameter fuer Icons: $showZoomIcon = 0; $showDownloadIcon = 0; $showTagIcon = 'none'; $showFavouritesIcon = 0; if (JFile::exists(JPATH_ROOT . DS . $this->joom_originalsource) && $this->srcWidth_ori > $this->srcWidth && $this->srcHeight_ori > $this->srcHeight) { if ($config->jg_bigpic == 1 && $user->get('aid') > 0 || $config->jg_bigpic == 2) { $showZoomIcon = 1; } elseif ($config->jg_bigpic == 1 && $user->get('aid') < 1) { $showZoomIcon = -1; } } if (JFile::exists(JPATH_ROOT . DS . $this->joom_originalsource) || $config->jg_downloadfile != 1) { if ($config->jg_showdetaildownload == 1 && $user->get('aid') >= 1 || $config->jg_showdetaildownload == 2 && $user->get('aid') == 2 || $config->jg_showdetaildownload == 3) { $showDownloadIcon = 1; } elseif ($config->jg_showdetaildownload == 1 && $user->get('aid') < 1) { $showDownloadIcon = -1; } } if (!$this->slideshow && $config->jg_nameshields && $user->get('username') || $config->jg_nameshields_unreg && !$user->get('username')) { $database->setQuery(" SELECT\n COUNT(nid)\n FROM\n #__joomgallery_nameshields\n WHERE\n npicid = " . $this->id . "\n AND nuserid = " . $user->get('id') . "\n "); $count = $database->loadResult(); } if ($config->jg_nameshields && $user->get('username') && !$this->slideshow) { if ($count < 1) { $showTagIcon = 'save'; } elseif ($count == 1) { $showTagIcon = 'delete'; } } elseif ($config->jg_nameshields && !$user->get('username') && $config->jg_show_nameshields_unreg) { $showTagIcon = 'login'; } if ($config->jg_favourites == 1) { if ($config->jg_showdetailfavourite == 0 && $user->get('aid') >= 1 || $config->jg_showdetailfavourite == 1 && $user->get('aid') == 2 || $config->jg_usefavouritesforpubliczip == 1 && $user->get('aid') < 1) { if ($config->jg_usefavouritesforzip == 1 || $config->jg_usefavouritesforpubliczip == 1 && $user->get('aid') < 1) { $showFavouritesIcon = 2; } else { $showFavouritesIcon = 1; } } elseif ($config->jg_favouritesshownotauth == 1) { if ($config->jg_usefavouritesforzip == 1) { $showFavouritesIcon = -2; } else { $showFavouritesIcon = -1; } } } if (!$this->slideshow) { HTML_Joom_Detail::Joom_ShowIcons_HTML($showZoomIcon, $showDownloadIcon, $showTagIcon, $showFavouritesIcon); } }
$document =& JFactory::getDocument(); define('_JOOM_LIVE_SITE', JURI::base()); JPluginHelper::importPlugin('joomgallery'); //add the css file generated from backend settings $document->addStyleSheet(_JOOM_LIVE_SITE . 'components/com_joomgallery/assets/css/joom_settings.css'); //add the main css file $document->addStyleSheet(_JOOM_LIVE_SITE . 'components/com_joomgallery/assets/css/joomgallery.css'); //add invidual css file if exists if (file_exists(JPATH_ROOT . DS . 'components' . DS . 'com_joomgallery' . DS . 'assets' . DS . 'css' . DS . 'joom_local.css')) { $document->addStyleSheet(_JOOM_LIVE_SITE . 'components/com_joomgallery/assets/css/joom_local.css'); } require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'joomgallery.class.php'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'common.joomgallery.php'; require_once JPATH_COMPONENT . DS . 'joomgallery.html.php'; //Konfiguration $config = Joom_getConfig(); //Ambit $ambit = Joom_Ambit(); //TODO globals global $id, $catid, $func; $func = trim(Joom_mosGetParam('func', '', 'post')); if ($func == '') { $func = trim(Joom_mosGetParam('func', '')); } $ambit->set('func', $func); $id = JRequest::getInt('id', 0); $catid = JRequest::getInt('catid', 0); $orig = JRequest::getInt('orig', 0); $ambit->set('id', $id); $ambit->set('catid', $catid); // Itemid
/** * Helper function to calculate the width of a nameshield, * returns char length of username * * @param int $userId * @return int length of name */ function Joom_GetDisplayNameLength($userId) { $config = Joom_getConfig(); $userId = intval($userId); $user =& JFactory::getUser($userId); if ($config->jg_realname) { return strlen($user->get('name')); } else { return strlen($user->get('username')); } }
/** * HTML output of the mini thumbnails for the JoomBu * *@param array DB result */ function Joom_ShowMinis_HTML($rows) { $mainframe =& JFactory::getApplication('site'); $document =& JFactory::getDocument(); $config = Joom_getConfig(); // template CSS is usually not loaded now, but it's better to have it $load_template_css = true; // make available in the plugin params? if ($load_template_css) { $template = $mainframe->getTemplate(); $template_file = false; if (is_file(JPATH_THEMES . DS . $template . DS . 'css' . DS . 'template.css')) { $template_file = 'templates/' . $template . '/css/template.css'; } else { if (is_file(JPATH_THEMES . DS . $template . DS . 'css' . DS . 'template_css.css')) { $template_file = 'templates/' . $template . '/css/template_css.css'; } } if ($load_template_css) { $document->addStyleSheet(_JOOM_LIVE_SITE . $template_file); // to avoid scroll bar with some templates $document->addStyleDeclaration(" body{\n height:90%;\n }"); } } // for overlib effect # at the moment always loaded by joom.javascript.php #$document->addScript(_JOOM_LIVE_SITE.'includes/js/overlib_mini.js'); // for accordion $document->addStyleSheet('components/com_joomgallery/assets/css/joom_detail.css'); JHTML::_('behavior.mootools'); #$document->addScript('components/com_joomgallery/assets/js/accordion/js/accordion.js'); $script = "\n window.addEvent('domready', function(){ \n new Accordion(\$\$('h4.joomgallery-toggler'), \$\$('div.joomgallery-slider'), \n {onActive: function(toggler, i) { \n toggler.addClass('joomgallery-toggler-down'); \n toggler.removeClass('joomgallery-toggler'); },\n onBackground: function(toggler, i) { \n toggler.addClass('joomgallery-toggler'); \n toggler.removeClass('joomgallery-toggler-down'); },\n duration: 300,display:-1,show:1,opacity: false,alwaysHide: true}); });"; $document->addScriptDeclaration($script); // JavaScript for inserting the tag $script = "\n function insertJoomPluWithId(jg_id) {\n jg_detail = document.getElementById('jg_bu_detail').checked;\n jg_linked = document.getElementById('jg_bu_linked').checked;\n jg_align = document.getElementById('jg_bu_align').value;\n if(jg_detail) {\n jg_detail = ' detail';\n } else {\n jg_detail = '';\n }\n if(jg_linked) {\n jg_linked = '';\n } else {\n jg_linked = ' not linked';\n }\n if(jg_align) {\n jg_align = ' ' + jg_align;\n } else {\n jg_align = '';\n }\n jg_plu_tag = '{joomplu:' + jg_id + jg_detail + jg_linked + jg_align + '}';\n window.parent.jInsertEditorText(jg_plu_tag, 'text');\n window.parent.document.getElementById('sbox-window').close();\n }"; $document->addScriptDeclaration($script); ?> <div class="gallery minigallery"> <div class="jg_header"> <?php echo JText::_('JGS_BU_INTRO'); ?> </div> <div class="sectiontableheader"> <h4 class="joomgallery-toggler"> <?php echo JText::_('JGS_BU_EXTENDED'); ?> </h4> </div> <div class="joomgallery-slider"> <div class="jg_bu_extended_options"> <span class="jg_bu_extended_option_left"> <?php echo JText::_('JGS_BU_DETAIL'); ?> <input type="checkbox" id="jg_bu_detail"> </span> <span class="jg_bu_extended_option_middle"> <?php echo JText::_('JGS_BU_LINKED'); ?> <input type="checkbox" id="jg_bu_linked" checked="checked"> </span> <span class="jg_bu_extended_option_right"> <?php echo JText::_('JGS_BU_ALIGN'); ?> <select id="jg_bu_align"> <option value=""> </option> <option value="right"> <?php echo JText::_('JGS_BU_ALIGN_RIGHT'); ?> </option> <option value="left"> <?php echo JText::_('JGS_BU_ALIGN_LEFT'); ?> </option> </select> </span> </div> </div> <div class="sectiontableheader"> <h4 class="joomgallery-toggler"> <?php echo JText::_('JGS_BU_SEARCH'); ?> </h4> </div> <div class="joomgallery-slider"> <div class="jg_bu_search"> <form action="index.php?option=com_joomgallery&func=joomplu&tmpl=component&e_name=text" method="post"> <?php echo $this->_pagination->getListFooter(); ?> <div class="jg_bu_filter"> <?php echo Jtext::_('JGS_FILTER_BY_CATEGORY'); ?> <?php echo Joom_ShowDropDownCategoryList($this->catid, 'catid', 'onchange="this.form.submit();"'); ?> </div> </form> </div> </div> <div class="jg_bu_minis"> <?php foreach ($rows as $row) { if (!$this->catid) { $catpath = Joom_GetCatPath($row->catid); $cat_name = true; } else { $catpath = $this->catpath; $cat_name = false; } ?> <div class="jg_bu_mini"> <?php if ($row->imgthumbname != '' && is_file(JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $row->imgthumbname))) { $tnfile = JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $row->imgthumbname); $tnfile = str_replace(' ', '%20', $tnfile); $imginfo = getimagesize($tnfile); $srcLink = _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row->imgthumbname; $srcWidth = $imginfo[0]; $srcHeight = $imginfo[1]; $overlib = Joom_ShowMiniJoom_HTML::getOverlibHtml($row, $srcLink, $cat_name); ?> <a href="javascript:insertJoomPluWithId('<?php echo $row->id; ?> ');" onmouseover="return overlib('<?php echo $overlib; ?> ',WIDTH,<?php echo $srcWidth; ?> ,<?php /* HEIGHT,<?php echo $srcHeight; ?>,*/ ?> ABOVE)" onmouseout="return nd()" > <img src="<?php echo _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row->imgthumbname; ?> " border="0" height="40" width="40" alt="Thumbnail" /></a> <?php } else { ?> <div class="jg_bu_no_mini" onmouseover="return overlib('<?php echo sprintf(JText::_('JGS_NO_THUMB_TOOLTIP_TEXT', true), $row->id, $row->imgtitle); ?> ', CAPTION, '<?php echo JText::_('JGS_NO_THUMB'); ?> ', BELOW, RIGHT)" onmouseout="return nd()" > <?php echo JText::_('JGS_NO_THUMB'); ?> </div> <?php } ?> </div> <?php } if (!count($rows)) { ?> <div class="jg_bu_no_images"> <?php echo JText::_('JGS_NO_IMAGES'); ?> </div> <?php } ?> </div> </div> <?php }
function Joom_ShowFavourites_HTML2($rows, $showDownloadIcon) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); ?> <div class="sectiontableheader"> <?php echo $this->Output('HEADING'); ?> </div> <div class="jg_fav_switchlayout"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=switchlayout' . _JOOM_ITEMID); ?> "> <?php echo JText::_('JGS_FAV_SWITCH_LAYOUT'); ?> </a> </div> <div class="jg_fav_clearlist"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=removeall' . _JOOM_ITEMID); ?> "> <?php echo JText::_('JGS_FAV_REMOVE_ALL'); ?> </a> </div> <div class="sectiontableheader"> <div class="jg_up_entry"> <div class="jg_up_ename"> <?php echo JText::_('JGS_PICTURE_NAME'); ?> </div> <div class="jg_up_ehits"> <?php echo JText::_('JGS_HITS'); ?> </div> <div class="jg_up_ecat"> <?php echo JText::_('JGS_CATEGORY'); ?> </div> <div class="jg_up_eact"> <?php echo JText::_('JGS_ACTION'); ?> </div> </div> </div> <?php $k = 0; if (count($rows)) { foreach ($rows as $row) { $k = 1 - $k; $p = $k + 1; $catpath = Joom_GetCatPath($row->catid); ?> <div class="<?php echo "sectiontableentry" . $p; ?> "> <div class="jg_up_entry"> <?php if ($row->approved) { $link = Joom_OpenImage($config->jg_detailpic_open, $row->id, $catpath, $row->catid, $row->imgfilename, $row->imgtitle, $row->imgtext); } if ($config->jg_showminithumbs) { ?> <div class="jg_up_ename"> <?php if ($row->imgthumbname != '') { if ($row->approved) { ?> <a href="<?php echo $link; ?> "> <?php } ?> <img src="<?php echo _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row->imgthumbname; ?> " border="0" height="30" alt="" /> <?php if ($row->approved) { ?> </a> <?php } } } else { ?> <div class="jg_floatleft"> <img src="<?php echo _JOOM_LIVE_SITE . 'components/com_joomgallery/assets/images/arrow.png'; ?> " class="pngfile jg_icon" alt="arrow" /> </div> <?php } if ($row->approved) { ?> <a href="<?php echo $link; ?> "> <?php } ?> <?php echo $row->imgtitle; ?> <?php if ($row->approved) { ?> </a> <?php } ?> </div> <div class="jg_up_ehits"> <?php echo $row->imgcounter; ?> </div> <div class="jg_up_ecat"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=viewcategory&catid=' . $row->catid . _JOOM_ITEMID); ?> "> <?php echo Joom_CategoryPathLink($row->catid, false); ?> </a> </div> <?php // Download Icon if ($showDownloadIcon == 1) { ?> <div class="jg_up_esub1"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=download&catid=' . $row->catid . '&id=' . $row->id . _JOOM_ITEMID); ?> " onMouseOver="return overlib('<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_TEXT', true); ?> ', CAPTION, '<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_CAPTION', true); ?> ', BELOW, RIGHT);" onmouseout="return nd();"> <img src="<?php echo _JOOM_LIVE_SITE . 'components/com_joomgallery/assets/images/download.png'; ?> " border="0" width="16" height="16" alt="<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_CAPTION'); ?> " class="pngfile jg_icon" /></a> </div> <?php } elseif ($showDownloadIcon == -1) { ?> <div class="jg_up_esub1" onMouseOver="return overlib('<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_TEXT_LOGIN', true); ?> ', CAPTION, '<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_CAPTION', true); ?> ', BELOW, RIGHT);" onmouseout="return nd();" > <img src="<?php echo _JOOM_LIVE_SITE . 'components/com_joomgallery/assets/images/download_gr.png'; ?> " alt="<?php echo JText::_('JGS_DOWNLOAD_TOOLTIP_CAPTION'); ?> " class="pngfile jg_icon" /> </div> <?php } ?> <div class="jg_up_esub2"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=removepicture&id=' . $row->id . _JOOM_ITEMID); ?> " onMouseOver="return overlib('<?php echo $this->Output('REMOVE_TOOLTIP_TEXT'); ?> ', CAPTION, '<?php echo $this->Output('REMOVE_TOOLTIP_CAPTION'); ?> ', BELOW, RIGHT);" onmouseout="return nd();"> <img src="<?php echo _JOOM_LIVE_SITE . 'components/com_joomgallery/assets/images/basket_remove.png'; ?> " alt="<?php echo $this->Output('REMOVE_TOOLTIP_CAPTION'); ?> " class="pngfile jg_icon" /></a> </div> <?php if ($row->imgowner && $row->imgowner == $user->get('id')) { ?> <div class="jg_up_esub3"> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=editpic&uid=' . $user->get('id') . '&id=' . $row->id . _JOOM_ITEMID); ?> " title="<?php echo JText::_('JGS_EDIT'); ?> "> <img src= "<?php echo _JOOM_LIVE_SITE; ?> components/com_joomgallery/assets/images/edit.png" border="0" width="16" height="16" alt="<?php echo JText::_('JGS_EDIT'); ?> " class="pngfile jg_icon" /> </a> </div> <div class="jg_up_esub4"> <a href="javascript:if (confirm('<?php echo JText::_('JGS_ALERT_SURE_DELETE_SELECTED_ITEM', true); ?> ')){ location.href='<?php echo JRoute::_('index.php?option=com_joomgallery&func=deletepic&uid=' . $user->get('id') . '&id=' . $row->id . _JOOM_ITEMID, false); ?> ';}" title="<?php echo JText::_('JGS_DELETE'); ?> "> <img src="<?php echo _JOOM_LIVE_SITE; ?> components/com_joomgallery/assets/images/edit_trash.png" border="0" width="16" height="16" alt="<?php echo JText::_('JGS_DELETE'); ?> " class="pngfile jg_icon" /> </a> </div> <?php } ?> </div> </div> <?php } } else { $p = $k + 1; ?> <div class="jg_txtrow"> <div class="<?php echo "sectiontableentry" . $p; ?> "> <img src="<?php echo _JOOM_LIVE_SITE . 'components/com_joomgallery/assets/images/arrow.png'; ?> " class="pngfile jg_icon" alt="arrow" /> <?php echo $this->Output('NO_PICS'); ?> </div> </div> <?php } ?> <div class="sectiontableheader"> </div> <?php }
/** * Configuration manager * * @param string $clist * @param string $clist2 * @param string $write_pathimages * @param string $write_pathoriginalimages * @param string $write_paththumbs * @param string $write_pathtemp * @param string $write_wmpath * @param string $write_pathftpupload * @param string $write_wmfile * @param string $gdmsg * @param string $immsg * @param string $easycaptchamsg * @param string $exifmsg * @param string $configmsg */ function Joom_ShowConfig_HTML($clist, $clist2, $write_pathimages, $write_pathoriginalimages, $write_paththumbs, $write_pathtemp, $write_wmpath, $write_pathftpupload, $write_wmfile, $gdmsg, $immsg, $easycaptchamsg, $exifmsg, $configmsg) { $config = Joom_getConfig(); $display = true; ?> <form action="index.php" method="post" name="adminForm"> <?php // instantiate new tab system $tabs = new jmosTabs(1); // start nested MainPane $tabs->startPane("NestedmainPane"); // start first nested MainTab "Grundlegende Einstellungen" $tabs->startNestedTab(JText::_('JGA_GENERAL_BACKEND_SETTINGS')); // start first nested tabs pane $tabs->startPane("NestedPaneTwo"); // start Tab "Grundlegende Einstellungen->Pfade und Verzeichnisse" $tabs->startTab(JText::_('JGA_PATH_DIRECTORIES'), "nested-three"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page1'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_CSS_CONFIGURATION_INTRO') . $configmsg); if ($display) { HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_PATH_DIRECTORIES_INTRO')); ?> <tr align="center" valign="middle"> <td width="15%" align="left" valign="top"><strong><?php echo JText::_('JGA_PICTURES_PATH') . ':'; ?> </strong></td> <td width="35%" align="left" valign="top"><input size="50" type="text" name="jg_pathimages" value="<?php echo $config->jg_pathimages; ?> " /><br />[<?php echo $write_pathimages; ?> ]</td> <td width="50%" align="left" valign="top"><?php echo JText::_('JGA_PATH_PICTURES_STORED'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_ORIGINALS_PATH') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_pathoriginalimages" value="<?php echo $config->jg_pathoriginalimages; ?> " /><br />[<?php echo $write_pathoriginalimages; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_PATH_ORIGINALS_STORED'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_THUMBNAILS_PATH') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_paththumbs" value="<?php echo $config->jg_paththumbs; ?> " /><br />[<?php echo $write_paththumbs; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_PATH_THUMBNAILS_STORED'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_FTPUPLOAD_PATH') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_pathftpupload" value="<?php echo $config->jg_pathftpupload; ?> " /><br />[<?php echo $write_pathftpupload; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_PATH_FOR_FTPUPLOAD'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_TEMP_PATH') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_pathtemp" value="<?php echo $config->jg_pathtemp; ?> " /><br />[<?php echo $write_pathtemp; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_PATH_FOR_TEMP'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_WATERMARK_PATH') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_wmpath" value="<?php echo $config->jg_wmpath; ?> " /><br />[<?php echo $write_wmpath; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_PATH_WATERMARK_STORED'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_WATERMARK_FILE') . ':'; ?> </strong></td> <td align="left" valign="top"><input size="50" type="text" name="jg_wmfile" value="<?php echo $config->jg_wmfile; ?> " /><br />[<?php echo $write_wmfile; ?> ]</td> <td align="left" valign="top"><?php echo JText::_('JGA_WATERMARK_FILE_LONG'); ?> </td> </tr> <?php } $date[] = JHTML::_('select.option', '%d-%m-%Y %H:%M:%S', strftime("%d-%m-%Y %H:%M:%S")); $date[] = JHTML::_('select.option', '%d.%m.%Y %H:%M:%S', strftime("%d.%m.%Y %H:%M:%S")); $date[] = JHTML::_('select.option', '%m-%d-%Y %H:%M:%S', strftime("%m-%d-%Y %H:%M:%S")); $date[] = JHTML::_('select.option', '%m.%d.%Y %H:%M:%S', strftime("%m.%d.%Y %H:%M:%S")); $date[] = JHTML::_('select.option', '%m/%d/%Y %I:%M:%S %p', strftime("%m/%d/%Y %I:%M:%S %p")); $date[] = JHTML::_('select.option', '%c', strftime("%c")); $mc_jg_dateformat = JHTML::_('select.genericlist', $date, 'jg_dateformat', 'class="inputbox" size="1"', 'value', 'text', $config->jg_dateformat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_dateformat', 'custom', 'JGA_TIME', $mc_jg_dateformat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_checkupdate', 'yesno', 'JGA_CHECKUPDATE', $config->jg_checkupdate); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Grundlegende Einstellungen->Pfade und Verzeichnisse" $tabs->endTab(); // start Tab "Grundlegende Einstellungen->Ersetzungen" $tabs->startTab(JText::_('JGA_BACKEND_REPLACEMENTS'), "nested-twentyeight"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page26'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_BACKEND_REPLACEMENTS_INTRO')); $yesno[] = JHTML::_('select.option', '0', JText::_('NO')); $yesno[] = JHTML::_('select.option', '1', JText::_('YES')); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_filenamewithjs', 'yesno', 'JGA_FILENAME_WITHJS', $config->jg_filenamewithjs); $tl_jg_filenamesearch = '<input type="text" name="jg_filenamesearch" value="' . $config->jg_filenamesearch . '" size="50" />'; HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_filenamesearch', 'custom', 'JGA_FILENAME_SEARCH', $tl_jg_filenamesearch); $tl_jg_filenamereplace = '<input type="text" name="jg_filenamereplace" value="' . $config->jg_filenamereplace . '" size="50" />'; HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_filenamereplace', 'custom', 'JGA_FILENAME_REPLACE', $tl_jg_filenamereplace); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Grundlegende Einstellungen->Ersetzungen" $tabs->endTab(); // start Tab "Grundlegende Einstellungen->Bildmanipulation" $tabs->startTab(JText::_('JGA_PICTURE_PROCESSING'), "nested-four"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page2'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro('<div align="center"><strong>' . $gdmsg . '</strong></div>'); $thumbcreator[] = JHTML::_('select.option', 'none', JText::_('JGA_NONE')); $thumbcreator[] = JHTML::_('select.option', 'gd1', JText::_('JGA_GDLIB')); $thumbcreator[] = JHTML::_('select.option', 'gd2', JText::_('JGA_GD2LIB')); $thumbcreator[] = JHTML::_('select.option', 'im', JText::_('JGA_IMAGEMAGICK')); $mc_jg_thumbcreation = JHTML::_('select.genericlist', $thumbcreator, 'jg_thumbcreation', 'class="inputbox" size="4"', 'value', 'text', $config->jg_thumbcreation); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_thumbcreation', 'custom', 'JGA_PICTURE_CREATOR', $mc_jg_thumbcreation); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_fastgd2thumbcreation', 'yesno', 'JGA_FAST_GD2_THUMBCREATION', $config->jg_fastgd2thumbcreation); /*$tl_jg_impath = '<input type="text" name="jg_impath" value="'.$config->jg_impath.'" size="50" />'; HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_impath', 'custom', 'JGA_PATH_TO_IMAGEMAGICK', $tl_jg_impath);*/ ?> <tr align="center" valign="middle"> <td align="left" valign="top"><b><?php echo JText::_('JGA_PATH_TO_IMAGEMAGICK'); ?> </b></td> <td align="left" valign="top"><input size="50" type="text" name="jg_impath" value="<?php echo $config->jg_impath; ?> " /></td> <td align="left" valign="top"><?php echo $immsg; ?> </td> </tr> <?php HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_resizetomaxwidth', 'yesno', 'JGA_RESIZING', $config->jg_resizetomaxwidth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxwidth', 'text', 'JGA_MAX_WIDTH', $config->jg_maxwidth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_picturequality', 'text', 'JGA_PICTURE_QUALITY', $config->jg_picturequality); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_THUMBNAILS_INTRO')); $directionresize[] = JHTML::_('select.option', '0', JText::_('JGA_SAMEHIGHT')); $directionresize[] = JHTML::_('select.option', '1', JText::_('JGA_SAMEWIDTH')); $mc_jg_useforresizedirection = JHTML::_('select.genericlist', $directionresize, 'jg_useforresizedirection', 'class="inputbox" size="2"', 'value', 'text', $config->jg_useforresizedirection); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_useforresizedirection', 'custom', 'JGA_DIRECTION_RESIZE', $mc_jg_useforresizedirection); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_thumbwidth', 'text', 'JGA_THUMBNAIL_WIDTH', $config->jg_thumbwidth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_thumbheight', 'text', 'JGA_THUMBNAIL_HEIGHT', $config->jg_thumbheight); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_thumbquality', 'text', 'JGA_THUMBNAIL_QUALITY', $config->jg_thumbquality); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Grundlegende Einstellungen->Bildmanipulation" $tabs->endTab(); // start Tab "Grundlegende Einstellungen->Backend-Upload" $tabs->startTab(JText::_('JGA_BACKEND_UPLOAD'), "nested-seven"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page5'); $uploadordering[] = JHTML::_('select.option', '0', JText::_('JGA_NO_ORDER')); $uploadordering[] = JHTML::_('select.option', '1', JText::_('JGA_DESCENDING')); $uploadordering[] = JHTML::_('select.option', '2', JText::_('JGA_ASCENDING')); $mc_jg_uploadorder = JHTML::_('select.genericlist', $uploadordering, 'jg_uploadorder', 'class="inputbox" size="3"', 'value', 'text', $config->jg_uploadorder); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_uploadorder', 'custom', 'JGA_UPLOAD_ORDER', $mc_jg_uploadorder); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_useorigfilename', 'yesno', 'JGA_ORIGINAL_FILENAME', $config->jg_useorigfilename); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_filenamenumber', 'yesno', 'JGA_FILENAMENUMBER', $config->jg_filenamenumber); $delete_original[] = JHTML::_('select.option', '0', JText::_('NO')); $delete_original[] = JHTML::_('select.option', '1', JText::_('JGA_DELETE_ALL_ORIGINALS')); $delete_original[] = JHTML::_('select.option', '2', JText::_('JGA_DELETE_ORIGINAL_CHECKBOX')); $mc_jg_delete_original = JHTML::_('select.genericlist', $delete_original, 'jg_delete_original', 'class="inputbox" size="3"', 'value', 'text', $config->jg_delete_original); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_delete_original', 'custom', 'JGA_DELETE_ORIGINAL', $mc_jg_delete_original); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_wrongvaluecolor', 'text', 'JGA_WRONG_VALUE_COLOR', $config->jg_wrongvaluecolor); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Grundlegende Einstellungen->Backend-Upload" $tabs->endTab(); // start Tab "Grundlegende Einstellungen->Zusaetzliche Funktionen" $tabs->startTab(JText::_('JGA_MORE_FUNCTIONS'), "nested-eight"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page6'); $combuild_options[] = JHTML::_('select.option', '0', JText::_('NO')); $combuild_options[] = JHTML::_('select.option', '1', JText::_('JGA_COMBUILDER_SETTING_CB')); $combuild_options[] = JHTML::_('select.option', '2', JText::_('JGA_COMBUILDER_SETTING_CBE')); $combuild_options[] = JHTML::_('select.option', '3', JText::_('JGA_COMBUILDER_SETTING_JOMSOCIAL')); $mc_jg_combuild = JHTML::_('select.genericlist', $combuild_options, 'jg_combuild', 'class="inputbox" size="4"', 'value', 'text', $config->jg_combuild); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_combuild', 'custom', 'JGA_COMBUILDER_SUPPORT', $mc_jg_combuild); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_realname', 'yesno', 'JGA_USERNAME_REALNAME', $config->jg_realname); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_bridge', 'yesno', 'JGA_BRIDGE_INSTALLED', $config->jg_bridge); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_cooliris', 'yesno', 'JGA_COOLIRIS_SUPPORT', $config->jg_cooliris); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_coolirislink', 'yesno', 'JGA_COOLIRIS_LINK', $config->jg_coolirislink); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Grundlegende Einstellungen->Zusaetzliche Funktionen" $tabs->endTab(); // end first nested tabs pane NestedPaneTwo $tabs->endPane(); // end first nested MainTab "Grundlegende Einstellungen" $tabs->endTab(); // start second nested MainTab "Benutzer-Rechte" $tabs->startNestedTab(JText::_('JGA_USER_RIGHTS')); // start second nested tabs pane $tabs->startPane("NestedPaneThree"); // start Tab "Benutzer-Rechte->Benutzer-Upload ueber "Meine Galerie"" $tabs->startTab(JText::_('JGA_USER_UPLOAD_SETTINGS'), "nested-ten"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page8'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_userspace', 'yesno', 'JGA_ALLOWED_USERSPACE', $config->jg_userspace); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_approve', 'yesno', 'JGA_APPROVAL_NEEDED', $config->jg_approve); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_category', 'custom', 'JGA_ALLOWED_CAT', $clist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usercat', 'yesno', 'JGA_ALLOWED_USERCAT', $config->jg_usercat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usercategory', 'custom', 'JGA_ALLOWED_USERCATPARENT', $clist2); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usercatacc', 'yesno', 'JGA_USERCATACC', $config->jg_usercatacc); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxusercat', 'text', 'JGA_MAX_ALLOWED_USERCATS', $config->jg_maxusercat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_userowncatsupload', 'yesno', 'JGA_USERCATSOWNUPLOAD', $config->jg_userowncatsupload); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxuserimage', 'text', 'JGA_MAX_ALLOWED_PICS', $config->jg_maxuserimage); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxfilesize', 'text', 'JGA_MAX_ALLOWED_FILESIZE', $config->jg_maxfilesize); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxuploadfields', 'text', 'JGA_MAX_UPLOAD_FIELDS', $config->jg_maxuploadfields); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_useruploadnumber', 'yesno', 'JGA_USERUPLOAD_NUMBERING', $config->jg_useruploadnumber); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_special_gif_upload', 'yesno', 'JGA_ALLOW_SPECIAL_GIF_UPLOAD', $config->jg_special_gif_upload); $delete_original_user[] = JHTML::_('select.option', '0', JText::_('NO')); $delete_original_user[] = JHTML::_('select.option', '1', JText::_('JGA_DELETE_ALL_ORIGINALS')); $delete_original_user[] = JHTML::_('select.option', '2', JText::_('JGA_DELETE_ORIGINAL_CHECKBOX')); $mc_jg_delete_original_user = JHTML::_('select.genericlist', $delete_original_user, 'jg_delete_original_user', 'class="inputbox" size="3"', 'value', 'text', $config->jg_delete_original_user); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_delete_original_user', 'custom', 'JGA_DELETE_ORIGINAL', $mc_jg_delete_original_user); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_newpiccopyright', 'yesno', 'JGA_SHOW_COPYRIGHT', $config->jg_newpiccopyright); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_newpicnote', 'yesno', 'JGA_SHOW_UPLOADNOTE', $config->jg_newpicnote); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Benutzer-Rechte->Benutzer-Upload ueber "Meine Galerie"" $tabs->endTab(); // start Tab "Benutzer-Rechte->Bewertungen" $tabs->startTab(JText::_('JGA_RATE_SETTINGS'), "nested-eleven"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page9'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showrating', 'yesno', 'JGA_ALLOW_RATING', $config->jg_showrating); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxvoting', 'text', 'JGA_HIGHEST_RATING', $config->jg_maxvoting); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_onlyreguservotes', 'yesno', 'JGA_ALLOW_RATING_ONLY_REGUSER', $config->jg_onlyreguservotes); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Benutzer-Rechte->Bewertungen" $tabs->endTab(); // start Tab "Benutzer-Rechte->Kommentare" $tabs->startTab(JText::_('JGA_COMMENT_SETTINGS'), "nested-twelve"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page10'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcomment', 'yesno', 'JGA_ALLOW_COMMENTS', $config->jg_showcomment); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_anoncomment', 'yesno', 'JGA_ALLOW_ANONYM_COMMENTS', $config->jg_anoncomment); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_namedanoncomment', 'yesno', 'JGA_NAMED_ANONYM_COMMENTS', $config->jg_namedanoncomment); $commentsapprove[] = JHTML::_('select.option', '0', JText::_('NO')); $commentsapprove[] = JHTML::_('select.option', '1', JText::_('JGA_ONLY_UNREGUSERS')); $commentsapprove[] = JHTML::_('select.option', '2', JText::_('JGA_REG_AND_UNREGUSERS')); $mc_jg_approvecom = JHTML::_('select.genericlist', $commentsapprove, 'jg_approvecom', 'class="inputbox" size="3"', 'value', 'text', $config->jg_approvecom); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_approvecom', 'custom', 'JGA_COMMENTS_APPROVE_NEEDED', $mc_jg_approvecom); ?> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_CAPTCHA_COMMENTS'); ?> </strong></td> <td align="left" valign="top"> <?php $secimages[] = JHTML::_('select.option', '0', JText::_('NO')); $secimages[] = JHTML::_('select.option', '1', JText::_('JGA_ONLY_UNREGUSERS')); $secimages[] = JHTML::_('select.option', '2', JText::_('JGA_REG_AND_UNREGUSERS')); $mc_jg_secimages = JHTML::_('select.genericlist', $secimages, 'jg_secimages', 'class="inputbox" size="3"', 'value', 'text', $config->jg_secimages); #HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_secimages', 'custom', 'JGA_CAPTCHA_COMMENTS', $mc_jg_secimages); echo $mc_jg_secimages; ?> </td> <td align="left" valign="top"><?php echo JText::_('JGA_CAPTCHA_COMMENTS_LONG') . $easycaptchamsg; ?> </td> </tr> <?php HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_bbcodesupport', 'yesno', 'JGA_ALLOW_COMMENTS_BBCODE', $config->jg_bbcodesupport); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_smiliesupport', 'yesno', 'JGA_ALLOW_COMMENTS_SMILIES', $config->jg_smiliesupport); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_anismilie', 'yesno', 'JGA_ALLOW_COMMENTS_ANISMILIES', $config->jg_anismilie); $smiliescolor[] = JHTML::_('select.option', 'grey', JText::_('JGA_GREY')); $smiliescolor[] = JHTML::_('select.option', 'orange', JText::_('JGA_ORANGE')); $smiliescolor[] = JHTML::_('select.option', 'yellow', JText::_('JGA_YELLOW')); $smiliescolor[] = JHTML::_('select.option', 'blue', JText::_('JGA_BLUE')); $mc_jg_smiliescolor = JHTML::_('select.genericlist', $smiliescolor, 'jg_smiliescolor', 'class="inputbox" size="4"', 'value', 'text', $config->jg_smiliescolor); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_smiliescolor', 'custom', 'JGA_SMILIES_COLOR', $mc_jg_smiliescolor); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Benutzer-Rechte->Kommentare" $tabs->endTab(); // end second nested tabs pane NestedPaneThree $tabs->endPane(); // end first nested MainTab "Benutzer-Rechte" $tabs->endTab(); // start third nested MainTab "Frontend Einstellungen" $tabs->startNestedTab(JText::_('JGA_FRONTEND_SETTINGS')); // start third nested tabs pane $tabs->startPane("NestedPaneFour"); // start Tab "Frontend Einstellungen->Anordnung der Bilder" $tabs->startTab(JText::_('JGA_PICORDER'), "nested-thirteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page11'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_PICORDER_INTRO')); $picorder[] = JHTML::_('select.option', 'ordering ASC', JText::_('JGA_ORDERBY_ORDERING_ASC')); $picorder[] = JHTML::_('select.option', 'ordering DESC', JText::_('JGA_ORDERBY_ORDERING_DESC')); $picorder[] = JHTML::_('select.option', 'imgdate ASC', JText::_('JGA_ORDERBY_UPLOADTIME_ASC')); $picorder[] = JHTML::_('select.option', 'imgdate DESC', JText::_('JGA_ORDERBY_UPLOADTIME_DESC')); $picorder[] = JHTML::_('select.option', 'imgtitle ASC', JText::_('JGA_ORDERBY_PICTITLE_ASC')); $picorder[] = JHTML::_('select.option', 'imgtitle DESC', JText::_('JGA_ORDERBY_PICTITLE_DESC')); $mc_jg_firstorder = JHTML::_('select.genericlist', $picorder, 'jg_firstorder', 'class="inputbox" size="1"', 'value', 'text', $config->jg_firstorder); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_firstorder', 'custom', 'JGA_PICORDER_FIRST', $mc_jg_firstorder); $picorder2[] = JHTML::_('select.option', '', JText::_('JGA_PICORDER_NO')); $picorder2[] = JHTML::_('select.option', 'ordering ASC', JText::_('JGA_ORDERBY_ORDERING_ASC')); $picorder2[] = JHTML::_('select.option', 'ordering DESC', JText::_('JGA_ORDERBY_ORDERING_DESC')); $picorder2[] = JHTML::_('select.option', 'imgdate ASC', JText::_('JGA_ORDERBY_UPLOADTIME_ASC')); $picorder2[] = JHTML::_('select.option', 'imgdate DESC', JText::_('JGA_ORDERBY_UPLOADTIME_DESC')); $picorder2[] = JHTML::_('select.option', 'imgtitle ASC', JText::_('JGA_ORDERBY_PICTITLE_ASC')); $picorder2[] = JHTML::_('select.option', 'imgtitle DESC', JText::_('JGA_ORDERBY_PICTITLE_DESC')); $mc_jg_secondorder = JHTML::_('select.genericlist', $picorder2, 'jg_secondorder', 'class="inputbox" size="1"', 'value', 'text', $config->jg_secondorder); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_secondorder', 'custom', 'JGA_PICORDER_SECOND', $mc_jg_secondorder); $picorder3[] = JHTML::_('select.option', '', JText::_('JGA_PICORDER_NO')); $picorder3[] = JHTML::_('select.option', 'ordering ASC', JText::_('JGA_ORDERBY_ORDERING_ASC')); $picorder3[] = JHTML::_('select.option', 'ordering DESC', JText::_('JGA_ORDERBY_ORDERING_DESC')); $picorder3[] = JHTML::_('select.option', 'imgdate ASC', JText::_('JGA_ORDERBY_UPLOADTIME_ASC')); $picorder3[] = JHTML::_('select.option', 'imgdate DESC', JText::_('JGA_ORDERBY_UPLOADTIME_DESC')); $picorder3[] = JHTML::_('select.option', 'imgtitle ASC', JText::_('JGA_ORDERBY_PICTITLE_ASC')); $picorder3[] = JHTML::_('select.option', 'imgtitle DESC', JText::_('JGA_ORDERBY_PICTITLE_DESC')); $mc_jg_thirdorder = JHTML::_('select.genericlist', $picorder3, 'jg_thirdorder', 'class="inputbox" size="1"', 'value', 'text', $config->jg_thirdorder); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_thirdorder', 'custom', 'JGA_PICORDER_THIRD', $mc_jg_thirdorder); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->Anordnung der Bilder" $tabs->endTab(); // start Tab "Frontend Einstellungen->Seitentitel" $tabs->startTab(JText::_('JGA_PAGETITLE_SETTINGS'), "nested-fourteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page12'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_PAGETITLE_SETTINGS_INTRO')); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_pagetitle_cat', 'text', 'JGA_PAGETITLE_CATVIEW', $config->jg_pagetitle_cat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_pagetitle_detail', 'text', 'JGA_PAGETITLE_DETAILVIEW', $config->jg_pagetitle_detail); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->Seitentitel" $tabs->endTab(); // start Tab "Frontend Einstellungen->Kopf- und Fussbereich" $tabs->startTab(JText::_('JGA_HEADER_AND_FOOTER'), "nested-fifteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page13'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_HEADER_AND_FOOTER_INTRO')); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showgalleryhead', 'yesno', 'JGA_SHOW_GALLERYHEAD', $config->jg_showgalleryhead); $pathway[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $pathway[] = JHTML::_('select.option', '1', JText::_('JGA_SHOW_IN_HEADER')); $pathway[] = JHTML::_('select.option', '2', JText::_('JGA_SHOW_IN_FOOTER')); $pathway[] = JHTML::_('select.option', '3', JText::_('JGA_SHOW_IN_HEADERFOOTER')); $mc_jg_showpathway = JHTML::_('select.genericlist', $pathway, 'jg_showpathway', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showpathway); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showpathway', 'custom', 'JGA_SHOW_PATHWAY', $mc_jg_showpathway); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_completebreadcrumbs', 'yesno', 'JGA_COMPLETE_BREADCRUMBS', $config->jg_completebreadcrumbs); $search[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $search[] = JHTML::_('select.option', '1', JText::_('JGA_SHOW_IN_HEADER')); $search[] = JHTML::_('select.option', '2', JText::_('JGA_SHOW_IN_FOOTER')); $search[] = JHTML::_('select.option', '3', JText::_('JGA_SHOW_IN_HEADERFOOTER')); $mc_jg_search = JHTML::_('select.genericlist', $search, 'jg_search', 'class="inputbox" size="4"', 'value', 'text', $config->jg_search); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_search', 'custom', 'JGA_SHOW_SEARCHFIELD', $mc_jg_search); $shownumbpics[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $shownumbpics[] = JHTML::_('select.option', '1', JText::_('JGA_SHOW_IN_HEADER')); $shownumbpics[] = JHTML::_('select.option', '2', JText::_('JGA_SHOW_IN_FOOTER')); $shownumbpics[] = JHTML::_('select.option', '3', JText::_('JGA_SHOW_IN_HEADERFOOTER')); $mc_jg_showallpics = JHTML::_('select.genericlist', $shownumbpics, 'jg_showallpics', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showallpics); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showallpics', 'custom', 'JGA_SHOW_ALLPICS', $mc_jg_showallpics); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showallhits', 'yesno', 'JGA_SHOW_ALLHITS', $config->jg_showallhits); $showbacklink[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $showbacklink[] = JHTML::_('select.option', '1', JText::_('JGA_SHOW_IN_HEADER')); $showbacklink[] = JHTML::_('select.option', '2', JText::_('JGA_SHOW_IN_FOOTER')); $showbacklink[] = JHTML::_('select.option', '3', JText::_('JGA_SHOW_IN_HEADERFOOTER')); $mc_jg_showbacklink = JHTML::_('select.genericlist', $showbacklink, 'jg_showbacklink', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showbacklink); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showbacklink', 'custom', 'JGA_SHOW_BACKLINK', $mc_jg_showbacklink); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_suppresscredits', 'yesno', 'JGA_SHOW_CREDITS', $config->jg_suppresscredits); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->Kopf- und Fussbereich" $tabs->endTab(); // start Tab "Frontend Einstellungen->Meine Galerie" $tabs->startTab(JText::_('JGA_USER_PANEL'), "nested-sixteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page14'); $suserpanel[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $suserpanel[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TO_RMSM')); $suserpanel[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TO_SM')); $suserpanel[] = JHTML::_('select.option', '3', JText::_('JGA_DISPLAY_TO_ALL')); $mc_jg_showuserpanel = JHTML::_('select.genericlist', $suserpanel, 'jg_showuserpanel', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showuserpanel); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showuserpanel', 'custom', 'JGA_SHOW_USER_PANEL', $mc_jg_showuserpanel); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showallpicstoadmin', 'yesno', 'JGA_SHOW_ALLPICSTOADMIN', $config->jg_showallpicstoadmin); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showminithumbs', 'yesno', 'JGA_SHOW_MINITHUMBS', $config->jg_showminithumbs); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->Meine Galerie" $tabs->endTab(); // start Tab "Frontend Einstellungen->PopUp-Funktionen" $tabs->startTab(JText::_('JGA_POPUP_SETTINGS'), "nested-eighteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page16'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_openjs_padding', 'text', 'JGA_POPUP_OPENJS_BORDERPX', $config->jg_openjs_padding); ?> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_POPUP_OPENJS_BACKGROUND'); ?> </strong></td> <td align="left" valign="top"><input type="text" name="jg_openjs_background" value="<?php echo $config->jg_openjs_background; ?> " /></td> <td align="left" valign="top"><?php echo JText::_('JGA_POPUP_OPENJS_BACKGROUND_LONG') . ' ' . JText::_('JGA_STYLE_COLOR_HEX'); ?> </td> </tr> <tr align="center" valign="middle"> <td align="left" valign="top"><strong><?php echo JText::_('JGA_POPUP_DHTML_BORDER'); ?> </strong></td> <td align="left" valign="top"><input type="text" name="jg_dhtml_border" value="<?php echo $config->jg_dhtml_border; ?> " /></td> <td align="left" valign="top"><?php echo JText::_('JGA_POPUP_DHTML_BORDER_LONG') . ' ' . JText::_('JGA_STYLE_COLOR_HEX'); ?> </td> </tr> <?php HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_show_title_in_dhtml', 'yesno', 'JGA_POPUP_DHTML_SHOW_TITLE', $config->jg_show_title_in_dhtml); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_show_description_in_dhtml', 'yesno', 'JGA_POPUP_DHTML_SHOW_DESCRIPTION', $config->jg_show_description_in_dhtml); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_lightbox_speed', 'text', 'JGA_POPUP_SLIMBOX_SPEED', $config->jg_lightbox_speed); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_lightbox_slide_all', 'yesno', 'JGA_POPUP_SLIDEALL', $config->jg_lightbox_slide_all); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_resize_js_image', 'yesno', 'JGA_POPUP_JS_IMAGERESIZE', $config->jg_resize_js_image); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_disable_rightclick_original', 'yesno', 'JGA_POPUP_DISABLE_RIGHTCLICK', $config->jg_disable_rightclick_original); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->PopUp-Funktionen" $tabs->endTab(); // end third nested tabs pane NestedPaneFour $tabs->endPane(); // end third nested MainTab "Frontend Einstellungen" $tabs->endTab(); // start fourth nested MainTab "Galerie-Ansicht" $tabs->startNestedTab(JText::_('JGA_GALLERY_VIEW')); // start fourth nested tabs pane $tabs->startPane("NestedPaneFive"); // start Tab "Galerie-Ansicht->Generelle Einstellungen" $tabs->startTab(JText::_('JGA_GENERAL_SETTINGS'), "nested-nineteen"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page17'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showgallerysubhead', 'yesno', 'JGA_SHOW_GALLERY_PATHWAY', $config->jg_showgallerysubhead); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showallcathead', 'yesno', 'JGA_SHOW_GALLERYHEADER', $config->jg_showallcathead); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_colcat', 'text', 'JGA_NUMB_GALLERY_COLUMN', $config->jg_colcat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_catperpage', 'text', 'JGA_GALLERYCATS_PER_PAGE', $config->jg_catperpage); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_ordercatbyalpha', 'yesno', 'JGA_ORDER_GALLERYCATS_BY_ALPHA', $config->jg_ordercatbyalpha); $showpagecatnavi[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TOP_ONLY')); $showpagecatnavi[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TOP_AND_BOTTOM')); $showpagecatnavi[] = JHTML::_('select.option', '3', JText::_('JGA_DISPLAY_BOTTOM_ONLY')); $mc_jg_showgallerypagenav = JHTML::_('select.genericlist', $showpagecatnavi, 'jg_showgallerypagenav', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showgallerypagenav); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showgallerypagenav', 'custom', 'JGA_GALLERY_PAGENAVIGATION', $mc_jg_showgallerypagenav); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatcount', 'yesno', 'JGA_SHOW_NUMB_GALLERYCATS', $config->jg_showcatcount); $catthumbs[] = JHTML::_('select.option', '0', JText::_('JGA_DISPLAY_NONE')); $catthumbs[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_RANDOM')); $catthumbs[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_MYCHOISE')); $mc_jg_showcatthumb = JHTML::_('select.genericlist', $catthumbs, 'jg_showcatthumb', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showcatthumb); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatthumb', 'custom', 'JGA_SHOW_CATEGORYTHUMBNAIL', $mc_jg_showcatthumb); $randomcatthumbs[] = JHTML::_('select.option', '1', JText::_('JGA_FROM_PARENT_CAT_ONLY')); $randomcatthumbs[] = JHTML::_('select.option', '2', JText::_('JGA_FROM_CHILD_CAT_ONLY')); $randomcatthumbs[] = JHTML::_('select.option', '3', JText::_('JGA_FROM_FAMILY_CAT')); $mc_jg_showrandomcatthumb = JHTML::_('select.genericlist', $randomcatthumbs, 'jg_showrandomcatthumb', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showrandomcatthumb); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showrandomcatthumb', 'custom', 'JGA_RANDOMCATTHUMB', $mc_jg_showrandomcatthumb); $cthumbalign[] = JHTML::_('select.option', '1', JText::_('JGA_LEFT')); $cthumbalign[] = JHTML::_('select.option', '2', JText::_('JGA_RIGHT')); $cthumbalign[] = JHTML::_('select.option', '0', JText::_('JGA_CHANGE')); $cthumbalign[] = JHTML::_('select.option', '3', JText::_('JGA_CENTER')); $mc_jg_ctalign = JHTML::_('select.genericlist', $cthumbalign, 'jg_ctalign', 'class="inputbox" size="4"', 'value', 'text', $config->jg_ctalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_ctalign', 'custom', 'JGA_CATTHUMB_ALIGN', $mc_jg_ctalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showtotalcathits', 'yesno', 'JGA_SHOW_CATEGORY_HITS', $config->jg_showtotalcathits); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatasnew', 'yesno', 'JGA_SHOW_CATEGORY_ASNEW', $config->jg_showcatasnew); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_catdaysnew', 'text', 'JGA_SHOW_CATEGORY_DAYSNEW', $config->jg_catdaysnew); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_rmsm', 'yesno', 'JGA_SHOW_RMSM', $config->jg_rmsm); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showrmsmcats', 'yesno', 'JGA_SHOW_RMSM_CATEGORIES', $config->jg_showrmsmcats); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showsubsingalleryview', 'yesno', 'JGA_SHOW_SUBS_GALLERYVIEW', $config->jg_showsubsingalleryview); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Galerie-Ansicht->Generelle Einstellungen" $tabs->endTab(); // end fourth nested tabs pane NestedPaneFive $tabs->endPane(); // end fourth nested MainTab "Galerie-Ansicht" $tabs->endTab(); // start fifth nested MainTab "Kategorie-Ansicht" $tabs->startNestedTab(JText::_('JGA_CATEGORY_VIEW')); // start fifth nested tabs pane $tabs->startPane("NestedPaneSix"); // start Tab "Kategorie-Ansicht->Generelle Einstellungen" $tabs->startTab(JText::_('JGA_GENERAL_SETTINGS'), "nested-twenty"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page18'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcathead', 'yesno', 'JGA_SHOW_CATEGORYTITLE', $config->jg_showcathead); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usercatorder', 'yesno', 'JGA_CATEGORY_ORDERBY_USER', $config->jg_usercatorder); $obj_jg_usercatorderlist = Joom_CreateArrayObject($config->jg_usercatorderlist); $catorderlist[] = JHTML::_('select.option', 'date', JText::_('JGA_USER_ORDERBY_DATE')); $catorderlist[] = JHTML::_('select.option', 'user', JText::_('JGA_USER_ORDERBY_AUTHOR')); $catorderlist[] = JHTML::_('select.option', 'title', JText::_('JGA_USER_ORDERBY_TITLE')); $catorderlist[] = JHTML::_('select.option', 'hits', JText::_('JGA_USER_ORDERBY_HITS')); $catorderlist[] = JHTML::_('select.option', 'rating', JText::_('JGA_USER_ORDERBY_RATING')); $mc_jg_usercatorderlist = JHTML::_('select.genericlist', $catorderlist, 'jg_usercatorderlist[]', 'class="inputbox" size="5" multiple="multiple"', 'value', 'text', $obj_jg_usercatorderlist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usercatorderlist', 'custom', 'JGA_CATEGORY_ORDERBY_USER_LIST', $mc_jg_usercatorderlist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatdescriptionincat', 'yesno', 'JGA_SHOW_CATDESCRIPTIONINCAT', $config->jg_showcatdescriptionincat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_colnumb', 'text', 'JGA_NUMB_CATEGORY_COLUMN', $config->jg_colnumb); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_perpage', 'text', 'JGA_CATEGORYPICS_PER_PAGE', $config->jg_perpage); $catthumbalign[] = JHTML::_('select.option', '1', JText::_('JGA_LEFT')); $catthumbalign[] = JHTML::_('select.option', '3', JText::_('JGA_CENTER')); $catthumbalign[] = JHTML::_('select.option', '2', JText::_('JGA_RIGHT')); $mc_jg_catthumbalign = JHTML::_('select.genericlist', $catthumbalign, 'jg_catthumbalign', 'class="inputbox" size="3"', 'value', 'text', $config->jg_catthumbalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_catthumbalign', 'custom', 'JGA_CATEGORY_THUMBALIGN', $mc_jg_catthumbalign); $showpagenavi[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TOP_ONLY')); $showpagenavi[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TOP_AND_BOTTOM')); $showpagenavi[] = JHTML::_('select.option', '3', JText::_('JGA_DISPLAY_BOTTOM_ONLY')); $mc_jg_showpagenav = JHTML::_('select.genericlist', $showpagenavi, 'jg_showpagenav', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showpagenav); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showpagenav', 'custom', 'JGA_CATEGORY_PAGENAVIGATION', $mc_jg_showpagenav); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showpiccount', 'yesno', 'JGA_SHOW_NUMB_CATEGORYPICS', $config->jg_showpiccount); $detailpic_open[] = JHTML::_('select.option', '0', JText::_('JGA_OPEN_NORMAL')); $detailpic_open[] = JHTML::_('select.option', '1', JText::_('JGA_OPEN_BLANK_WINDOW')); $detailpic_open[] = JHTML::_('select.option', '2', JText::_('JGA_OPEN_JS_WINDOW')); $detailpic_open[] = JHTML::_('select.option', '3', JText::_('JGA_OPEN_DHTML')); $detailpic_open[] = JHTML::_('select.option', '5', JText::_('JGA_OPEN_THICKBOX3')); $detailpic_open[] = JHTML::_('select.option', '6', JText::_('JGA_OPEN_SLIMBOX')); $mc_jg_detailpic_open = JHTML::_('select.genericlist', $detailpic_open, 'jg_detailpic_open', 'class="inputbox" size="6"', 'value', 'text', $config->jg_detailpic_open); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_detailpic_open', 'custom', 'JGA_OPEN_DETAIL_VIEW', $mc_jg_detailpic_open); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_lightboxbigpic', 'yesno', 'JGA_POPUP_ORIGINAL', $config->jg_lightboxbigpic); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showtitle', 'yesno', 'JGA_SHOW_PICTURE_TITLE', $config->jg_showtitle); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showpicasnew', 'yesno', 'JGA_SHOW_PICTURE_ASNEW', $config->jg_showpicasnew); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_daysnew', 'text', 'JGA_SHOW_PICTURE_DAYSNEW', $config->jg_daysnew); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showhits', 'yesno', 'JGA_SHOW_PICTURE_HITS', $config->jg_showhits); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showauthor', 'yesno', 'JGA_SHOW_PICTURE_AUTHOR', $config->jg_showauthor); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showowner', 'yesno', 'JGA_SHOW_PICTURE_OWNER', $config->jg_showowner); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatcom', 'yesno', 'JGA_SHOW_PICTURE_COMMENTS', $config->jg_showcatcom); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatrate', 'yesno', 'JGA_SHOW_PICTURE_RATINGS', $config->jg_showcatrate); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcatdescription', 'yesno', 'JGA_SHOW_PICTURE_DESCRIPTION', $config->jg_showcatdescription); $showcategorydownload[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $showcategorydownload[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TO_RMSM')); $showcategorydownload[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TO_SM')); $showcategorydownload[] = JHTML::_('select.option', '3', JText::_('JGA_DISPLAY_TO_ALL')); $mc_jg_showcategorydownload = JHTML::_('select.genericlist', $showcategorydownload, 'jg_showcategorydownload', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showcategorydownload); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcategorydownload', 'custom', 'JGA_SHOW_DETAIL_DOWNLOAD', $mc_jg_showcategorydownload); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcategoryfavourite', 'yesno', 'JGA_SHOW_FAVOURITES_LINK', $config->jg_showcategoryfavourite); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Kategorie-Ansicht->Generelle Einstellungen" $tabs->endTab(); // start Tab "Kategorie-Ansicht->Unterkategorien" $tabs->startTab(JText::_('JGA_SUBCAT_SETTINGS'), "nested-twentyone"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page19'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showsubcathead', 'yesno', 'JGA_SHOW_SUBCATEGORYHEADER', $config->jg_showsubcathead); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showsubcatcount', 'yesno', 'JGA_SHOW_NUMB_SUBCATEGORIES', $config->jg_showsubcatcount); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_colsubcat', 'text', 'JGA_NUMB_SUBCATEGORY_COLUMN', $config->jg_colsubcat); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_subperpage', 'text', 'JGA_CATEGORYSUBCATS_PER_PAGE', $config->jg_subperpage); $showpagenavisubs[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TOP_ONLY')); $showpagenavisubs[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TOP_AND_BOTTOM')); $mc_jg_showpagenavsubs = JHTML::_('select.genericlist', $showpagenavisubs, 'jg_showpagenavsubs', 'class="inputbox" size="2"', 'value', 'text', $config->jg_showpagenavsubs); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showpagenavsubs', 'custom', 'JGA_CATEGORY_PAGENAVIGATION', $mc_jg_showpagenavsubs); $subcatthumbalign[] = JHTML::_('select.option', '1', JText::_('JGA_LEFT')); $subcatthumbalign[] = JHTML::_('select.option', '3', JText::_('JGA_CENTER')); $subcatthumbalign[] = JHTML::_('select.option', '2', JText::_('JGA_RIGHT')); $mc_jg_subcatthumbalign = JHTML::_('select.genericlist', $subcatthumbalign, 'jg_subcatthumbalign', 'class="inputbox" size="3"', 'value', 'text', $config->jg_subcatthumbalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_subcatthumbalign', 'custom', 'JGA_CATEGORY_THUMBALIGN', $mc_jg_subcatthumbalign); $subthumbs[] = JHTML::_('select.option', '0', JText::_('JGA_DISPLAY_NONE')); $subthumbs[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_MYCHOISE')); $subthumbs[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_RANDOM')); $mc_jg_showsubthumbs = JHTML::_('select.genericlist', $subthumbs, 'jg_showsubthumbs', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showsubthumbs); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showsubthumbs', 'custom', 'JGA_SHOW_CATEGORYTHUMBNAIL', $mc_jg_showsubthumbs); $randomsubthumbs[] = JHTML::_('select.option', '1', JText::_('JGA_FROM_PARENT_CAT_ONLY')); $randomsubthumbs[] = JHTML::_('select.option', '2', JText::_('JGA_FROM_CHILD_CAT_ONLY')); $randomsubthumbs[] = JHTML::_('select.option', '3', JText::_('JGA_FROM_FAMILY_CAT')); $mc_jg_showrandomsubthumb = JHTML::_('select.genericlist', $randomsubthumbs, 'jg_showrandomsubthumb', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showrandomsubthumb); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showrandomsubthumb', 'custom', 'JGA_RANDOMCATTHUMB', $mc_jg_showrandomsubthumb); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_ordersubcatbyalpha', 'yesno', 'JGA_ORDER_SUBCATEGORIES_BY_ALPHA', $config->jg_ordersubcatbyalpha); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showtotalsubcathits', 'yesno', 'JGA_SHOW_CATEGORY_HITS', $config->jg_showtotalsubcathits); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Kategorie-Ansicht->Unterkategorien" $tabs->endTab(); // end fifth nested tabs pane NestedPaneSix $tabs->endPane(); // end fifth nested MainTab "Kategorie-Ansicht" $tabs->endTab(); // start sixth nested MainTab "Detail-Ansicht" $tabs->startNestedTab(JText::_('JGA_DETAIL_VIEW')); // start sixth nested tabs pane $tabs->startPane("NestedPaneSeven"); // start Tab "Detail-Ansicht->Generelle Einstellungen" $tabs->startTab(JText::_('JGA_GENERAL_SETTINGS'), "nested-twentytwo"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page2'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailpage', 'yesno', 'JGA_ALLOW_DETAILPAGE', $config->jg_showdetailpage); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailnumberofpics', 'yesno', 'JGA_SHOW_DETAIL_NUMBEROFPICS', $config->jg_showdetailnumberofpics); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_cursor_navigation', 'yesno', 'JGA_DETAIL_CURSOR_NAVIGATION', $config->jg_cursor_navigation); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_disable_rightclick_detail', 'yesno', 'JGA_DETAIL_DISABLE_RIGHTCLICK', $config->jg_disable_rightclick_detail); $showdetailtitle[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $showdetailtitle[] = JHTML::_('select.option', '1', JText::_('JGA_TOP')); $showdetailtitle[] = JHTML::_('select.option', '2', JText::_('JGA_BOTTOM')); $mc_jg_showdetailtitle = JHTML::_('select.genericlist', $showdetailtitle, 'jg_showdetailtitle', 'class="inputbox" size="3"', 'value', 'text', $config->jg_showdetailtitle); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailtitle', 'custom', 'JGA_SHOW_DETAIL_TITLE', $mc_jg_showdetailtitle); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetail', 'yesno', 'JGA_SHOW_DETAIL_INFORMATION', $config->jg_showdetail); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailaccordion', 'yesno', 'JGA_SHOW_DETAIL_ACCORDION', $config->jg_showdetailaccordion); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetaildescription', 'yesno', 'JGA_SHOW_DETAIL_DESCRIPTION', $config->jg_showdetaildescription); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetaildatum', 'yesno', 'JGA_SHOW_DETAIL_DATE', $config->jg_showdetaildatum); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailhits', 'yesno', 'JGA_SHOW_DETAIL_HITS', $config->jg_showdetailhits); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailrating', 'yesno', 'JGA_SHOW_DETAIL_RATING', $config->jg_showdetailrating); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailfilesize', 'yesno', 'JGA_SHOW_DETAIL_FILESIZE', $config->jg_showdetailfilesize); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailauthor', 'yesno', 'JGA_SHOW_DETAIL_AUTHOR', $config->jg_showdetailauthor); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showoriginalfilesize', 'yesno', 'JGA_SHOW_DETAIL_ORIGFILESIZE', $config->jg_showoriginalfilesize); $showdownload[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $showdownload[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TO_RMSM')); $showdownload[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TO_SM')); $showdownload[] = JHTML::_('select.option', '3', JText::_('JGA_DISPLAY_TO_ALL')); $mc_jg_showdetaildownload = JHTML::_('select.genericlist', $showdownload, 'jg_showdetaildownload', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showdetaildownload); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetaildownload', 'custom', 'JGA_SHOW_DETAIL_DOWNLOAD', $mc_jg_showdetaildownload); $downloadfile[] = JHTML::_('select.option', '0', JText::_('JGA_RESIZED_ONLY')); $downloadfile[] = JHTML::_('select.option', '1', JText::_('JGA_ORIGINAL_ONLY')); $downloadfile[] = JHTML::_('select.option', '2', JText::_('JGA_RESIZED_IFNO_ORIGINAL')); $mc_jg_downloadfile = JHTML::_('select.genericlist', $downloadfile, 'jg_downloadfile', 'class="inputbox" size="3"', 'value', 'text', $config->jg_downloadfile); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_downloadfile', 'custom', 'JGA_DETAIL_DOWNLOADFILE', $mc_jg_downloadfile); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_downloadwithwatermark', 'yesno', 'JGA_DETAIL_DOWNLOADWITHWATERMARK', $config->jg_downloadwithwatermark); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_watermark', 'yesno', 'JGA_DETAIL_INSERT_WATERMARK', $config->jg_watermark); $watermarkpos[] = JHTML::_('select.option', '1', JText::_('JGA_TOP_LEFT')); $watermarkpos[] = JHTML::_('select.option', '2', JText::_('JGA_TOP_CENTER')); $watermarkpos[] = JHTML::_('select.option', '3', JText::_('JGA_TOP_RIGHT')); $watermarkpos[] = JHTML::_('select.option', '4', JText::_('JGA_MIDDLE_LEFT')); $watermarkpos[] = JHTML::_('select.option', '5', JText::_('JGA_MIDDLE_CENTER')); $watermarkpos[] = JHTML::_('select.option', '6', JText::_('JGA_MIDDLE_RIGHT')); $watermarkpos[] = JHTML::_('select.option', '7', JText::_('JGA_BOTTOM_LEFT')); $watermarkpos[] = JHTML::_('select.option', '8', JText::_('JGA_BOTTOM_CENTER')); $watermarkpos[] = JHTML::_('select.option', '9', JText::_('JGA_BOTTOM_RIGHT')); $mc_jg_watermarkpos = JHTML::_('select.genericlist', $watermarkpos, 'jg_watermarkpos', 'class="inputbox" size="1"', 'value', 'text', $config->jg_watermarkpos); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_watermarkpos', 'custom', 'JGA_DETAIL_WATERMARK_POSITION', $mc_jg_watermarkpos); $showbigpic[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $showbigpic[] = JHTML::_('select.option', '1', JText::_('JGA_DISPLAY_TO_RMSM')); $showbigpic[] = JHTML::_('select.option', '2', JText::_('JGA_DISPLAY_TO_ALL')); $mc_jg_bigpic = JHTML::_('select.genericlist', $showbigpic, 'jg_bigpic', 'class="inputbox" size="3"', 'value', 'text', $config->jg_bigpic); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_bigpic', 'custom', 'JGA_SHOW_DETAIL_LINKTOORIGINAL', $mc_jg_bigpic); $showbigpic_open[] = JHTML::_('select.option', '1', JText::_('JGA_OPEN_BLANK_WINDOW')); $showbigpic_open[] = JHTML::_('select.option', '2', JText::_('JGA_OPEN_JS_WINDOW')); $showbigpic_open[] = JHTML::_('select.option', '3', JText::_('JGA_OPEN_DHTML')); $showbigpic_open[] = JHTML::_('select.option', '5', JText::_('JGA_OPEN_THICKBOX3')); $showbigpic_open[] = JHTML::_('select.option', '6', JText::_('JGA_OPEN_SLIMBOX')); $mc_jg_bigpic_open = JHTML::_('select.genericlist', $showbigpic_open, 'jg_bigpic_open', 'class="inputbox" size="5"', 'value', 'text', $config->jg_bigpic_open); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_bigpic_open', 'custom', 'JGA_OPEN_ORIGINAL_VIEW', $mc_jg_bigpic_open); $bbcodelinks[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $bbcodelinks[] = JHTML::_('select.option', '1', JText::_('JGA_BBCODE_IMG_ONLY')); $bbcodelinks[] = JHTML::_('select.option', '2', JText::_('JGA_BBCODE_URL_ONLY')); $bbcodelinks[] = JHTML::_('select.option', '3', JText::_('JGA_BBCODE_BOTH')); $mc_jg_bbcodelinks = JHTML::_('select.genericlist', $bbcodelinks, 'jg_bbcodelink', 'class="inputbox" size="4"', 'value', 'text', $config->jg_bbcodelink); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_bbcodelink', 'custom', 'JGA_SHOW_DETAIL_BBCODELINK', $mc_jg_bbcodelinks); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcommentsunreg', 'yesno', 'JGA_SHOW_DETAIL_COMMENTS', $config->jg_showcommentsunreg); $showcommentsarea[] = JHTML::_('select.option', '1', JText::_('JGA_ABOVE_COMMENTS')); $showcommentsarea[] = JHTML::_('select.option', '2', JText::_('JGA_UNDERNEATH_COMMENTS')); $mc_jg_showcommentsarea = JHTML::_('select.genericlist', $showcommentsarea, 'jg_showcommentsarea', 'class="inputbox" size="2"', 'value', 'text', $config->jg_showcommentsarea); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcommentsarea', 'custom', 'JGA_SHOW_DETAIL_COMMENTSAREA', $mc_jg_showcommentsarea); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_send2friend', 'yesno', 'JGA_SHOW_DETAIL_SEND2FRIEND', $config->jg_send2friend); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->Generelle Einstellungen" $tabs->endTab(); // start Tab "Detail-Ansicht->Motiongallery" $tabs->startTab(JText::_('JGA_MOTIONGALLERY_SETTINGS'), "nested-twentythree"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page21'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_minis', 'yesno', 'JGA_SHOW_DETAIL_MOTIONGALLERY', $config->jg_minis); $joom_ShowMotionMinis[] = JHTML::_('select.option', '1', JText::_('JGA_STATIC')); $joom_ShowMotionMinis[] = JHTML::_('select.option', '2', JText::_('JGA_MOVEABLE')); $mc_jg_motionminis = JHTML::_('select.genericlist', $joom_ShowMotionMinis, 'jg_motionminis', 'class="inputbox" size="2"', 'value', 'text', $config->jg_motionminis); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_motionminis', 'custom', 'JGA_SHOW_DETAIL_COMMENTSAREA', $mc_jg_motionminis); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_motionminiWidth', 'text', 'JGA_MOTIONGALLERY_WIDTH', $config->jg_motionminiWidth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_motionminiHeight', 'text', 'JGA_MOTIONGALLERY_HEIGHT', $config->jg_motionminiHeight); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_miniWidth', 'text', 'JGA_MOTIONMINIS_MAXWIDTH', $config->jg_miniWidth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_miniHeight', 'text', 'JGA_MOTIONMINIS_MAXHEIGHT', $config->jg_miniHeight); $joom_minisprop[] = JHTML::_('select.option', '0', JText::_('JGA_SAMEWIDTHANDHEIGHT')); $joom_minisprop[] = JHTML::_('select.option', '1', JText::_('JGA_SAMEWIDTH')); $joom_minisprop[] = JHTML::_('select.option', '2', JText::_('JGA_SAMEHIGHT')); $mc_jg_minisprop = JHTML::_('select.genericlist', $joom_minisprop, 'jg_minisprop', 'class="inputbox" size="3"', 'value', 'text', $config->jg_minisprop); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_minisprop', 'custom', 'JGA_MOTIONMINIS_PROPORTIONS', $mc_jg_minisprop); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->Motiongallery" $tabs->endTab(); // start Tab "Detail-Ansicht->Namensschilder" $tabs->startTab(JText::_('JGA_NAMESHIELD_SETTINGS'), "nested-twentyfour"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page22'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_nameshields', 'yesno', 'JGA_SHOW_DETAIL_NAMESHIELDS', $config->jg_nameshields); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_nameshields_unreg', 'yesno', 'JGA_NAMESHIELDS_GUEST_VISIBLE', $config->jg_nameshields_unreg); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_show_nameshields_unreg', 'yesno', 'JGA_NAMESHIELDS_GUEST_INFORMATION', $config->jg_show_nameshields_unreg); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_nameshields_height', 'text', 'JGA_NAMESHIELDS_HEIGHT', $config->jg_nameshields_height); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_nameshields_width', 'text', 'JGA_NAMESHIELDS_WIDTH', $config->jg_nameshields_width); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->Namensschilder" $tabs->endTab(); // start Tab "Detail-Ansicht->Slideshow" $tabs->startTab(JText::_('JGA_SLIDESHOW_SETTINGS'), "nested-twentyfive"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page23'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_slideshow', 'yesno', 'JGA_SHOW_DETAIL_SLIDESHOW', $config->jg_slideshow); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_slideshow_timer', 'text', 'JGA_SLIDESHOW_TIMEFRAME', $config->jg_slideshow_timer); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_slideshow_usefilter', 'yesno', 'JGA_SLIDESHOW_TRANSITION', $config->jg_slideshow_usefilter); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_slideshow_filterbychance', 'yesno', 'JGA_SLIDESHOW_TRANSITION_RANDOM', $config->jg_slideshow_filterbychance); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_slideshow_filtertimer', 'text', 'JGA_SLIDESHOW_TRANSITION_TIME', $config->jg_slideshow_filtertimer); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showsliderepeater', 'yesno', 'JGA_SLIDESHOW_ENDLESS_SLIDE', $config->jg_showsliderepeater); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->Slideshow" $tabs->endTab(); // start Tab "Detail-Ansicht->Exif-Daten" $tabs->startTab(JText::_('JGA_EXIF_SETTINGS'), "nested-twentyseven"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page25'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_EXIF_SETTINGS_INTRO') . '<br />' . JText::_('JGA_EXIF_SETTINGS_INTRO2') . '<br />' . $exifmsg); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showexifdata', 'yesno', 'JGA_SHOW_DETAIL_EXIFDATA', $config->jg_showexifdata); ?> </table><p/> <table width="100%" border="0" cellpadding="4" cellspacing="0" class="adminlist"> <?php $this->Joom_BuildExifConfig(); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->Exif-Daten" $tabs->endTab(); // start Tab "Detail-Ansicht->IPTC-Daten" $tabs->startTab(JText::_('JGA_IPTC_SETTINGS'), "nested-thirty"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page25'); HTML_Joom_AdminConfig::Joom_ShowConfigIntro(JText::_('JGA_IPTC_SETTINGS_INTRO') . '<br />' . JText::_('JGA_IPTC_SETTINGS_INTRO2')); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showiptcdata', 'yesno', 'JGA_SHOW_DETAIL_IPTCDATA', $config->jg_showiptcdata); ?> </table><p/> <table width="100%" border="0" cellpadding="4" cellspacing="0" class="adminlist"> <?php $this->Joom_BuildIptcConfig(); ?> </table> <table width="100%" border="0" cellpadding="4" cellspacing="0" class="adminlist"> <?php HTML_Joom_AdminConfig::Joom_ShowConfigIntro('¹ ' . JText::_('JGA_IPTC_COPYRIGHT') . '<br />' . JText::_('JGA_IPTC_COPYRIGHT_LANGUAGE')); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Detail-Ansicht->IPTC-Daten" $tabs->endTab(); // end sixth nested tabs pane NestedPaneSeven $tabs->endPane(); // end sixth nested MainTab "Detail-Ansicht" $tabs->endTab(); // start seventh nested MainTab "Toplisten" $tabs->startNestedTab(JText::_('JGA_TOPLIST_SETTINGS')); // start seventh nested tabs pane $tabs->startPane("NestedPaneEight"); // start Tab "Toplisten->Generelle Einstellungen" $tabs->startTab(JText::_('JGA_GENERAL_SETTINGS'), "nested-twentysix"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page15'); $toplist[] = JHTML::_('select.option', '0', JText::_('JGA_NO_DISPLAY')); $toplist[] = JHTML::_('select.option', '1', JText::_('JGA_SHOW_IN_HEADER')); $toplist[] = JHTML::_('select.option', '2', JText::_('JGA_SHOW_IN_HEADERFOOTER')); $toplist[] = JHTML::_('select.option', '3', JText::_('JGA_SHOW_IN_FOOTER')); $mc_jg_showtoplist = JHTML::_('select.genericlist', $toplist, 'jg_showtoplist', 'class="inputbox" size="4"', 'value', 'text', $config->jg_showtoplist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showtoplist', 'custom', 'JGA_SHOW_TOPLIST', $mc_jg_showtoplist); $wheretoplist[] = JHTML::_('select.option', '0', JText::_('JGA_ALL_VIEWS')); $wheretoplist[] = JHTML::_('select.option', '1', JText::_('JGA_ONLY_GALLERYVIEW')); $wheretoplist[] = JHTML::_('select.option', '2', JText::_('JGA_GALLERY_AND_CATEGORYVIEW')); $mc_jg_whereshowtoplist = JHTML::_('select.genericlist', $wheretoplist, 'jg_whereshowtoplist', 'class="inputbox" size="3"', 'value', 'text', $config->jg_whereshowtoplist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_whereshowtoplist', 'custom', 'JGA_SHOW_TOPLIST_ON_VIEWS', $mc_jg_whereshowtoplist); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_toplistcols', 'text', 'JGA_TOPLIST_NUMB_COLS', $config->jg_toplistcols); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_toplist', 'text', 'JGA_TOPLIST_NUMB_ENTRIES', $config->jg_toplist); $topthumbalign[] = JHTML::_('select.option', '1', JText::_('JGA_LEFT')); $topthumbalign[] = JHTML::_('select.option', '3', JText::_('JGA_CENTER')); $topthumbalign[] = JHTML::_('select.option', '2', JText::_('JGA_RIGHT')); $mc_jg_topthumbalign = JHTML::_('select.genericlist', $topthumbalign, 'jg_topthumbalign', 'class="inputbox" size="3"', 'value', 'text', $config->jg_topthumbalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_topthumbalign', 'custom', 'JGA_TOPLIST_THUMBALIGN', $mc_jg_topthumbalign); $toptextalign[] = JHTML::_('select.option', '1', JText::_('JGA_LEFT')); $toptextalign[] = JHTML::_('select.option', '3', JText::_('JGA_CENTER')); $toptextalign[] = JHTML::_('select.option', '2', JText::_('JGA_RIGHT')); $mc_jg_toptextalign = JHTML::_('select.genericlist', $toptextalign, 'jg_toptextalign', 'class="inputbox" size="3"', 'value', 'text', $config->jg_toptextalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_toptextalign', 'custom', 'JGA_TOPLIST_TEXTALIGN', $mc_jg_toptextalign); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showrate', 'yesno', 'JGA_TOPLIST_SHOW_RATING', $config->jg_showrate); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showlatest', 'yesno', 'JGA_TOPLIST_SHOW_LATEST', $config->jg_showlatest); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showcom', 'yesno', 'JGA_TOPLIST_SHOW_COMMENTS', $config->jg_showcom); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showthiscomment', 'yesno', 'JGA_TOPLIST_THISCOMMENT', $config->jg_showthiscomment); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showmostviewed', 'yesno', 'JGA_TOPLIST_SHOW_MOSTVIEWED', $config->jg_showmostviewed); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Frontend Einstellungen->Toplisten" $tabs->endTab(); // end seventh nested tabs pane NestedPaneEight $tabs->endPane(); // end seventh nested MainTab "Toplisten" $tabs->endTab(); // start eighth nested MainTab "Favoriten" $tabs->startNestedTab(JText::_('JGA_FAVOURITES_SETTINGS')); // start eighth nested tabs pane $tabs->startPane("NestedPaneNine"); // start Tab "Favoriten->Generelle Einstellungen" $tabs->startTab(JText::_('JGA_GENERAL_SETTINGS'), "nested-twentynine"); HTML_Joom_AdminConfig::Joom_ShowConfigTableStart('page24'); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_favourites', 'yesno', 'JGA_USE_FAVOURITES', $config->jg_favourites); $showdetailfavourite[] = JHTML::_('select.option', '0', JText::_('JGA_FAVOURITES_REG_SPEC')); $showdetailfavourite[] = JHTML::_('select.option', '1', JText::_('JGA_FAVOURITES_ONLY_SPEC')); $mc_jg_showdetailfavourite = JHTML::_('select.genericlist', $showdetailfavourite, 'jg_showdetailfavourite', 'class="inputbox" size="2"', 'value', 'text', $config->jg_showdetailfavourite); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_showdetailfavourite', 'custom', 'JGA_FAVOURITES_USERS', $mc_jg_showdetailfavourite); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_favouritesshownotauth', 'yesno', 'JGA_FAVOURITES_GUEST_INFORMATION', $config->jg_favouritesshownotauth); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_maxfavourites', 'text', 'JGA_MAX_FAVOURITES', $config->jg_maxfavourites); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_zipdownload', 'yesno', 'JGA_ZIPDOWNLOAD', $config->jg_zipdownload); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usefavouritesforpubliczip', 'yesno', 'JGA_FAVOURITES_FOR_PUBLIC_ZIP', $config->jg_usefavouritesforpubliczip); HTML_Joom_AdminConfig::Joom_ShowConfigRow('jg_usefavouritesforzip', 'yesno', 'JGA_FAVOURITES_FOR_ZIP', $config->jg_usefavouritesforzip); HTML_Joom_AdminConfig::Joom_ShowConfigTableEnd(); // end Tab "Favoriten->Generelle Einstellungen" $tabs->endTab(); // end eighth nested tabs pane NestedPaneNine $tabs->endPane(); // end eighth nested MainTab "Favoriten" $tabs->endTab(); // end nested MainPane $tabs->endPane(); ?> <input type="hidden" name="option" value="<?php echo _JOOM_OPTION; ?> " /> <input type="hidden" name="task" value="" /> <input type="hidden" name="boxchecked" value="0" /> </form> <br /> <?php }
/** * Aenderung der Eintraege zu dem Bild * * @param unknown_type $row */ function Joom_User_EditPic_HTML(&$row, &$clist) { $config = Joom_getConfig(); $user =& JFactory::getUser(); $catpath = Joom_GetCatPath($row->catid); ?> <div class="sectiontableheader"> <?php echo JText::_('JGS_EDIT_PICTURE'); ?> </div> <div class="jg_editpicture"> <form action = "<?php echo JRoute::_('index.php?option=com_joomgallery&func=savepic' . _JOOM_ITEMID); ?> " method="post" name="adminForm" enctype="multipart/form-data" onsubmit="return joom_checkme2();" > <div class="jg_uprow"> <div class="jg_uptext"> <?php echo JText::_('JGS_TITLE'); ?> : </div> <input class="inputbox" type="text" name="imgtitle" size="42" maxlength="100" value = "<?php echo htmlspecialchars($row->imgtitle, ENT_QUOTES, 'UTF-8'); ?> " /> </div> <div class="jg_uprow"> <div class="jg_uptext"> <?php echo JText::_('JGS_CATEGORY'); ?> : </div> <?php echo $clist; ?> </div> <div class="jg_uprow"> <div class="jg_uptext"> <?php echo JText::_('JGS_DESCRIPTION'); ?> : </div> <textarea class="inputbox" cols="40" rows="5" name="imgtext"><?php echo htmlspecialchars($row->imgtext, ENT_QUOTES, 'UTF-8'); ?> </textarea> </div> <div class="jg_uprow"> <div class="jg_uptext"> <?php echo JText::_('JGS_AUTHOR_OWNER'); ?> : </div> <b><?php echo $user->get('username'); ?> </b> </div> <div class="jg_uprow"> <div class="jg_uptext"> <?php echo JText::_('JGS_PICTURE'); ?> : </div> <img src="<?php echo _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row->imgthumbname; ?> " name="imagelib" width="80" border="2" alt="<?php echo JText::_('JGS_THUMBNAIL_PREVIEW'); ?> " /> </div> <div class="jg_txtrow"> <input type="submit" value="<?php echo JText::_('JGS_SAVE'); ?> " class="button" /> <input type="button" name="Button" value="<?php echo JText::_('JGS_CANCEL'); ?> " onclick = "javascript:location.href='<?php echo JRoute::_('index.php?option=com_joomgallery&func=userpanel' . _JOOM_ITEMID, false); ?> ';" class="button" /> </div> <input type="hidden" name="id" value="<?php echo $row->id; ?> " /> </form> </div> <?php }
function Joom_SubcatPageNav() { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); // Subkategorien // Navigation und Anzahl der verfuegbaren Datensaetze if ($config->jg_showrmsmcats && $user->get('aid') == 0) { $andaccess = ""; } else { $andaccess = "AND d.access <= '" . $user->get('aid') . "'"; } $database->setQuery(" SELECT\n COUNT(cid)\n FROM\n #__joomgallery_catg AS d\n WHERE\n d.parent = {$this->catid}\n AND d.published = '1'\n {$andaccess}\n "); $this->subcatcount = $database->loadResult(); // Berechnen der Gesamtseiten $this->subgesamtseiten = floor($this->subcatcount / $config->jg_subperpage); $subseitenrest = $this->subcatcount % $config->jg_subperpage; if ($subseitenrest > 0) { $this->subgesamtseiten++; } $this->subcatcount = number_format($this->subcatcount, 0, ',', '.'); // Feststellen der aktuellen Seite if (isset($this->substartpage)) { if ($this->substartpage > $this->subgesamtseiten) { $this->substartpage = $this->subgesamtseiten; } elseif ($this->substartpage < 1) { $this->substartpage = 1; } } else { $this->substartpage = 1; } // Limit und Seite Vor- & Rueckfunktionen $this->substart = ($this->substartpage - 1) * $config->jg_subperpage; HTML_Joom_Category::Joom_ShowSubCategoryPageNav_HTML($this->subcatcount, $this->substart, $this->substartpage, $this->subgesamtseiten, $this->catid); }
function Joom_ShowSpecials_HTML($tl_title, $rows, $sorting) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); $num_rows = ceil(count($rows) / $config->jg_toplistcols); $index = 0; $line = 1; ?> <div class="jg_topview"> <div class="sectiontableheader"> <?php echo $tl_title; ?> </div> <?php $count_rows = count($rows); if ($count_rows) { for ($row_count = 0; $row_count < $num_rows; $row_count++) { $line++; $linecolor = $line % 2 + 1; ?> <div class="jg_row <?php if ($linecolor == 1) { echo "sectiontableentry1"; } else { echo "sectiontableentry2"; } ?> "> <?php for ($col_count = 0; $col_count < $config->jg_toplistcols && $index < $count_rows; $col_count++) { $row1 = $rows[$index]; ?> <div class="jg_topelement"> <?php $catpath = Joom_GetCatPath($row1->catid); if ($config->jg_showdetailpage == 0 && $user->get('aid') != 0 || $config->jg_showdetailpage == 1) { $link = Joom_OpenImage($config->jg_detailpic_open, $row1->id, $catpath, $row1->catid, $row1->imgfilename, $row1->imgtitle, $row1->imgtext); } else { $link = "javascript:alert('" . JText::_('JGS_ALERT_NO_DETAILVIEW_FOR_GUESTS', true) . "')"; } ?> <div class="jg_topelem_photo"> <a href="<?php echo $link; ?> "> <img src="<?php echo _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row1->imgthumbname; ?> " class="jg_photo" alt="<?php echo $row1->imgtitle; ?> " /> </a> </div> <div class="jg_topelem_txt"> <ul> <li> <b><?php echo $row1->imgtitle; ?> </b> </li> <li> <?php echo JText::_('JGS_CATEGORY') . ':'; ?> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery&func=viewcategory&catid=' . $row1->catid . _JOOM_ITEMID); ?> "> <?php echo $row1->name; ?> </a> </li> <?php if ($config->jg_showauthor) { if ($row1->imgauthor) { $authorowner = $row1->imgauthor; } elseif ($config->jg_showowner) { $authorowner = Joom_GetDisplayName($row1->owner); } else { $authorowner = JText::_('JGS_NO_DATA'); } ?> <li> <?php echo JText::_('JGS_AUTHOR') . ': ' . $authorowner; ?> </li> <?php } if ($config->jg_showhits) { ?> <li> <?php echo JText::_('JGS_HITS') . ': ' . $row1->imgcounter; ?> </li> <?php } if ($config->jg_showcatrate) { ?> <li> <?php if ($row1->imgvotes > 0) { $fimgvotesum = number_format($row1->imgvotesum / $row1->imgvotes, 2, ',', ''); if ($row1->imgvotes == 1) { $frating = $fimgvotesum . ' (' . $row1->imgvotes . ' ' . JText::_('JGS_ONE_VOTE') . ')'; } else { $frating = $fimgvotesum . ' (' . $row1->imgvotes . ' ' . JText::_('JGS_VOTES') . ')'; } } else { $frating = '(' . JText::_('JGS_NO_RATINGS') . ')'; } ?> <?php echo JText::_('JGS_RATING') . ': ' . $frating; ?> </li> <?php } if ($config->jg_showcatcom) { # Check how many comments exist $database->setQuery(" SELECT \n COUNT(*)\n FROM \n #__joomgallery_comments\n WHERE \n cmtpic = '{$row1->id}' \n AND approved = '1' \n AND published = '1'\n "); $comments = $database->LoadResult(); ?> <li> <?php switch ($comments) { case 0: ?> <?php echo JText::_('JGS_NO_COMMENTS'); ?> <?php break; case 1: ?> <?php echo $comments . ' ' . JText::_('JGS_COMMENT'); ?> <?php break; default: ?> <?php echo $comments . ' ' . JText::_('JGS_COMMENTS'); ?> <?php break; } ?> </li> <?php if ($sorting == 'lastcomment' && $config->jg_showthiscomment) { for ($ii = 0; $ii < $comments; $ii++) { $userid = $row1->userid; $cmtname = $row1->cmtname; if ($userid > 0) { $cmtname = $row1->username; } $cmttext = $row1->cmttext; $cmtdate = $row1->cmtdate; #$cmtdate = strftime( "%d-%m-%Y %H:%M:%S", $cmtdate ); $cmtdate = strftime($config->jg_dateformat, $cmtdate); } ?> <li> <?php if ($userid > 0) { ?> <?php echo Joom_GetDisplayName($userid, false); } else { echo $cmtname; } echo ' ' . JText::_('JGS_WROTE') . ' (' . JText::_('JGS_AT') . ' ' . $cmtdate . '):'; $cmttext = Joom_ProcessText($cmttext); if ($config->jg_smiliesupport) { $smileys = Joom_GetSmileys(); foreach ($smileys as $i => $sm) { $cmttext = str_replace($i, '<img src="' . $sm . '" border="0" alt="' . $i . '" title="' . $i . '" />', $cmttext); } } ?> <?php echo stripslashes($cmttext); ?> </li> <?php } } ?> </ul> </div> </div> <?php $index++; } ?> <div class="jg_clearboth"></div> </div> <?php } } ?> </div> <?php }
/** * Constructor of class * * @param string $action (checks,starts or continues a migration) */ function Joom_Migrate_P2J($action) { $config = Joom_getConfig(); $mainframe =& JFactory::getApplication('administrator'); if ($action != 'check') { $this->logfilename = 'migration.ponytojoom.txt'; //Check the maximum execution time of the script //set secure setting of the real execution time $max_execution_time = @ini_get('max_execution_time'); //try to set the max execution time to 60s if lower than // if not succesful the return value will be the old time, so use this if ($max_execution_time < 60) { @ini_set('max_execution_time', '60'); $max_execution_time = @ini_get('max_execution_time'); $this->max_execution_time = $max_execution_time; } else { $this->max_execution_time = $max_execution_time; } $this->maxtime = (int) $this->max_execution_time * 0.8; $this->starttime = time(); } $this->prefix = $mainframe->getCfg('dbprefix'); // anstatt global $mosConfig_dbprefix; $this->sitestatus = $mainframe->getCfg('offline'); // anstatt global $mosConfig_offline; $this->joomdb['main'] = $this->prefix . 'joomgallery'; $this->joomdb['cat'] = $this->prefix . 'joomgallery_catg'; $this->joomdb['comments'] = $this->prefix . 'joomgallery_comments'; $this->joomdb['votes'] = $this->prefix . 'joomgallery_votes'; $this->joomdb['nameshields'] = $this->prefix . 'joomgallery_nameshields'; $this->ponydb['main'] = $this->prefix . 'ponygallery'; $this->ponydb['cat'] = $this->prefix . 'ponygallery_catg'; $this->ponydb['comments'] = $this->prefix . 'ponygallery_comments'; $this->ponydb['votes'] = $this->prefix . 'ponygallery_votes'; $this->ponydb['nameshields'] = $this->prefix . 'ponygallery_nameshields'; //Include configurations of JoomGallery and PonyGallery ML $ponyconfig = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_ponygallery' . DS . 'config.ponygallery.php'; if (file_exists($ponyconfig)) { include_once $ponyconfig; $this->galvars['pgimgpic'] = JPATH_ROOT . DS . $ag_pathimages; $this->galvars['pgorig'] = JPATH_ROOT . DS . $ag_pathoriginalimages; $this->galvars['pgthumb'] = JPATH_ROOT . DS . $ag_paththumbs; } else { $this->galvars['pgimgpic'] = JText::_('JGA_PONYGALLERY') . JText::_('JGA_PICTURES_DIRECTORY'); $this->galvars['pgorig'] = JText::_('JGA_PONYGALLERY') . JText::_('JGA_ORIGINALS_DIRECTORY'); $this->galvars['pgthumb'] = JText::_('JGA_PONYGALLERY') . JText::_('JGA_THUMBNAILS_DIRECTORY'); } $this->galvars['jgimgpic'] = JPATH_ROOT . DS . $config->jg_pathimages; $this->galvars['jgorig'] = JPATH_ROOT . DS . $config->jg_pathoriginalimages; $this->galvars['jgthumb'] = JPATH_ROOT . DS . $config->jg_paththumbs; switch ($action) { case 'check': $this->Joom_Migrate_Check(); break; case 'start': $this->Joom_Migrate_OpenLogfile("w"); $this->Joom_Migrate_WriteLogfile("max. execution time: " . $this->max_execution_time . " seconds"); $this->Joom_Migrate_WriteLogfile("calculated refresh time: " . $this->maxtime . " seconds"); $this->Joom_Migrate_WriteLogfile("*****************************"); $this->Joom_Migrate_CreateJoomCats(); break; case 'continue': $this->Joom_Migrate_OpenLogfile("a"); $this->Joom_Migrate_WriteLogfile("*****************************"); $this->Joom_Migrate_Move(); break; default: die; break; } }
/** * Move pictures * * @param int $id * @param string $Lists * @param array of objects $items */ function Joom_ShowMovePictures_HTML($id, &$Lists, &$items) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); jimport('joomla.filesystem.file'); ?> <form action="index.php" method="post" name="adminForm" > <table cellpadding="4" cellspacing="0" border="0" width="100%"> <tr> <td align="center"> <b><?php echo JText::_('JGA_MOVE_PICTURE_TO_CATEGORY'); ?> :</b> <?php echo $Lists['catgs']; ?> </td> </tr> </table> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> <tr> <td align="left" valign="top" width="20%"> <strong> <?php echo JText::_('JGA_PICTURES_TO_MOVE'); ?> : </strong> </td> </tr> </table> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> <tr> <th width="5%"></th> <th class="title" width="40%"> <?php echo JText::_('JGA_TITLE'); ?> </th> <th width="55%"> <div align="left"> <?php echo JText::_('JGA_PREVIOUS_CATEGORY'); ?> </div> </th> </tr> <?php foreach ($items as $item) { $catpath = Joom_GetCatPath($item->catid); ?> <tr> <td> <img src="<?php echo _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $item->imgfilename; ?> " border="0" width="24" height="24" alt="" /> </td> <td align="left"> <?php echo $item->imgtitle; ?> </td> <td> <div align="left"> <?php echo Joom_ShowCategoryPath($item->catid); ?> </div> </td> </tr> <?php } ?> <tr> <th align="center" colspan="3"> </th> </tr> </table> <input type="hidden" name="option" value="<?php echo _JOOM_OPTION; ?> " /> <input type="hidden" name="task" value="savemovepic" /> <input type="hidden" name="boxchecked" value="1" /> <?php foreach ($id as $ids) { echo "\n <input type=\"hidden\" name=\"id[]\" value=\"{$ids}\" />"; } ?> </form> <?php }
/** * Aufbau HTML Auswahlliste der vom User angelegten Kategorien * und der fuer den Upload freigegebenen Katgeorien * * @param int catid akt cat oder parent * @param int $ignoreme cid, ignoriere die Untercats dieser cat * @param string Name fuer das HTML Element, catid oder parent * @param bool wenn true, * @return string HTML */ function Joom_User_ShowDropDownCategoryList($cid, $ignoreme = null, $cname = 'catid', $upload = false) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); //im Backend fuer den Userupload freigegebene Kategorien if ($upload) { if (!empty($config->jg_category)) { $allowedcats = $config->jg_category; } } else { //im Backend fuer die Anlage von Userkategorien freigegebene Kategorien if (!empty($config->jg_usercategory)) { $allowedcats = $config->jg_usercategory; } else { $allowedcats = ''; } } $query = " SELECT \n cid, \n parent, \n name ,\n '0' AS ready\n FROM \n #__joomgallery_catg\n "; if ($upload && !$config->jg_userowncatsupload) { $query .= " WHERE owner IS NOT NULL"; } else { $query .= " WHERE owner=" . $user->get('id'); } if (!empty($allowedcats)) { $query .= " OR cid IN ({$allowedcats})"; } $database->setQuery($query); $rows = $database->loadObjectList("cid"); $countrows = count($rows); if ($countrows == 0 && $upload) { return null; } $output = "<select name=\"" . $cname . "\" class=\"inputbox\">\n"; if ($countrows == 0) { $output .= "</select>\n"; return $output; } //wenn cname = parent und ignoreme != null, dann die Cats loeschen, die direkt //oder indirekt child der cat=ignoreme sind, //$cid = Cat des Parent, $ignoreme=akt. Cat //nur bei Edit Cat if ($cname == 'parent' && $ignoreme != null) { $ignorearr = array(); //zu ignorierende cats $ignorearr[] = $ignoreme; //akt. Cat aufnehmen $backendcats = explode(',', $allowedcats); foreach ($rows as $key => $obj) { //wenn Backendcat -> ueberspringen //ebenso die aktuelle Cat if (in_array($key, $backendcats) || $key == $ignoreme) { continue; } $found = false; $parent = $obj->parent; while (array_key_exists($parent, $rows) && !in_array($key, $ignorearr) && !$found) { $ignore[] = $key; if ($parent == $ignoreme) { $found = true; break; } $parent = $rows[$parent]->parent; } if (!$found) { $ignore = array(); } else { $ignorearr = array_merge($ignorearr, $ignore); } } //aus Array die in $ignore gesammelten nicht auszugebenden cats entfernen foreach ($ignorearr as $catignore) { unset($rows[$catignore]); } } //Iteration through array and completion of the shown path in the input box foreach ($rows as $key => $obj) { $parent = $obj->parent; //at first try to complete the name with a look in the array //to avoid unnecessary db queries while ($parent != 0) { if (isset($rows[$parent])) { $rows[$key]->name = $rows[$parent]->name . ' » ' . $rows[$key]->name; //if found parent element includes completed pathname //leave the while to set the actual element to ready if ($rows[$parent]->ready == true) { break; } else { $parent = $rows[$parent]->parent; } } else { $query = " SELECT \n parent,\n name \n FROM \n #__joomgallery_catg \n WHERE \n cid = " . $parent; $database->setQuery($query); $parentcat = $database->loadObject(); $parent = $parentcat->parent; $rows[$key]->name = $parentcat->name . ' » ' . $rows[$key]->name; } } //mark cat element as ready when path of them completed $rows[$key]->ready = true; } //sort the array with key pathname if more than one element if (count($rows) > 1) { usort($rows, "Joom_SortCatArray"); } //build the html foreach ($rows as $key => $obj) { $output .= "<option value=\"" . $obj->cid . "\""; if ($cid == $obj->cid) { $output .= " selected=\"selected\""; } $output .= ">" . $obj->name . "</option>\n"; } $output .= "</select>\n"; return $output; }
function Joom_DeleteComment_HTML() { $config = Joom_getConfig(); $user =& JFactory::getUser(); $mainframe =& JFactory::getApplication('site'); $database =& JFactory::getDBO(); Joom_GalleryHeader(); // Main Part of Subfunction if ($user->get('gid') == 20 || $user->get('gid') == 24 || $user->get('gid') == 25) { if (isset($_REQUEST['submit']) && $_REQUEST['submit'] != '') { $database->setQuery(" DELETE\n FROM \n #__joomgallery_comments\n WHERE \n cmtid = '" . $this->cmtid . "'\n "); $database->query(); $mainframe->redirect(JRoute::_('index.php?option=com_joomgallery&func=detail&id=' . $this->cmtpic . _JOOM_ITEMID, false), JText::_('JGS_ALERT_COMMENT_DELETED')); } else { ?> <div class="jg_clearboth"></div> <div class="sectiontableheader jg_cmtl"> <?php echo JText::_('JGS_AUTHOR'); ?> </div> <div class="sectiontableheader jg_cmtr"> <?php echo JText::_('JGS_COMMENT'); ?> </div> <?php $database->setQuery(" SELECT \n cmtid, \n cmtip, \n userid, \n cmtname, \n cmttext, \n cmtdate, \n cmtpic, \n username\n FROM \n #__joomgallery_comments AS cm\n LEFT JOIN \n #__users AS u ON cm.userid=u.id\n WHERE \n cmtid = '" . $this->cmtid . "'\n "); $result1 = $database->LoadRow(); list($cmtid, $cmtip, $userid, $cmtname, $cmttext, $cmtdate, $cmtpic, $username) = $result1; ?> <div class="sectiontableentry1"> <div class="jg_cmtl"> <b> <?php if ($userid > 0) { ?> <?php echo $username; ?> <?php } else { ?> <?php echo $cmtname; ?> <?php } ?> </b> <br /> <a href="http://openrbl.org/query?i=<?php echo $cmtip; ?> "> <img src="<?php echo _JOOM_LIVE_SITE; ?> components/com_joomgallery/assets/images/ip.gif" alt="<?php echo $cmtip; ?> " title="<?php echo $cmtip; ?> " hspace="3" border="0" /> </a> </div> <?php $signtime = strftime($config->jg_dateformat, $cmtdate); $origtext = $cmttext; ?> <div class="jg_cmtr small"> <?php echo JText::_('JGS_COMMENT_ADDED') . ": " . $signtime; ?> <hr> <?php echo $origtext; ?> </div> </div> <div class="jg_cmtronly"> <form action="<?php echo JRoute::_('index.php?option=com_joomgallery&func=deletecomment&cmtid=' . $cmtid . '&cmtpic=' . $cmtpic . _JOOM_ITEMID); ?> " method="post"> <input class="button" type="submit" name="submit" value="<?php echo JText::_('JGS_DELETE_COMMENT'); ?> " /> </form> </div> <?php } } else { ?> <p /> <a href="<?php echo JRoute::_('index.php?option=com_joomgallery' . _JOOM_ITEMID); ?> "> <?php echo JText::_('JGS_BACK'); ?> </a> <?php } }
/** * Calculate the memory limit */ function Upload_CheckMemory(&$debugoutput, $filename, $format) { $config = Joom_getConfig(); if (function_exists('memory_get_usage') && ini_get('memory_limit')) { $imageInfo = getimagesize($filename); $jpgpic = false; switch (strtoupper($format)) { case 'GIF': // measured factor 1 is better $channel = 1; break; case 'JPG': case 'JPEG': case 'JPE': $channel = $imageInfo['channels']; $jpgpic = true; break; case 'PNG': // no channel for png $channel = 3; break; } $MB = 1048576; $K64 = 65536; if ($config->jg_fastgd2thumbcreation && $jpgpic && $config->jg_thumbcreation == 'gd2') { //function of fast gd2 creation needs more memory $corrfactor = 2.1; } else { $corrfactor = 1.7; } $memoryNeeded = round(($imageInfo[0] * $imageInfo[1] * $imageInfo['bits'] * $channel / 8 + $K64) * $corrfactor); $memoryNeeded = memory_get_usage() + $memoryNeeded; // get memory limit $memory_limit = @ini_get('memory_limit'); if (!empty($memory_limit) && $memory_limit != 0) { $memory_limit = substr($memory_limit, 0, -1) * 1024 * 1024; } if ($memory_limit != 0 && $memoryNeeded > $memory_limit) { $memoryNeededMB = round($memoryNeeded / 1024 / 1024, 0); $debugoutput .= JText::_('JGA_ERROR_MEM_EXCEED') . $memoryNeededMB . " MByte (" . $memoryNeeded . ") Serverlimit: " . $memory_limit / $MB . "MByte (" . $memory_limit . ")<br/>"; return false; } } return true; }
/** * Category manager * * @param array $rows database rows of categeories * @param string $search * @param string $slist * @param string $olist * @param object $pageNav */ function Joom_ShowCategories_HTML(&$rows, $search, &$slist, &$olist, $pageNav) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); jimport('joomla.filesystem.file'); ?> <div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div> <script language="Javascript" src="../includes/js/overlib_mini.js"></script> <form action="index.php" method="post" name="adminForm"> <table cellpadding="4" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"></td> <td> <?php echo JText::_('JGA_SEARCH') . ':'; ?> <br /> <input type="text" name="search" value="<?php echo $search; ?> " class="inputbox" onChange="document.adminForm.submit();" /> </td> <td nowrap> <?php echo JText::_('JGA_SORT_BY_ORDER'); ?> <br /> <?php echo $olist; ?> </td> <td> <?php echo JText::_('JGA_SORT_BY_TYPE'); ?> <br /> <?php echo $slist; ?> </td> </tr> <tr> <td width="100%"></td> </tr> </table> <table width="100%" border="0" cellpadding="4" cellspacing="0" class="adminlist"> <tr> <th width="20"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?> );" /> </th> <th width="10%"></th> <th width="5%" align="left">ID</th> <th width="85%" class="title"> <?php echo JText::_('JGA_CATEGORY'); ?> </th> <th nowrap align="left"> <?php echo JText::_('JGA_PARENT_CATEGORY'); ?> </th> <th nowrap> <?php echo JText::_('JGA_PUBLISHED'); ?> </th> <th width="5%"> <?php echo JText::_('JGA_OWNER'); ?> </th> <th width="5%"> <?php echo JText::_('JGA_TYPE'); ?> </th> <th nowrap> <?php echo JText::_('JGA_HIT'); ?> </th> <th colspan="2" nowrap> <div align="center"> <?php echo JText::_('JGA_REORDER'); ?> </div> </th> <th align="center"> <a href="javascript: saveorder(<?php echo count($rows) - 1; ?> )"> <img src="images/filesave.png" border="0" width="16" height="16" alt="<?php echo JText::_('JGA_SAVE_ORDER'); ?> " /> </a> </th> </tr> <?php $k = 0; $i = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $catpath = Joom_GetCatPath($row->cid); ?> <tr class="row<?php echo $k; ?> "> <td width="20"> <input type="checkbox" id="cb<?php echo $i; ?> " name="cid[]" value="<?php echo $row->cid; ?> " onClick="isChecked(this.checked);" /> </td> <td width="10%"> <?php if ($row->catimage != '') { if (JFile::exists(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $row->catimage)) { $imginfo = getimagesize(JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $row->catimage)); $imgsource = _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $row->catimage; $srcWidth = $imginfo[0]; $srcHeight = $imginfo[1]; $thumbexists = 1; } else { $thumbexists = 0; } if ($thumbexists) { ?> <a href="#" onmouseover="return overlib('<img src=\'<?php echo $imgsource; ?> \' />',WIDTH,<?php echo $srcWidth; ?> , HEIGHT,<?php echo $srcHeight; ?> )" onmouseout="return nd()"; alt=""/> <img src="<?php echo $imgsource; ?> " border="0" width="24" height="24" /> </a> <?php } else { ?> <?php } } ?> </td> <td width="5%" ><?php echo $row->cid; ?> </td> <td width="85%" > <div align="left"> <a href="#edit" onclick="return listItemTask('cb<?php echo $i; ?> ', 'editcatg')"> <?php if ($row->parent > 0) { ?> » <?php } ?> <?php echo $row->name; ?> </a> </div> </td> <td align="center" nowrap> <?php echo Joom_ShowCategoryPath($row->parent); ?> </td> <?php $task = $row->published ? 'unpublishcatg' : 'publishcatg'; $img = $row->published ? 'tick.png' : 'publish_x.png'; ?> <td width="10%" align="center" nowrap> <a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')"> <img src="images/<?php echo $img; ?> " border="0" alt="" /> </a> </td> <td width="5%" align="center"> <?php if ($row->owner != null) { $owner = JFactory::getUser($row->owner); ?> <?php echo Joom_GetDisplayName($row->owner, true); ?> [<?php echo $config->jg_realname ? $owner->get('username') : $owner->get('name'); ?> (<?php echo $row->owner; ?> )] <?php } else { ?> Administrator[def] <?php } ?> </td> <td width="5%" align="center"> <?php if ($row->owner != null) { ?> <img src="../includes/js/ThemeOffice/users.png" alt="<?php echo JText::_('JGA_USER_UPLOAD'); ?> " title="<?php echo JText::_('JGA_USER_UPLOAD'); ?> " /> <?php } else { ?> <img src="../includes/js/ThemeOffice/credits.png" alt="<?php echo JText::_('JGA_ADMIN_UPLOAD'); ?> " title="<?php echo JText::_('JGA_ADMIN_UPLOAD'); ?> " /> <?php } ?> </td> <td width="10%" align="center" nowrap> <?php echo $row->groupname; ?> </td> <td> <?php if ($i > 0 || $i + $pageNav->limitstart > 0) { ?> <div align="center"> <a href="#reorder" onclick="return listItemTask('cb<?php echo $i; ?> ', 'orderupcatg')"> <img src="images/uparrow.png" border="0"<?php /* portierung: width und height entfernt */ ?> alt="<?php echo JText::_('JGA_UP'); ?> " /> </a> </div> <?php } else { ?> <?php } ?> </td> <td> <?php if ($i < $n - 1 || $i + $pageNav->limitstart < $pageNav->total - 1) { ?> <div align="center"> <a href="#reorder" onclick="return listItemTask('cb<?php echo $i; ?> ', 'orderdowncatg')"> <img src="images/downarrow.png" border="0"<?php /* portierung: width und height entfernt */ ?> alt="<?php echo JText::_('JGA_DOWN'); ?> " /> </a> </div> <?php } ?> </td> <td align="center"> <input type="text" name="order[]" size="5" value="<?php echo $row->ordering; ?> " class="text_area" style="text-align: center" /> </td> <?php $k = 1 - $k; ?> </tr> <?php } ?> <tr> <td colspan="12"> <?php echo $pageNav->getListFooter(); ?> </td> </tr> </table> <input type="hidden" name="option" value="<?php echo _JOOM_OPTION; ?> " /> <input type="hidden" name="task" value="categories" /> <input type="hidden" name="boxchecked" value="0" /> <input type="hidden" name="returntask" value="catg" /> </form> <?php }
function Joom_IncWatermark($file) { $config = Joom_getConfig(); //Path to the watermarkfile || Pfad zum Wasserzeichen $watermark = JPath::clean(JPATH_ROOT . DS . $config->jg_wmpath . $config->jg_wmfile); //Checks if image is existend || Ueberprueft ob das Bild auch vorhanden ist $this->Joom_CheckFile($watermark); //Gets information of the image || Holt die Informationen des Bildes $mime_img = $this->Joom_CheckMime($file); $mime_wat = $this->Joom_CheckMime($watermark); switch ($mime_img) { case 'image/gif': $image = imagecreatefromgif($file); break; case 'image/jpeg': $image = imagecreatefromjpeg($file); break; case 'image/png': $image = imagecreatefrompng($file); break; default: exit; break; } //Gets height and width from imgage || Holt die Hoehe und die Breite des Bildes $infos_img = getimagesize($file); $infos_wat = getimagesize($watermark); //Checks if image is smaller than watermark and returns image without || Ueberprueft ob das Bild kleiner ist, als das Waserzeichen und gibt nur das Bild zurueck if ($infos_img[0] < $infos_wat[0] || $infos_img[1] < $infos_wat[1]) { return $image; } else { //Gets the position of the watermark || Definiert die Position des Wasserzeichens $t_x = 0; $t_y = 0; $position = $config->jg_watermarkpos; // Position x switch (($position - 1) % 3) { case 0: $pos_x = 0; break; case 1: $pos_x = round(($infos_img[0] - $infos_wat[0]) / 2, 0); break; case 2: $pos_x = $infos_img[0] - $infos_wat[0]; break; } // Position y switch (floor(($position - 1) / 3)) { case 0: $pos_y = 0; break; case 1: $pos_y = round(($infos_img[1] - $infos_wat[1]) / 2, 0); break; case 2: $pos_y = $infos_img[1] - $infos_wat[1]; break; } // Watermark-procedure || Erzeugt das Wasserzeichen switch ($mime_wat) { case 'image/gif': $watermark = imagecreatefromgif($watermark); break; case 'image/jpeg': $watermark = imagecreatefromjpeg($watermark); break; case 'image/png': $watermark = imagecreatefrompng($watermark); break; default: exit; break; } $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); $image_width = imagesx($image); $image_height = imagesy($image); if ($mime_img == 'image/gif' || $mime_img == 'image/png' && !strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')) { $image_new = ImageCreate($image_width, $image_height); $transcol = imagecolortransparent($image); imagepalettecopy($image_new, $image); imagefill($image_new, 0, 0, $transcol); imagecopyresampled($image_new, $image, 0, 0, 0, 0, $image_width, $image_height, $image_width, $image_height); imagecolortransparent($image_new, $transcol); } else { $image_new = $image; } imagealphablending($image_new, TRUE); imagealphablending($watermark, TRUE); imagecolortransparent($watermark, imagecolorat($watermark, $t_x, $t_y)); imagecopyresampled($image_new, $watermark, $pos_x, $pos_y, 0, 0, $watermark_width, $watermark_height, $watermark_width, $watermark_height); return $image_new; } }
function Joom_ShowFavourites() { $mainframe =& JFactory::getApplication('site'); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); $config = Joom_getConfig(); include_once JPATH_COMPONENT . DS . 'includes' . DS . 'html' . DS . 'joom.favourites.html.php'; $query = "SELECT \n *,\n a.owner AS imgowner\n FROM \n #__joomgallery AS a, \n #__joomgallery_catg AS ca\n WHERE \n a.catid=ca.cid"; if (is_null($this->piclist)) { $query .= " LIMIT 0"; } else { $query .= " AND a.id IN (" . $database->getEscaped($this->piclist) . ")"; } $database->setQuery($query); $rows = $database->loadObjectList(); // Download Icon # hier wird im Moment noch die Einstellung fuer die Detail-Ansicht uebernommen $showDownloadIcon = 0; /*if((is_file(JPath::clean(JPATH_ROOT.DS.$config->jg_pathoriginalimages.$catpath.$imgfilename)) || $config->jg_downloadfile!=1)) {*/ if ($config->jg_showdetaildownload == 1 && $user->get('aid') >= 1 || $config->jg_showdetaildownload == 2 && $user->get('aid') == 2 || $config->jg_showdetaildownload == 3) { $showDownloadIcon = 1; } elseif ($config->jg_showdetaildownload == 1 && $user->get('aid') < 1) { $showDownloadIcon = -1; } #} if ($this->layout) { HTML_Joom_Favourites::Joom_ShowFavourites_HTML1($rows, $showDownloadIcon); } else { HTML_Joom_Favourites::Joom_ShowFavourites_HTML2($rows, $showDownloadIcon); } }
function Joom_ShowIptcData_HTML($iptc_array) { global $iptc_config_array; $config = Joom_getConfig(); require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'adminiptc' . DS . 'admin.iptcarray.php'; $ii = 0; ?> <div class="jg_exif"> <div class="sectiontableheader"> <h4 <?php echo $config->jg_showdetailaccordion ? "class=\"joomgallery-toggler\"" : "class=\"joomgallery-notoggler\""; ?> > <?php echo JText::_('JGSI_DATA'); ?> </h4> </div> <div <?php echo $config->jg_showdetailaccordion ? "class=\"joomgallery-slider\"" : ""; ?> > <p> <?php //var_dump ($iptc_array); $iptctags = explode(',', $config->jg_iptctags); $charsets = array('macintosh', 'ASCII', 'ISO-8859-1', 'UCS-4', 'UCS-4BE', 'UCS-4LE', 'UCS-2', 'UCS-2BE', 'UCS-2LE', 'UTF-32', 'UTF-32BE', 'UTF-32LE', 'UTF-16', 'UTF-16BE', 'UTF-16LE', 'UTF-7', 'UTF7-IMAP', 'UTF-8', 'EUC-JP', 'SJIS', 'eucJP-win', 'SJIS-win', 'ISO-2022-JP', 'JIS', 'ISO-8859-2', 'ISO-8859-3', 'ISO-8859-4', 'ISO-8859-5', 'ISO-8859-6', 'ISO-8859-7', 'ISO-8859-8', 'ISO-8859-9', 'ISO-8859-10', 'ISO-8859-13', 'ISO-8859-14', 'ISO-8859-15', 'byte2be', 'byte2le', 'byte4be', 'byte4le', 'BASE64', '7bit', '8bit', 'EUC-CN', 'CP936', 'HZ', 'EUC-TW', 'CP950', 'BIG-5', 'EUC-KR', 'UHC', 'ISO-2022-KR', 'Windows-1251', 'Windows-1252', 'CP866', 'KOI8-R'); if (isset($iptc_array['1#090'][0]) && in_array($charsets, $iptc_array['1#090'])) { $from_charset = $iptc_array['1#090'][0]; } else { $from_charset = ''; } $to_charset = 'UTF-8'; $k = 0; $output = ''; foreach ($iptctags as $iptctag) { $realiptctag = str_replace(":", "#", $iptc_config_array['IPTC'][$iptctag]['IMM']); if (isset($iptc_array[$realiptctag])) { $kk = $k % 2 + 1; $output .= " <div class=\"sectiontableentry" . $kk . "\">\n"; $output .= " <div class=\"jg_exif_left\">\n"; $output .= " " . $iptc_config_array['IPTC'][$iptctag]['Name'] . "\n"; $output .= " </div>\n"; $output .= " <div class=\"jg_exif_right\">\n"; if (function_exists('iconv')) { $fixedenteties = htmlentities($iptc_array[$realiptctag][0]); $fixedcharset = iconv($from_charset, $to_charset, $fixedenteties); } else { $fixedcharset = $iptc_array[$realiptctag][0]; } if (!Joom_IsUtf8($fixedcharset)) { $tagdata = htmlspecialchars_decode(Joom_Utf8EncodeMix($fixedcharset, false)); } else { $tagdata = htmlspecialchars_decode($fixedcharset); } if ($tagdata == '') { $tagdata = " "; } $output .= " " . $tagdata . ""; $output .= " </div>\n"; $output .= " </div>\n"; $k++; if ($realiptctag == '2#025') { $num = count($iptc_array['2#025']); if ($num > 1) { $i = 1; for ($keywords = 1; $keywords < $num; $keywords++) { $kk = $k % 2 + 1; $output .= " <div class=\"sectiontableentry" . $kk . "\">\n"; $output .= " <div class=\"jg_exif_left\">\n"; $output .= " " . $iptc_config_array['IPTC'][$iptctag]['Name'] . " \n"; $output .= " </div>\n"; $output .= " <div class=\"jg_exif_right\">\n"; if (function_exists('iconv')) { $fixedenteties = htmlentities($iptc_array[$realiptctag][$i]); $fixedcharset = iconv($from_charset, $to_charset, $fixedenteties); } else { $fixedcharset = $iptc_array[$realiptctag][$i]; } if (!Joom_IsUtf8($fixedcharset)) { $tagdata = htmlspecialchars_decode(utf8_encode_mix($fixedcharset, false)); } else { $tagdata = htmlspecialchars_decode($fixedcharset); } if ($tagdata == '') { $tagdata = " "; } $output .= " " . $tagdata . ""; $output .= " </div>\n"; $output .= " </div>\n"; $k++; $i++; } } } } } echo $output; ?> </p> </div> </div> <?php }
function Joom_ShowSubCategoryPageNav_HTML(&$count3, &$substart, &$substartpage, &$subgesamtseiten, &$catid) { $config = Joom_getConfig(); $startpage = $this->catstartpage; if (!$config->jg_showsubcatcount && $subgesamtseiten == 1 || $count3 == 0) { return; } ?> <div class="jg_pagination"> <?php if ($startpage == 0) { $startpage = 1; } ?> <a name="subcategory"></a> <?php if ($config->jg_showsubcatcount) { if ($count3 == 1) { ?> <?php echo JText::_('JGS_THERE_IS') . ' ' . $count3 . ' ' . JText::_('JGS_SUBCATEGORY_IN_CATEGORY'); ?> <?php } elseif ($count3 > 1) { ?> <?php echo JText::_('JGS_THERE_ARE') . ' ' . $count3 . ' ' . JText::_('JGS_SUBCATEGORIES_IN_CATEGORY'); ?> <?php } } if ($subgesamtseiten > 1) { //Ausgeben '<< Anfang' if ($substartpage != 1) { ?> <br /> <a href="<?php echo JRoute::_($this->viewcategory_url . $catid . '&startpage=' . $startpage . '&substartpage=1' . _JOOM_ITEMID) . "#subcategory"; ?> "> «« <?php echo JText::_('JGS_PAGENAVIGATION_BEGIN'); ?> </a> <?php } else { ?> <br /> «« <?php echo JText::_('JGS_PAGENAVIGATION_BEGIN'); ?> <?php } // Ausgeben der Seite zurueck Funktion $subseiterueck = $substartpage - 1; if ($subseiterueck > 0) { ?> <a href="<?php echo JRoute::_($this->viewcategory_url . $catid . '&startpage=' . $startpage . '&substartpage=' . $subseiterueck . _JOOM_ITEMID) . "#subcategory"; ?> "> « <?php echo JText::_('JGS_PAGENAVIGATION_PREVIOUS'); ?> </a> <?php } else { ?> « <?php echo JText::_('JGS_PAGENAVIGATION_PREVIOUS'); ?> <?php } // Ausgeben der einzelnen Seiten ?> <?php echo Joom_GenPagination($this->viewcategory_url . $catid . '&startpage=' . $startpage . '&substartpage=%u' . _JOOM_ITEMID, $subgesamtseiten, $substartpage, "#subcategory"); // Ausgeben der Seite vorwaerts Funktion $subseitevor = $substartpage + 1; if ($subseitevor <= $subgesamtseiten) { ?> <a href="<?php echo JRoute::_($this->viewcategory_url . $catid . '&startpage=' . $startpage . '&substartpage=' . $subseitevor . _JOOM_ITEMID) . "#subcategory"; ?> "> <?php echo JText::_('JGS_PAGENAVIGATION_NEXT'); ?> » </a> <?php } else { ?> <?php echo JText::_('JGS_PAGENAVIGATION_NEXT'); ?> » <?php } //Ausgeben 'Ende >>' if ($substartpage != $subgesamtseiten) { ?> <a href="<?php echo JRoute::_($this->viewcategory_url . $catid . '&startpage=' . $startpage . '&substartpage=' . $subgesamtseiten . _JOOM_ITEMID) . "#subcategory"; ?> "> <?php echo JText::_('JGS_PAGENAVIGATION_END'); ?> »» </a> <?php } else { ?> <?php echo JText::_('JGS_PAGENAVIGATION_END'); ?> »» <?php } } ?> </div> <?php }
/** * Comments manager * * @param string $rows * @param string $search * @param object $pageNav */ function Joom_ShowComments_HTML(&$rows, &$search, &$pageNav) { $config = Joom_getConfig(); $database =& JFactory::getDBO(); jimport('joomla.filesystem.file'); ?> <script type="text/javascript" src="<?php echo _JOOM_LIVE_SITE; ?> includes/js/overlib_mini.js"></script> <form action="index.php" method="post" name="adminForm"> <table cellpadding="4" cellspacing="0" border="0" width="100%"> <tr> <td width="100%"></td> <td> <?php echo JText::_('JGA_SEARCH'); ?> </td> <td> <input type="text" name="search" value="<?php echo $search; ?> " class="inputbox" onChange="document.adminForm.submit();" /> </td> </tr> </table> <table cellpadding="4" cellspacing="0" border="0" width="100%" class="adminlist"> <tr> <th width="20"> <input type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($rows); ?> );" /> </th> <th class="title" width="15%"> <div align="left"> <?php echo JText::_('JGA_AUTHOR'); ?> </div> </th> <th width="35%"> <div align="left"> <?php echo JText::_('JGA_TEXT'); ?> </div> </th> <th width="10%"> <div align="center"> <?php echo JText::_('JGA_IP'); ?> </div> </th> <th width="10%"> <?php echo JText::_('JGA_PUBLISHED'); ?> </th> <th width="10%"> <?php echo JText::_('JGA_APPROVED'); ?> </th> <th width="10%"> <?php echo JText::_('JGA_PICTURE'); ?> </th> <th width="24"></th> <th width="15%"> <?php echo JText::_('JGA_DATE'); ?> </th> </tr> <?php $k = 0; for ($i = 0, $n = count($rows); $i < $n; $i++) { $row =& $rows[$i]; $task = $row->published ? 'unpublishcmt' : 'publishcmt'; $img = $row->published ? 'tick.png' : 'publish_x.png'; $taska = $row->approved ? 'rejectcmt' : 'approvecmt'; $imga = $row->approved ? 'tick.png' : 'publish_x.png'; ?> <tr class="<?php echo "row{$k}"; ?> "> <td> <input type="checkbox" id="cb<?php echo $i; ?> " name="id[]" value="<?php echo $row->cmtid; ?> " onclick="isChecked(this.checked);" /> </td> <td> <div align="left"> <?php if ($row->userid > 0) { echo Joom_GetDisplayName($row->userid, false); } else { echo $row->cmtname; } ?> </div> </td> <td> <div align="left"> <?php $cmttext = Joom_ProcessText($row->cmttext); ?> <?php echo $cmttext; ?> </div> </td> <td> <div align="center"> <?php echo $row->cmtip; ?> </div> </td> <td align='center'> <a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $task; ?> ')"> <img src="images/<?php echo $img; ?> " border="0" alt="" /><?php /* portierung: width und height entfernt */ ?> </a> </td> <td align='center'> <a href="javascript: void(0);" onClick="return listItemTask('cb<?php echo $i; ?> ','<?php echo $taska; ?> ')"> <img src="images/<?php echo $imga; ?> " border="0" alt="" /><?php /* portierung: width und height entfernt */ ?> </a> </td> <td width="10%" align="center"> <?php echo $row->cmtpic; ?> </td> <td> <?php $database->setQuery("SELECT imgthumbname\n FROM #__joomgallery\n WHERE id = '{$row->cmtpic}'"); $is_imgthumbname = $database->loadResult(); $database->setQuery("SELECT catid\n FROM #__joomgallery\n WHERE id = '{$row->cmtpic}'"); $is_catid = $database->loadResult(); $catpath = Joom_GetCatPath($is_catid); if (JFile::exists(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $is_imgthumbname)) { $imginfo = getimagesize(JPath::clean(JPATH_ROOT . DS . $config->jg_paththumbs . $catpath . $is_imgthumbname)); $imgsource = _JOOM_LIVE_SITE . $config->jg_paththumbs . $catpath . $is_imgthumbname; $srcWidth = $imginfo[0]; $srcHeight = $imginfo[1]; $thumbexists = 1; } else { $thumbexists = 0; } if ($thumbexists) { ?> <a href="<?php echo _JOOM_LIVE_SITE; ?> index.php?option=<?php echo _JOOM_OPTION; ?> &func=detail&id=<?php echo $row->cmtpic; ?> " onmouseover="return overlib('<img src=\'<?php echo $imgsource; ?> \' />',WIDTH,<?php echo $srcWidth; ?> , HEIGHT,<?php echo $srcHeight; ?> )" onmouseout="return nd()";target="_blank"> <img src="<?php echo $imgsource; ?> " border="0" width="24" height="24" alt="" /> </a> <?php } else { ?> <?php } ?> </td> <td width="10%" align="center"> <?php echo strftime($config->jg_dateformat, $row->cmtdate); ?> </td> <?php $k = 1 - $k; ?> </tr> <?php } ?> <tr> <td colspan="9"> <?php echo $pageNav->getListFooter(); ?> </td> </tr> </table> <input type="hidden" name="option" value="<?php echo _JOOM_OPTION; ?> " /> <input type="hidden" name="task" value="comments" /> <input type="hidden" name="boxchecked" value="0" /> </form> <?php }
/** * JAVA upload * */ function Joom_ShowJUpload_HTML($cookieNavigator) { $config = Joom_getConfig(); $mainframe =& JFactory::getApplication('administrator'); $database =& JFactory::getDBO(); $user =& JFactory::getUser(); //cpanel echo "<script language = \"javascript\" type = \"text/javascript\">\n"; echo "<!--\n"; echo "function submitbutton(pressbutton) {\n"; echo " var form = document.adminForm;\n"; echo " if (pressbutton == 'cpanel') {\n"; echo " location.href = \"index.php?option=" . _JOOM_OPTION . "\";\n"; echo " }\n"; echo "}\n"; echo "//-->\n"; echo "</script>\n"; echo "</form>"; ?> <!-- --------------------------------------------------------------------------------------------------- --> <!-- -------- A DUMMY APPLET, THAT ALLOWS THE NAVIGATOR TO CHECK THAT JAVA IS INSTALLED ---------- --> <!-- -------- If no Java: Java installation is prompted to the user. ---------- --> <!-- --------------------------------------------------------------------------------------------------- --> <!--"CONVERTED_APPLET"--> <!-- HTML CONVERTER --> <script language="JavaScript" type="text/javascript"><!-- var _info = navigator.userAgent; var _ns = false; var _ns6 = false; var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0); //--></script> <comment> <script language="JavaScript" type="text/javascript"><!-- var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0))); var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0)); //--></script> </comment> <script language="JavaScript" type="text/javascript"><!-- if (_ie == true) document.writeln('<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH = "0" HEIGHT = "0" NAME = "JUploadApplet" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5-windows-i586.cab#Version=5,0,0,3"><noembed><xmp>'); else if (_ns == true && _ns6 == false) document.writeln('<embed ' + 'type="application/x-java-applet;version=1.5" \ CODE = "wjhk.jupload2.EmptyApplet" \ ARCHIVE = "<?php echo _JOOM_LIVE_SITE; ?> administrator/components/<?php echo _JOOM_OPTION; ?> /assets/java/wjhk.jupload.jar" \ NAME = "JUploadApplet" \ WIDTH = "0" \ HEIGHT = "0" \ type ="application/x-java-applet;version=1.6" \ scriptable ="false" ' + 'scriptable=false ' + 'pluginspage="http://java.sun.com/products/plugin/index.html#download"><noembed><xmp>'); //--></script> <applet code = "wjhk.jupload2.EmptyApplet" ARCHIVE = "<?php echo _JOOM_LIVE_SITE; ?> administrator/components/<?php echo _JOOM_OPTION; ?> /assets/java/wjhk.jupload.jar" WIDTH = "0" HEIGHT = "0" NAME = "JUploadApplet"></xmp> <param name = CODE VALUE = "wjhk.jupload2.EmptyApplet" > <param name = ARCHIVE VALUE = "<?php echo _JOOM_LIVE_SITE; ?> administrator/components/<?php echo _JOOM_OPTION; ?> /assets/java/wjhk.jupload.jar" > <param name = NAME VALUE = "JUploadApplet" > <param name = "type" value="application/x-java-applet;version=1.5"> <param name = "scriptable" value="false"> <param name = "type" VALUE="application/x-java-applet;version=1.6"> <param name = "scriptable" VALUE="false"> </xmp> Java 1.5 or higher plugin required. </applet> </noembed> </embed> </object> <form name="adminForm"> <input type="hidden" name="option" value="<?php echo _JOOM_OPTION; ?> " /> <input type="hidden" name="approved" value="1" /> <input type="hidden" name="owner" value="<?php echo $user->get('username'); ?> " /> <input type="hidden" name="debug" value="<?php echo $this->debug; ?> " /> <table width="100%" border="0" cellpadding="4" cellspacing="2" class="adminlist"> <tr> <td colspan="2"> <div align="center"> <?php echo JText::_('JGA_JUPLOAD_NOTE'); ?> </div> </td> </tr> <tr> <td align="right" width="50%"> <div align="right"> <?php echo JText::_('JGA_PICTURE_ASSIGN_TO_CATEGORY'); ?> </div> </td> <td align="left" width="50%"> <?php $clist = Joom_ShowDropDownCategoryList(0, 'catid', ' class="inputbox" size="1" style="width:228;"'); echo $clist; ?> </td> </tr> <?php if ($config->jg_delete_original == 2) { $sup1 = '¹'; $sup2 = '²'; } else { $sup2 = '¹'; } if (!$config->jg_useorigfilename) { ?> <tr> <td align="right"> <div align="right"> <?php echo JText::_('JGA_GENERIC_TITLE'); ?> </div> </td> <td align="left"> <input type="text" name="gentitle" size="34" maxlength="256" value="" /> </td> </tr> <?php } ?> <tr> <td align="right"> <div align="right"> <?php echo JText::_('JGA_GENERIC_DESCRIPTION') . ' ' . JText::_('JGA_OPTION'); ?> </div> </td> <td align="left"> <input type="text" name="gendesc" size="34" maxlength="1000" /> </td> </tr> <tr> <td align="right"> <div align="right"> <?php echo JText::_('JGA_AUTHOR') . ' ' . JText::_('JGA_OPTION'); ?> </div> </td> <td align="left"> <input type="text" name="photocred" size="34" maxlength="256" /> </td> </tr> <?php if ($config->jg_delete_original == 2) { ?> <tr> <td align="right"> <?php echo JText::_('JGA_DELETE_ORIGINAL_AFTER_UPLOAD'); ?> ¹ </td> <td align="left"> <input type="checkbox" name="original_delete" value="1" /> </td> </tr> <?php } ?> <tr> <td align="right"> <div align="right"> <?php echo JText::_('JGA_CREATE_SPECIAL_GIF'); ?> <?php echo $sup2; ?> </div> </td> <td align="left"> <input type="checkbox" name="create_special_gif" value="1" /> </td> </tr> <tr> <td colspan="2" align="center"> <div align="center" class="smallgrey"> <?php if ($config->jg_delete_original == 2) { ?> <br /><?php echo $sup1; ?> <?php echo JText::_('JGA_DELETE_ORIGINAL_AFTER_UPLOAD_ASTERISK'); } ?> <br /><?php echo $sup2; ?> <?php echo JText::_('JGA_CREATE_SPECIAL_GIF_ASTERISK'); ?> </div> </td> </tr> <tr> <?php //If 'originals deleted' setted in backend AND the picture has to be resized //this will be done local within in the applet, so only the detail picture //will be uploaded ?> <td colspan="2" align="center"> <applet name="JUpload" code="wjhk.jupload2.JUploadApplet" archive="<?php echo _JOOM_LIVE_SITE; ?> administrator/components/<?php echo _JOOM_OPTION; ?> /assets/java/wjhk.jupload.jar" width="800" height="600" mayscript> <param name="postURL" value="<?php echo _JOOM_LIVE_SITE; ?> administrator/index.php?option=<?php echo _JOOM_OPTION; ?> &task=juploadhandler_receive"> <param name="lookAndFeel" value="system"> <param name="showLogWindow" value=false> <param name="showStatusBar" value="true"> <param name="formdata" value="adminForm"> <param name="debugLevel" value="0"> <param name="afterUploadURL" value="javascript:alert('<?php echo JText::_('JGA_UPLOAD_COMPLETE', true); ?> ');"> <param name="nbFilesPerRequest" value="4"> <param name="stringUploadSuccess" value="JOOMGALLERYUPLOADSUCCESS"> <param name="stringUploadError" value="JOOMGALLERYUPLOADERROR (.*)"> <param name="uploadPolicy" value="PictureUploadPolicy"> <param name="allowedFileExtensions" value="jpg/jpeg/jpe/png/gif"> <?php if ($config->jg_delete_original && $config->jg_resizetomaxwidth) { ?> <param name="maxPicHeight" value="<?php echo $config->jg_maxwidth; ?> "> <param name="maxPicWidth" value="<?php echo $config->jg_maxwidth; ?> "> <param name="pictureCompressionQuality" value="<?php echo $config->jg_picturequality / 100; ?> "> <?php } else { //set picture quality to 1 to override the applet default of 0.8 ?> <param name="pictureCompressionQuality" value="1"> <?php } ?> <param name="fileChooserImagePreview" value="false"> <param name="fileChooserIconFromFileContent" value="-1"> <?php if (!$cookieNavigator) { ?> <param name="readCookieFromNavigator" value="false"> <param name="specificHeaders" value="Cookie: <?php echo $this->sessionname . '=' . $this->sessiontoken; ?> "> <?php } ?> Java 1.5 or higher plugin required. </applet> </td> </tr> </table> </form> <?php }