[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.73.167: ~ $
<?php

/* This array is to add third level to phpList menu, adding orphan items to a menulink */

$GLOBALS['subcat'] = array(
    'import' => array ('import1','import2','import3','import4','importsimple'),
    'users' => array('user','userhistory'),
    'list' => array('members','editlist'),
    'usermgt' => array('massremove','usercheck','reconcileusers'),
    'messages' => array('message'),
    'templates' => array('template'),
    'system' => array('converttoutf8'),
    'bouncemgt' => array('bounce','bounces','processbounces','generatebouncerules'),
    'bouncerules' => array('bouncerule'),
    'spage' => array('spageedit'),
    'attributes' => array('editattributes','defaults'),
    );

/* replace topmenu() function */
function _topMenu()
{
    if (empty($_SESSION['logindetails'])) {
        return '';
    }

    if ( !isset($_GET['page'] ) ) { $_GET['page'] = ''; }
    $current_page = htmlentities($_GET['page']);
    $currentPageCategory = $_GET['pi'] == '' ? pageCategory($current_page) : '';

    if ($_SESSION['logindetails']['superuser']) { // we don't have a system yet to distinguish access to plugins
        if (count($GLOBALS['plugins'])) {
            foreach ($GLOBALS['plugins'] as $pluginName => $plugin) {
                $menulinks = $plugin->topMenuLinks;
                foreach ($menulinks as $link => $linkDetails) {
                    if (isset($GLOBALS['pagecategories'][$linkDetails['category']])) {
                        array_push($GLOBALS['pagecategories'][$linkDetails['category']]['menulinks'],
                            $link . '&pi=' . $pluginName);
                    }
                }
            }
        }
    }

    $topmenu = '';
    $topmenu .= '<div id="menuTop">';
    if (!DEVVERSION) {
        unset($GLOBALS['pagecategories']['develop']);
    }

    foreach ($GLOBALS['pagecategories'] as $category => $categoryDetails) {
        if ($category == 'hide') {
            continue;
        }

        $thismenu = '';
        $icon = 'glyphicon-plus';
        $icontext = "";
        $open = $category == $currentPageCategory ? ' class="active open"' : '';
        $accmenu = '';
        switch ($category) {
            case "dashboard" : $icon = "glyphicon-home"; break;
            case "subscribers" : $icon = "glyphicon-user"; break;
            case "campaigns" : $icon = "glyphicon-envelope"; break;
            case "statistics" : $icon = "glyphicon-stats"; break;
            case "system" : $icon = "glyphicon-wrench"; break;
            case "config" : $icon = "glyphicon-cog"; break;
            case "info" : $icon = ""; $icontext = "<samp style='line-height:1.5;font-weight:bold;font-size:19px'>i</samp>"; break;
            case "develop" : $icon = "glyphicon-console"; break;
        }

        foreach ($categoryDetails['menulinks'] as $page) {
                $title = $GLOBALS['I18N']->pageTitle($page);
                $active = '';

                if ($_GET['pi'] !== '') {
                    if ($page == $current_page.'&pi='.$_GET['pi']) {
                        $active = ' class="active"';
                    }
                } elseif ($page == $current_page) {
                        $active = ' class="active"';
                } elseif (isset($GLOBALS['subcat'][$page]) && in_array($current_page, $GLOBALS['subcat'][$page])) {
                        $active = ' class="active"';
                }
                $link = PageLink2($page, $title, '', true);

                /* build account  menu ($accmenu) if Account section exist */
                if ($link && $category == 'account') {
                    switch($page){
                            case "accinfo" : $icon = "glyphicon-briefcase"; $page_title ="My account"; break;
                            case "accsettings" : $icon = "glyphicon-wrench";  $page_title ="Account settings"; break;
                            case "help" : $icon = "";$page_title = "Help"; $icontext="<samp style='line-height:1.5;font-weight:bold;font-size:19px'>?</samp>"; break;
                    }
                    if ($active == ' class="active"')  $active = ' class="open active"';
                    $accmenu .= '<ul><li '.$active.'.><a class="level0" href="' . PageUrl2($page, '', '', true). '" title="' . $title . '"><span class="glyphicon '.$icon.'">'.$icontext.'</span>' . ucfirst($page_title) . '</a></li></ul>';
                }

                /* add item to mainmenu ($thismenu) */
                 elseif ($link) {
                    $thismenu .= '<li' . $active . '>' . $link . '</li>';
                }
        } /* <- end foreach menulinks */
        $twohomes = array('dashboard','home');
        if ( in_array($current_page,$twohomes) && $categoryDetails['toplink'] == 'dashboard' ) { // page 'home' redirect from dashboard
                    $open = ' class=" active open"';
        }
        if (!empty($thismenu)) {
            $thismenu = '<ul>' . $thismenu . '</ul>';
        }

        if ($category != 'account' && !empty($categoryDetails['toplink'])) {
            $categoryurl = PageUrl2($categoryDetails['toplink'], '', '', true);
            if ($categoryurl) {
                $categoryurl = ($thismenu == "") ? $categoryurl : "#";
                $topmenu .= '<ul><li '.$open.' id="'.$category.'"><a class="level0" href="' . $categoryurl . '" title="' . $GLOBALS['I18N']->pageTitleHover($category) . '"><span class="glyphicon '.$icon.'">'.$icontext.'</span>' . ucfirst($GLOBALS['I18N']->get($category)) . '</a>' . $thismenu . '</li></ul>';
            } else {
                $topmenu .= '<ul><li><span>' . $GLOBALS['I18N']->get($category) . $categoryurl . '</span>' . $thismenu . '</li></ul>';
            }
        }
    } /* <- end foreach category */

    /* add an Account  section if category exist */
    if (!empty($accmenu)) {
        $topmenu.='<h3 id="accmenu">'.$GLOBALS['I18N']->get('Profile and account').'</h3>'.$accmenu;
    }

    $topmenu .= '</div>';
    return $topmenu;
}


Filemanager

Name Type Size Permission Actions
bootstrap Folder 0755
css Folder 0755
fonts Folder 0755
images Folder 0755
js Folder 0755
less Folder 0755
pages Folder 0755
.gitignore File 49 B 0644
.travis.yml File 394 B 0644
LICENSE File 34.32 KB 0644
README.md File 1.96 KB 0644
body_trackers.php File 0 B 0644
composer.json File 703 B 0644
footer.inc File 98 B 0644
footer_minified.inc File 2.25 KB 0644
frontendfooter.php File 776 B 0644
frontendheader.php File 745 B 0644
functions.php File 5.84 KB 0644
gruntfile.js File 1.57 KB 0644
header.inc File 98 B 0644
header_minified.inc File 2.76 KB 0644
logo.svg File 4.67 KB 0644
mainmenu.php File 1.21 KB 0644
onyx-rss.php File 12.69 KB 0644
package.json File 322 B 0644
pagetop.php File 1.9 KB 0644
pagetop_minified.php File 2 KB 0644
pagetop_minimal.php File 1.15 KB 0644
publicpagetop.php File 1.16 KB 0644
rssfeed.php File 1.79 KB 0644
theme_info File 70 B 0644