Commit b902901f authored by slopez's avatar slopez

bleh

parent 89204af6
......@@ -31,24 +31,16 @@
$topdir = "./";
require_once($topdir. "include/site.inc.php");
require_once($topdir. "include/entities/page.inc.php");
$site = new site ();
$site->add_css("css/doku.css");
$site->start_page("accueil","Bienvenue");
if ( !$site->user->is_valid() )
{
require_once($topdir. "include/entities/page.inc.php");
$page = new page ($site->db);
$page->load_by_pagename("info:welcome");
$site->add_contents($page->get_contents());
}
else
{
$cts = new contents("Accueil","bah c'est la page d'accueil.");
$site->add_contents($cts);
}
$page = new page ($site->db);
$page->load_by_pagename("info:welcome");
$site->add_contents($page->get_contents());
$site->end_page();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment