AAAAPK>\((images/xmap-favicon.pngnuW+APNG  IHDRatEXtSoftwareAdobe ImageReadyqe<IDATxڤS_HSQνww]ڒE5S 2R(@z=,-!,/F6Z]N{wm}g=z9~;0 fa`v!Qo6gqI&B@4AG-1~e^tmF’تh:3+ hb6p} i#*/ƃU@8: ݁A Q m5YqxH)Q2 ? Dz9xQ!|t2Vc:$12tvkXQX_:{\dJ`hj*}*lh HM{npz[œ?$E$dE^YxyԽ_6UУ1\rnA f %eIvrj88~dYWC_K)ClI<U Jf5}Ŕr%o!*G&j'z뾡}߆E-)-vr_< Q~+X=:ʗ>Yugˢz:CV5(k>G{zt9@A "W~lO4E}>~ 5Jȿ-IENDB`PK>\t images/sitemap-icon.pngnuW+APNG  IHDR00WtEXtSoftwareAdobe ImageReadyqe<IDATxb?PL Cz` <~/ Hw|QD=u-dyRH#9ģRlZAP_vh ,Ih4  ,Cέh$K#]ʛϾRܨS&9H>/_̶3RcUЛG3.~oYt-*1y<@Z"쬚8<rtXAL B|ogsj!0#Q6RRzrT?LLf f'QC7hP5TM[SYkJ [DĘVT5.ȱb0X#%+SڰF=0R=&K05hG/FIENDB`PK>\)images/.htaccessnuW+A Order allow,deny Deny from all PK>\6images/index.htmlnuW+APK>\wnxmap.phpnuW+Aexecute(JFactory::getApplication()->input->get('task')); $controller->redirect();PK>\) .htaccessnuW+A Order allow,deny Deny from all PK>\6 index.htmlnuW+APK>\6elements/index.htmlnuW+APK>\~~elements/sitemap.phpnuW+AsetQuery($sql); $rows = $db->loadObjectList(); $html = JHTML::_('select.genericlist',$rows,$fieldName,'','id','name',$value); return $html; } } PK>\)elements/.htaccessnuW+A Order allow,deny Deny from all PK>\O~Acontroller.phpnuW+AregisterTask('navigator-links', 'navigatorLinks'); } /** * Display the view */ public function display($cachable = false, $urlparams = false) { require_once JPATH_COMPONENT . '/helpers/xmap.php'; // Get the document object. $document = JFactory::getDocument(); // Set the default view name and format from the Request. $vName = JRequest::getWord('view', 'sitemaps'); $vFormat = $document->getType(); $lName = JRequest::getWord('layout', 'default'); // Get and render the view. if ($view = $this->getView($vName, $vFormat)) { // Get the model for the view. $model = $this->getModel($vName); // Push the model into the view (as default). $view->setModel($model, true); $view->setLayout($lName); // Push document object into the view. $view->assignRef('document', $document); $view->display(); } } function navigator() { $db = JFactory::getDBO(); $document = JFactory::getDocument(); $app = JFactory::getApplication('administrator'); $id = JRequest::getInt('sitemap', 0); $link = urldecode(JRequest::getVar('link', '')); $name = JRequest::getCmd('e_name', ''); if (!$id) { $id = $this->getDefaultSitemapId(); } if (!$id) { JError::raiseWarning(500, JText::_('Xmap_Not_Sitemap_Selected')); return false; } $app->setUserState('com_xmap.edit.sitemap.id', $id); $view = $this->getView('sitemap', $document->getType()); $model = $this->getModel('Sitemap'); $view->setLayout('navigator'); $view->setModel($model, true); // Push document object into the view. $view->assignRef('document', $document); $view->navigator(); } function navigatorLinks() { $db = JFactory::getDBO(); $document = JFactory::getDocument(); $app = JFactory::getApplication('administrator'); $id = JRequest::getInt('sitemap', 0); $link = urldecode(JRequest::getVar('link', '')); $name = JRequest::getCmd('e_name', ''); if (!$id) { $id = $this->getDefaultSitemapId(); } if (!$id) { JError::raiseWarning(500, JText::_('Xmap_Not_Sitemap_Selected')); return false; } $app->setUserState('com_xmap.edit.sitemap.id', $id); $view = $this->getView('sitemap', $document->getType()); $model = $this->getModel('Sitemap'); $view->setLayout('navigator'); $view->setModel($model, true); // Push document object into the view. $view->assignRef('document', $document); $view->navigatorLinks(); } private function getDefaultSitemapId() { $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('id'); $query->from($db->quoteName('#__xmap_sitemap')); $query->where('is_default=1'); $db->setQuery($query); return $db->loadResult(); } }PK>\6install/index.htmlnuW+APK>\:{99 install/uninstall.postgresql.sqlnuW+Adrop table "#__xmap_items"; drop table "#__xmap_sitemap";PK>\0k99install/uninstall.utf8.sqlnuW+Adrop table `#__xmap_items`; drop table `#__xmap_sitemap`;PK>\jttinstall/install.utf8.sqlnuW+ACREATE TABLE IF NOT EXISTS `#__xmap_sitemap` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `alias` varchar(255) DEFAULT NULL, `introtext` text DEFAULT NULL, `metadesc` text DEFAULT NULL, `metakey` text DEFAULT NULL, `attribs` text DEFAULT NULL, `selections` text DEFAULT NULL, `excluded_items` text DEFAULT NULL, `is_default` int(1) DEFAULT 0, `state` int(2) DEFAULT NULL, `access` int DEFAULT NULL, `created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP, `count_xml` int(11) DEFAULT NULL, `count_html` int(11) DEFAULT NULL, `views_xml` int(11) DEFAULT NULL, `views_html` int(11) DEFAULT NULL, `lastvisit_xml` int(11) DEFAULT NULL, `lastvisit_html` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE IF NOT EXISTS `#__xmap_items` ( `uid` varchar(100) NOT NULL, `itemid` int(11) NOT NULL, `view` varchar(10) NOT NULL, `sitemap_id` int(11) NOT NULL, `properties` varchar(300) DEFAULT NULL, PRIMARY KEY (`uid`,`itemid`,`view`,`sitemap_id`), KEY `uid` (`uid`,`itemid`), KEY `view` (`view`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8PK>\+X1install/install.postgresql.sqlnuW+ACREATE TABLE "#__xmap_sitemap" ( "id" serial NOT NULL, "title" character varying(255) DEFAULT NULL, "alias" character varying(255) DEFAULT NULL, "introtext" text DEFAULT NULL, "metadesc" text DEFAULT NULL, "metakey" text DEFAULT NULL, "attribs" text DEFAULT NULL, "selections" text DEFAULT NULL, "excluded_items" text DEFAULT NULL, "is_default" integer DEFAULT 0, "state" integer DEFAULT NULL, "access" integer DEFAULT NULL, "created" timestamp without time zone DEFAULT '1970-01-01 00:00:00' NOT NULL, "count_xml" integer DEFAULT NULL, "count_html" integer DEFAULT NULL, "views_xml" integer DEFAULT NULL, "views_html" integer DEFAULT NULL, "lastvisit_xml" integer DEFAULT NULL, "lastvisit_html" integer DEFAULT NULL, PRIMARY KEY ("id") ); CREATE TABLE "#__xmap_items" ( "uid" character varying(100) NOT NULL, "itemid" integer NOT NULL, "view" character varying(10) NOT NULL, "sitemap_id" integer NOT NULL, "properties" varchar(300) DEFAULT NULL, PRIMARY KEY ("uid","itemid","view","sitemap_id") ); CREATE INDEX "#__xmap_items_idx_uid" on "#__xmap_items" ("uid", "itemid"); CREATE INDEX "#__xmap_items_idx_view" on "#__xmap_items" ("view"); PK>\)install/.htaccessnuW+A Order allow,deny Deny from all PK>\7?.views/sitemaps/view.html.phpnuW+AgetLayout() !== 'modal') { XmapHelper::addSubmenu('sitemaps'); } $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $version = new JVersion; $message = $this->get('ExtensionsMessage'); if ( $message ) { JFactory::getApplication()->enqueueMessage($message); } // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } // We don't need toolbar in the modal window. if ($this->getLayout() !== 'modal') { if (version_compare($version->getShortVersion(), '3.0.0', '<')) { $tpl = 'legacy'; } $this->addToolbar(); } parent::display($tpl); } /** * Display the toolbar * * @access private */ protected function addToolbar() { $state = $this->get('State'); $doc = JFactory::getDocument(); $version = new JVersion; JToolBarHelper::addNew('sitemap.add'); JToolBarHelper::custom('sitemap.edit', 'edit.png', 'edit_f2.png', 'JTOOLBAR_EDIT', true); $doc->addStyleDeclaration('.icon-48-sitemap {background-image: url(components/com_xmap/images/sitemap-icon.png);}'); JToolBarHelper::title(JText::_('XMAP_SITEMAPS_TITLE'), 'sitemap.png'); JToolBarHelper::custom('sitemaps.publish', 'publish.png', 'publish_f2.png', 'JTOOLBAR_Publish', true); JToolBarHelper::custom('sitemaps.unpublish', 'unpublish.png', 'unpublish_f2.png', 'JTOOLBAR_UNPUBLISH', true); if (version_compare($version->getShortVersion(), '3.0.0', '>=')) { JToolBarHelper::custom('sitemaps.setdefault', 'featured.png', 'featured_f2.png', 'XMAP_TOOLBAR_SET_DEFAULT', true); } else { JToolBarHelper::custom('sitemaps.setdefault', 'default.png', 'default_f2.png', 'XMAP_TOOLBAR_SET_DEFAULT', true); } if ($state->get('filter.published') == -2) { JToolBarHelper::deleteList('', 'sitemaps.delete','JTOOLBAR_DELETE'); } else { JToolBarHelper::trash('sitemaps.trash','JTOOLBAR_TRASH'); } JToolBarHelper::divider(); if (class_exists('JHtmlSidebar')){ JHtmlSidebar::addFilter( JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions'), 'value', 'text', $this->state->get('filter.published'), true) ); JHtmlSidebar::addFilter( JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access')) ); $this->sidebar = JHtmlSidebar::render(); } } } PK>\)views/sitemaps/.htaccessnuW+A Order allow,deny Deny from all PK>\6views/sitemaps/index.htmlnuW+APK>\n ##&views/sitemaps/tmpl/default_legacy.phpnuW+Aitems); $baseUrl = JUri::root(); $version = new JVersion; ?>
items as $i => $item) : $now = JFactory::getDate()->toUnix(); if ( !$item->lastvisit_html ) { $htmlDate = JText::_('Date_Never'); }elseif ( $item->lastvisit_html > ($now-3600)) { // Less than one hour $htmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_html)/60)); } elseif ( $item->lastvisit_html > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_html)/3600 ); $htmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_html)/60); } elseif ( $item->lastvisit_html > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_html)/86400); $htmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_html)/3600)); } else { $date = new JDate($item->lastvisit_html); $htmlDate = $date->format('Y-m-d H:i'); } if ( !$item->lastvisit_xml ) { $xmlDate = JText::_('Date_Never'); } elseif ( $item->lastvisit_xml > ($now-3600)) { // Less than one hour $xmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_xml)/60)); } elseif ( $item->lastvisit_xml > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_xml)/3600 ); $xmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_xml)/60); } elseif ( $item->lastvisit_xml > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_xml)/86400); $xmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_xml)/3600)); } else { $date = new JDate($item->lastvisit_xml); $xmlDate = $date->format('Y-m-d H:i'); } ?>
state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?>
()

state->get('list.direction'), $this->state->get('list.ordering')); ?>
pagination->getListFooter(); ?>
id); ?> escape($item->title); ?> is_default == 1) : ?> getShortVersion(), '3.0.0', '>=')): ?> <?php echo JText::_('Default'); ?> state): ?> [] [] []
(escape($item->alias); ?>)
state, $i, 'sitemaps.'); ?> escape($item->access_level); ?> count_html .' / '.$item->views_html. ' / ' . $htmlDate; ?> count_xml .' / '.$item->views_xml. ' / ' . $xmlDate; ?> id; ?>
PK>\views/sitemaps/tmpl/form.phpnuW+APK>\ETviews/sitemaps/tmpl/modal.phpnuW+Aitems); ?>
items as $i => $item) : $now = JFactory::getDate()->toUnix(); if ( !$item->lastvisit_html ) { $htmlDate = JText::_('Date_Never'); }elseif ( $item->lastvisit_html > ($now-3600)) { // Less than one hour $htmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_html)/60)); } elseif ( $item->lastvisit_html > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_html)/3600 ); $htmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_html)/60); } elseif ( $item->lastvisit_html > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_html)/86400); $htmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_html)/3600)); } else { $date = new JDate($item->lastvisit_html); $htmlDate = $date->toFormat('%Y-%m-%d %H:%M'); } if ( !$item->lastvisit_xml ) { $xmlDate = JText::_('Date_Never'); } elseif ( $item->lastvisit_xml > ($now-3600)) { // Less than one hour $xmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_xml)/60)); } elseif ( $item->lastvisit_xml > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_xml)/3600 ); $xmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_xml)/60); } elseif ( $item->lastvisit_xml > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_xml)/86400); $xmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_xml)/3600)); } else { $date = new JDate($item->lastvisit_xml); $xmlDate = $date->toFormat('%Y-%m-%d %H:%M'); } ?>
state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?>
()

state->get('list.direction'), $this->state->get('list.ordering')); ?>
pagination->getListFooter(); ?>
escape($item->title); ?> state, $i, 'sitemaps.'); ?> escape($item->access_level); ?> count_html .' / '.$item->views_html. ' / ' . $htmlDate; ?> count_xml .' / '.$item->views_xml. ' / ' . $xmlDate; ?> id; ?>
PK>\6views/sitemaps/tmpl/index.htmlnuW+APK>\)views/sitemaps/tmpl/.htaccessnuW+A Order allow,deny Deny from all PK>\o5%5%views/sitemaps/tmpl/default.phpnuW+Aitems); $baseUrl = JUri::root(); $version = new JVersion; ?>
sidebar)): ?>
sidebar; ?>
items as $i => $item) : $now = JFactory::getDate()->toUnix(); if ( !$item->lastvisit_html ) { $htmlDate = JText::_('Date_Never'); }elseif ( $item->lastvisit_html > ($now-3600)) { // Less than one hour $htmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_html)/60)); } elseif ( $item->lastvisit_html > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_html)/3600 ); $htmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_html)/60); } elseif ( $item->lastvisit_html > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_html)/86400); $htmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_html)/3600)); } else { $date = new JDate($item->lastvisit_html); $htmlDate = $date->format('Y-m-d H:i'); } if ( !$item->lastvisit_xml ) { $xmlDate = JText::_('Date_Never'); } elseif ( $item->lastvisit_xml > ($now-3600)) { // Less than one hour $xmlDate = JText::sprintf('Date_Minutes_Ago',intval(($now-$item->lastvisit_xml)/60)); } elseif ( $item->lastvisit_xml > ($now-86400)) { // Less than one day $hours = intval (($now-$item->lastvisit_xml)/3600 ); $xmlDate = JText::sprintf('Date_Hours_Minutes_Ago',$hours,($now-($hours*3600)-$item->lastvisit_xml)/60); } elseif ( $item->lastvisit_xml > ($now-259200)) { // Less than three days $days = intval(($now-$item->lastvisit_xml)/86400); $xmlDate = JText::sprintf('Date_Days_Hours_Ago',$days,intval(($now-($days*86400)-$item->lastvisit_xml)/3600)); } else { $date = new JDate($item->lastvisit_xml); $xmlDate = $date->format('Y-m-d H:i'); } ?>
state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?>
()

state->get('list.direction'), $this->state->get('list.ordering')); ?>
pagination->getListFooter(); ?>
id); ?> escape($item->title); ?> is_default == 1) : ?> getShortVersion(), '3.0.0', '>=')): ?> <?php echo JText::_('Default'); ?> state): ?> [] [] []
(escape($item->alias); ?>)
state, $i, 'sitemaps.'); ?> escape($item->access_level); ?> count_html .' / '.$item->views_html. ' / ' . $htmlDate; ?> count_xml .' / '.$item->views_xml. ' / ' . $xmlDate; ?> id; ?>
PK>\6views/index.htmlnuW+APK>\)views/.htaccessnuW+A Order allow,deny Deny from all PK>\vݞVVviews/sitemap/view.html.phpnuW+Astate = $this->get('State'); $this->item = $this->get('Item'); $this->form = $this->get('Form'); $version = new JVersion; // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } JHTML::stylesheet('administrator/components/com_xmap/css/xmap.css'); // Convert dates from UTC $offset = $app->getCfg('offset'); if (intval($this->item->created)) { $this->item->created = JHtml::date($this->item->created, '%Y-%m-%d %H-%M-%S', $offset); } $this->_setToolbar(); if (version_compare($version->getShortVersion(), '3.0.0', '<')) { $tpl = 'legacy'; } parent::display($tpl); JRequest::setVar('hidemainmenu', true); } /** * Display the view * * @access public */ function navigator($tpl = null) { require_once(JPATH_COMPONENT_SITE . '/helpers/xmap.php'); $app = JFactory::getApplication(); $this->state = $this->get('State'); $this->item = $this->get('Item'); # $menuItems = XmapHelper::getMenuItems($item->selections); # $extensions = XmapHelper::getExtensions(); // Check for errors. if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } JHTML::script('mootree.js', 'media/system/js/'); JHTML::stylesheet('mootree.css', 'media/system/css/'); $this->loadTemplate('class'); $displayer = new XmapNavigatorDisplayer($state->params, $this->item); parent::display($tpl); } function navigatorLinks($tpl = null) { require_once(JPATH_COMPONENT_SITE . '/helpers/xmap.php'); $link = urldecode(JRequest::getVar('link', '')); $name = JRequest::getCmd('e_name', ''); $Itemid = JRequest::getInt('Itemid'); $this->item = $this->get('Item'); $this->state = $this->get('State'); $menuItems = XmapHelper::getMenuItems($item->selections); $extensions = XmapHelper::getExtensions(); $this->loadTemplate('class'); $nav = new XmapNavigatorDisplayer($state->params, $item); $nav->setExtensions($extensions); $this->list = array(); // Show the menu list if (!$link && !$Itemid) { foreach ($menuItems as $menutype => &$menu) { $menu = new stdclass(); #$menu->id = 0; #$menu->menutype = $menutype; $node = new stdClass; $node->uid = "menu-" . $menutype; $node->menutype = $menutype; $node->ordering = $item->selections->$menutype->ordering; $node->priority = $item->selections->$menutype->priority; $node->changefreq = $item->selections->$menutype->changefreq; $node->browserNav = 3; $node->type = 'separator'; if (!$node->name = $nav->getMenuTitle($menutype, @$menu->module)) { $node->name = $menutype; } $node->link = '-menu-' . $menutype; $node->expandible = true; $node->selectable = false; //$node->name = $this->getMenuTitle($menutype,@$menu->module); // get the mod_mainmenu title from modules table $this->list[] = $node; } } else { $parent = new stdClass; if ($Itemid) { // Expand a menu Item $items = &JSite::getMenu(); $node = & $items->getItem($Itemid); if (isset($menuItems[$node->menutype])) { $parent->name = $node->title; $parent->id = $node->id; $parent->uid = 'itemid' . $node->id; $parent->link = $link; $parent->type = $node->type; $parent->browserNav = $node->browserNav; $parent->priority = $item->selections->{$node->menutype}->priority; $parent->changefreq = $item->selections->{$node->menutype}->changefreq; $parent->menutype = $node->menutype; $parent->selectable = false; $parent->expandible = true; } } else { $parent->id = 1; $parent->link = $link; } $this->list = $nav->expandLink($parent); } parent::display('links'); exit; } /** * Display the toolbar * * @access private */ function _setToolbar() { $user = JFactory::getUser(); $isNew = ($this->item->id == 0); JToolBarHelper::title(JText::_('XMAP_PAGE_' . ($isNew ? 'ADD_SITEMAP' : 'EDIT_SITEMAP')), 'article-add.png'); JToolBarHelper::apply('sitemap.apply', 'JTOOLBAR_APPLY'); JToolBarHelper::save('sitemap.save', 'JTOOLBAR_SAVE'); JToolBarHelper::save2new('sitemap.save2new'); if (!$isNew) { JToolBarHelper::save2copy('sitemap.save2copy'); } JToolBarHelper::cancel('sitemap.cancel', 'JTOOLBAR_CLOSE'); } } PK>\)views/sitemap/.htaccessnuW+A Order allow,deny Deny from all PK>\ "views/sitemap/tmpl/edit_legacy.phpnuW+A
form->getLabel('id'); ?> form->getInput('id'); ?> form->getLabel('title'); ?> form->getInput('title'); ?> form->getLabel('alias'); ?> form->getInput('alias'); ?> form->getLabel('state'); ?> form->getInput('state'); ?> form->getLabel('access'); ?> form->getInput('access'); ?>
form->getLabel('introtext'); ?>
form->getInput('introtext'); ?>
item->id, array('useCookie' => 1)); ?> form->getInput('selections'); ?> form->getFieldsets('attribs'); foreach ($fieldSets as $name => $fieldSet) : echo JHtml::_('sliders.panel', JText::_($fieldSet->label), $name . '-options'); if (isset($fieldSet->description) && trim($fieldSet->description)) : echo '

' . $this->escape(JText::_($fieldSet->description)) . '

'; endif; ?>
    form->getFieldset($name) as $field) : ?>
  • label; ?> input; ?>
form->getInput('is_default'); ?>
PK>\)views/sitemap/tmpl/.htaccessnuW+A Order allow,deny Deny from all PK>\JDviews/sitemap/tmpl/edit.phpnuW+A
form->getLabel('title'); ?>
form->getInput('title'); ?>
form->getLabel('alias'); ?>
form->getInput('alias'); ?>
form->getLabel('state'); ?>
form->getInput('state'); ?>
form->getLabel('access'); ?>
form->getInput('access'); ?>
form->getLabel('introtext'); ?>
form->getInput('introtext'); ?>
form->getInput('selections'); ?>
form->getFieldsets('attribs'); foreach ($fieldSets as $name => $fieldSet) : ?>
description) && trim($fieldSet->description)) : echo '

' . $this->escape(JText::_($fieldSet->description)) . '

'; endif; foreach ($this->form->getFieldset($name) as $field) : ?>
label; ?>
input; ?>
form->getInput('is_default'); ?>
PK>\V%__ views/sitemap/tmpl/navigator.phpnuW+AaddScriptDeclaration(' var tree; var autotext = \'\'; insertLink = function (){ var link = $(\'f_link\').get(\'value\'); var text = $(\'f_text\').get(\'value\'); var title = $(\'f_title\').get(\'value\'); var cssstyle = $(\'f_cssstyle\').get(\'value\'); var cssclass = $(\'f_cssclass\').get(\'value\'); if (link != \'\' && text != \'\') { var extra =\'\'; if (title != \'\') { extra = extra + \' title=\'+title.replace(\'"\',\'"\')+\'"\'; } if (cssclass != \'\') { extra = extra + \' class=\'+cssclass.replace(\'"\',\'"\')+\'"\'; } if (cssstyle != \'\') { extra = extra + \' style=\'+cssstyle.replace(\'"\',\'"\')+\'"\'; } var tag = ""+text+""; window.parent.jInsertEditorText(tag, "'.htmlspecialchars($name).'"); } window.parent.SqueezeBox.close(); }; window.addEvent("domready",function(){ tree = new MooTreeControl({ div: \'xmap-nav_tree\', mode: \'files\', grid: true, theme: \'../media/media/images/mootree.gif\', onSelect: function (node,state) { if (typeof node.data.link != \'undefined\' && node.data.selectable == \'true\') { document.adminForm.link.value = node.data.link; if (document.adminForm.text.value == autotext ) { document.adminForm.text.value = node.text; autotext = node.text; } } } },{ text: \'Home\', open: true }); tree.root.load(\'index.php?option=com_xmap&task=navigator-links&sitemap='.$this->item->id.'&e_name='.$name.'&tmpl=component\'); }); '); ?>
    PK>\6views/sitemap/tmpl/index.htmlnuW+APK>\33&views/sitemap/tmpl/navigator_class.phpnuW+A_list=array(); $this->view='navigator'; parent::__construct( $config, $sitemap); } function printNode( &$node ) { if (!isset($node->selectable )) { $node->selectable=true; } // For extentions that doesn't set this property as this is new in Xmap 1.2.3 if (!isset($node->expandible )) { $node->expandible = true; } if ( empty($this->_list[$node->uid]) ) { // Avoid duplicated items $this->_list[$node->uid] = $node; } return false; } function &expandLink(&$parent) { $items = &JSite::getMenu(); $extensions = &$this->_extensions; $rows = null; if (strpos($parent->link,'-menu-') === 0 ) { $menutype = str_replace('-menu-','',$parent->link); // Get Menu Items $rows = $items->getItems('menutype', $menutype); } elseif ($parent->id) { $rows = $items->getItems('parent_id', $parent->id); } if ( $rows ) { foreach ($rows as $item) { if ($item->parent_id == $parent->id) { $node = new stdclass; $node->name = $item->title; $node->id = $item->id; $node->uid = 'itemid'.$item->id; $node->link = $item->link; $node->expandible = true; $node->selectable=true; // Prepare the node link XmapHelper::prepareMenuItem($node); if ( $item->home ) { $node->link = JURI::root(); } elseif (substr($item->link,0,9) == 'index.php' && $item->type != 'url' ) { if ($item->type == 'menulink') {// For Joomla 1.5 SEF compatibility $params = new JParameter($item->params); $node->link = 'index.php?Itemid=' . $params->get('menu_item'); } elseif ( strpos($item->link,'Itemid=') === FALSE ){ $node->link = 'index.php?Itemid=' . $node->id; } } elseif ($item->type == 'separator') { $node->selectable=false; } $this->printNode($node); // Add to the internal list } } } if ($parent->id) { $option = null; if ( preg_match('#^/?index.php.*option=(com_[^&]+)#',$parent->link,$matches) ) { $option = $matches[1]; } $Itemid = JRequest::getInt('Itemid'); if (!$option && $Itemid) { $item = $items->getItem($Itemid); $link_query = parse_url( $item->link ); parse_str( html_entity_decode($link_query['query']), $link_vars); $option = JArrayHelper::getValue($link_vars,'option',''); if ( $option ) { $parent->link = $item->link; } } if ( $option ) { if ( !empty($extensions[$option]) ) { $parent->uid = $option; $className = 'xmap_'.$option; $result = call_user_func_array(array($className, 'getTree'),array(&$this,&$parent,$extensions[$option]->params)); } } } return $this->_list;; } function &getParam($arr, $name, $def) { $var = JArrayHelper::getValue( $arr, $name, $def, '' ); return $var; } } PK>\1I))&views/sitemap/tmpl/navigator_links.phpnuW+A list as $node) { $load = 'index.php?option=com_xmap&task=navigator-links&sitemap='.$this->item->id.'&e_name='.$name.(isset($node->id)?'&Itemid='.$node->id:'').(isset($node->link)?'&link='.urlencode($node->link):'').'&tmpl=component'; ?> expandible?" openicon=\"_open\" icon=\"_closed\" load=\"$load\"":' icon="_doc"'); ?> uid="uid; ?>" link="link); ?>" selectable="selectable?'true':'false'); ?>" /> PK>\6views/sitemap/index.htmlnuW+APK>\6helpers/html/index.htmlnuW+APK>\F0fb11helpers/html/xmap.phpnuW+A\)helpers/html/.htaccessnuW+A Order allow,deny Deny from all PK>\6helpers/index.htmlnuW+APK>\)helpers/.htaccessnuW+A Order allow,deny Deny from all PK>\1Qhelpers/xmap.phpnuW+AgetShortVersion(), '3.0.0', '<')) { JSubMenuHelper::addEntry( JText::_('Xmap_Submenu_Sitemaps'), 'index.php?option=com_xmap', $vName == 'sitemaps' ); JSubMenuHelper::addEntry( JText::_('Xmap_Submenu_Extensions'), 'index.php?option=com_plugins&view=plugins&filter_folder=xmap', $vName == 'extensions'); } else { JHtmlSidebar::addEntry( JText::_('Xmap_Submenu_Sitemaps'), 'index.php?option=com_xmap', $vName == 'sitemaps' ); JHtmlSidebar::addEntry( JText::_('Xmap_Submenu_Extensions'), 'index.php?option=com_plugins&view=plugins&filter_folder=xmap', $vName == 'extensions'); } } } PK>\դ-- css/xmap.cssnuW+A.xmap-menu-options { border-bottom: 1px solid #CCC; padding:10px; } .xmap-menu-options label { cursor:move; } .xmap-menu-options input, .xmap-menu-options select { margin: 5px 5px 2px 0px; } ul.ul_sortable { list-style:none; margin:0; padding:0; } ul.ul_sortable li { cursor:move; background-color: #eee; margin:5px; padding: 5px; } ul.ul_sortable li label.menu_label { font-weight: bold; display: inline-block; margin-bottom: 0px; } ul.ul_sortable input[type="checkbox"] { margin: 0 3px 0 3px; } PK>\) css/.htaccessnuW+A Order allow,deny Deny from all PK>\6css/index.htmlnuW+APK>\6tables/index.htmlnuW+APK>\'<  tables/sitemap.phpnuW+AloadArray($array['attribs']); $array['attribs'] = $registry->toString(); } if (isset($array['selections']) && is_array($array['selections'])) { $selections = array(); foreach ($array['selections'] as $i => $menu) { $selections[$menu] = array( 'priority' => $array['selections_priority'][$i], 'changefreq' => $array['selections_changefreq'][$i], 'ordering' => $i ); } $registry = new JRegistry(); $registry->loadArray($selections); $array['selections'] = $registry->toString(); } if (isset($array['metadata']) && is_array($array['metadata'])) { $registry = new JRegistry(); $registry->loadArray($array['metadata']); $array['metadata'] = $registry->toString(); } return parent::bind($array, $ignore); } /** * Overloaded check function * * @access public * @return boolean * @see JTable::check * @since 2.0 */ function check() { if (empty($this->title)) { $this->setError(JText::_('Sitemap must have a title')); return false; } if (empty($this->alias)) { $this->alias = $this->title; } $this->alias = JApplication::stringURLSafe($this->alias); if (trim(str_replace('-', '', $this->alias)) == '') { $datenow = &JFactory::getDate(); $this->alias = $datenow->format("Y-m-d-H-i-s"); } return true; } /** * Overriden JTable::store to set modified data and user id. * * @param boolean True to update fields even if they are null. * @return boolean True on success. * @since 2.0 */ public function store($updateNulls = false) { $date = JFactory::getDate(); if (!$this->id) { $this->created = $date->toSql(); } return parent::store($updateNulls); } /** * Method to set the publishing state for a row or list of rows in the database * table. * * @param mixed An optional array of primary key values to update. If not * set the instance property value is used. * @param integer The publishing state. eg. [0 = unpublished, 1 = published] * @param integer The user id of the user performing the operation. * @return boolean True on success. * @since 2.0 */ public function publish($pks = null, $state = 1, $userId = 0) { // Initialize variables. $k = $this->_tbl_key; // Sanitize input. JArrayHelper::toInteger($pks); $userId = (int) $userId; $state = (int) $state; // If there are no primary keys set check to see if the instance key is set. if (empty($pks)) { if ($this->$k) { $pks = array($this->$k); } // Nothing to set publishing state on, return false. else { $this->setError(JText::_('No_Rows_Selected')); return false; } } // Build the WHERE clause for the primary keys. $where = $k . '=' . implode(' OR ' . $k . '=', $pks); // Update the publishing state for rows with the given primary keys. $query = $this->_db->getQuery(true) ->update($this->_db->quoteName('#__xmap_sitemap')) ->set($this->_db->quoteName('state').' = '. (int) $state) ->where($where); $this->_db->setQuery($query); $this->_db->query(); // Check for a database error. if ($this->_db->getErrorNum()) { $this->setError($this->_db->getErrorMsg()); return false; } // If the JTable instance value is in the list of primary keys that were set, set the instance. if (in_array($this->$k, $pks)) { $this->state = $state; } $this->setError(''); return true; } } PK>\)tables/.htaccessnuW+A Order allow,deny Deny from all PK>\6p manifest.xmlnuW+A com_xmap 2011-04-10 Guillermo Vargas This component is released under the GNU/GPL License guille@vargas.co.cr http://joomla.vargas.co.cr 2.3.3 GNU/GPL Xmap - Sitemap Generator for Joomla! install/install.utf8.sql install/install.postgresql.sql install/uninstall.utf8.sql install/uninstall.postgresql.sql controller.php displayer.php index.html metadata.xml router.php xmap.php assets controllers helpers models views en-GB.com_xmap.ini es-ES.com_xmap.ini fa-IR.com_xmap.ini cs-CZ.com_xmap.ini nl-NL.com_xmap.ini ru-RU.com_xmap.ini images COM_XMAP_TITLE xmap.php controller.php index.html LICENSE.txt css elements images install helpers controllers tables views models en-GB/en-GB.com_xmap.ini en-GB/en-GB.com_xmap.sys.ini es-ES/es-ES.com_xmap.ini es-ES/es-ES.com_xmap.sys.ini fa-IR/fa-IR.com_xmap.ini fa-IR/fa-IR.com_xmap.sys.ini cs-CZ/cs-CZ.com_xmap.ini cs-CZ/cs-CZ.com_xmap.sys.ini nl-NL/nl-NL.com_xmap.ini nl-NL/nl-NL.com_xmap.sys.ini ru-RU/ru-RU.com_xmap.ini ru-RU/ru-RU.com_xmap.sys.ini images https://raw.github.com/guilleva/Xmap/master/xmap-update.xml PK>\=IM++controllers/sitemap.phpnuW+Aauthorise('core.edit', 'com_xmap.sitemap.'.$recordId); } }PK>\( HHcontrollers/sitemaps.phpnuW+AregisterTask('unpublish', 'publish'); $this->registerTask('trash', 'publish'); $this->registerTask('unfeatured', 'featured'); } /** * Method to toggle the default sitemap. * * @return void * @since 2.0 */ function setDefault() { // Check for request forgeries JRequest::checkToken() or die('Invalid Token'); // Get items to publish from the request. $cid = JRequest::getVar('cid', 0, '', 'array'); $id = @$cid[0]; if (!$id) { JError::raiseWarning(500, JText::_('Select an item to set as default')); } else { // Get the model. $model = $this->getModel(); // Publish the items. if (!$model->setDefault($id)) { JError::raiseWarning(500, $model->getError()); } } $this->setRedirect('index.php?option=com_xmap&view=sitemaps'); } /** * Proxy for getModel. * * @param string $name The name of the model. * @param string $prefix The prefix for the PHP class name. * * @return JModel * @since 2.0 */ public function getModel($name = 'Sitemap', $prefix = 'XmapModel', $config = array('ignore_request' => true)) { $model = parent::getModel($name, $prefix, $config); return $model; } }PK>\)controllers/.htaccessnuW+A Order allow,deny Deny from all PK>\6controllers/index.htmlnuW+APK>\PEE LICENSE.txtnuW+AGNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. PK>\-models/fields/xmapmenus.phpnuW+AgetQuery(true); //$currentMenus = array_keys(get_object_vars($this->value)); $currentMenus = array(); $query->select('menutype As value, title As text'); $query->from('#__menu_types AS a'); $query->order('a.title'); // Get the options. $db->setQuery($query); // echo $db->getQuery(); $menus = $db->loadObjectList('value'); $options = array(); // Add the current sitemap menus in the defined order to the list foreach ($currentMenus as $menutype) { if (!empty($menus[$menutype])) { $options[] = $menus[$menutype]; } } // Add the rest of the menus to the list (if any) foreach ($menus as $menutype => $menu) { if (!in_array($menutype, $currentMenus)) { $options[] = $menu; } } // Check for a database error. if ($db->getErrorNum()) { JError::raiseWarning(500, $db->getErrorMsg()); } $options = array_merge( parent::getOptions(), $options ); return $options; } /** * Method to get the field input. * * @return string The field input. */ protected function getInput() { $disabled = $this->element['disabled'] == 'true' ? true : false; $readonly = $this->element['readonly'] == 'true' ? true : false; $attributes = ' '; $type = 'radio'; if ($v = $this->element['size']) { $attributes .= 'size="' . $v . '" '; } if ($v = $this->element['class']) { $attributes .= 'class="' . $v . '" '; } else { $attributes .= 'class="inputbox" '; } if ($m = $this->element['multiple']) { $type = 'checkbox'; } $value = $this->value; if (!is_array($value)) { // Convert the selections field to an array. $registry = new JRegistry; $registry->loadString($value); $value = $registry->toArray(); } $doc = JFactory::getDocument(); $doc->addScriptDeclaration(" window.addEvent('domready',function(){ \$\$('div.xmap-menu-options select').addEvent('mouseover',function(event){xmapMenusSortable.detach();}) \$\$('div.xmap-menu-options select').addEvent('mouseout',function(event){xmapMenusSortable.attach();}) var xmapMenusSortable = new Sortables(\$('ul_" . $this->inputId . "'),{ clone:true, revert: true, preventDefault: true, onStart: function(el) { el.setStyle('background','#bbb'); }, onComplete: function(el) { el.setStyle('background','#eee'); } }); });"); if ($disabled || $readonly) { $attributes .= 'disabled="disabled"'; } $options = (array) $this->_getOptions(); $return = '
      '; // Create a regular list. $i = 0; //Lets show the enabled menus first $this->currentItems = array_keys($value); // Sort the menu options uasort($options, array($this, 'myCompare')); foreach ($options as $option) { $prioritiesName = preg_replace('/(jform\[[^\]]+)(\].*)/', '$1_priority$2', $this->name); $changefreqName = preg_replace('/(jform\[[^\]]+)(\].*)/', '$1_changefreq$2', $this->name); $selected = (isset($value[$option->value]) ? ' checked="checked"' : ''); $i++; $return .= ''; } $return .= "
    "; return $return; } public function myCompare($a, $b) { $indexA = array_search($a->value, $this->currentItems); $indexB = array_search($b->value, $this->currentItems); if ($indexA === $indexB && $indexA !== false) { return 0; } if ($indexA === false && $indexA === $indexB) { return ($a->value < $b->value) ? -1 : 1; } if ($indexA === false) { return 1; } if ($indexB === false) { return -1; } return ($indexA < $indexB) ? -1 : 1; } } PK>\6models/fields/index.htmlnuW+APK>\)models/fields/.htaccessnuW+A Order allow,deny Deny from all PK>\6models/fields/modal/index.htmlnuW+APK>\SB B models/fields/modal/sitemaps.phpnuW+Avalue) { $db->setQuery( 'SELECT title' . ' FROM #__xmap_sitemap' . ' WHERE id = ' . (int) $this->value ); $title = $db->loadResult(); if ($error = $db->getErrorMsg()) { JError::raiseWarning(500, $error); } } else { $title = ''; } if (empty($title)) { $title = JText::_('COM_XMAP_SELECT_AN_SITEMAP'); } $doc->addScriptDeclaration( "function jSelectSitemap_" . $this->id . "(id, title, object) { $('" . $this->id . "_id').value = id; $('" . $this->id . "_name').value = title; SqueezeBox.close(); }" ); $link = 'index.php?option=com_xmap&view=sitemaps&layout=modal&tmpl=component&function=jSelectSitemap_' . $this->id; JHTML::_('behavior.modal', 'a.modal'); $html = ''; $html .= "\n" . ''; if(version_compare(JVERSION,'3.0.0','ge')) $html .= ' ' . JText::_('COM_XMAP_CHANGE_SITEMAP_BUTTON') . '' . "\n"; else $html .= '' . "\n"; $html .= ''; $html .= "\n" . ''; return $html; } }PK>\)models/fields/modal/.htaccessnuW+A Order allow,deny Deny from all PK>\ ^xxmodels/sitemaps.phpnuW+Acontext .= '.'.$layout; } $access = $this->getUserStateFromRequest($this->context.'.filter.access', 'filter_access', 0, 'int'); $this->setState('filter.access', $access); $published = $this->getUserStateFromRequest($this->context.'.filter.published', 'filter_published', ''); $this->setState('filter.published', $published); $search = $this->getUserStateFromRequest($this->context.'.filter.search', 'filter_search'); $this->setState('filter.search', $search); // List state information. parent::populateState('a.title', 'asc'); } /** * Method to get a store id based on model configuration state. * * This is necessary because the model is used by the component and * different modules that might need different sets of data or different * ordering requirements. * * @param string $id A prefix for the store id. * * @return string A store id. */ protected function getStoreId($id = '') { // Compile the store id. $id .= ':'.$this->getState('filter.search'); $id .= ':'.$this->getState('filter.access'); $id .= ':'.$this->getState('filter.published'); return parent::getStoreId($id); } /** * @param boolean True to join selected foreign information * * @return string */ protected function getListQuery($resolveFKs = true) { $db = $this->getDbo(); // Create a new query object. $query = $db->getQuery(true); // Select the required fields from the table. $query->select( $this->getState( 'list.select', 'a.*') ); $query->from('#__xmap_sitemap AS a'); // Join over the asset groups. $query->select('ag.title AS access_level'); $query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access'); // Filter by access level. if ($access = $this->getState('filter.access')) { $query->where('a.access = ' . (int) $access); } // Filter by published state $published = $this->getState('filter.published'); if (is_numeric($published)) { $query->where('a.state = ' . (int) $published); } else if ($published === '') { $query->where('(a.state = 0 OR a.state = 1)'); } // Filter by search in title. $search = $this->getState('filter.search'); if (!empty($search)) { if (stripos($search, 'id:') === 0) { $query->where('a.id = '.(int) substr($search, 3)); } else { $search = $db->Quote('%'.$db->escape($search, true).'%'); $query->where('(a.title LIKE '.$search.' OR a.alias LIKE '.$search.')'); } } // Add the list ordering clause. $query->order($db->escape($this->state->get('list.ordering', 'a.title')) . ' ' . $db->escape($this->state->get('list.direction', 'ASC'))); //echo nl2br(str_replace('#__','jos_',$query)); return $query; } public function getExtensionsMessage() { $db = $this->getDbo(); $query = $db->getQuery(true); $query->select('e.*'); $query->from($db->quoteName('#__extensions'). 'AS e'); $query->join('INNER', '#__extensions AS p ON e.element=p.element and p.enabled=0 and p.type=\'plugin\' and p.folder=\'xmap\''); $query->where('e.type=\'component\' and e.enabled=1'); $db->setQuery($query); $extensions = $db->loadObjectList(); if ( count($extensions) ) { $sep = $extensionsNameList = ''; foreach ($extensions as $extension) { $extensionsNameList .= "$sep$extension->element"; $sep = ', '; } return JText::sprintf('XMAP_MESSAGE_EXTENSIONS_DISABLED',$extensionsNameList); } else { return ""; } } } PK>\Wzzmodels/sitemap.phpnuW+A_item = 'sitemap'; $this->_option = 'com_xmap'; } /** * Method to auto-populate the model state. */ protected function _populateState() { $app = JFactory::getApplication('administrator'); // Load the User state. if (!($pk = (int) $app->getUserState('com_xmap.edit.sitemap.id'))) { $pk = (int) JRequest::getInt('id'); } $this->setState('sitemap.id', $pk); // Load the parameters. $params = JComponentHelper::getParams('com_xmap'); $this->setState('params', $params); } /** * Returns a Table object, always creating it. * * @param type The table type to instantiate * @param string A prefix for the table class name. Optional. * @param array Configuration array for model. Optional. * @return XmapTableSitemap A database object */ public function getTable($type = 'Sitemap', $prefix = 'XmapTable', $config = array()) { return JTable::getInstance($type, $prefix, $config); } /** * Method to get a single record. * * @param integer The id of the primary key. * * @return mixed Object on success, false on failure. */ public function getItem($pk = null) { // Initialise variables. $pk = (!empty($pk)) ? $pk : (int)$this->getState('sitemap.id'); $false = false; // Get a row instance. $table = $this->getTable(); // Attempt to load the row. $return = $table->load($pk); // Check for a table object error. if ($return === false && $table->getError()) { $this->setError($table->getError()); return $false; } // Prime required properties. if (empty($table->id)) { // Prepare data for a new record. } // Convert to the JObject before adding other data. $value = $table->getProperties(1); $value = JArrayHelper::toObject($value, 'JObject'); // Convert the params field to an array. $registry = new JRegistry; $registry->loadString($table->attribs); $value->attribs = $registry->toArray(); return $value; } /** * Method to get the record form. * * @param array $data Data for the form. * @param boolean $loadData True if the form is to load its own data (default case), false if not. * @return mixed A JForm object on success, false on failure * @since 2.0 */ public function getForm($data = array(), $loadData = true) { // Get the form. $form = $this->loadForm('com_xmap.sitemap', 'sitemap', array('control' => 'jform', 'load_data' => $loadData)); if (empty($form)) { return false; } return $form; } /** * Method to get the data that should be injected in the form. * * @return mixed The data for the form. * @since 1.6 */ protected function loadFormData() { // Check the session for previously entered form data. $data = JFactory::getApplication()->getUserState('com_xmap.edit.sitemap.data', array()); if (empty($data)) { $data = $this->getItem(); } return $data; } /** * Method to save the form data. * * @param array The form data. * @return boolean True on success. * @since 1.6 */ public function save($data) { // Initialise variables; $dispatcher = JDispatcher::getInstance(); $table = $this->getTable(); $pk = (!empty($data['id'])) ? $data['id'] : (int)$this->getState('sitemap.id'); $isNew = true; // Load the row if saving an existing record. if ($pk > 0) { $table->load($pk); $isNew = false; } // Bind the data. if (!$table->bind($data)) { $this->setError(JText::sprintf('JERROR_TABLE_BIND_FAILED', $table->getError())); return false; } // Prepare the row for saving $this->_prepareTable($table); // Check the data. if (!$table->check()) { $this->setError($table->getError()); return false; } if (!$table->is_default) { // Check if there is no default sitemap. Then, set it as default if not $result = $this->getDefaultSitemapId(); if (!$result) { $table->is_default=1; } } // Store the data. if (!$table->store()) { $this->setError($table->getError()); return false; } if ($table->is_default) { $query = $this->_db->getQuery(true) ->update($this->_db->quoteName('#__xmap_sitemap')) ->set($this->_db->quoteName('is_default').' = 0') ->where($this->_db->quoteName('id').' <> '.$table->id); $this->_db->setQuery($query); if (!$this->_db->query()) { $this->setError($table->_db->getErrorMsg()); return false; } } // Clean the cache. $cache = JFactory::getCache('com_xmap'); $cache->clean(); $this->setState('sitemap.id', $table->id); return true; } /** * Prepare and sanitise the table prior to saving. */ protected function _prepareTable(&$table) { // TODO. } function _orderConditions($table = null) { $condition = array(); return $condition; } function setDefault($id) { $table = $this->getTable(); if ($table->load($id)) { $db = JFactory::getDbo(); $query = $db->getQuery(true) ->update($db->quoteName('#__xmap_sitemap')) ->set($db->quoteName('is_default').' = 0') ->where($db->quoteName('id').' <> '.$table->id); $this->_db->setQuery($query); if (!$this->_db->query()) { $this->setError($table->_db->getErrorMsg()); return false; } $table->is_default = 1; $table->store(); // Clean the cache. $cache = JFactory::getCache('com_xmap'); $cache->clean(); return true; } } /** * Override to avoid warnings * */ public function checkout($pk = null) { return true; } private function getDefaultSitemapId() { $db = JFactory::getDBO(); $query = $db->getQuery(true); $query->select('id'); $query->from($db->quoteName('#__xmap_sitemap')); $query->where('is_default=1'); $db->setQuery($query); return $db->loadResult(); } }PK>\)models/.htaccessnuW+A Order allow,deny Deny from all PK>\9cmodels/forms/extension.xmlnuW+A
    PK>\)models/forms/.htaccessnuW+A Order allow,deny Deny from all PK>\6models/forms/index.htmlnuW+APK>\$y$$models/forms/sitemap.xmlnuW+A
    PK>\6models/index.htmlnuW+APK>\((images/xmap-favicon.pngnuW+APK>\t oimages/sitemap-icon.pngnuW+APK>\)images/.htaccessnuW+APK>\6`images/index.htmlnuW+APK>\wnxmap.phpnuW+APK>\)  .htaccessnuW+APK>\6 K index.htmlnuW+APK>\6 elements/index.htmlnuW+APK>\~~ elements/sitemap.phpnuW+APK>\)elements/.htaccessnuW+APK>\O~Acontroller.phpnuW+APK>\6\install/index.htmlnuW+APK>\:{99 install/uninstall.postgresql.sqlnuW+APK>\0k99E install/uninstall.utf8.sqlnuW+APK>\jtt install/install.utf8.sqlnuW+APK>\+X1%install/install.postgresql.sqlnuW+APK>\)}*install/.htaccessnuW+APK>\7?.=+views/sitemaps/view.html.phpnuW+APK>\)`:views/sitemaps/.htaccessnuW+APK>\6';views/sitemaps/index.htmlnuW+APK>\n ##&;views/sitemaps/tmpl/default_legacy.phpnuW+APK>\_views/sitemaps/tmpl/form.phpnuW+APK>\ET%`views/sitemaps/tmpl/modal.phpnuW+APK>\6}views/sitemaps/tmpl/index.htmlnuW+APK>\)]~views/sitemaps/tmpl/.htaccessnuW+APK>\o5%5%)views/sitemaps/tmpl/default.phpnuW+APK>\6views/index.htmlnuW+APK>\) views/.htaccessnuW+APK>\vݞVVɥviews/sitemap/view.html.phpnuW+APK>\)jviews/sitemap/.htaccessnuW+APK>\ "0views/sitemap/tmpl/edit_legacy.phpnuW+APK>\)Vviews/sitemap/tmpl/.htaccessnuW+APK>\JD!views/sitemap/tmpl/edit.phpnuW+APK>\V%__ views/sitemap/tmpl/navigator.phpnuW+APK>\6views/sitemap/tmpl/index.htmlnuW+APK>\33&.views/sitemap/tmpl/navigator_class.phpnuW+APK>\1I))&views/sitemap/tmpl/navigator_links.phpnuW+APK>\66views/sitemap/index.htmlnuW+APK>\6helpers/html/index.htmlnuW+APK>\F0fb11helpers/html/xmap.phpnuW+APK>\)whelpers/html/.htaccessnuW+APK>\6<helpers/index.htmlnuW+APK>\)helpers/.htaccessnuW+APK>\1Q\helpers/xmap.phpnuW+APK>\դ-- css/xmap.cssnuW+APK>\) css/.htaccessnuW+APK>\6css/index.htmlnuW+APK>\6tables/index.htmlnuW+APK>\'<  etables/sitemap.phpnuW+APK>\)3tables/.htaccessnuW+APK>\6p s4manifest.xmlnuW+APK>\=IM++Ccontrollers/sitemap.phpnuW+APK>\( HHHcontrollers/sitemaps.phpnuW+APK>\)Pcontrollers/.htaccessnuW+APK>\6rQcontrollers/index.htmlnuW+APK>\PEE QLICENSE.txtnuW+APK>\-models/fields/xmapmenus.phpnuW+APK>\6models/fields/index.htmlnuW+APK>\)models/fields/.htaccessnuW+APK>\6models/fields/modal/index.htmlnuW+APK>\SB B Pmodels/fields/modal/sitemaps.phpnuW+APK>\)models/fields/modal/.htaccessnuW+APK>\ ^xxmodels/sitemaps.phpnuW+APK>\Wzzimodels/sitemap.phpnuW+APK>\)%models/.htaccessnuW+APK>\9cmodels/forms/extension.xmlnuW+APK>\)#models/forms/.htaccessnuW+APK>\6models/forms/index.htmlnuW+APK>\$y$$Mmodels/forms/sitemap.xmlnuW+APK>\6B#models/index.htmlnuW+APKFF#