summaryrefslogtreecommitdiffstats
path: root/saml_administrations.php
blob: eb91c1329fba82cf28dcc28b5499e79d33b97576 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;
    }
}

?>