ho messo sul server tutti i file.. ma la pagina iniziale rimane bianca....
come posso risolvere?
questo è il sorgente dell'index
- Code: Select all
<?php
ob_start();
error_reporting(0);
session_start();
$_SESSION['user_logged'] = false;
require_once('config.php');
$smarty->display('head.tpl');
$smarty->display('head_menu.tpl');
$smarty->display('search_form.tpl');
require_once('app-modules.php');
?>
</div>
<?php $smarty->display('footer.tpl'); ?>
e il file config.php è strutturato così
- Code: Select all
<?php
require('app-load.php');
$smarty->debugging = false; // debugging false = off, true = on
$smarty->caching = false; // caching = false = off, true = on
$smarty->assign('lang', $lang);
class configuration {
function cfg() {
$cfg = array(
'img_dir' => 'public/title_images/',
'site_url' => 'http://www.mysite.com/',
);
return $cfg;
}
}
$cfg = new configuration;
$smarty->assign('cfg', $cfg->cfg());
if(empty($_GET['slowo']) && empty($_GET['akcja'])) {
$smarty->assign('title', 'KatalogMP3.eu');
} else {
$smarty->assign('title', $f->dynamic_title($_GET['slowo']));
}
if($_GET['aplikacja'] == "price" || $_GET['aplikacja'] == "auctions" && $_GET['aplikacja'] == "lyrics") {
$smarty->assign('title', 'KatalogMP3.eu'); // default site title
}
if($_GET['akcja'] == "show" && $_GET['aplikacja'] == "mp3") {
$mp3_info = $wrzuta->get_file_info($_GET['mp3_id']);
$title = $mp3_info['title'];
$title .= ' MP3 ' . $lang['listen_and_download'];
$smarty->assign('title', $title);
}
if($_GET['akcja'] == "show" && $_GET['aplikacja'] == "video") {
$info = $youtube->get_link($_GET['video_id']);
$title = $info['title'];
$title .= ' Video ' . $lang['watch_and_download'];
$smarty->assign('title', $title);
}
?>
come risolvo... ?
Confido in voi...

