summaryrefslogtreecommitdiffstats
path: root/saml_administrations.php
diff options
context:
space:
mode:
Diffstat (limited to 'saml_administrations.php')
-rw-r--r--saml_administrations.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/saml_administrations.php b/saml_administrations.php
new file mode 100644
index 0000000..eb91c13
--- /dev/null
+++ b/saml_administrations.php
@@ -0,0 +1,25 @@
+<?php
+
+if (!defined("_ECRIRE_INC_VERSION")) return;
+
+include_spip('inc/meta');
+include_spip('base/create');
+
+function saml_install($action) {
+ $plugins_actifs = liste_plugin_actifs();
+ $version_script = $plugins_actifs['SAML']['version'];
+
+ switch ($action) {
+ case 'test':
+ return ((isset($GLOBALS['meta']['saml_version'])) AND
+ ($GLOBALS['meta']['saml_version'] == $version_script));
+ case 'install':
+ include_spip('base/saml');
+ maj_tables('spip_auteurs');
+ ecrire_meta('saml_version', $version_script);
+ ecrire_metas();
+ break;
+ }
+}
+
+?>