\r
cubePHP::neverStop();\r
\r
-$utilisateurs = $documents = false;\r
-$books = false;\r
+$utilisateurs=false;\r
+$documents = true;\r
+$books = true;\r
$tables = array('books', 'book_pages', 'dashboard', 'devis', 'documents', 'document_pages', 'entreprises', 'factures', 'icones', 'langues', 'projets', 'signatures', 'taches', 'themes', 'timereport', 'utilisateurs');\r
foreach($tables as $t) {\r
$core->con->execute('ALTER TABLE ' . $t . ' DISABLE KEYS');\r
$core->con->execute('TRUNCATE TABLE signatures');\r
$core->con->execute('TRUNCATE TABLE langues');\r
\r
-if ($documents) {\r
- $core->con->execute('TRUNCATE TABLE document_pages');\r
- $core->con->execute('TRUNCATE TABLE documents');\r
-}\r
-\r
if ($books) {\r
$core->con->execute('TRUNCATE TABLE book_pages');\r
$core->con->execute('TRUNCATE TABLE books');\r
}\r
\r
+if ($documents) {\r
+ $core->con->execute('TRUNCATE TABLE document_pages');\r
+ $core->con->execute('TRUNCATE TABLE documents');\r
+}\r
+\r
if ($utilisateurs) {\r
$core->con->execute('DELETE FROM entreprises WHERE entreprise_id>242 AND entreprise_id<7');\r
$core->con->execute('DELETE FROM utilisateurs WHERE utilisateur_id>278');\r