Bonjour
Voici mon site : spertoo (dot) com
J’été entrain de télécharger mon site, je l’ai vue que 2 min et hop tout est blanc
Je l’héberge sur OVH, je pense que c’est un problème de serveur
Code:
session_start();
include('_includes/prepend.php');
//recuperation de la liste des categories
$categorie= new Categorie();
$categories=$categorie->find("1 ORDER BY ordre ASC");
//comptage du nombre de sites dans chaque categorie
$tab_nb_sites=array();
$site=new Site();
$echange=new Echange();
if(is_array($categories))
{
foreach($categories as $cat)
{
$tab_nb_sites[$cat->id]=$site->count("id_categorie = '$cat->id' AND typevente = 'public' AND dateannonce > '0000-00-00'");
$tab_nb_echanges[$cat->id]=$echange->count("id_categorie = '$cat->id' AND dateannonce > '0000-00-00'");
}
}
//recuperation des 5 derniers sites echange de liens
$lastechanges=$echange->find("dateannonce > '0000-00-00' ORDER BY dateannonce DESC LIMIT 5");
//recuperation des 5 derniers sites a vendre
$lastsites=$site->find("type = 'SITE' AND typevente='public' AND dateannonce > '0000-00-00' ORDER BY dateannonce DESC LIMIT 5");
//recuperation des 5 derniers ndd a vendre
$lastndd=$site->find("type = 'NDD' AND typevente='public' AND dateannonce > '0000-00-00' ORDER BY dateannonce DESC LIMIT 5");
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* initialisation d'une instance de smarty
*/
$smarty = new Smarty;
$smarty->template_dir = './templates/';
$smarty->compile_dir = './templates_c/';
$smarty->compile_check = true;
$smarty->debugging = false;
$smarty->assign('categories',$categories);
$smarty->assign('tab_nb_sites',$tab_nb_sites);
$smarty->assign('tab_nb_echanges',$tab_nb_echanges);
if(is_array($lastsites) && sizeof($lastsites) > 0)
$smarty->assign('lastsites',$lastsites);
if(is_array($lastndd) && sizeof($lastndd) > 0)
$smarty->assign('lastndd',$lastndd);
if(is_array($lastechanges) && sizeof($lastechanges) > 0)
$smarty->assign('lastechanges',$lastechanges);
$smarty->assign('titrepage','Spertoo - Echanges de liens, Partenariats, Achat vente de sites internet et de noms de domaines');
if($_SESSION['Compte'])
$smarty->assign('compte',unserialize($_SESSION['Compte']));
/* * * * * * * * * * * *
* Affichage du template
*/
$smarty->display('index.tpl');
Merci
Cordialement