function setCookie($name, $value, $expire = 0) { // Make sure there isn't a port number in the default domain name // or the setcookie for the entire domain won't work if (isset($GLOBALS['sys_cookie_domain'])) { $expl = explode(':', $GLOBALS['sys_cookie_domain']); $host = $expl[0]; } else { list($host, $port) = explode(':', $GLOBALS['sys_default_domain']); } // If local machine, don't use a specific cookie host $pos = strpos($host, "."); if ($pos === false) { $cookie_host = ""; } else { if (browser_is_netscape4()) { $cookie_host = $host; } else { $cookie_host = "." . $host; } } $secure = (bool) Config::get('sys_force_ssl'); return setcookie($this->getInternalCookieName($name), $value, $expire, '/', $cookie_host, $secure); }
/** * header - public */ function header() { if (!browser_is_netscape4()) { $this->html_params['stylesheet'][] = '/wiki/themes/Codendi/phpwiki.css'; } parent::header(); }
/** * header - public */ function header() { if (!browser_is_netscape4()) { $this->html_params['stylesheet'][] = PHPWIKI_PLUGIN_BASE_URL . '/themes/Codendi/phpwiki.css'; } parent::header(); }
require_once 'common/widget/WidgetLayoutManager.class.php'; $hp = Codendi_HTMLPurifier::instance(); if (user_isloggedin()) { // If it's super user and license terms have not yet been agreed then redirect // to license agreement page if (user_is_super_user() && !license_already_displayed()) { session_redirect("/admin/approve_license.php"); } // Make sure this page is not cached because // it uses the exact same URL for all user's // personal page header("Cache-Control: no-cache, no-store, must-revalidate"); // for HTTP 1.1 header("Pragma: no-cache"); // for HTTP 1.0 if (browser_is_netscape4()) { $feedback .= $Language->getText('my_index', 'err_badbrowser'); } $title = $Language->getText('my_index', 'title', array($hp->purify(user_getrealname(user_getid()), CODENDI_PURIFIER_CONVERT_HTML) . ' (' . user_getname() . ')')); $GLOBALS['HTML']->includeJavascriptFile('/scripts/scriptaculous/scriptaculous.js'); my_header(array('title' => $title, 'body_class' => array('widgetable'))); echo '<p>' . $Language->getText('my_index', 'message') . '</p>'; $lm = new WidgetLayoutManager(); $lm->displayLayout(user_getid(), WidgetLayoutManager::OWNER_TYPE_USER); if (!$current_user->getPreference(Tuleap_Tour_WelcomeTour::TOUR_NAME)) { $GLOBALS['Response']->addTour(new Tuleap_Tour_WelcomeTour($current_user)); } ?> </span> <?php $request =& HTTPRequest::instance();
/** * Return true if browser used to submit the request is netscape 4. * * @return boolean */ public function browserIsNetscape4() { return browser_is_netscape4(); }
<?php // // Codendi // Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved // http://www.codendi.com // // // // // Read the user preferences $theme = $current_user->getTheme(); if ($theme == "" || $theme == "default") { // Use the defaut theme if (browser_is_netscape4() && array_key_exists('sys_themedefault_old', $GLOBALS)) { $theme = $GLOBALS['sys_themedefault_old']; } else { $theme = $GLOBALS['sys_themedefault']; } } // Initialize the global sys_user_theme variable $GLOBALS['sys_user_theme'] = $theme; // Find where the path is located $GLOBALS['sys_is_theme_custom'] = is_dir($GLOBALS['sys_custom_themeroot'] . '/' . $theme); // define the font size cookie for performance $font_size = $current_user->getFontSize(); if (!$font_size) { // Use the defaut fontsize //determine font for this platform if (browser_is_windows() && browser_is_ie()) { $font_size = 2;