Massive change of files organisation to move all files outside web-root
The web-root directory now contains URL rewrite stuff. All PHP & static files are in root src directory and are served via LSurl routes.
6
debian/conf/apache.conf
vendored
|
@ -1,4 +1,4 @@
|
||||||
Alias /ldapsaisie /usr/share/ldapsaisie
|
Alias /ldapsaisie /usr/share/ldapsaisie/public_html
|
||||||
|
|
||||||
<Directory /usr/share/ldapsaisie>
|
<Directory /usr/share/ldapsaisie>
|
||||||
<IfModule mod_php5.c>
|
<IfModule mod_php5.c>
|
||||||
|
@ -7,7 +7,3 @@ Alias /ldapsaisie /usr/share/ldapsaisie
|
||||||
</IfModule>
|
</IfModule>
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
<Directory /usr/share/ldapsaisie/bin>
|
|
||||||
Require all denied
|
|
||||||
</Directory>
|
|
||||||
|
|
2
debian/ldapsaisie.install
vendored
|
@ -1,4 +1,4 @@
|
||||||
debian/conf/apache.conf etc/ldapsaisie/
|
debian/conf/apache.conf etc/ldapsaisie/
|
||||||
lsexample/schema/lsexample.schema etc/ldap/schema/
|
lsexample/schema/lsexample.schema etc/ldap/schema/
|
||||||
lsexample/schema/lsexample.ldif etc/ldap/schema/
|
lsexample/schema/lsexample.ldif etc/ldap/schema/
|
||||||
public_html/* usr/share/ldapsaisie/
|
src/* usr/share/ldapsaisie/
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Detect
|
|
||||||
PUBLIC_HTML=$( realpath $( dirname $0 )/../ )
|
|
||||||
|
|
||||||
# Clean php file in tmp directory
|
|
||||||
[ -d "$PUBLIC_HTML/tmp" ] && rm -fr "$PUBLIC_HTML/tmp/*.php"
|
|
||||||
|
|
||||||
# Extract messages from LdapSaisie PHP files using xgettext
|
|
||||||
xgettext --from-code utf-8 \
|
|
||||||
-o "$PUBLIC_HTML/lang/ldapsaisie-main.pot" \
|
|
||||||
--omit-header \
|
|
||||||
--copyright-holder="Easter-eggs" \
|
|
||||||
--keyword="__" \
|
|
||||||
--keyword="___" \
|
|
||||||
$( find "$PUBLIC_HTML" -name "*.php" )
|
|
||||||
|
|
||||||
# Extract other messages from LdapSaisie templates files
|
|
||||||
$PUBLIC_HTML/lang/generate_lang_file.php -o "$PUBLIC_HTML/lang/ldapsaisie-templates.pot" \
|
|
||||||
-f pot \
|
|
||||||
--only templates
|
|
||||||
|
|
||||||
# Merge previous results in ldapsaisie.pot file
|
|
||||||
msgcat $PUBLIC_HTML/lang/ldapsaisie-main.pot $PUBLIC_HTML/lang/ldapsaisie-templates.pot -o $PUBLIC_HTML/lang/ldapsaisie.pot
|
|
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 224 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 396 B |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 508 B |
Before Width: | Height: | Size: 632 B After Width: | Height: | Size: 632 B |
Before Width: | Height: | Size: 359 B After Width: | Height: | Size: 359 B |
Before Width: | Height: | Size: 332 B After Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B |
Before Width: | Height: | Size: 551 B After Width: | Height: | Size: 551 B |
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 380 B |
Before Width: | Height: | Size: 486 B After Width: | Height: | Size: 486 B |
Before Width: | Height: | Size: 426 B After Width: | Height: | Size: 426 B |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 512 B |
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 474 B |
Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 380 B |
Before Width: | Height: | Size: 8 KiB After Width: | Height: | Size: 8 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |