Esempio n. 1
0
    unset($acs[0][3]);
}
$acid = -1;
foreach ($acs as $key => $value) {
    if (in_array($_GET['action'], $value)) {
        $acid = $key;
    }
}
if ($acid == -1) {
    $_GET['action'] = 'index';
}
$menuactive[$_GET['action'] . $_GET['op']] = ' class="active"';
$theurl = "admincp.php?action={$_GET['action']}";
$cacheinfo = array();
@(include_once S_ROOT . './function/model.func.php');
$models = getuserspacemid();
@(include_once S_ROOT . './data/system/group.cache.php');
$menus = array();
if (!empty($_SGLOBAL['grouparr'][$_SGLOBAL['member']['groupid']])) {
    $megroup = $_SGLOBAL['grouparr'][$_SGLOBAL['member']['groupid']];
    for ($i = 0; $i < 8; $i++) {
        $menus[$i] = array();
        foreach ($acs[$i] as $value) {
            if ($isfounder || !empty($megroup['manage' . $value])) {
                $menus[$i][$value] = 1;
                $_SGLOBAL['grouparr'][$_SGLOBAL['member']['groupid']]['manage' . $value] = 1;
            }
        }
    }
}
include_once template('admin/tpl/header.htm', 1);
Esempio n. 2
0
   if ($channels['menus']['bbs']) {
       $bbshtml = ' | <a href="' . $_SC['bbsurl'] . '" target="_blank">' . $blang['forum_visit'] . '</a>';
   }
   if ($channels['menus']['uchblog'] || $channels['menus']['uchimage']) {
       $uchhtml = ' | <a href="' . $_SC['uchurl'] . '" target="_blank">' . $blang['home_visit'] . '</a>';
   }
   $showpost = 0;
   $showposturl = '';
   $divhtml = '<div id="contribute_op" style="display:none;"><ul>';
   if (!in_array('news', $_SCONFIG['closechannels']) && !empty($_SGLOBAL['group']['managespacenews'])) {
       $divhtml .= '<li><a href="' . $siteurl . '/admincp.php?action=spacenews&op=add" target="_blank" onclick="hidendivop();">' . $lang['news'] . '</a></li>';
       $showpost++;
       $showposturl = $siteurl . '/admincp.php?action=spacenews&op=add';
   }
   include_once S_ROOT . './function/model.func.php';
   $midarr = getuserspacemid();
   if (!empty($midarr)) {
       foreach ($midarr as $tmpkey => $tmpvalue) {
           $divhtml .= '<li><a href="' . $siteurl . '/admincp.php?action=modelmanages&mid=' . $tmpvalue['mid'] . '&op=add" onclick="hidendivop();" target="_blank">' . $tmpvalue['modelalias'] . '</a></li>';
           $showpost++;
           $showposturl = $siteurl . '/admincp.php?action=modelmanages&mid=' . $tmpvalue['mid'] . '&op=add';
       }
   }
   if ($showpost == 1) {
       $showposturl = "document.write('<a href=\"{$showposturl}\" class=\"contribute_txt\" target=\"_blank\">{$lang['pannel_contribution']}</a> ');";
   } elseif ($showpost > 1) {
       $showposturl = "document.write('<a href=\"javascript:contributeop();\" class=\"contribute_txt\">{$lang['pannel_contribution']}</a> ');";
   }
   $divhtml .= '</ul></div>';
   print <<<END
tfunction contributeop() {