AAAAhome/academiac/www/templates/atomic/html/mod_search/default.php000064400000003251151371434320020672 0ustar00
'; if ($button) : if ($imagebutton) : $button = ''; else : $button = ''; endif; endif; switch ($button_pos) : case 'top' : $button = $button.'
'; $output = $button.$output; break; case 'bottom' : $button = '
'.$button; $output = $output.$button; break; case 'right' : $output = $output.$button; break; case 'left' : default : $output = $button.$output; break; endswitch; echo $output; ?>
home/academiac/www/templates/atomic/html/mod_custom/default.php000064400000000473151371434510020743 0ustar00 content;?> home/academiac/www/templates/ideas/html/mod_menu/default.php000060400000012767151371441430020212 0ustar00get('tag_id') != NULL) ? ' id="' . $params->get('tag_id') . '"' : ''; if (isset($attribs['name']) && $attribs['name'] == 'position-1') { $menutype = 'horizontal'; $start = $params->get('startLevel'); // render subitems or not. $subitems = $GLOBALS['artx_settings']['menu']['show_submenus'] && 1 == $params->get('showAllChildren'); // true - skip current node, false - render current node. $skip = false; echo '', $limit - $item->level + $item->level_diff); $skip = false; } } continue; } $class = 'item-' . $item->id; $class .= $item->id == $active_id ? ' current' : ''; $class .= ('alias' == $item->type && in_array($item->params->get('aliasoptions'), $path) || in_array($item->id, $path)) ? ' active' : ''; $class .= $item->deeper ? ' deeper' : ''; $class .= $item->parent ? ' parent' : ''; echo '
  • '; // Render the menu item. switch ($item->type) { case 'separator': case 'url': case 'component': require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type); break; default: require JModuleHelper::getLayoutPath('mod_menu', 'default_url'); break; } if ($item->deeper) { if (!$subitems) { $limit = $item->level; $skip = true; continue; } echo '
  • ', $item->level_diff); else echo ''; } echo ''; } else if (0 === strpos($params->get('moduleclass_sfx'), 'awp-vmenu') || false !== strpos($params->get('moduleclass_sfx'), ' awp-vmenu')) { $menutype = 'vertical'; $start = $params->get('startLevel'); // render subitems or not. $subitems = $GLOBALS['artx_settings']['vmenu']['show_submenus'] && 1 == $params->get('showAllChildren'); // true - skip current node, false - render current node. $skip = false; // limit of rendering - skip items with level more then limit. $limit = $start; echo '', $limit - $item->level + $item->level_diff); $skip = false; } } continue; } $class = 'item-' . $item->id; $class .= $item->id == $active_id ? ' current' : ''; $class .= ('alias' == $item->type && in_array($item->params->get('aliasoptions'), $path) || in_array($item->id, $path)) ? ' active' : ''; $class .= $item->deeper ? ' deeper' : ''; $class .= $item->parent ? ' parent' : ''; echo '
  • '; // Render the menu item. switch ($item->type) { case 'separator': case 'url': case 'component': require JModuleHelper::getLayoutPath('mod_menu', 'default_' . $item->type); break; default: require JModuleHelper::getLayoutPath('mod_menu', 'default_url'); break; } if ($item->deeper) { if (!$subitems) { $limit = $item->level; $skip = true; continue; } echo 'id, $path) ? ' class="active"' : '') . '>'; } elseif ($item->shallower) echo '
  • ' . str_repeat('', $item->level_diff); else echo ''; } echo ''; } else { $menutype = 'default'; echo ''; } home/academiac/www/administrator/templates/hathor/html/com_templates/templates/default.php000064400000012012151371455150026310 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : ?>
     
    element, $item->client_id); ?> name) ;?>

    preview && $item->client_id == '0'): ?> client_id == '1'): ?>

    client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> escape($item->xmldata->get('version')); ?> escape($item->xmldata->get('creationDate')); ?> xmldata->get('author')) : ?>

    escape($author); ?>

    xmldata->get('authorEmail')) : ?>

    escape($email); ?>

    xmldata->get('authorUrl')) : ?>

    escape($url); ?>

    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_templates/styles/default.php000064400000015612151371706130025643 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_templates'); $canEdit = $user->authorise('core.edit', 'com_templates'); $canChange = $user->authorise('core.edit.state', 'com_templates'); ?>
     
    id); ?> preview && $item->client_id == '0'): ?> client_id == '1'): ?> escape($item->title);?> escape($item->title);?> client_id == 0 ? JText::_('JSITE') : JText::_('JADMINISTRATOR'); ?> home=='0' || $item->home=='1'):?> home!='0', $i, 'styles.', $canChange && $item->home!='1');?> image.'.gif', $item->language_title, array('title'=>JText::sprintf('COM_TEMPLATES_GRID_UNSET_LANGUAGE', $item->language_title)), true);?> image.'.gif', $item->language_title, array('title'=>$item->language_title), true);?> assigned > 0) : ?> assigned), array('title'=>JText::plural('COM_TEMPLATES_ASSIGNED', $item->assigned)), true); ?>   id; ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_languages/installed/default.php000064400000006007151371726470026256 0ustar00get('id'); $client = $this->state->get('filter.client_id', 0) ? JText::_('JADMINISTRATOR') : JText::_('JSITE'); $clientId = $this->state->get('filter.client_id', 0); ?>
    rows as $i => $row) : $canCreate = $user->authorise('core.create', 'com_languages'); $canEdit = $user->authorise('core.edit', 'com_languages'); $canChange = $user->authorise('core.edit.state', 'com_languages'); ?>
     
    pagination->getRowOffset($i); ?> language);?> escape($row->name); ?> escape($row->language); ?> published, $i, 'installed.', !$row->published && $canChange);?> escape($row->version); ?> escape($row->creationDate); ?> escape($row->author); ?> escape($row->authorEmail); ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_installer/manage/default.php000064400000010137151371726640025554 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    showMessage) : ?> loadTemplate('message'); ?> ftp) : ?> loadTemplate('ftp'); ?> loadTemplate('filter'); ?> items)) : ?> items as $i => $item): ?>
    extension_id); ?> name; ?> client; ?> element) : ?> X status, $i, $item->status < 2, 'cb'); ?> type); ?> version != '' ? $item->version : ' '; ?> creationDate != '' ? $item->creationDate : ' '; ?> author != '' ? $item->author : ' '; ?> folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?> extension_id ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_installer/update/default.php000064400000007041151371726670025611 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    showMessage) : ?> loadTemplate('message'); ?> ftp) : ?> loadTemplate('ftp'); ?> items)) : ?> items as $i=>$item): $client = $item->client_id ? JText::_('JADMINISTRATOR') : JText::_('JSITE'); ?>
    update_id); ?> name; ?> extension_id ? JText::_('COM_INSTALLER_MSG_UPDATE_UPDATE') : JText::_('COM_INSTALLER_NEW_INSTALL') ?> type) ?> version ?> folder != '' ? $item->folder : JText::_('COM_INSTALLER_TYPE_NONAPPLICABLE'); ?> detailsurl ?> infourl)) : ?>
    infourl;?>
    pagination->getListFooter(); ?>

    home/academiac/www/templates/atomic/html/mod_menu/default.php000064400000003046151371741260020377 0ustar00 home/academiac/www/templates/puntopc/html/mod_syndicate/default.php000060400000000302151371745560021625 0ustar00' . ($text ? '' . $text . '' : '') . ''; home/academiac/www/templates/nicelya/html/mod_syndicate/default.php000060400000000275151371753640021570 0ustar00' . ($text ? '' . $text . '' : '') . ''; home/academiac/www/templates/atomic/html/mod_login/default.php000064400000005651151371754110020545 0ustar00
    get('greeting')) : ?>
    get('name') == 0) : { echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('name')); } else : { echo JText::sprintf('MOD_LOGIN_HINAME', $user->get('username')); } endif; ?>
    get('pretext'); ?>

    get('posttext'); ?>
    home/academiac/www/administrator/templates/hathor/html/com_content/featured/default.php000064400000021372151371754230025577 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_content.article'); $saveOrder = $listOrder == 'fp.ordering'; $n = count($this->items); ?>
    items as $i => $item) : $item->max_ordering = 0; //?? $ordering = ($listOrder == 'fp.ordering'); $assetId = 'com_content.article.'.$item->id; $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id')|| $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; ?>
    items, 'filesave.png', 'featured.saveorder'); ?>
    id); ?> checked_out) : ?> editor, $item->checked_out_time, 'featured.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>

    escape($item->alias));?>

    state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, true, 'featured.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, true, 'featured.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'featured.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="title; ?> order" /> ordering; ?> escape($item->access_level); ?> created_by_alias) : ?> escape($item->author_name); ?>

    escape($item->created_by_alias)); ?>

    escape($item->author_name); ?>
    created, JText::_('DATE_FORMAT_LC4')); ?> hits; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_search/searches/default.php000064400000007427151371756130025376 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canDo = SearchHelper::getActions(); ?>
    enabled) : ?> state->get('filter.results')) : ?>
    items as $i => $item) : ?>
     
    pagination->limitstart; ?> escape($item->search_term); ?> hits; ?> state->get('filter.results')) : ?> returns; ?>  
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_finder/filters/default.php000064400000013527151371756250025254 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); JText::script('COM_FINDER_INDEX_CONFIRM_DELETE_PROMPT'); ?>
    items) == 0): ?> items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_finder'); $canEdit = $user->authorise('core.edit', 'com_finder'); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $filter->checked_out == $user->get('id') || $filter->checked_out == 0; $canChange = $user->authorise('core.edit.state', 'com_finder') && $canCheckin; ?>
    total == 0): echo JText::_('COM_FINDER_NO_FILTERS'); ?>
    filter_id); ?> checked_out) { echo JHtml::_('jgrid.checkedout', $i, $item->editor, $item->checked_out_time, 'filters.', $canCheckin); } ?> escape($item->title); ?> escape($item->title); } ?> state, $i, 'filters.', $canChange); ?> created_by_alias ? $item->created_by_alias : $item->user_name; ?> created, JText::_('DATE_FORMAT_LC4')); ?> map_count; ?> filter_id; ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_banners/clients/default.php000064400000012362151371756330025421 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : $ordering = ($listOrder == 'ordering'); $canCreate = $user->authorise('core.create', 'com_banners'); $canEdit = $user->authorise('core.edit', 'com_banners'); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id') || $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_banners') && $canCheckin; ?>
    id); ?> checked_out) : ?> editor, $item->checked_out_time, 'clients.', $canCheckin); ?> escape($item->name); ?> escape($item->name); ?> contact;?> state, $i, 'clients.', $canChange);?> nbanners; ?> metakey; ?> purchase_type<0):?> state->params->get('purchase_type')));?> purchase_type);?> id; ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_banners/banners/default.php000064400000024174151371756410025413 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_banners.category'); $saveOrder = $listOrder=='ordering'; ?>
    items as $i => $item) : $ordering = ($listOrder == 'ordering'); $item->cat_link = JRoute::_('index.php?option=com_categories&extension=com_banners&task=edit&type=other&cid[]='. $item->catid); $canCreate = $user->authorise('core.create', 'com_banners.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_banners.category.'.$item->catid); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $canChange = $user->authorise('core.edit.state', 'com_banners.category.'.$item->catid) && $canCheckin; ?>
    items, 'filesave.png', 'banners.saveorder'); ?> state->get('list.direction'), $this->state->get('list.ordering')); ?>
    id); ?> checked_out) : ?> editor, $item->checked_out_time, 'banners.', $canCheckin); ?> escape($item->name); ?> escape($item->name); ?>

    escape($item->alias));?>

    state, $i, 'banners.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> sticky, $i, $canChange);?> client_name;?> escape($item->category_title); ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->catid == $item->catid), 'banners.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->catid == $item->catid), 'banners.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->catid == $item->catid), 'banners.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->catid == $item->catid), 'banners.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="name; ?> order" /> ordering; ?> impmade, $item->imptotal ? $item->imptotal : JText::_('COM_BANNERS_UNLIMITED'));?> clicks;?> - impmade ? 100 * $item->clicks/$item->impmade : 0);?> metakey; ?> purchase_type < 0):?> client_purchase_type > 0) ? JText::_('COM_BANNERS_FIELD_VALUE_'.$item->client_purchase_type) : JText::_('COM_BANNERS_FIELD_VALUE_'.$this->state->params->get('purchase_type')));?> purchase_type);?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
    pagination->getListFooter(); ?>
    loadTemplate('batch'); ?>
    home/academiac/www/administrator/templates/hathor/html/com_banners/tracks/default.php000064400000011445151371756700025251 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    state->get('filter.category_id');?>
    items as $i => $item) :?>
    name;?> client_name;?> category_title;?> track_type==1 ? JText::_('COM_BANNERS_IMPRESSION'): JText::_('COM_BANNERS_CLICK');?> count;?> track_date, JText::_('DATE_FORMAT_LC4').' H:i');?>
    pagination->getListFooter(); ?>
    home/academiac/www/templates/nicelya/html/com_content/article/default.php000060400000005575151371757070022712 0ustar00params); $article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print)); echo $component->beginPageContainer('item-page'); if (strlen($article->pageHeading)) echo $component->pageHeading($article->pageHeading); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if (strlen($article->author)) $params['metadata-header-icons'][] = "" . $article->authorInfo($article->author, $article->authorLink) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); if (strlen($article->toc)) $content .= $article->toc($article->toc); if (strlen($article->text)) $content .= $article->text($article->text); if ($article->introVisible) $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); echo $component->endPageContainer(); home/academiac/www/templates/puntopc/html/com_content/article/default.php000060400000005376151371757120022751 0ustar00params); $article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print)); echo $component->beginPageContainer('item-page'); if (strlen($article->pageHeading)) echo $component->pageHeading($article->pageHeading); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); if (strlen($article->toc)) $content .= $article->toc($article->toc); if (strlen($article->text)) $content .= $article->text($article->text); if ($article->introVisible) $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); echo $component->endPageContainer(); home/academiac/www/administrator/templates/hathor/html/com_redirect/links/default.php000064400000012166151371763400025247 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_redirect'); $canEdit = $user->authorise('core.edit', 'com_redirect'); $canChange = $user->authorise('core.edit.state', 'com_redirect'); ?>
    id); ?> escape(str_replace(JURI::root(), '', $item->old_url)); ?> escape(str_replace(JURI::root(), '', $item->old_url)); ?> escape($item->new_url); ?> escape($item->referer); ?> created_date, JText::_('DATE_FORMAT_LC4')); ?> published, $i); ?> id; ?>
    pagination->getListFooter(); ?>
    items)) : ?> loadTemplate('addform'); ?>
    home/academiac/www/administrator/templates/hathor/html/com_messages/messages/default.php000064400000007650151371765340025753 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : $canChange = $user->authorise('core.edit.state', 'com_messages'); ?>
    message_id); ?> escape($item->subject); ?> state, $i, $canChange); ?> user_from; ?> date_time, JText::_('DATE_FORMAT_LC2')); ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_menus/menus/default.php000064400000012262151371766130024604 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    items as $i => $item) : $canCreate = $user->authorise('core.create', 'com_menus'); $canEdit = $user->authorise('core.edit', 'com_menus'); $canChange = $user->authorise('core.edit.state', 'com_menus'); ?>
    id); ?> escape($item->title); ?>

    ( id).' title='.$this->escape($item->description).'">'. $this->escape($item->menutype).''; ?>) escape($item->menutype)?>)

    count_published; ?> count_unpublished; ?> count_trashed; ?> id; ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_users/users/default.php000064400000020604151371770730024630 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $loggeduser = JFactory::getUser(); ?>
    items as $i => $item) : $canEdit = $canDo->get('core.edit'); $canChange = $loggeduser->authorise('core.edit.state', 'com_users'); // If this group is super admin and this user is not super admin, $canEdit is false if ((!$loggeduser->authorise('core.admin')) && JAccess::check($item->id, 'core.admin')) { $canEdit = false; $canChange = false; } ?>
    id); ?>
    note_count, $item->id); ?> note_count, $item->id); ?> id); ?>
    escape($item->name); ?> escape($item->name); ?>
    escape($item->username); ?> id != $item->id) : ?> block, 'users.unblock', 'users.block'); ?> block, 'users.block', null); ?> block ? 'JNO' : 'JYES'); ?> activation, 'users.activate', null); ?> group_names, "\n") > 1) : ?> group_names); ?> escape($item->email); ?> lastvisitDate!='0000-00-00 00:00:00'):?> lastvisitDate, 'Y-m-d H:i:s'); ?> registerDate, 'Y-m-d H:i:s'); ?> id; ?>
    loadTemplate('batch'); ?> pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_languages/languages/default.php000064400000016124151371772400026240 0ustar00get('id'); $n = count($this->items); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_languages'); $saveOrder = $listOrder == 'a.ordering'; ?>
    items as $i => $item) : $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_languages'); $canEdit = $user->authorise('core.edit', 'com_languages'); $canChange = $user->authorise('core.edit.state', 'com_languages'); ?>
    items, 'filesave.png', 'languages.saveorder'); ?>
    pagination->getRowOffset($i); ?> lang_id); ?> escape($item->title); ?> escape($item->title); ?> escape($item->title_native); ?> escape($item->lang_code); ?> escape($item->sef); ?> escape($item->image); ?> published, $i, 'languages.', $canChange);?> pagination->orderUpIcon($i, true, 'languages.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'languages.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, true, 'languages.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, true, 'languages.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" /> ordering; ?> home == '1') : ?> escape($item->lang_id); ?>
    pagination->getListFooter(); ?>
    home/academiac/www/templates/ideas/html/com_content/featured/default.php000060400000004175151371777410022522 0ustar00params); echo $view->beginPageContainer('blog-featured'); if (strlen($view->pageHeading)) echo $view->pageHeading(); $leadingcount = 0; if (!empty($this->lead_items)) { echo '
    '; foreach ($this->lead_items as $item) { echo '
    '; $this->item = $item; echo $this->loadTemplate('item'); echo '
    '; $leadingcount++; } echo '
    '; } $introcount = count($this->intro_items); $counter = 0; if (!empty($this->intro_items)) { foreach ($this->intro_items as $key => $item) { $key = ($key - $leadingcount) + 1; $rowcount = (((int)$key - 1) % (int)$this->columns) + 1; $row = $counter / $this->columns; if ($rowcount == 1) echo '
    '; echo '
    '; $this->item = $item; echo $this->loadTemplate('item'); echo '
    '; $counter++; if ($rowcount == $this->columns || $counter == $introcount) echo '
    '; } } if (!empty($this->link_items)) { ob_start(); echo '
    ' . $this->loadTemplate('links') . '
    '; echo artxPost(ob_get_clean()); } if ($this->params->def('show_pagination', 2) == 1 || ($this->params->get('show_pagination') == 2 && $this->pagination->get('pages.total') > 1)) { ob_start(); echo ''; echo artxPost(ob_get_clean()); } echo $view->endPageContainer(); home/academiac/www/templates/ideas/html/com_content/article/default.php000060400000005575151372001140022330 0ustar00params); $article = $component->article('article', $this->item, $this->item->params, array('print' => $this->print)); echo $component->beginPageContainer('item-page'); if (strlen($article->pageHeading)) echo $component->pageHeading($article->pageHeading); $params = $article->getArticleViewParameters(); if (strlen($article->title)) { $params['header-text'] = $this->escape($article->title); if (strlen($article->titleLink)) $params['header-link'] = $article->titleLink; } // Change the order of "if" statements to change the order of article metadata header items. if (strlen($article->created)) $params['metadata-header-icons'][] = "" . $article->createdDateInfo($article->created) . ""; if (strlen($article->modified)) $params['metadata-header-icons'][] = "" . $article->modifiedDateInfo($article->modified) . ""; if (strlen($article->published)) $params['metadata-header-icons'][] = "" . $article->publishedDateInfo($article->published) . ""; if (strlen($article->author)) $params['metadata-header-icons'][] = "" . $article->authorInfo($article->author, $article->authorLink) . ""; if ($article->printIconVisible) $params['metadata-header-icons'][] = $article->printIcon(); if ($article->emailIconVisible) $params['metadata-header-icons'][] = $article->emailIcon(); if ($article->editIconVisible) $params['metadata-header-icons'][] = $article->editIcon(); if (strlen($article->hits)) $params['metadata-header-icons'][] = $article->hitsInfo($article->hits); // Build article content $content = ''; if (!$article->introVisible) $content .= $article->event('afterDisplayTitle'); $content .= $article->event('beforeDisplayContent'); if (strlen($article->toc)) $content .= $article->toc($article->toc); if (strlen($article->text)) $content .= $article->text($article->text); if ($article->introVisible) $content .= $article->intro($article->intro); if (strlen($article->readmore)) $content .= $article->readmore($article->readmore, $article->readmoreLink); $content .= $article->event('afterDisplayContent'); $params['content'] = $content; // Change the order of "if" statements to change the order of article metadata footer items. if (strlen($article->category)) $params['metadata-footer-icons'][] = "" . $article->categories($article->parentCategory, $article->parentCategoryLink, $article->category, $article->categoryLink) . ""; // Render article echo $article->article($params); echo $component->endPageContainer(); home/academiac/www/administrator/templates/hathor/html/com_content/articles/default.php000064400000024700151372001700025570 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $saveOrder = $listOrder == 'a.ordering'; $n = count($this->items); ?>
    items as $i => $item) : $item->max_ordering = 0; //?? $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_content.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_content.article.'.$item->id); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0; $canEditOwn = $user->authorise('core.edit.own', 'com_content.article.'.$item->id) && $item->created_by == $userId; $canChange = $user->authorise('core.edit.state', 'com_content.article.'.$item->id) && $canCheckin; ?>
    items, 'filesave.png', 'articles.saveorder'); ?>
    id); ?> checked_out) : ?> editor, $item->checked_out_time, 'articles.', $canCheckin); ?> escape($item->title); ?> escape($item->title); ?>

    escape($item->alias));?>

    state, $i, 'articles.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> featured, $i, $canChange); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'articles.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'articles.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="title; ?> order" /> ordering; ?> escape($item->access_level); ?> created_by_alias) : ?> escape($item->author_name); ?>

    escape($item->created_by_alias)); ?>

    escape($item->author_name); ?>
    created, JText::_('DATE_FORMAT_LC4')); ?> hits; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
    loadTemplate('batch'); ?> pagination->getListFooter(); ?>
    home/academiac/www/templates/ideas/html/mod_syndicate/default.php000060400000000275151372006250021216 0ustar00' . ($text ? '' . $text . '' : '') . ''; home/academiac/www/administrator/templates/hathor/html/com_cache/cache/default.php000064400000006021151372030760024422 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); ?>
    data as $folder => $item): ?>
    pagination->getRowOffset($i); ?> group; ?> count; ?> size*1024); ?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_plugins/plugins/default.php000064400000016646151372035700025473 0ustar00escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_plugins'); $saveOrder = $listOrder == 'ordering'; ?>
    items as $i => $item) : $ordering = ($listOrder == 'ordering'); $canEdit = $user->authorise('core.edit', 'com_plugins'); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id') || $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_plugins') && $canCheckin; ?>
    items, 'filesave.png', 'plugins.saveorder'); ?>
    extension_id); ?> checked_out) : ?> editor, $item->checked_out_time, 'plugins.', $canCheckin); ?> name; ?> name; ?> enabled, $i, 'plugins.', $canChange); ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->folder == $item->folder), 'plugins.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->folder == $item->folder), 'plugins.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, (@$this->items[$i-1]->folder == $item->folder), 'plugins.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, (@$this->items[$i+1]->folder == $item->folder), 'plugins.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="name; ?> order" /> ordering; ?> escape($item->folder);?> escape($item->element);?> escape($item->access_level); ?> extension_id;?>
    pagination->getListFooter(); ?>
    home/academiac/www/administrator/templates/hathor/html/com_newsfeeds/newsfeeds/default.php000064400000021671151372037120026267 0ustar00get('id'); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $canOrder = $user->authorise('core.edit.state', 'com_newsfeeds.category'); $saveOrder = $listOrder == 'a.ordering'; ?>
    items as $i => $item) : $ordering = ($listOrder == 'a.ordering'); $canCreate = $user->authorise('core.create', 'com_newsfeeds.category.'.$item->catid); $canEdit = $user->authorise('core.edit', 'com_newsfeeds.category.'.$item->catid); $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out==$user->get('id') || $item->checked_out==0; $canChange = $user->authorise('core.edit.state', 'com_newsfeeds.category.'.$item->catid) && $canCheckin; ?>
    items, 'filesave.png', 'newsfeeds.saveorder'); ?>
    id); ?> checked_out) : ?> editor, $item->checked_out_time, 'newsfeeds.', $canCheckin); ?> escape($item->name); ?> escape($item->name); ?>

    escape($item->alias));?>

    published, $i, 'newsfeeds.', $canChange, 'cb', $item->publish_up, $item->publish_down); ?> escape($item->category_title); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'newsfeeds.orderup', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'newsfeeds.orderdown', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> pagination->orderUpIcon($i, ($item->catid == @$this->items[$i-1]->catid), 'newsfeeds.orderdown', 'JLIB_HTML_MOVE_UP', $ordering); ?> pagination->orderDownIcon($i, $this->pagination->total, ($item->catid == @$this->items[$i+1]->catid), 'newsfeeds.orderup', 'JLIB_HTML_MOVE_DOWN', $ordering); ?> class="text-area-order" title="name; ?> order" /> ordering; ?> escape($item->access_level); ?> numarticles; ?> cache_time; ?> language=='*'):?> language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?> id; ?>
    loadTemplate('batch'); ?> pagination->getListFooter(); ?>
    home/academiac/www/administrator/components/com_joomlaupdate/models/default.php000064400000044565151372174350024244 0ustar00 * @since 2.5.4 */ class JoomlaupdateModelDefault extends JModelLegacy { /** * Detects if the Joomla! update site currently in use matches the one * configured in this component. If they don't match, it changes it. * * @return void * * @since 2.5.4 */ public function applyUpdateSite() { // Determine the intended update URL $params = JComponentHelper::getParams('com_joomlaupdate'); switch ($params->get('updatesource', 'nochange')) { // "Long Term Support (LTS) branch - Recommended" case 'lts': $updateURL = 'http://update.joomla.org/core/list.xml'; break; // "Short term support (STS) branch" case 'sts': $updateURL = 'http://update.joomla.org/core/sts/list_sts.xml'; break; // "Testing" case 'testing': $updateURL = 'http://update.joomla.org/core/test/list_test.xml'; break; // "Custom" case 'custom': $updateURL = $params->get('customurl', ''); break; // "Do not change" case 'nochange': default: return; break; } $db = $this->getDbo(); $query = $db->getQuery(true) ->select($db->nq('us') . '.*') ->from( $db->nq('#__update_sites_extensions') . ' AS ' . $db->nq('map') ) ->innerJoin( $db->nq('#__update_sites') . ' AS ' . $db->nq('us') . ' ON (' . $db->nq('us') . '.' . $db->nq('update_site_id') . ' = ' . $db->nq('map') . '.' . $db->nq('update_site_id') . ')' ) ->where( $db->nq('map') . '.' . $db->nq('extension_id') . ' = ' . $db->q(700) ); $db->setQuery($query); $update_site = $db->loadObject(); if ($update_site->location != $updateURL) { // Modify the database record $update_site->last_check_timestamp = 0; $update_site->location = $updateURL; $db->updateObject('#__update_sites', $update_site, 'update_site_id'); // Remove cached updates $query = $db->getQuery(true) ->delete($db->nq('#__updates')) ->where($db->nq('extension_id').' = '.$db->q('700')); $db->setQuery($query); $db->query(); } } /** * Makes sure that the Joomla! update cache is up-to-date * * @param bool $force Force reload, ignoring the cache timeout * * @return void * * @since 2.5.4 */ public function refreshUpdates($force = false) { if ($force) { $cache_timeout = 0; } else { $update_params = JComponentHelper::getParams('com_installer'); $cache_timeout = $update_params->get('cachetimeout', 6, 'int'); $cache_timeout = 3600 * $cache_timeout; } $updater = JUpdater::getInstance(); $results = $updater->findUpdates(700, $cache_timeout); } /** * Returns an array with the Joomla! update information * * @return array * * @since 2.5.4 */ public function getUpdateInformation() { // Initialise the return array $ret = array( 'installed' => JVERSION, 'latest' => null, 'object' => null ); // Fetch the update information from the database $db = $this->getDbo(); $query = $db->getQuery(true) ->select('*') ->from($db->nq('#__updates')) ->where($db->nq('extension_id') . ' = ' . $db->q(700)); $db->setQuery($query); $updateObject = $db->loadObject(); if (is_null($updateObject)) { $ret['latest'] = JVERSION; return $ret; } else { $ret['latest'] = $updateObject->version; } // Fetch the full udpate details from the update details URL jimport('joomla.updater.update'); $update = new JUpdate; $update->loadFromXML($updateObject->detailsurl); // Pass the update object if($ret['latest'] == JVERSION) { $ret['object'] = null; } else { $ret['object'] = $update; } return $ret; } /** * Returns an array with the configured FTP options * * @return array * * @since 2.5.4 */ public function getFTPOptions() { $config = JFactory::getConfig(); return array( 'host' => $config->get('ftp_host'), 'port' => $config->get('ftp_port'), 'username' => $config->get('ftp_user'), 'password' => $config->get('ftp_pass'), 'directory' => $config->get('ftp_root'), 'enabled' => $config->get('ftp_enable'), ); } /** * Downloads the update package to the site * * @return bool|string False on failure, basename of the file in any other case * * @since 2.5.4 */ public function download() { $updateInfo = $this->getUpdateInformation(); $packageURL = $updateInfo['object']->downloadurl->_data; $basename = basename($packageURL); // Find the path to the temp directory and the local package $jreg = JFactory::getConfig(); $tempdir = $jreg->getValue('config.tmp_path'); $target = $tempdir . '/' . $basename; // Do we have a cached file? jimport('joomla.filesystem.file'); $exists = JFile::exists($target); if (!$exists) { // Not there, let's fetch it return $this->downloadPackage($packageURL, $target); } else { // Is it a 0-byte file? If so, re-download please. $filesize = @filesize($target); if(empty($filesize)) return $this->downloadPackage($packageURL, $target); // Yes, it's there, skip downloading return $basename; } } /** * Downloads a package file to a specific directory * * @param string $url The URL to download from * @param string $target The directory to store the file * * @return boolean True on success * * @since 2.5.4 */ protected function downloadPackage($url, $target) { JLoader::import('helpers.download', JPATH_COMPONENT_ADMINISTRATOR); $result = AdmintoolsHelperDownload::download($url, $target); if(!$result) { return false; } else { return basename($target); } } /** * @since 2.5.4 */ public function createRestorationFile($basename = null) { // Get a password jimport('joomla.user.helper'); $password = JUserHelper::genRandomPassword(32); JFactory::getApplication()->setUserState('com_joomlaupdate.password', $password); // Do we have to use FTP? $method = JRequest::getCmd('method', 'direct'); // Get the absolute path to site's root $siteroot = JPATH_SITE; // If the package name is not specified, get it from the update info if (empty($basename)) { $updateInfo = $this->getUpdateInformation(); $packageURL = $updateInfo['object']->downloadurl->_data; $basename = basename($packageURL); } // Get the package name $tempdir = JFactory::getConfig()->getValue('config.tmp_path'); $file = $tempdir . '/' . $basename; $filesize = @filesize($file); JFactory::getApplication()->setUserState('com_joomlaupdate.password', $password); JFactory::getApplication()->setUserState('com_joomlaupdate.filesize', $filesize); $data = " '$password', 'kickstart.tuning.max_exec_time' => '5', 'kickstart.tuning.run_time_bias' => '75', 'kickstart.tuning.min_exec_time' => '0', 'kickstart.procengine' => '$method', 'kickstart.setup.sourcefile' => '$file', 'kickstart.setup.destdir' => '$siteroot', 'kickstart.setup.restoreperms' => '0', 'kickstart.setup.filetype' => 'zip', 'kickstart.setup.dryrun' => '0' ENDDATA; if ($method == 'ftp') { // Fetch the FTP parameters from the request. Note: The password should be // allowed as raw mode, otherwise something like !@43H% would be // sanitised to !@43H% which is just plain wrong. $ftp_host = JRequest::getVar('ftp_host',''); $ftp_port = JRequest::getVar('ftp_port', '21'); $ftp_user = JRequest::getVar('ftp_user', ''); $ftp_pass = JRequest::getVar('ftp_pass', '', 'default', 'none', 2); $ftp_root = JRequest::getVar('ftp_root', ''); // Is the tempdir really writable? $writable = @is_writeable($tempdir); if($writable) { // Let's be REALLY sure $fp = @fopen($tempdir.'/test.txt','w'); if($fp === false) { $writable = false; } else { fclose($fp); unlink($tempdir.'/test.txt'); } } // If the tempdir is not writable, create a new writable subdirectory if(!$writable) { jimport('joomla.client.ftp'); jimport('joomla.client.helper'); jimport('joomla.filesystem.folder'); $FTPOptions = JClientHelper::getCredentials('ftp'); $ftp = & JFTP::getInstance($FTPOptions['host'], $FTPOptions['port'], null, $FTPOptions['user'], $FTPOptions['pass']); $dest = JPath::clean(str_replace(JPATH_ROOT, $FTPOptions['root'], $tempdir.'/admintools'), '/'); if(!@mkdir($tempdir.'/admintools')) $ftp->mkdir($dest); if(!@chmod($tempdir.'/admintools', 511)) $ftp->chmod($dest, 511); $tempdir .= '/admintools'; } // Just in case the temp-directory was off-root, try using the default tmp directory $writable = @is_writeable($tempdir); if(!$writable) { $tempdir = JPATH_ROOT.'/tmp'; // Does the JPATH_ROOT/tmp directory exist? if(!is_dir($tempdir)) { jimport('joomla.filesystem.folder'); jimport('joomla.filesystem.file'); JFolder::create($tempdir, 511); JFile::write($tempdir.'/.htaccess',"order deny, allow\ndeny from all\nallow from none\n"); } // If it exists and it is unwritable, try creating a writable admintools subdirectory if(!is_writable($tempdir)) { jimport('joomla.client.ftp'); jimport('joomla.client.helper'); jimport('joomla.filesystem.folder'); $FTPOptions = JClientHelper::getCredentials('ftp'); $ftp = & JFTP::getInstance($FTPOptions['host'], $FTPOptions['port'], null, $FTPOptions['user'], $FTPOptions['pass']); $dest = JPath::clean(str_replace(JPATH_ROOT, $FTPOptions['root'], $tempdir.'/admintools'), '/'); if(!@mkdir($tempdir.'/admintools')) $ftp->mkdir($dest); if(!@chmod($tempdir.'/admintools', 511)) $ftp->chmod($dest, 511); $tempdir .= '/admintools'; } } // If we still have no writable directory, we'll try /tmp and the system's temp-directory $writable = @is_writeable($tempdir); if(!$writable) { if(@is_dir('/tmp') && @is_writable('/tmp')) { $tempdir = '/tmp'; } else { // Try to find the system temp path $tmpfile = @tempnam("dummy",""); $systemp = @dirname($tmpfile); @unlink($tmpfile); if(!empty($systemp)) { if(@is_dir($systemp) && @is_writable($systemp)) { $tempdir = $systemp; } } } } $data.=<< '0', 'kickstart.ftp.passive' => '1', 'kickstart.ftp.host' => '$ftp_host', 'kickstart.ftp.port' => '$ftp_port', 'kickstart.ftp.user' => '$ftp_user', 'kickstart.ftp.pass' => '$ftp_pass', 'kickstart.ftp.dir' => '$ftp_root', 'kickstart.ftp.tempdir' => '$tempdir' ENDDATA; } $data .= ');'; // Remove the old file, if it's there... jimport('joomla.filesystem.file'); $configpath = JPATH_COMPONENT_ADMINISTRATOR . '/restoration.php'; if( JFile::exists($configpath) ) { JFile::delete($configpath); } // Write new file. First try with JFile. $result = JFile::write( $configpath, $data ); // In case JFile used FTP but direct access could help if(!$result) { if(function_exists('file_put_contents')) { $result = @file_put_contents($configpath, $data); if($result !== false) $result = true; } else { $fp = @fopen($configpath, 'wt'); if($fp !== false) { $result = @fwrite($fp, $data); if($result !== false) $result = true; @fclose($fp); } } } return $result; } /** * Runs the schema update SQL files, the PHP update script and updates the * manifest cache and #__extensions entry. Essentially, it is identical to * JInstallerFile::install() without the file copy. * * @return boolean True on success * * @since 2.5.4 */ public function finaliseUpgrade() { jimport('joomla.installer.install'); $installer = JInstaller::getInstance(); $installer->setPath('source', JPATH_ROOT); $installer->setPath('extension_root', JPATH_ROOT); if (!$installer->setupInstall()) { $installer->abort(JText::_('JLIB_INSTALLER_ABORT_DETECTMANIFEST')); return false; } $installer->extension = JTable::getInstance('extension'); $installer->extension->load(700); $installer->setAdapter($installer->extension->type); $manifest = $installer->getManifest(); $manifestPath = JPath::clean($installer->getPath('manifest')); $element = preg_replace('/\.xml/', '', basename($manifestPath)); // Run the script file $scriptElement = $manifest->scriptfile; $manifestScript = (string) $manifest->scriptfile; if ($manifestScript) { $manifestScriptFile = JPATH_ROOT . '/' . $manifestScript; if (is_file($manifestScriptFile)) { // load the file include_once $manifestScriptFile; } $classname = 'JoomlaInstallerScript'; if (class_exists($classname)) { $manifestClass = new $classname($this); } } ob_start(); ob_implicit_flush(false); if ($manifestClass && method_exists($manifestClass, 'preflight')) { if ($manifestClass->preflight('update', $this) === false) { $installer->abort(JText::_('JLIB_INSTALLER_ABORT_FILE_INSTALL_CUSTOM_INSTALL_FAILURE')); return false; } } $msg = ob_get_contents(); // create msg object; first use here ob_end_clean(); // Get a database connector object $db = JFactory::getDbo(); // Check to see if a file extension by the same name is already installed // If it is, then update the table because if the files aren't there // we can assume that it was (badly) uninstalled // If it isn't, add an entry to extensions $query = $db->getQuery(true); $query->select($query->qn('extension_id')) ->from($query->qn('#__extensions')); $query->where($query->qn('type') . ' = ' . $query->q('file')) ->where($query->qn('element') . ' = ' . $query->q('joomla')); $db->setQuery($query); try { $db->Query(); } catch (RuntimeException $e) { // Install failed, roll back changes $installer->abort( JText::sprintf('JLIB_INSTALLER_ABORT_FILE_ROLLBACK', JText::_('JLIB_INSTALLER_UPDATE'), $db->stderr(true)) ); return false; } $id = $db->loadResult(); $row = JTable::getInstance('extension'); if ($id) { // Load the entry and update the manifest_cache $row->load($id); // Update name $row->set('name', 'files_joomla'); // Update manifest $row->manifest_cache = $installer->generateManifestCache(); if (!$row->store()) { // Install failed, roll back changes $installer->abort( JText::sprintf('JLIB_INSTALLER_ABORT_FILE_ROLLBACK', JText::_('JLIB_INSTALLER_UPDATE'), $db->stderr(true)) ); return false; } } else { // Add an entry to the extension table with a whole heap of defaults $row->set('name', 'files_joomla'); $row->set('type', 'file'); $row->set('element', 'joomla'); // There is no folder for files so leave it blank $row->set('folder', ''); $row->set('enabled', 1); $row->set('protected', 0); $row->set('access', 0); $row->set('client_id', 0); $row->set('params', ''); $row->set('system_data', ''); $row->set('manifest_cache', $installer->generateManifestCache()); if (!$row->store()) { // Install failed, roll back changes $installer->abort(JText::sprintf('JLIB_INSTALLER_ABORT_FILE_INSTALL_ROLLBACK', $db->stderr(true))); return false; } // Set the insert id $row->set('extension_id', $db->insertid()); // Since we have created a module item, we add it to the installation step stack // so that if we have to rollback the changes we can undo it. $installer->pushStep(array('type' => 'extension', 'extension_id' => $row->extension_id)); } /* * Let's run the queries for the file */ if ($manifest->update) { $result = $installer->parseSchemaUpdates($manifest->update->schemas, $row->extension_id); if ($result === false) { // Install failed, rollback changes $installer->abort(JText::sprintf('JLIB_INSTALLER_ABORT_FILE_UPDATE_SQL_ERROR', $db->stderr(true))); return false; } } // Start Joomla! 1.6 ob_start(); ob_implicit_flush(false); if ($manifestClass && method_exists($manifestClass, 'update')) { if ($manifestClass->update($installer) === false) { // Install failed, rollback changes $installer->abort(JText::_('JLIB_INSTALLER_ABORT_FILE_INSTALL_CUSTOM_INSTALL_FAILURE')); return false; } } $msg .= ob_get_contents(); // append messages ob_end_clean(); // Lastly, we will copy the manifest file to its appropriate place. $manifest = array(); $manifest['src'] = $installer->getPath('manifest'); $manifest['dest'] = JPATH_MANIFESTS . '/files/' . basename($installer->getPath('manifest')); if (!$installer->copyFiles(array($manifest), true)) { // Install failed, rollback changes $installer->abort(JText::_('JLIB_INSTALLER_ABORT_FILE_INSTALL_COPY_SETUP')); return false; } // Clobber any possible pending updates $update = JTable::getInstance('update'); $uid = $update->find( array('element' => $element, 'type' => 'file', 'client_id' => '', 'folder' => '') ); if ($uid) { $update->delete($uid); } // And now we run the postflight ob_start(); ob_implicit_flush(false); if ($manifestClass && method_exists($manifestClass, 'postflight')) { $manifestClass->postflight('update', $this); } $msg .= ob_get_contents(); // append messages ob_end_clean(); if ($msg != '') { $installer->set('extension_message', $msg); } return true; } /** * Removes the extracted package file * * @return void * * @since 2.5.4 */ public function cleanUp() { jimport('joomla.filesystem.file'); // Remove the update package $jreg = JFactory::getConfig(); $tempdir = $jreg->getValue('config.tmp_path'); $file = JFactory::getApplication()->getUserState('com_joomlaupdate.file', null); $target = $tempdir.'/'.$file; if (!@unlink($target)) { jimport('joomla.filesystem.file'); JFile::delete($target); } // Remove the restoration.php file $target = JPATH_COMPONENT_ADMINISTRATOR . '/restoration.php'; if (!@unlink($target)) { JFile::delete($target); } // Remove joomla.xml from the site's root $target = JPATH_ROOT . '/joomla.xml'; if (!@unlink($target)) { JFile::delete($target); } // Unset the update filename from the session JFactory::getApplication()->setUserState('com_joomlaupdate.file', null); } } home/academiac/www/administrator/components/com_virtuemart/views/user/tmpl/default.php000060400000010414151372204410025533 0ustar00
    userList); $i < $n; $i++) { $row = $this->userList[$i]; $checked = JHTML::_('grid.id', $i, $row->id); $editlink = JROUTE::_('index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=' . $row->id); $is_vendor = $this->toggle($row->is_vendor, $i, 'toggle.user_is_vendor'); ?>
    sort('ju.username', 'COM_VIRTUEMART_USERNAME') ?> sort('ju.name', 'COM_VIRTUEMART_USER_DISPLAYED_NAME') ?> sort('shopper_group_name', 'COM_VIRTUEMART_SHOPPERGROUP') ?>
    username; ?> name; ?> email; ?> perm->getPermissions($row->id); // if(empty($row->perms)) $row->perms = 'shopper'; // echo $row->perms . ' / (' . $row->usertype . ')'; ?> shopper_group_name)) $row->shopper_group_name = $this->defaultShopperGroup; echo $row->shopper_group_name; ?> id; ?>
    pagination->getListFooter(); ?>
    addStandardHiddenToForm(); ?>
    home/academiac/www/modules/mod_virtuemart_manufacturer/tmpl/default.php000060400000004126151372255230022611 0ustar00
    virtuemart_manufacturer_id); ?>
    images && ($show == 'image' or $show == 'all' )) { ?> images[0]->displayMediaThumb('',false);?>
    mf_name; ?>
    "; $col= 1 ; } else { $col++; } } ?>