Shop problem

Er sagt doch die function template() gibts nicht (und/oder nicht definiert).
Zeig mal die index.php
 
Zuletzt bearbeitet:
Probier mal das
PHP:
$cfg['site_url'] = 'https://lose-script-shop.kilu.de/';

hab ich gemacht aber geht noch immer net

Edit: Hier ist der code was in index.php steht

PHP:
<?php
include('config.php');
include('inc/function.php');
include('inc/setdefault.php');

$header['subtitel'] = template('header_subtitel_home');

switch ($_GET['site']) {
case 'impressum':
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
$main['titel'] .= template('titel_standard', array('titel' => ' > Impressum'));
$main['content'] = template('impressum');
break;
case 'lizenz':
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
$main['titel'] .= template('titel_small', array('titel' => ' > '));
$main['titel'] .= template('titel_gelb', array('titel' => 'Lizenzbestimmungen'));
$main['content'] = template('lizenz');
break;
case 'shop':
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
$main['content'] = kategorie2kurzinfo($_GET['kat']);
break;
case 'angebote':
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
$main['titel'] .= template('titel_small', array('titel' => ' > '));
$main['titel'] .= template('titel_gelb', array('titel' => 'Sonderangebote'));
$main['content'] = angebote();
break;
default:
if (!isset($_GET['return'])) {
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
} else {
$main['titel'] = template('titel_standard', array('titel' => $cfg['site_titel']));
$main['titel'] .= template('titel_gelb', array('titel' => ' > '.returncode($_GET['return'])));
} 
$main['content'] = template('home');
}

$site['header'] = template('header', $header);
$site['content'] = template('main', $main);
$kategorien['titel'] = template('titel_standard', array('titel' => 'Kategorien'));
$kategorien['content']= template('user_menue_kategorien', array('subkategorien' => kategorie_menue($_GET['kat'])));
$site['navigation'] = template('menu_user', array('online' => counter_online(),'besucher' => counter_besucher(), 'pageviews' => counter_pageviews()));
$site['navigation'] .= template('navi', $kategorien);
$site['footer'] = template('footer');

print template('site', $site);
?>
 
ich hab jetzt die function datein nochmal auf dem server geladen aber jetzt steht template nicht gefunden
 
Was hast du hochgeladen?
Ich denk die function.php ist leer.

Zeig der Vollständigkeithalber mal die setdefault.php
 
Pfad ist nicht falsch

@checkerishier
hier der code was auf setdefault.php ist

PHP:
<?php
	$site 							= NULL;
	$navigation					= NULL;
	$content						= NULL;
	$header							= NULL;
	$footer							= NULL;
	$menue							=	NULL;

	$header['titel']		=	$cfg['site_titel'];
	$header['menu_titel']	=	template('header_clock');
	$header['icons']		=	template('header_icons_fav');
	$header['guthaben']	=	NULL;

	$navi['icons']			=	NULL;
	$navi['content']		=	NULL;

	$main['icons']			=	NULL;
	$main['content']		=	NULL;

	$main2['icons']			=	NULL;
	$main2['content']		=	NULL;

?>
 
Hallo,

wenn das Template site nicht gefunden da steht, ist der Pfad falsch.

Schau nochmal ganz genau in die config.php
$cfg['site_url'] = 'https://lose-script-shop.kilu.de/';
asad schrieb:
ich hab jetzt die function datein nochmal auf dem server geladen aber jetzt steht template nicht gefunden