function send_new_project_email($group_id) { global $Language; $res_grp = db_query("SELECT * FROM groups WHERE group_id='" . db_ei($group_id) . "'"); if (db_numrows($res_grp) < 1) { echo $Language->getText('include_proj_email', 'g_not_exist', $group_id); } $row_grp = db_fetch_array($res_grp); $res_admins = db_query("SELECT user.user_name,user.email FROM user,user_group WHERE " . "user.user_id=user_group.user_id AND user_group.group_id='" . db_ei($group_id) . "' AND " . "user_group.admin_flags='A'"); $nb_recipients = db_numrows($res_admins); if ($nb_recipients < 1) { echo $Language->getText('include_proj_email', 'no_admin', $group_id); } // send one email per admin $nb_mail_failed = 0; $pm = ProjectManager::instance(); while ($row_admins = db_fetch_array($res_admins)) { $server = get_server_url(); $p = $pm->getProject($group_id); $host = $GLOBALS['sys_default_domain']; if ($p && $p->usesService('svn')) { $sf = new ServerFactory(); if ($s =& $sf->getServerById($p->services['svn']->getServerId())) { $host = URL::getHost($s->getUrl(session_issecure())); } } if ($GLOBALS['sys_force_ssl']) { $svn_url = 'https://' . $host; } else { $svn_url = 'http://svn.' . $row_grp['unix_group_name'] . '.' . $host; } $svn_url .= '/svnroot/' . $row_grp['unix_group_name']; // $message is defined in the content file include $Language->getContent('include/new_project_email'); // LJ Uncomment to test //echo $message; return $mail = new Mail(); $mail->setTo($row_admins['email']); $mail->setSubject($GLOBALS['sys_name'] . ' ' . $Language->getText('include_proj_email', 'proj_approve', $row_grp['unix_group_name'])); $mail->setBody($message); $mail->setFrom($GLOBALS['sys_email_admin']); if (!$mail->send()) { $nb_mail_failed++; } } return $nb_mail_failed < $nb_recipients; }
function _sessionIsSecure() { return session_issecure(); }
// Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // header("Expires: Wed, 11 Nov 1998 11:11:11 GMT"); header("Cache-Control: no-cache, no-store, must-revalidate"); require_once 'pre.php'; require_once 'account.php'; require_once 'common/include/CookieManager.class.php'; require_once 'common/user/LoginController.class.php'; $login_controller = new User_LoginController($request); if ($request->get('confirm_hash')) { $login_controller->confirmHash(); } $em =& EventManager::instance(); if (!session_issecure() && isset($GLOBALS['sys_https_host']) && $GLOBALS['sys_https_host'] != "") { //force use of SSL for login util_return_to('https://' . $GLOBALS['sys_https_host'] . '/account/login.php'); exit; } // // Validate input // // Clean variables $_cVar = array(); // Raw variables $_rVar = array(); $request =& HTTPRequest::instance(); $_rVar['form_loginname'] = null; if ($request->valid(new Valid_String('form_loginname'))) { $_rVar['form_loginname'] = $request->get('form_loginname');
if ($request->valid($vPv) && $request->get('pv') == 2) { $pv = 2; $HTML->pv_header(array()); } else { $pv = 0; site_header(array('title' => $Language->getText('my_redirect', 'page_title'))); } $vReturnTo = new Valid_String('return_to'); $vReturnTo->required(); if ($request->valid($vReturnTo)) { // if return_to URL start with a protocol name then take as is // otherwise prepend the proper http protocol // Re-serialize feedback to display it on the 'return_to' page. $HTML->_serializeFeedback(); $return_to = trim($request->get('return_to')); $use_ssl = session_issecure() || $GLOBALS['sys_force_ssl']; if ($use_ssl) { $server_url = "https://" . $GLOBALS['sys_https_host']; } else { $server_url = "http://" . $GLOBALS['sys_default_domain']; } if (preg_match("/^[A-Za-z]+:\\/\\//i", $return_to)) { $return_url = $return_to; } else { $return_url = $server_url . $return_to; } $redirect = $Language->getText('my_redirect', 'return_to', array($hp->purify($return_url, CODENDI_PURIFIER_CONVERT_HTML))); print ' <script language="JavaScript"> <!-- function return_to_url() {
/** * session_redirect() - Redirect browser within the site * * @param string Absolute path within the site * @return never returns */ function session_redirect($loc) { header('Location: http' . (session_issecure() ? 's' : '') . '://' . getenv('HTTP_HOST') . $loc); print "\n\n"; exit; }
/** * header() - "steel theme" top of page * * @param array Header parameters array */ function header($params) { if (!$params['title']) { $params['title'] = "FusionForge"; } else { $params['title'] = "FusionForge: " . $params['title']; } echo '<?xml version="1.0" encoding="utf-8"?>' . "\n"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo _('en'); ?> " lang="<?php echo _('en'); ?> "> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title><?php echo $params['title']; ?> </title> <link rel="stylesheet" type="text/css" href="<?php echo util_make_url('/themes/lite/css/theme.css'); ?> " /> <script type="text/javascript"> <!-- function help_window(helpurl) { HelpWin = window.open( '<?php echo session_issecure() ? 'https://' . $GLOBALS['sys_default_domain'] : 'http://' . $GLOBALS['sys_default_domain']; ?> ' + helpurl,'HelpWindow','scrollbars=yes,resizable=yes,toolbar=no,height=400,width=400'); } // --> <?php plugin_hook("javascript", false); ?> </script> <?php if (_('default_font') != 'default_font') { $site_fonts = _('default_font'); } else { $site_fonts = 'helvetica'; } ?> <style type="text/css"> <!-- OL,UL,P,BODY,TD,TR,TH,FORM { font-family: <?php echo $site_fonts; ?> ; font-size:<?php echo $this->FONTSIZE; ?> ; color: <?php echo $this->FONTCOLOR_CONTENT; ?> ; } H1 { font-size: x-large; font-family: <?php echo $site_fonts; ?> ; } H2 { font-size: large; font-family: <?php echo $site_fonts; ?> ; } H3 { font-size: medium; font-family: <?php echo $site_fonts; ?> ; } H4 { font-size: small; font-family: <?php echo $site_fonts; ?> ; } H5 { font-size: x-small; font-family: <?php echo $site_fonts; ?> ; } H6 { font-size: xx-small; font-family: <?php echo $site_fonts; ?> ; } PRE,TT { font-family: courier,sans-serif } --> </style> </head> <body> <div class="header"> <table border="0px" width="100%" cellspacing="0px" cellpadding="0px" class="content"> <tr> <td><a href="<?php echo util_make_url('/'); ?> "><img src="/themes/lite/images/gforge_logo.png" border="0" alt="Gforge Logo" width="200px" /></a></td> <td align="right"><?php echo $this->searchBox(); ?> </td> <td align="right"><?php if (session_loggedin()) { echo util_make_link('/account/logout.php', _('Logout')); ?> <br /><?php echo util_make_link('/account/', _('My Account')); ?> <br /><?php } else { echo util_make_link('/account/login.php', _('Login')); ?> <br /><?php echo util_make_link('/account/register.php', _('New Account')); ?> <br /><?php } ?> </td> <td> </td> </tr> </table> </div> <div class="menu"> <?php echo $this->mainMenu($params); ?> <!-- Inner Tabs / Shell --> <?php if (isset($params['group']) && $params['group']) { ?> <div class="union_menu" > </div> <?php echo $this->projectTabs($params['toptab'], $params['group']); ?> <?php } ?> </div> <div class="content"> <?php }
function header($params) { global $Language; $this->generic_header($params); //themable someday? $site_fonts = 'verdana,arial,helvetica,sans-serif'; echo '<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0" class="' . $this->getClassnamesForBodyTag($params) . '">'; echo $this->getOsdnNavBar(); echo html_blankimage(5, 100); ?> <br> <!-- start page body --> <div align="center"> <table cellpadding="0" cellspacing="0" border="0" width="97%"> <!-- First line with borders and corners --> <tr> <td background="<?php echo util_get_image_theme("upper_left_corner.png"); ?> " width="1%" height="26"><img src="<?php echo util_get_image_theme("upper_left_corner.png"); ?> " width="16" height="26" alt=" "></td> <td background="<?php echo util_get_image_theme("top_border.png"); ?> " align="left" colspan="3" width="99%"><a href="/"><img src="<?php echo util_get_image_theme("codex_banner_lc.png"); ?> " height="26" border="0" alt="<?php echo $GLOBALS['sys_name'] . ' ' . $Language->getText('include_layout', 'banner'); ?> "></a></td> <td><img src="<?php echo util_get_image_theme("upper_right_corner.png"); ?> " width="16" height="26" alt=" "></td> </tr> <!-- Second line with menus and content --> <tr> <td background="<?php echo util_get_image_theme("left_border.png"); ?> " align="left" valign="bottom" alt=""><img src="<?php echo util_get_image_theme("bottom_left_corner.png"); ?> " width="16" height="16" alt=""></td> <td colspan="3" > <!-- start main body cell --> <div align="left"> <table style=menus cellpadding="0" cellspacing="0" border="0" width="100%"> <tr valign="top"> <td class="menuframe"> <!-- VA Linux Stats Counter --> <?php if (!session_issecure()) { print '<IMG src="' . util_get_image_theme("clear.png") . '" width=140 height=1 alt="' . $Language->getText('include_layout', 'counter') . '"><BR>'; } else { print html_blankimage(1, 140) . '<br>'; } $main_body_class = ''; if (isset($params['toptab']) && is_string($params['toptab'])) { $main_body_class = 'service-' . $params['toptab']; } ?> <!-- Company Logo here --> <P> <?php print '<center><IMG src="' . util_get_image_theme("organization_logo.png") . '" alt="' . $GLOBALS['sys_org_name'] . ' ' . $Language->getText('include_layout', 'logo') . '"></center><BR>'; ?> <!-- menus --> <?php // html_blankimage(1,140); menu_print_sidebar($params); ?> <P> </TD> <td width="15" background="<?php echo util_get_image_theme("fade.png"); ?> " nowrap> </td> <td class="contenttable <?php echo $main_body_class; ?> "> <BR> <?php if (isset($params['group']) && $params['group']) { echo $this->project_tabs($params['toptab'], $params['group']); } else { if (strstr(getStringFromServer('REQUEST_URI'), '/my/') || strstr(getStringFromServer('REQUEST_URI'), '/account/')) { $tabs = array(array('link' => '/my/', 'label' => $Language->getText('my_index', 'my_dashboard')), array('link' => '/account/', 'label' => $Language->getText('my_index', 'account_maintenance'))); echo '<hr SIZE="1" NoShade>'; foreach ($tabs as $tab) { $this->tab_entry($tab['link'], '', $tab['label'], strstr(getStringFromServer('REQUEST_URI'), '/my/') ? 0 : (strstr(getStringFromServer('REQUEST_URI'), '/account') ? 2 : 1), ''); } echo '<hr SIZE="1" NoShade>'; } } echo $this->getBreadCrumbs(); echo $this->getToolbar(); echo $this->_getFeedback(); $this->_feedback->display(); echo $this->getNotificationPlaceholder(); }
function get_list_server_url() { if (session_issecure()) { return "https://" . $GLOBALS['sys_lists_host']; } else { return "http://" . $GLOBALS['sys_lists_host']; } }
$password2 = getStringFromRequest('password2'); $email = getStringFromRequest('email'); $mail_site = getStringFromRequest('mail_site'); $mail_va = getStringFromRequest('mail_va'); $language_id = getIntFromRequest('language_id'); $timezone = getStringFromRequest('timezone'); $jabber_address = getStringFromRequest('jabber_address'); $jabber_only = getStringFromRequest('jabber_only'); $theme_id = getIntFromRequest('theme_id'); $address = getStringFromRequest('address'); $address2 = getStringFromRequest('address2'); $phone = getStringFromRequest('phone'); $fax = getStringFromRequest('fax'); $title = getStringFromRequest('title'); $ccode = getStringFromRequest('ccode'); if ($sys_use_ssl && !session_issecure()) { //force use of SSL for login header('Location: https://' . getStringFromServer('HTTP_HOST') . getStringFromServer('REQUEST_URI')); } if (!$theme_id || !is_numeric($theme_id)) { $theme_id = $HTML->getThemeIdFromName($sys_theme); } if (getStringFromRequest('submit')) { /* Adding call to library rather than logic that used to be coded in this page */ if (!form_key_is_valid(getStringFromRequest('form_key'))) { exit_form_double_submit(); } $new_user = new GFUser();
<p> <?php print $GLOBALS['Language']->getText('account_login', 'password'); ?> : <br> <input type="password" name="form_pw" value=""> </p> <?php // Only show the stay in SSL mode if the server is SSL enabled // and it is not forced to operate in SSL mode if ($_useHttps && $GLOBALS['sys_force_ssl'] == 0) { $checked = ''; $ieMsg = ''; if (session_issecure()) { $checked = ' checked="checked"'; if (browser_is_ie() && browser_get_version() < '5.1') { $checked = ''; $ieMsg = $GLOBALS['Language']->getText('account_login', 'msie_pb'); } } echo '<p>'; echo '<input type="checkbox" name="stay_in_ssl" value="1"' . $checked . '>'; echo $GLOBALS['Language']->getText('account_login', 'stay_ssl'); echo '</p>'; if ($ieMsg) { echo '<p>' . $ieMsg . '</p>'; } } ?>
<?php // // SourceForge: Breaking Down the Barriers to Open Source Development // Copyright 1999-2000 (c) The SourceForge Crew // http://sourceforge.net // // $Id: get_session_hash.php,v 1.2 2003/11/13 11:29:27 helix Exp $ require 'squal_pre.php'; /* MUST USE SSL params: $user, $pass returns: either valid session_hash or ERROR string */ if (!session_issecure()) { //force use of SSL for login echo 'ERROR - MUST USE SSL'; exit; } $success = session_login_valid($user, $pass); if ($success) { echo $session_hash; } else { echo 'ERROR - ' . $feedback; }
/** * html_image() - Build an image tag of an image contained in $src * * @param string The source location of the image * @param int The width of the image * @param int The height of the image * @param array Any IMG tag parameters associated with this image (i.e. 'border', 'alt', etc...) * @param bool DEPRECATED */ function html_image($src, $width, $height, $args, $display = 1) { global $sys_images_url, $sys_images_secure_url, $HTML; $s = session_issecure() ? $sys_images_secure_url : $sys_images_url; return html_abs_image($s . $HTML->imgroot . $src, $width, $height, $args); }
function theme_header($params) { html_generic_header_start($params); //determine font for this platform if (browser_is_windows() && browser_is_ie()) { //ie needs smaller fonts $font_size = 'x-small'; $font_smaller = 'xx-small'; $font_smallest = '7pt'; } else { if (browser_is_windows()) { //netscape on wintel $font_size = 'small'; $font_smaller = 'x-small'; $font_smallest = 'x-small'; } else { if (browser_is_mac()) { //mac users need bigger fonts $font_size = 'medium'; $font_smaller = 'small'; $font_smallest = 'x-small'; } else { //linux and other users $font_size = 'small'; $font_smaller = 'x-small'; $font_smallest = 'xx-small'; } } } //themable someday? $site_fonts = 'verdana,arial,helvetica,sans-serif'; ?> <style type="text/css"> <!-- .titlebar {text-decoration:none; color:#000000; font-family: <?php echo $GLOBALS['TITLEBAR_font']; ?> ,Lucida; font-weight: bold; font-size:<?php echo $GLOBALS['TITLEBAR_size']; ?> } .title {text-decoration:none; color:#000000; font-family: Helvetica; font-weight: bold; font-size:20px} .normal {text-decoration:none; color:#000000; font-family: Helvetica; font-weight: light; font-size:12px} BODY { background-color: <?php echo $GLOBALS['COLOR_CONTENT_BACK']; ?> ; font-family: <?php echo $GLOBALS['FONT_CONTENT']; ?> ,<?php echo $site_fonts; ?> ; font-size:<?php echo $font_size; ?> ; } A { text-decoration: none; color #6666FF; } A:visited { text-decoration: none; color: #6666AA; } A:link { text-decoration: none; color: #6666AA; } A:active { text-decoration: none; color: #6666AA; } A:hover { text-decoration: none; color: #FF6666 } OL,UL,P,BODY,TD,TR,TH,FORM,SPAN { font-family: <?php echo $GLOBALS['FONT_CONTENT']; ?> ,arial,helvetica,sans-serif;color: #333333; } H1,H2,H3,H4,H5,H6 { font-family: <?php echo $GLOBALS['FONT_CONTENT']; ?> ,arial,helvetica,sans-serif } PRE,TT { font-family: courier,sans-serif } SPAN.center { text-align: center } SPAN.boxspace { font-size: 2pt; } A.maintitlebar { color: #FFFFFF } A.maintitlebar:visited { color: #FFFFFF } A.sortbutton { color: #FFFFFF; text-decoration: underline; } A.sortbutton:visited { color: #FFFFFF; text-decoration: underline; } A.menus { color: #000000; text-decoration: underline; } A.menus:visited { color: #000000; text-decoration: underline; } A.tabs { color: #000000; text-decoration: underline; } A.tabs:visited { color: #000000; text-decoration: underline; } SPAN.alignright { text-align: right } SPAN.maintitlebar { font-size: small; color: #FFFFFF } SPAN.titlebar { text-align: center; font-size: small; color: #FFFFFF; font-weight: bold } SPAN.develtitle { text-align: center; font-size: small; color: #000000; font-weight: bold } SPAN.osdn {font-size: x-small; font-family: verdana,arial,helvetica,sans-serif;} SPAN.search {font-size: x-small; font-family: verdana,arial,helvetica,sans-serif;} SPAN.slogan {font-size: large; font-weight: bold; font-family: verdana,arial,helvetica,sans-serif;} SPAN.footer {font-size: x-small; font-family: verdana,arial,helvetica,sans-serif;} TD.featurebox { font-size: small; } --> </style> <?php html_generic_header_end($params); ?> <BODY bgcolor=<?php echo $GLOBALS['COLOR_CONTENT_BACK']; ?> topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0"> <?php osdn_print_navbar(); ?> <!-- top title table --> <TABLE width="100%" border=0 cellspacing=0 cellpadding=0 bgcolor="<?php echo $GLOBALS['COLOR_BARBACK']; ?> " valign="center"> <TR valign="top" bgcolor="<?php echo $GLOBALS['COLOR_LTBACK1']; ?> "><TD> <A href="/"><?php html_image('/images/sflogo2-steel.png', '143', '70', array('vspace' => '0')); ?> </A> </TD> <TD width="99%"><!-- right of logo --> <a href="http://www.valinux.com"><?php html_image("images/valogo3.png", '117', '70', array('align' => 'right', 'alt' => 'VA Linux Systems', 'hspace' => '5', 'vspace' => '0')); ?> </A> <BR> <FONT SIZE="+1">Breaking Down The Barriers to Open Source Development</FONT> <BR> <?php if (!user_isloggedin()) { print '<B>Status: Not Logged In</B> <A href="/account/login.php">[Login]</A> | <A href="/account/register.php">[New User]</A><BR>'; } ?> <A href="/softwaremap/">[Software Map]</A> <A href="/new/">[New Releases]</A> <A href="/docs/site/">[Site Docs]</A> <A href="/top/">[Top Projects]</A> <!-- VA Linux Stats Counter --> <?php if (!session_issecure()) { print '<IMG src="http://www2.valinux.com/clear.gif?id=105" width=1 height=1 alt="Counter">'; } ?> </TD><!-- right of logo --> </TR> <TR><TD bgcolor="#543a48" colspan=2><IMG src="/images/blank.gif" height=2 vspace=0></TD></TR> </TABLE> <!-- end top title table --> <!-- content table --> <TABLE width="100%" cellspacing=0 cellpadding=0 border=0> <TR valign="top"> <TD bgcolor=<?php print $GLOBALS['COLOR_LTBACK1']; ?> > <!-- menus --> <?php menu_print_sidebar($params); ?> </TD> <td width="9"> <?php html_blankimage(1, 9); ?> </td> <!-- content --> <td width="99%"> <BR> <?php }
function util_make_return_to_url($url) { $urlToken = parse_url($url); $finaleUrl = ''; if (array_key_exists('host', $urlToken) && $urlToken['host']) { $server_url = $urlToken['scheme'] . '://' . $urlToken['host']; if (array_key_exists('port', $urlToken) && $urlToken['port']) { $server_url .= ':' . $urlToken['port']; } } else { if (session_issecure() && ($GLOBALS['sys_force_ssl'] || isset($_REQUEST['stay_in_ssl']) && $_REQUEST['stay_in_ssl'])) { $server_url = 'https://' . $GLOBALS['sys_https_host']; } else { $server_url = 'http://' . $GLOBALS['sys_default_domain']; } } $finaleUrl = $server_url; if (array_key_exists('path', $urlToken) && $urlToken['path']) { $finaleUrl .= $urlToken['path']; } if (array_key_exists('return_to', $_REQUEST) && $_REQUEST['return_to']) { $rt = 'return_to=' . urlencode($_REQUEST['return_to']); if (array_key_exists('query', $urlToken) && $urlToken['query']) { $finaleUrl .= '?' . $urlToken['query'] . '&' . $rt; } else { $finaleUrl .= '?' . $rt; } if (strstr($_REQUEST['return_to'], 'pv=2')) { $finaleUrl .= '&pv=2'; } } else { if (array_key_exists('query', $urlToken) && $urlToken['query']) { $finaleUrl .= '?' . $urlToken['query']; } } if (array_key_exists('fragment', $urlToken) && $urlToken['fragment']) { $finaleUrl .= '#' . $urlToken['fragment']; } return $finaleUrl; }
function osdn_print_navbar() { global $sys_default_name; print '<!-- OSDN navbar --> <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#CCCCCC"> <tr> <td valign="middle" align="left" bgcolor="#7B797B"> <SPAN class="osdn"> <b><a href="http://www.berlios.de/" style="text-decoration:none"><font color="#ffffff">BerliOS</a> <font color="#ffffff">:</font> '; osdn_print_randpick($GLOBALS['osdn_sites'], 5); print ' </SPAN> </td> <td valign="middle" align="right" bgcolor="#7B797B"> <SPAN class="osdn"> <b>'; /* <a href="http://www.osdn.com/index.pl?indexpage=myosdn" style="text-decoration:none"><font color="#ffffff">My OSDN</font></a> · <a href="" style="text-decoration:none"><font color="#ffffff">JOBS</font></a> · */ print ' <a href="/partners.php" style="text-decoration:none"><font color="#ffffff">Partners</font></a> <font color="#ffffff">·</font> <a href="/contact.php" style="text-decoration:none"><font color="#ffffff">Contact Us</font></a> </b></font> </SPAN> </td> </tr> </table> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td bgcolor="#ffffff" WIDTH="20%">'; echo '<a href="//' . $GLOBALS['sys_default_host'] . '/">' . html_image("images/berliOS_logo.png", "238", "61", array("hspace" => "5", "border" => "0", "alt" => " BerliOS ")) . '</a></TD><TD bgcolor="#ffce31" WIDTH="60%">'; echo ' <b><font size="+1">BerliOS Developer</font></b>'; echo '<br> Fostering Open Source Development'; srand((double) microtime() * 1000000); $random_num = rand(0, 100000); if (session_issecure()) { //secure pages use James Byer's Ad server } else { //insecure pages use osdn ad server } print '</td> <td valign="center" align="right" bgcolor="#ffce31" WIDTH="20%"><a href="http://www.fokus.fraunhofer.de">' . html_image("images/logo_fokus.png", "60", "60", array("hspace" => "5", "vspace" => "5", "border" => "0", "alt" => " Fraunhofer FOKUS ")) . '</a> </td> </tr> </table> '; // // Actual layer call must be outside of table for some reason // /* if (!session_issecure()) { } */ echo '<!-- End OSDN NavBar -->'; }
// Table for summary info print '<TABLE width="100%"><TR valign="top"><TD width="65%">' . "\n"; // Get group properties $res_grp = db_query("SELECT * FROM groups WHERE group_id=" . db_ei($group_id)); $row_grp = db_fetch_array($res_grp); $pm = ProjectManager::instance(); $p = $pm->getProject($group_id); // Show CVS access information if ($row_grp['svn_preamble'] != '') { echo $hp->purify(util_unconvert_htmlspecialchars($row_grp['svn_preamble']), CODENDI_PURIFIER_FULL); } else { $host = $GLOBALS['sys_default_domain']; if ($p && $p->usesService('svn')) { $sf = new ServerFactory(); if ($server =& $sf->getServerById($p->services['svn']->getServerId())) { $host = URL::getHost($server->getUrl(session_issecure())); } } if ($GLOBALS['sys_force_ssl']) { $svn_url = 'https://' . $host; } else { if (isset($GLOBALS['sys_disable_subdomains']) && $GLOBALS['sys_disable_subdomains']) { $svn_url = 'http://' . $host; } else { $svn_url = 'http://svn.' . $row_grp['unix_group_name'] . '.' . $host; } } // Domain name must be lowercase (issue with some SVN clients) $svn_url = strtolower($svn_url); $svn_url .= '/svnroot/' . $row_grp['unix_group_name']; // Hook to replace the default information about subversion