[SPIP] +version 3.0.7
[ptitvelo/web/www.git] / www / plugins-dist / dump / exec / base_restaurer.php
diff --git a/www/plugins-dist/dump/exec/base_restaurer.php b/www/plugins-dist/dump/exec/base_restaurer.php
new file mode 100644 (file)
index 0000000..296c757
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+/***************************************************************************\
+ *  SPIP, Systeme de publication pour l'internet                           *
+ *                                                                         *
+ *  Copyright (c) 2001-2013                                                *
+ *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
+ *                                                                         *
+ *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
+ *  Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne.   *
+\***************************************************************************/
+
+if (!defined('_ECRIRE_INC_VERSION')) return;
+
+/**
+ * Finir une restauration interrompue par logout
+ */
+function exec_base_restaurer_dist(){
+
+       include_spip('base/dump');
+       $status_file = base_dump_meta_name(0)."_restauration";
+       $restaurer = charger_fonction("restaurer","action");
+       $restaurer($status_file);
+
+}
+
+?>
\ No newline at end of file