mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
🗑️ Cleaning index.php.
This commit is contained in:
+10
-42
@@ -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 "<p>---------------- " . $row . " -----------------<br /></p>\n";
|
||||
$row++;
|
||||
for ($c=0; $c < $num; $c++) {
|
||||
if ($data[$c]) {
|
||||
echo $data[$c] . "<br />\n";
|
||||
} else {
|
||||
echo "NULL<br />\n";
|
||||
// echo "<p>---------------- " . $row . " -----------------<br /></p>\n";
|
||||
if ($row > 1) {
|
||||
for ($c = 0 ; $c < $num ; $c++) {
|
||||
$new_these->insertField($data[$c], $c);
|
||||
}
|
||||
}
|
||||
$dump = new dump($new_these);
|
||||
$dump->sendThese();
|
||||
} $row++;
|
||||
}
|
||||
fclose($handle);
|
||||
}*/
|
||||
|
||||
|
||||
/*
|
||||
$sql = 'SELECT * FROM theses';
|
||||
$req = $pdo->query($sql);
|
||||
while($row = $req->fetch()) {
|
||||
echo "<p>" . $row['author'] . " | " . $row['title'] . "</p>";
|
||||
}
|
||||
$req->closeCursor();
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user