Exemplo n.º 1
0
    if ($g_user->hasPermission('SyncPhorumUsers')) {
        $menu_item =& DynMenuItem::Create(getGS('Synchronize Newscoop and Phorum users'), "/$ADMIN/home.php?sync_users=yes",
        array('icon' => ''));
        $menu_users->addItem($menu_item);
    }

    if ($g_user->hasPermission('EditAuthors')) {
        $menu_item =& DynMenuItem::Create(getGS('Authors'),
            "/$ADMIN/users/authors.php?Back=".urlencode($_SERVER['REQUEST_URI']),
            array('icon' => ''));
        $menu_users->addItem($menu_item);
    }
}

// Creates the Plugins menu
$menu_plugins = CampPlugin::CreatePluginMenu();

// Page title
$siteTitle = (!empty($Campsite['site']['title'])) ? htmlspecialchars($Campsite['site']['title']) : putGS("Newscoop") . $Campsite['VERSION'];

// locale setting for datepicker
$locale = !empty($_COOKIE['TOL_Language']) ? $_COOKIE['TOL_Language'] : 'en';

?>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta http-equiv="Expires" content="now" />
  <title><?php p($siteTitle); ?></title>

  <script type="text/javascript"><!--
    var website_url = "<?php echo $Campsite['WEBSITE_URL'];?>";