[ SYSTEM ]: Windows NT SWD-ELEARN-11 10.0 build 20348 (Windows Server 2016) AMD64
[ SERVER ]: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.9 | PHP: 7.3.9
[ USER ]: Elearn | IP: 10.201.204.156
GEFORCE FILE MANAGER
/
C:
/
xampp
/
htdocs
/
Ajaji
/
backup
/
templates
/
gridbox
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 css
SET
[ DEL ]
📁 html
SET
[ DEL ]
📁 js
SET
[ DEL ]
📁 library
SET
[ DEL ]
📄 index.php
17,174 B
SET
[ EDIT ]
|
[ DEL ]
📄 offline.php
6,406 B
SET
[ EDIT ]
|
[ DEL ]
📄 templateDetails.xml
1,930 B
SET
[ EDIT ]
|
[ DEL ]
📄 template_preview.png
5,543 B
SET
[ EDIT ]
|
[ DEL ]
📄 template_thumbnail.png
1,305 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: index.php
<?php /** * @package Gridbox template * @author Balbooa http://www.balbooa.com/ * @copyright Copyright @ Balbooa * @license http://www.gnu.org/licenses/gpl.html GNU/GPL */ defined('_JEXEC') or die; $app = JFactory::getApplication(); $doc = JFactory::getDocument(); $user = JFactory::getUser(); $generator = $doc->getMetaData('generator'); if ($generator == 'Joomla! - Open Source Content Management') { $doc->setGenerator('Powered by Website Builder Gridbox'); } $option = $app->input->getCmd('option', ''); $view = $app->input->getCmd('view', ''); $id = $app->input->getCmd('id', 0, 'int'); $author = $app->input->get('author', 0, 'int'); $menus = $app->getMenu('site'); $menu = $menus->getActive(); $edit_type = $app->input->get('edit_type', ''); $pageType = ''; $system = $edit_type == true; $blog = false; if ($view == 'blog' || $edit_type == 'blog' || $edit_type == 'post-layout') { $blog = true; } $pageclass = ''; $themeid = 0; if (is_object($menu)) { $pageclass = $menu->getParams()->get('pageclass_sfx'); $themeid = $menu->template_style_id; } else { $lang = JFactory::getLanguage()->getTag(); $default = $menus->getDefault($lang); $themeid = $default->template_style_id; } JLoader::register('gridboxHelper', JPATH_ROOT.'/components/com_gridbox/helpers/gridbox.php'); gridboxHelper::setBreakpoints(); gridboxHelper::checkResponsive(); gridboxHelper::checkGridboxLanguage(); $aboutUs = gridboxHelper::aboutUs(); if ($option == 'com_gridbox') { $gridboxId = $id; if ($view == 'system') { $edit_type = 'system'; } $pageType = gridboxHelper::getPageType($gridboxId, $view, $edit_type); if ($view == 'gridbox' && !empty($pageType) && $pageType != 'single') { $system = true; } if ($pageType == 'blog') { $pageclass .= ' blog-post-editor'; } else if (!empty($pageType) && $pageType != 'single') { $pageclass .= ' blog-post-editor gridbox-apps-editor'; } if ($view == 'blog') { $gridboxId = $app->input->get('app', 0, 'int'); } else { $pageclass .= ' '.gridboxHelper::getPageClass($gridboxId); } if ($view == 'blog' || $view == 'page' || $view == 'gridbox' || $view == 'system') { $themeid = gridboxHelper::getTheme($gridboxId, $blog, $edit_type); } else if ($view == 'account') { $systemParams = gridboxHelper::getSystemParamsByType('checkout'); $themeid = gridboxHelper::getTheme($systemParams->id, false, 'system'); } else { $themeid = 0; } } if ($themeid == 0) { $themeid = gridboxHelper::getValidId(); } if (isset($gridboxId)) { $data = array('id' => $gridboxId, 'theme' => $themeid); } else { $data = array('id' => 0, 'theme' => $themeid); } $page = new stdClass(); $page->option = $option; $page->view = $view; $page->id = isset($gridboxId) ? $gridboxId : $app->input->getCmd('id', 'id'); $data['page'] = $page; $this->params = gridboxHelper::getThemeParams($themeid); $params = $this->params->get('params'); $suffix = $params->suffix; $pageclass .= !empty($pageclass) ? ' '.$suffix : $suffix; gridboxHelper::prepareParentFonts($params); $systemType = ''; if (isset($gridboxId)) { if ($edit_type == 'system') { $systemType = gridboxHelper::checkSystemCss($gridboxId); } else if ($view == 'page' || ($view == 'gridbox' && !$blog)) { gridboxHelper::checkPageCss($gridboxId); } else if ($view == 'account') { gridboxHelper::checkAccountCss(); } else if ($edit_type == 'post-layout') { gridboxHelper::checkPostCss($gridboxId); } else if ($blog) { gridboxHelper::checkAppCss($gridboxId); } } if ($systemType == 'checkout' && gridboxHelper::$store->checkout->login && empty($user->id)) { $pageclass .= ' ba-visible-checkout-authentication'; } if (!empty($author)) { $pageclass .= ' ba-author-page-view'; } $time = $this->params->get('time', ''); if (!empty($time)) { $time = '?'.$time; } $footer = $this->params->get('footer'); $header = $this->params->get('header'); $layout = $this->params->get('layout'); $fonts = $this->params->get('fonts'); $fonts = gridboxHelper::prepareFonts($fonts, $option, $data['id'], $edit_type); $website = gridboxHelper::getWebsiteCode(); $footer->html = gridboxHelper::checkModules($footer->html, $footer->items); gridboxHelper::checkMoreScripts($footer->html, $time); $header->html = gridboxHelper::checkModules($header->html, $header->items); gridboxHelper::checkMoreScripts($header->html, $time); if (JVERSION >= '4.0.0') { $doc->addScript(JUri::root(true).'/media/vendor/jquery/js/jquery.min.js'); } else { $doc->addScript(JUri::root(true).'/media/jui/js/jquery.min.js'); } if ($option != 'com_gridbox' && JVERSION < '4.0.0') { $doc->addScript(JUri::root(true).'/media/jui/js/bootstrap.min.js'); } else { $doc->addScript(JUri::root(true).'/components/com_gridbox/libraries/bootstrap/bootstrap.js'); } $prop = array(); $attr = array('async' => true); $doc->addScript(JUri::root().'index.php?option=com_gridbox&task=editor.loadModule&module=gridboxLanguage&'.$aboutUs->version, $prop, $attr); $pageTitle = $doc->getTitle(); if ($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) { $doc->addScript($this->baseurl . '/templates/gridbox/js/gridbox.js?'.$aboutUs->version); } else { $doc->addScriptDeclaration(" console.log = function(){ return false; }; "); } $menuId = is_object($menu) ? $menu->id : ''; $getItemsUrl = 'index.php?option=com_gridbox&task=editor.getItems&id='.$data['id'] .'&theme='.$data['theme'].'&edit_type='.$edit_type; $getItemsUrl .= '&view='.$data['page']->view.'&menuitem='.$menuId.'&'.str_replace('?', '', $time); $initItems = $this->baseurl.'/components/com_gridbox/libraries/modules/initItems.js?'.$aboutUs->version; $doc->addScript($this->baseurl.'/'.$getItemsUrl); $doc->addStyleSheet($this->baseurl.'/templates/gridbox/css/gridbox.css?'.$aboutUs->version); $doc->addStyleSheet($this->baseurl.'/templates/gridbox/css/storage/responsive.css'.$time); $doc->addStyleSheet(JUri::root().'templates/gridbox/css/storage/style-'.$themeid.'.css'.$time); $favicon = gridboxHelper::getFavicon(); $doc->addFavicon(JUri::root().$favicon); if (!empty($fonts)) { $doc->addStyleSheet($fonts); } $breakpoints = json_encode(gridboxHelper::$breakpoints); $disable_responsive = gridboxHelper::$website->disable_responsive == 1 ? 'true' : 'false'; $custom = gridboxHelper::checkCustom($themeid, $view, $time); ?> <!DOCTYPE html> <html prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/xhtml" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"> <head> <?php if (!(bool)gridboxHelper::$website->disable_responsive) { ?> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <?php } else { ?> <meta name="viewport" content="width=device-width"> <?php } $ua = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8'); if (strpos($ua, 'Trident/7.0') !== false && strpos($ua, 'rv:11.0') !== false) { ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/js-polyfills/0.1.43/polyfill.min.js"></script> <?php } ?> <jdoc:include type="head"/> <style type="text/css">[gridbox-plugins-css]</style> <?php if ($this->direction == 'rtl') { ?> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/media/jui/css/bootstrap-rtl.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/gridbox/css/gridbox-rtl.css" type="text/css" /> <?php } if ($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) { echo "\n".$website->header_code; } echo $custom; ?> <script> var JUri = '<?php echo JUri::root(); ?>', breakpoints = <?php echo $breakpoints; ?>, menuBreakpoint = '<?php echo gridboxHelper::$menuBreakpoint; ?>' * 1, disableResponsive = <?php echo $disable_responsive; ?>, google_fonts = <?php echo gridboxHelper::$website->google_fonts; ?>, gridboxVersion = '<?php echo $aboutUs->version; ?>', themeData = <?php echo json_encode($data); ?>; <?php if (!empty(gridboxHelper::$storeHelper->reminder->email)) { ?> document.addEventListener("DOMContentLoaded", function(){ app.sendBackgroundRequests('reminder'); }); <?php } if (gridboxHelper::$storeHelper->checkPendingPayments()) { ?> document.addEventListener("DOMContentLoaded", function(){ app.sendBackgroundRequests('pending'); }); <?php } if (gridboxHelper::$storeHelper->checkDelayEmails()) { ?> document.addEventListener("DOMContentLoaded", function(){ app.sendBackgroundRequests('delay'); }); <?php } ?> </script> <?php if ($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) { echo gridboxHelper::getAnalitycs(); } ?> </head> <body class="<?php echo $option. ' '. $view . ' ' .htmlspecialchars(trim($pageclass)); ?>"> <?php if ($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) { gridboxHelper::checkPreloader(); } ?> <?php $unsubscribe = $app->input->cookie->get('gridbox-comments-unsubscribe', '', 'string'); if (($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) && $unsubscribe != '') { gridboxHelper::setcookie('gridbox-comments-unsubscribe', '', time() - 3600); ?> <div class="ba-comments-modal ba-comment-unsubscribed-dialog visible-comments-dialog"> <div class="ba-comments-modal-body"> <span class="ba-comments-modal-title"><?php echo JText::_('UNSUBSCRIBE_TITLE'); ?></span> <p class="ba-comments-modal-text"><?php echo JText::_('SUCCESSFULLY_UNSUBSCRIBED'); ?></p> <div class="ba-comments-modal-footer"> <span class="ba-btn red-btn ba-btn-primary"><?php echo JText::_('CLOSE'); ?></span> </div> </div> <div class="ba-comments-modal-backdrop"></div> </div> <?php } ?> <div class="ba-overlay"></div> <?php if (empty($pageType) || $pageType == 'single') { ?> <header class="header <?php echo $layout; ?>"> <?php echo $header->html; ?> <?php if ($view == 'gridbox') { ?> <div class="page-layout"> <span>header</span> </div> <?php } ?> </header> <?php } ?> <div class="body"> <?php if (!$system && ($this->countModules('top-a') || $this->countModules('top-b') || $this->countModules('top-c') || $this->countModules('top-d'))) { ?> <div class="row-fluid ba-container top"> <div class="span3"> <jdoc:include type="modules" name="top-a" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="top-b" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="top-c" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="top-d" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && $this->countModules('top-full-width')) { ?> <div class="row-fluid top"> <div class="span12"> <jdoc:include type="modules" name="top-full-width" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && ($this->countModules('feature-a') || $this->countModules('feature-b') || $this->countModules('feature-c'))) { ?> <div class="row-fluid ba-container feature-top"> <div class="span4"> <jdoc:include type="modules" name="feature-a" style="Gridboxhtml" /> </div> <div class="span4"> <jdoc:include type="modules" name="feature-b" style="Gridboxhtml" /> </div> <div class="span4"> <jdoc:include type="modules" name="feature-c" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && ($this->countModules('showcase-a') || $this->countModules('showcase-b'))) { ?> <div class="row-fluid ba-container showcase-top"> <div class="span6"> <jdoc:include type="modules" name="showcase-a" style="Gridboxhtml" /> </div> <div class="span6"> <jdoc:include type="modules" name="showcase-b" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && $this->countModules('breadcrumbs')) { ?> <div class="row-fluid ba-container"> <div class="span12"> <div class="breadcrumbs"> <jdoc:include type="modules" name="breadcrumbs" style="Gridboxhtml" /> </div> </div> </div> <?php } ?> <div class="row-fluid main-body"> <?php if (!$system && $this->countModules('sidebar-a')) { ?> <div class="sidebar-left span3"> <jdoc:include type="modules" name="sidebar-a" style="Gridboxhtml" /> </div> <?php } if (!$system && ($this->countModules('sidebar-a') && $this->countModules('sidebar-b'))) { $span = 'span6'; } else if (!$system && ($this->countModules('sidebar-a') || $this->countModules('sidebar-b'))) { $span = 'span9'; } else { $span = 'span12'; } ?> <div class="<?php echo $span; ?>"> <jdoc:include type="message"/> <jdoc:include type="component"/> </div> <?php if (!$system && $this->countModules('sidebar-b')) { ?> <div class="sidebar-right span3"> <jdoc:include type="modules" name="sidebar-b" style="Gridboxhtml" /> </div> <?php } ?> </div> <?php if (!$system && ($this->countModules('banner-a') || $this->countModules('banner-b') || $this->countModules('banner-c'))) { ?> <div class="row-fluid ba-container feature-bottom"> <div class="span4"> <jdoc:include type="modules" name="banner-a" style="Gridboxhtml" /> </div> <div class="span4"> <jdoc:include type="modules" name="banner-b" style="Gridboxhtml" /> </div> <div class="span4"> <jdoc:include type="modules" name="banner-c" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && ($this->countModules('box-a') || $this->countModules('box-b') || $this->countModules('box-c') || $this->countModules('box-d'))) { ?> <div class="row-fluid ba-container bottom"> <div class="span3"> <jdoc:include type="modules" name="box-a" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="box-b" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="box-c" style="Gridboxhtml" /> </div> <div class="span3"> <jdoc:include type="modules" name="box-d" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && ($this->countModules('bottom-a') || $this->countModules('bottom-b'))) { ?> <div class="row-fluid ba-container showcase-bottom"> <div class="span6"> <jdoc:include type="modules" name="bottom-a" style="Gridboxhtml" /> </div> <div class="span6"> <jdoc:include type="modules" name="bottom-b" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if (!$system && $this->countModules('bottom-full-width')) { ?> <div class="row-fluid bottom-full-width"> <div class="span12"> <jdoc:include type="modules" name="bottom-full-width" style="Gridboxhtml" /> </div> </div> <?php } ?> <?php if ($view == 'gridbox' && (empty($pageType) || $pageType == 'single')) { ?> <div class="page-layout"> <span>content</span> </div> <?php } ?> </div> <?php if (empty($pageType) || $pageType == 'single') { ?> <footer class="footer"> <?php echo $footer->html; ?> <?php if ($view == 'gridbox') { ?> <div class="page-layout"> <span>footer</span> </div> <?php } ?> </footer> <?php } ?> <?php if ($params->desktop->background->type == 'video') { ?> <div class="ba-video-background global-video-bg"></div> <?php } ?> <?php if (!$system && $this->countModules('debug')) { ?> <jdoc:include type="modules" name="debug" style="Gridboxhtml" /> <?php } ?> <?php if ($view != 'gridbox' || strpos($pageTitle, 'Gridbox Editor') === false) { echo $website->body_code."\n"; } ?> </body> </html>