aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/isabelle/config
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-11 15:34:31 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-01-11 15:34:31 +0100
commit423c3f1caefdf5f125a2acf7456b5ca0273cee4b (patch)
tree079f24a9d16dd83d0779d4f7a4c17e49a0160457 /modules/private/websites/isabelle/config
parent619e4f46adc15e409122c4e0fa0e0a0b811bb32f (diff)
downloadNix-423c3f1caefdf5f125a2acf7456b5ca0273cee4b.tar.gz
Nix-423c3f1caefdf5f125a2acf7456b5ca0273cee4b.tar.zst
Nix-423c3f1caefdf5f125a2acf7456b5ca0273cee4b.zip
Add iridologie via spip
Diffstat (limited to 'modules/private/websites/isabelle/config')
-rw-r--r--modules/private/websites/isabelle/config/chmod.php4
-rw-r--r--modules/private/websites/isabelle/config/connect.php15
-rw-r--r--modules/private/websites/isabelle/config/ldap.php9
3 files changed, 28 insertions, 0 deletions
diff --git a/modules/private/websites/isabelle/config/chmod.php b/modules/private/websites/isabelle/config/chmod.php
new file mode 100644
index 0000000..aae16cd
--- /dev/null
+++ b/modules/private/websites/isabelle/config/chmod.php
@@ -0,0 +1,4 @@
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3if (!defined('_SPIP_CHMOD')) define('_SPIP_CHMOD', 0777);
4?> \ No newline at end of file
diff --git a/modules/private/websites/isabelle/config/connect.php b/modules/private/websites/isabelle/config/connect.php
new file mode 100644
index 0000000..18b0933
--- /dev/null
+++ b/modules/private/websites/isabelle/config/connect.php
@@ -0,0 +1,15 @@
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3define('_MYSQL_SET_SQL_MODE',true);
4$GLOBALS['spip_connect_version'] = 0.7;
5spip_connect_db(
6 getenv("SPIP_MYSQL_HOST"),
7 getenv("SPIP_MYSQL_PORT"),
8 getenv("SPIP_MYSQL_USER"),
9 getenv("SPIP_MYSQL_PASSWORD"),
10 getenv("SPIP_MYSQL_DB"),
11 'mysql',
12 'spip',
13 'ldap.php'
14);
15?>
diff --git a/modules/private/websites/isabelle/config/ldap.php b/modules/private/websites/isabelle/config/ldap.php
new file mode 100644
index 0000000..825b7ed
--- /dev/null
+++ b/modules/private/websites/isabelle/config/ldap.php
@@ -0,0 +1,9 @@
1<?php
2if (!defined("_ECRIRE_INC_VERSION")) return;
3$GLOBALS['ldap_base'] = getenv("SPIP_LDAP_BASE");
4$GLOBALS['ldap_link'] = @ldap_connect(getenv("SPIP_LDAP_HOST"));
5@ldap_set_option($GLOBALS['ldap_link'],LDAP_OPT_PROTOCOL_VERSION,'3');
6@ldap_bind($GLOBALS['ldap_link'],getenv("SPIP_LDAP_SEARCH_DN"), getenv("SPIP_LDAP_SEARCH_PW"));
7$GLOBALS['ldap_champs'] = array('login' => array('sAMAccountName','uid','login','userid','cn','sn'),'nom' => 'cn','email' => 'mail','bio' => 'description',);
8$GLOBALS['ldap_search'] = getenv("SPIP_LDAP_SEARCH");
9?>