Seite 1 von 1

th 23 domain

Verfasst: 29.04.2010 09:59
von engelchen
hallo,
ich habe mir den mod th 23 domain instaliert.
ich hab da jetzt mal ne frage zu, wo stell ich denn jetzt die cookies ein und die domains?
ich weiß das es ne blöde frage ist :-D aber ich komm gerade echt nicht weiter.
kann mir da jemand helfen?
muß ich da in irgendwas eintragen?

Code: Alles auswählen

set sitename
$config['sitename'] = (isset($th23_domain['server_name'][$_SERVER['SERVER_NAME']]['sitename']) && !empty($th23_domain['server_name'][$_SERVER['SERVER_NAME']]['sitename'])) ? $th23_domain['server_name'][$_SERVER['SERVER_NAME']]['sitename'] : $config['sitename'];

// set cookie domain
$config['cookie_domain'] = (isset($th23_domain['server_name'][$_SERVER['SERVER_NAME']]['cookie_domain']) && !empty($th23_domain['server_name'][$_SERVER['SERVER_NAME']]['cookie_domain'])) ? $th23_domain['server_name'][$_SERVER['SERVER_NAME']]['cookie_domain'] : $config['cookie_domain'];

// functions
function th23_set_cookies()
{
	global $config, $user, $template, $th23_domain, $phpbb_root_path, $phpEx;

	// set variables to display login according to options
	$domain_links = '';
	foreach($th23_domain['cookie_domain'] as $th23_domain_item => $null)
	{
		$domain_links .= '<a href="http://www.' . $th23_domain_item . '">' . $th23_domain_item . '</a>, ';
	}
	$domain_links = substr($domain_links, 0, -2);
	$template->assign_vars(array(
		
wäre cht super wenn mir jemand helfen könnte.