diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 00:43:12 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-01-07 00:43:12 +0100 |
commit | 7d8b50d392f3aa588518d81b547ffe8cd9364544 (patch) | |
tree | 30930d0346f46c860a8356b1c663ef8f81c725b9 /virtual | |
parent | 34e2fd14c7091f85b667667cb2b74c1b75e005db (diff) | |
download | Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.tar.gz Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.tar.zst Nix-7d8b50d392f3aa588518d81b547ffe8cd9364544.zip |
Add Chloé's website
Diffstat (limited to 'virtual')
-rw-r--r-- | virtual/eldiron.nix | 22 | ||||
-rw-r--r-- | virtual/packages.nix | 3 | ||||
-rw-r--r-- | virtual/packages/chloe.json | 14 | ||||
-rw-r--r-- | virtual/packages/chloe.nix | 129 | ||||
-rw-r--r-- | virtual/packages/chloe_config/chmod.php | 4 | ||||
-rw-r--r-- | virtual/packages/chloe_config/connect.php | 6 | ||||
-rw-r--r-- | virtual/packages/chloe_config/ldap.php | 9 | ||||
-rw-r--r-- | virtual/packages/spip_ldap_patch.patch | 60 | ||||
-rw-r--r-- | virtual/packages/spip_mes_options.php | 17 |
9 files changed, 264 insertions, 0 deletions
diff --git a/virtual/eldiron.nix b/virtual/eldiron.nix index 2b407e2..3f2ba27 100644 --- a/virtual/eldiron.nix +++ b/virtual/eldiron.nix | |||
@@ -120,6 +120,7 @@ | |||
120 | "ludivine.immae.eu" = null; | 120 | "ludivine.immae.eu" = null; |
121 | "dev.aten.pro" = null; | 121 | "dev.aten.pro" = null; |
122 | "piedsjaloux.immae.eu" = null; | 122 | "piedsjaloux.immae.eu" = null; |
123 | "chloe.immae.eu" = null; | ||
123 | }; | 124 | }; |
124 | }; | 125 | }; |
125 | "ludivinecassal" = { | 126 | "ludivinecassal" = { |
@@ -228,6 +229,8 @@ | |||
228 | ludivinecassal_prod = mypkgs.ludivinecassal_prod.phpFpm.pool; | 229 | ludivinecassal_prod = mypkgs.ludivinecassal_prod.phpFpm.pool; |
229 | piedsjaloux_dev = mypkgs.piedsjaloux_dev.phpFpm.pool; | 230 | piedsjaloux_dev = mypkgs.piedsjaloux_dev.phpFpm.pool; |
230 | piedsjaloux_prod = mypkgs.piedsjaloux_prod.phpFpm.pool; | 231 | piedsjaloux_prod = mypkgs.piedsjaloux_prod.phpFpm.pool; |
232 | chloe_dev = mypkgs.chloe_dev.phpFpm.pool; | ||
233 | chloe_prod = mypkgs.chloe_prod.phpFpm.pool; | ||
231 | aten_dev = mypkgs.aten_dev.phpFpm.pool; | 234 | aten_dev = mypkgs.aten_dev.phpFpm.pool; |
232 | aten_prod = mypkgs.aten_prod.phpFpm.pool; | 235 | aten_prod = mypkgs.aten_prod.phpFpm.pool; |
233 | nextcloud = mypkgs.nextcloud.phpFpm.pool; | 236 | nextcloud = mypkgs.nextcloud.phpFpm.pool; |
@@ -242,6 +245,8 @@ | |||
242 | ludivinecassal_prod = mypkgs.ludivinecassal_prod.activationScript; | 245 | ludivinecassal_prod = mypkgs.ludivinecassal_prod.activationScript; |
243 | piedsjaloux_dev = mypkgs.piedsjaloux_dev.activationScript; | 246 | piedsjaloux_dev = mypkgs.piedsjaloux_dev.activationScript; |
244 | piedsjaloux_prod = mypkgs.piedsjaloux_prod.activationScript; | 247 | piedsjaloux_prod = mypkgs.piedsjaloux_prod.activationScript; |
248 | chloe_dev = mypkgs.chloe_dev.activationScript; | ||
249 | chloe_prod = mypkgs.chloe_prod.activationScript; | ||
245 | aten_dev = mypkgs.aten_dev.activationScript; | 250 | aten_dev = mypkgs.aten_dev.activationScript; |
246 | aten_prod = mypkgs.aten_prod.activationScript; | 251 | aten_prod = mypkgs.aten_prod.activationScript; |
247 | nextcloud = mypkgs.nextcloud.activationScript; | 252 | nextcloud = mypkgs.nextcloud.activationScript; |
@@ -390,6 +395,8 @@ | |||
390 | mypkgs.ludivinecassal_prod.apache.modules ++ | 395 | mypkgs.ludivinecassal_prod.apache.modules ++ |
391 | mypkgs.piedsjaloux_dev.apache.modules ++ | 396 | mypkgs.piedsjaloux_dev.apache.modules ++ |
392 | mypkgs.piedsjaloux_prod.apache.modules ++ | 397 | mypkgs.piedsjaloux_prod.apache.modules ++ |
398 | mypkgs.chloe_dev.apache.modules ++ | ||
399 | mypkgs.chloe_prod.apache.modules ++ | ||
393 | mypkgs.aten_dev.apache.modules ++ | 400 | mypkgs.aten_dev.apache.modules ++ |
394 | mypkgs.aten_prod.apache.modules ++ | 401 | mypkgs.aten_prod.apache.modules ++ |
395 | mypkgs.ympd.apache.modules ++ | 402 | mypkgs.ympd.apache.modules ++ |
@@ -461,6 +468,21 @@ | |||
461 | ]; | 468 | ]; |
462 | }) | 469 | }) |
463 | (withConf "eldiron" // { | 470 | (withConf "eldiron" // { |
471 | hostName = "chloe.immae.eu"; | ||
472 | documentRoot = mypkgs.chloe_dev.webRoot; | ||
473 | extraConfig = builtins.concatStringsSep "\n" [ | ||
474 | mypkgs.chloe_dev.apache.vhostConf | ||
475 | ]; | ||
476 | }) | ||
477 | (withConf "eldiron" // { | ||
478 | hostName = "osteopathe-cc.fr"; | ||
479 | serverAliases = [ "www.osteopathe-cc.fr" ]; | ||
480 | documentRoot = mypkgs.chloe_prod.webRoot; | ||
481 | extraConfig = builtins.concatStringsSep "\n" [ | ||
482 | mypkgs.chloe_prod.apache.vhostConf | ||
483 | ]; | ||
484 | }) | ||
485 | (withConf "eldiron" // { | ||
464 | hostName = "dev.aten.pro"; | 486 | hostName = "dev.aten.pro"; |
465 | documentRoot = mypkgs.aten_dev.webRoot; | 487 | documentRoot = mypkgs.aten_dev.webRoot; |
466 | extraConfig = builtins.concatStringsSep "\n" [ | 488 | extraConfig = builtins.concatStringsSep "\n" [ |
diff --git a/virtual/packages.nix b/virtual/packages.nix index ed88b9d..88b4717 100644 --- a/virtual/packages.nix +++ b/virtual/packages.nix | |||
@@ -4,6 +4,7 @@ let | |||
4 | ludivinecassal = callPackage ./packages/ludivinecassal.nix { inherit checkEnv fetchedGitPrivate; }; | 4 | ludivinecassal = callPackage ./packages/ludivinecassal.nix { inherit checkEnv fetchedGitPrivate; }; |
5 | piedsjaloux = callPackage ./packages/piedsjaloux.nix { inherit checkEnv fetchedGitPrivate; }; | 5 | piedsjaloux = callPackage ./packages/piedsjaloux.nix { inherit checkEnv fetchedGitPrivate; }; |
6 | aten = callPackage ./packages/aten.nix { inherit checkEnv fetchedGitPrivate; }; | 6 | aten = callPackage ./packages/aten.nix { inherit checkEnv fetchedGitPrivate; }; |
7 | chloe = callPackage ./packages/chloe.nix { inherit checkEnv fetchedGitPrivate; }; | ||
7 | nextcloud = callPackage ./packages/nextcloud.nix { inherit checkEnv; }; | 8 | nextcloud = callPackage ./packages/nextcloud.nix { inherit checkEnv; }; |
8 | adminer = callPackage ./packages/adminer.nix {}; | 9 | adminer = callPackage ./packages/adminer.nix {}; |
9 | ympd = callPackage ./packages/ympd.nix {}; | 10 | ympd = callPackage ./packages/ympd.nix {}; |
@@ -21,6 +22,8 @@ in | |||
21 | aten_prod = aten { environment = "prod"; }; | 22 | aten_prod = aten { environment = "prod"; }; |
22 | piedsjaloux_dev = piedsjaloux { environment = "dev"; }; | 23 | piedsjaloux_dev = piedsjaloux { environment = "dev"; }; |
23 | piedsjaloux_prod = piedsjaloux { environment = "prod"; }; | 24 | piedsjaloux_prod = piedsjaloux { environment = "prod"; }; |
25 | chloe_dev = chloe { environment = "dev"; }; | ||
26 | chloe_prod = chloe { environment = "prod"; }; | ||
24 | inherit nextcloud; | 27 | inherit nextcloud; |
25 | inherit mantisbt; | 28 | inherit mantisbt; |
26 | # FIXME: add buildbot | 29 | # FIXME: add buildbot |
diff --git a/virtual/packages/chloe.json b/virtual/packages/chloe.json new file mode 100644 index 0000000..d9cf651 --- /dev/null +++ b/virtual/packages/chloe.json | |||
@@ -0,0 +1,14 @@ | |||
1 | { | ||
2 | "tag": "1a2ef9a-master", | ||
3 | "meta": { | ||
4 | "name": "chloe", | ||
5 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | ||
6 | "branch": "master" | ||
7 | }, | ||
8 | "git": { | ||
9 | "url": "gitolite@git.immae.eu:perso/Immae/Sites/Chloe", | ||
10 | "rev": "1a2ef9acee91792e8096854919f0a2f005a3f481", | ||
11 | "sha256": "1h10d2bgvpkm7yi7sbshfi3h50fx202jgnfwiarq5wm947f9phrn", | ||
12 | "fetchSubmodules": true | ||
13 | } | ||
14 | } | ||
diff --git a/virtual/packages/chloe.nix b/virtual/packages/chloe.nix new file mode 100644 index 0000000..2ca1d6f --- /dev/null +++ b/virtual/packages/chloe.nix | |||
@@ -0,0 +1,129 @@ | |||
1 | { stdenv, lib, checkEnv, fetchzip, fetchurl, fetchedGitPrivate, sassc }: | ||
2 | let | ||
3 | chloe = { environment ? "dev" }: rec { | ||
4 | varPrefix = "CHLOE"; | ||
5 | envName= lib.strings.toUpper environment; | ||
6 | phpFpm = rec { | ||
7 | socket = "/var/run/phpfpm/chloe-${environment}.sock"; | ||
8 | pool = | ||
9 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_PASSWORD"; | ||
10 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_USER"; | ||
11 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_DB"; | ||
12 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_LDAP_DN"; | ||
13 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_LDAP_PASSWORD"; | ||
14 | assert checkEnv "NIXOPS_${varPrefix}_${envName}_LDAP_SEARCH"; | ||
15 | '' | ||
16 | listen = ${socket} | ||
17 | user = ${apache.user} | ||
18 | group = ${apache.group} | ||
19 | listen.owner = ${apache.user} | ||
20 | listen.group = ${apache.group} | ||
21 | php_admin_value[upload_max_filesize] = 20M | ||
22 | php_admin_value[post_max_size] = 20M | ||
23 | ;php_admin_flag[log_errors] = on | ||
24 | php_admin_value[open_basedir] = "${./spip_mes_options.php}:${configDir}:${webRoot}:${varDir}:/tmp" | ||
25 | env[SPIP_CONFIG_DIR] = "${configDir}" | ||
26 | env[SPIP_LDAP_BASE] = "dc=immae,dc=eu" | ||
27 | env[SPIP_LDAP_HOST] = "ldaps://ldap.immae.eu" | ||
28 | env[SPIP_LDAP_SEARCH_DN] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_LDAP_DN"}" | ||
29 | env[SPIP_LDAP_SEARCH_PW] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_LDAP_PASSWORD"}" | ||
30 | env[SPIP_LDAP_SEARCH] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_LDAP_SEARCH"}" | ||
31 | env[SPIP_MYSQL_HOST] = "db-1.immae.eu" | ||
32 | env[SPIP_MYSQL_DB] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_DB"}" | ||
33 | env[SPIP_MYSQL_USER] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_USER"}" | ||
34 | env[SPIP_MYSQL_PASSWORD] = "${builtins.getEnv "NIXOPS_${varPrefix}_${envName}_MYSQL_PASSWORD"}" | ||
35 | ${if environment == "dev" then '' | ||
36 | pm = ondemand | ||
37 | pm.max_children = 5 | ||
38 | pm.process_idle_timeout = 60 | ||
39 | '' else '' | ||
40 | pm = dynamic | ||
41 | pm.max_children = 20 | ||
42 | pm.start_servers = 2 | ||
43 | pm.min_spare_servers = 1 | ||
44 | pm.max_spare_servers = 3 | ||
45 | ''}''; | ||
46 | }; | ||
47 | apache = { | ||
48 | user = "wwwrun"; | ||
49 | group = "wwwrun"; | ||
50 | modules = [ "proxy_fcgi" ]; | ||
51 | vhostConf = '' | ||
52 | RewriteEngine On | ||
53 | ${if environment == "prod" then '' | ||
54 | RewriteRule ^/news.rss /spip.php?page=backend&id_rubrique=1 | ||
55 | '' else ""} | ||
56 | |||
57 | <FilesMatch "\.php$"> | ||
58 | SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost" | ||
59 | </FilesMatch> | ||
60 | |||
61 | <Directory ${webRoot}> | ||
62 | DirectoryIndex index.php index.htm index.html | ||
63 | Options -Indexes +FollowSymLinks +MultiViews +Includes | ||
64 | Include ${webRoot}/htaccess.txt | ||
65 | |||
66 | AllowOverride AuthConfig FileInfo Limit | ||
67 | Require all granted | ||
68 | </Directory> | ||
69 | |||
70 | <DirectoryMatch "${varDir}/tmp"> | ||
71 | Require all denied | ||
72 | </DirectoryMatch> | ||
73 | |||
74 | <DirectoryMatch "${webRoot}/squelettes"> | ||
75 | Require all denied | ||
76 | </DirectoryMatch> | ||
77 | |||
78 | <FilesMatch "(.htaccess|rewrite-rules|.gitignore)$"> | ||
79 | Require all denied | ||
80 | </FilesMatch> | ||
81 | |||
82 | ${if environment == "dev" then '' | ||
83 | <Location /> | ||
84 | Use LDAPConnect | ||
85 | Require ldap-group cn=chloe.immae.eu,cn=httpd,ou=services,dc=immae,dc=eu | ||
86 | ErrorDocument 401 "<html><meta http-equiv=\"refresh\" content=\"0;url=https://osteopathe-cc.fr\"></html>" | ||
87 | </Location> | ||
88 | '' else ""} | ||
89 | ''; | ||
90 | }; | ||
91 | activationScript = { | ||
92 | deps = [ "wrappers" ]; | ||
93 | text = '' | ||
94 | install -m 0755 -o ${apache.user} -g ${apache.group} -d ${varDir} ${varDir}/tmp ${varDir}/local | ||
95 | ''; | ||
96 | }; | ||
97 | configDir = ./chloe_config; | ||
98 | varDir = "/var/lib/chloe_${environment}"; | ||
99 | siteDir = stdenv.mkDerivation (fetchedGitPrivate ./chloe.json // rec { | ||
100 | buildPhase = '' | ||
101 | make | ||
102 | ''; | ||
103 | installPhase = '' | ||
104 | cp -a . $out | ||
105 | ''; | ||
106 | buildInputs = [ sassc ]; | ||
107 | }); | ||
108 | webRoot = stdenv.mkDerivation rec { | ||
109 | name = "spip-${version}"; | ||
110 | version = "3.2"; | ||
111 | src = fetchzip { | ||
112 | url = "http://files.spip.org/spip/stable/${name}.zip"; | ||
113 | sha256 = "0cacpxs9nv61i3hzd3nbmplq4mp22s886llhacp3n4923jd6snx5"; | ||
114 | }; | ||
115 | paches = [ ./spip_ldap_patch.patch ]; | ||
116 | buildPhase = '' | ||
117 | rm -rf IMG local tmp config/remove.txt | ||
118 | ln -sf ${./spip_mes_options.php} config/mes_options.php | ||
119 | echo "Require all denied" > "config/.htaccess" | ||
120 | ln -sf ../../../../../${varDir}/{IMG,local,tmp} . | ||
121 | ''; | ||
122 | installPhase = '' | ||
123 | cp -a . $out | ||
124 | cp -a ${siteDir}/* $out | ||
125 | ''; | ||
126 | }; | ||
127 | }; | ||
128 | in | ||
129 | chloe | ||
diff --git a/virtual/packages/chloe_config/chmod.php b/virtual/packages/chloe_config/chmod.php new file mode 100644 index 0000000..aae16cd --- /dev/null +++ b/virtual/packages/chloe_config/chmod.php | |||
@@ -0,0 +1,4 @@ | |||
1 | <?php | ||
2 | if (!defined("_ECRIRE_INC_VERSION")) return; | ||
3 | if (!defined('_SPIP_CHMOD')) define('_SPIP_CHMOD', 0777); | ||
4 | ?> \ No newline at end of file | ||
diff --git a/virtual/packages/chloe_config/connect.php b/virtual/packages/chloe_config/connect.php new file mode 100644 index 0000000..2e4439f --- /dev/null +++ b/virtual/packages/chloe_config/connect.php | |||
@@ -0,0 +1,6 @@ | |||
1 | <?php | ||
2 | if (!defined("_ECRIRE_INC_VERSION")) return; | ||
3 | define('_MYSQL_SET_SQL_MODE',true); | ||
4 | $GLOBALS['spip_connect_version'] = 0.7; | ||
5 | spip_connect_db(getenv("SPIP_MYSQL_HOST"),'',getenv("SPIP_MYSQL_USER"),getenv("SPIP_MYSQL_PASSWORD"),getenv("SPIP_MYSQL_DB"),'mysql', 'spip','ldap.php'); | ||
6 | ?> | ||
diff --git a/virtual/packages/chloe_config/ldap.php b/virtual/packages/chloe_config/ldap.php new file mode 100644 index 0000000..825b7ed --- /dev/null +++ b/virtual/packages/chloe_config/ldap.php | |||
@@ -0,0 +1,9 @@ | |||
1 | <?php | ||
2 | if (!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 | ?> | ||
diff --git a/virtual/packages/spip_ldap_patch.patch b/virtual/packages/spip_ldap_patch.patch new file mode 100644 index 0000000..653c909 --- /dev/null +++ b/virtual/packages/spip_ldap_patch.patch | |||
@@ -0,0 +1,60 @@ | |||
1 | --- old/ecrire/auth/ldap.php 2017-06-08 21:58:17.000000000 +0200 | ||
2 | +++ new/ecrire/auth/ldap.php 2017-06-10 02:54:02.687954143 +0200 | ||
3 | @@ -171,24 +171,41 @@ | ||
4 | $desc = isset($ldap['attributes']) && $ldap['attributes'] ? $ldap['attributes'] : $GLOBALS['ldap_attributes'] ; | ||
5 | |||
6 | $logins = is_array($desc['login']) ? $desc['login'] : array($desc['login']); | ||
7 | + if (isset($GLOBALS['ldap_search'])) { | ||
8 | + $search_query = str_replace("%user%", $login_search, $GLOBALS['ldap_search']); | ||
9 | + $result = @ldap_search($ldap_link, $ldap_base, $search_query, array("dn")); | ||
10 | + $info = @ldap_get_entries($ldap_link, $result); | ||
11 | + // Ne pas accepter les resultats si plus d'une entree | ||
12 | + // (on veut un attribut unique) | ||
13 | |||
14 | - // Tenter une recherche pour essayer de retrouver le DN | ||
15 | - foreach ($logins as $att) { | ||
16 | - $result = @ldap_search($ldap_link, $ldap_base, "$att=$login_search", array("dn")); | ||
17 | - $info = @ldap_get_entries($ldap_link, $result); | ||
18 | - // Ne pas accepter les resultats si plus d'une entree | ||
19 | - // (on veut un attribut unique) | ||
20 | + if (is_array($info) and $info['count'] == 1) { | ||
21 | + $dn = $info[0]['dn']; | ||
22 | + if (!$checkpass) { | ||
23 | + return $dn; | ||
24 | + } | ||
25 | + if (@ldap_bind($ldap_link, $dn, $pass)) { | ||
26 | + return $dn; | ||
27 | + } | ||
28 | + } | ||
29 | + } else { | ||
30 | + // Tenter une recherche pour essayer de retrouver le DN | ||
31 | + foreach ($logins as $att) { | ||
32 | + $result = @ldap_search($ldap_link, $ldap_base, "$att=$login_search", array("dn")); | ||
33 | + $info = @ldap_get_entries($ldap_link, $result); | ||
34 | + // Ne pas accepter les resultats si plus d'une entree | ||
35 | + // (on veut un attribut unique) | ||
36 | |||
37 | - if (is_array($info) and $info['count'] == 1) { | ||
38 | - $dn = $info[0]['dn']; | ||
39 | - if (!$checkpass) { | ||
40 | - return $dn; | ||
41 | - } | ||
42 | - if (@ldap_bind($ldap_link, $dn, $pass)) { | ||
43 | - return $dn; | ||
44 | - } | ||
45 | - } | ||
46 | - } | ||
47 | + if (is_array($info) and $info['count'] == 1) { | ||
48 | + $dn = $info[0]['dn']; | ||
49 | + if (!$checkpass) { | ||
50 | + return $dn; | ||
51 | + } | ||
52 | + if (@ldap_bind($ldap_link, $dn, $pass)) { | ||
53 | + return $dn; | ||
54 | + } | ||
55 | + } | ||
56 | + } | ||
57 | + } | ||
58 | |||
59 | if ($checkpass and !isset($dn)) { | ||
60 | // Si echec, essayer de deviner le DN | ||
diff --git a/virtual/packages/spip_mes_options.php b/virtual/packages/spip_mes_options.php new file mode 100644 index 0000000..88ac449 --- /dev/null +++ b/virtual/packages/spip_mes_options.php | |||
@@ -0,0 +1,17 @@ | |||
1 | <?php // /!\ Important: There must be no blank space before <?php or after ?> | ||
2 | // This file was inspired from the spip contrib website | ||
3 | // http://www.spip.net/fr_article3811.html | ||
4 | |||
5 | $config_dir = getenv('SPIP_CONFIG_DIR') . '/'; | ||
6 | |||
7 | $cookie_prefix = str_replace('.', '_', $site); | ||
8 | $table_prefix = 'spip'; | ||
9 | |||
10 | spip_initialisation( | ||
11 | $config_dir, | ||
12 | _DIR_RACINE . _NOM_PERMANENTS_ACCESSIBLES, | ||
13 | _DIR_RACINE . _NOM_TEMPORAIRES_INACCESSIBLES, | ||
14 | _DIR_RACINE . _NOM_TEMPORAIRES_ACCESSIBLES | ||
15 | ); | ||
16 | |||
17 | ?> | ||