<?php function categoryList() { $page = new page(); $categ = new category(); $get_list = $categ->getAllList(); $page->printCategories($get_list); } include "include/page.class.php"; CategoryList(); include "include/bottom.php";
<?php /*! * LinnDS-jukebox * * Copyright (c) 2011-2012 Henrik Tolbøl, http://tolbøl.dk * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php */ require "header.inc"; require_once "setup.php"; require_once "Manifest.php"; require_once "Functions.php"; $cachefilename = $CACHE_DIR . "/manifest-pages"; if ($DO_CACHE && file_exists($cachefilename) && filemtime($cachefilename) > filemtime($manifestfile)) { echo file_get_contents($cachefilename); } else { $manifest = new Manifest($manifestfile); $str = '<div class="play"></div>'; $str .= Page("page_musik", "Musik", CategoryList("categorylist", $manifest), "LinnDS-jukebox", "true"); file_put_contents($cachefilename, $str); echo $str; MakePageCategories($manifest); } require "footer.inc";
function showBatchImport() { $app = JFactory::getApplication('administrator'); JToolBarHelper::title(JText::_('COM_DATSOGALLERY_IMPORT_FORM'), 'tb-batchimport'); JToolBarHelper::back(); $db =& JFactory::getDBO(); $document =& JFactory::getDocument(); $document->addStyleSheet(JURI::root(true) . '/components/com_datsogallery/libraries/plupload/css/plupload.queue.css'); require JPATH_COMPONENT . DS . 'config.datsogallery.php'; jimport('joomla.filesystem.folder'); $path = JPATH_ROOT . DS . 'zipimport'; if (!JFolder::exists($path)) { return JError::raiseWarning(-1, JText::_('COM_DATSOGALLERY_ZIPIMPORT_NOT_EXIST_TIP')); } ?> <script type=text/javascript> function checkForm() { var form = document.importForm; if (form.catid.value == 0) { alert("<?php echo JText::_('COM_DATSOGALLERY_MUST_SELECT_CATEGORY'); ?> "); return false; } else if (form.gentitle.value == '') { alert("<?php echo JText::_('COM_DATSOGALLERY_MUST_HAVE_TITLE'); ?> "); return false; } else { document.importForm.action = 'index.php'; document.importForm.submit(); } } </script> <div class="stepsform"> <div class="plupload_header_title"><?php echo JText::_('COM_DATSOGALLERY_IMPORT_FORM'); ?> </div> <div class="plupload_header_text"><?php echo JText::_('COM_DATSOGALLERY_IMPORT_FORM_TEXT'); ?> </div> <div id="up_methods"><?php echo JText::_('COM_DATSOGALLERY_IMPORT_FORM_METHODS'); ?> <br /><br /><?php echo JText::_('COM_DATSOGALLERY_STEP_TWO_TEXT'); ?> </div> <form action="index.php" method="post" name="importForm" enctype="multipart/form-data"> <table width="100%" border="0"> <tr align="left"> <td width="30%"><?php echo JText::_('COM_DATSOGALLERY_SELECT_CATEGORY'); ?> *</td> <td width="70%"> <?php $catid = $app->getUserStateFromRequest("catid{com_datsogallery}", 'catid', 0, 'int'); $clist = CategoryList(0, 'catid', ' class="inputbox" size="1" style="width:362px"'); echo $clist . '<div style="float:right;padding-top:5px">' . dgTip(JText::_('COM_DATSOGALLERY_ALLOWED_CAT')) . '</div>'; ?> </td> </tr> <tr> <td><?php echo JText::_('COM_DATSOGALLERY_GENERIC_TITLE'); ?> *</td> <td> <input type="text" name="gentitle" style="width:360px" /> <div style="float:right;padding-top:5px"><?php echo dgTip(JText::_('COM_DATSOGALLERY_GENERIC_TITLE_BI_I')); ?> </div> </td> </tr> <tr> <td valign="top"><?php echo JText::_('COM_DATSOGALLERY_GENERIC_DESC'); ?> </td> <td><textarea class="inputbox" cols="35" rows="10" name="gendesc" style="width:360px"></textarea> <div style="float:right;padding-top:5px"><?php echo dgTip(JText::_('COM_DATSOGALLERY_OPT')); ?> </div> </td> </tr> <tr> <td><?php echo JText::_('COM_DATSOGALLERY_SHOW_AUTHOR'); ?> </td> <td><input type="text" name="genimgauthor" style="width:360px" /> <div style="float:right;padding-top:5px"><?php echo dgTip(JText::_('COM_DATSOGALLERY_IMAGE_AUTHOR_TIP')); ?> </div> </td> </tr> <tr> <td><?php echo JText::_('COM_DATSOGALLERY_IMAGE_AUTHOR_URL'); ?> </td> <td><input type="text" name="genimgauthorurl" style="width:360px" /> <div style="float:right;padding-top:5px"><?php echo dgTip(JText::_('COM_DATSOGALLERY_IMAGE_AUTHOR_URL_TIP')); ?> </div> </td> </tr> <?php if ($ad_shop) { ?> <tr> <td><?php echo JText::_('COM_DATSOGALLERY_PRICE'); ?> </td> <td><input class="inputbox" type="text" name="imgprice" value="0.00" style="width:50px" /> <div style="float:right;padding-top:5px"><?php echo dgTip(JText::_('COM_DATSOGALLERY_PRICE_DESC')); ?> </div> </td> </tr> <?php } ?> <tr> <td></td> <td colspan="2"> <div><button type="submit" class="act" onclick="checkForm();return false;"><?php echo JText::_('COM_DATSOGALLERY_ZIP_IMPORT'); ?> </button></div> </td> </tr> </table> <input type="hidden" name="option" value="com_datsogallery" /> <input type="hidden" name="task" value="batchimporthandler" /> </form> </div> <?php }
defined('_JEXEC') or die; $app = JFactory::getApplication('administrator'); $uri = JFactory::getURI(); $db = JFactory::getDBO(); jimport('joomla.html.pane'); $tabs = JPane::getInstance('tabs', array('startOffset' => 0)); JToolBarHelper::title(JText::_('COM_DATSOGALLERY_CONFIGURATION'), 'tb-config'); JToolBarHelper::custom('savesettings', 'dg-save.png', 'dg-save.png', JText::_('COM_DATSOGALLERY_SAVE'), false); JToolBarHelper::spacer(); JToolBarHelper::custom('', 'dg-cancel.png', 'dg-cancel.png', JText::_('COM_DATSOGALLERY_CANCEL'), false); require JPATH_COMPONENT . DS . 'config.datsogallery.php'; JHTML::_('behavior.modal', 'a.modal-button'); JHTML::_('behavior.tooltip'); $arr_ad_category = explode(",", $ad_category); $clist1 = CategoryListSettings($ad_category, "ad_category", $extras = "id=\"ucat\" style=\"width:230px\""); $clist2 = CategoryList($arr_ad_category, "ad_category[]", $extras = "id=\"acat\" multiple size=\"6\" style=\"width:230px\"", $levellimit = "4"); //$clist = ($user_categories) ? $clist1 : $clist2; ?> <form action="index.php" method="post" name="adminForm" id="dgConfig"> <?php $yesno[] = JHTML::_('select.option', '0', JText::_('COM_DATSOGALLERY_NO')); $yesno[] = JHTML::_('select.option', '1', JText::_('COM_DATSOGALLERY_YES')); if ($ad_protect) { dgProtect($ad_pathoriginals); } else { dgUnprotect($ad_pathoriginals); } if (JFile::exists(JPATH_SITE . DS . JPath::clean($ad_pathoriginals) . DS . '.htaccess')) { $img = dgTip(JText::_('COM_DATSOGALLERY_PROTECT_YES'), 'dg-lock-icon.png'); } else { $img = dgTip(JText::_('COM_DATSOGALLERY_PROTECT_NO'), 'dg-lock-open-icon.png');