diff --git a/ProjetProgWeb/index.php b/ProjetProgWeb/index.php index c43b04d..55c612e 100644 --- a/ProjetProgWeb/index.php +++ b/ProjetProgWeb/index.php @@ -4,52 +4,20 @@ require_once("conf.php"); require_once("class/these.php"); require_once("class/dump.php"); -$these = new these("Florian", - "967125", - "Ma thèse très sympa", - "Didier Deschamps", - "Deschamps Didier", - "8516243", - "IUT Marne la vallée", - "128675", - "Informatique", - "passée", - "2001-1-3", - "2000-12-24", - "en", - "2146795", - false, - "2000-1-1", - "2000-1-1" -); -$dump = new dump($these); -$dump->sendThese(); - -/* -$row = 1; if (($handle = fopen("scripts/dump_abes_thesesfr.csv", "r")) !== FALSE) { + $row = 1; + $new_these = these::emptyThese(); while (($data = fgetcsv($handle, 10000, ";")) !== FALSE) { $num = count($data); - echo "
---------------- " . $row . " -----------------
---------------- " . $row . " -----------------
" . $row['author'] . " | " . $row['title'] . "
"; - } - $req->closeCursor(); -*/ +}