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.
This commit is contained in:
Benjamin Renard 2020-05-06 12:17:35 +02:00
parent 4593a94c7f
commit 7098b3ee79
582 changed files with 2507 additions and 2504 deletions

View File

@ -1,4 +1,4 @@
Alias /ldapsaisie /usr/share/ldapsaisie
Alias /ldapsaisie /usr/share/ldapsaisie/public_html
<Directory /usr/share/ldapsaisie>
<IfModule mod_php5.c>
@ -7,7 +7,3 @@ Alias /ldapsaisie /usr/share/ldapsaisie
</IfModule>
Options -Indexes +FollowSymLinks
</Directory>
<Directory /usr/share/ldapsaisie/bin>
Require all denied
</Directory>

View File

@ -1,4 +1,4 @@
debian/conf/apache.conf etc/ldapsaisie/
lsexample/schema/lsexample.schema etc/ldap/schema/
lsexample/schema/lsexample.ldif etc/ldap/schema/
public_html/* usr/share/ldapsaisie/
src/* usr/share/ldapsaisie/

View File

@ -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

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 224 B

After

Width:  |  Height:  |  Size: 224 B

View File

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 267 B

View File

Before

Width:  |  Height:  |  Size: 247 B

After

Width:  |  Height:  |  Size: 247 B

View File

Before

Width:  |  Height:  |  Size: 673 B

After

Width:  |  Height:  |  Size: 673 B

View File

Before

Width:  |  Height:  |  Size: 396 B

After

Width:  |  Height:  |  Size: 396 B

View File

Before

Width:  |  Height:  |  Size: 508 B

After

Width:  |  Height:  |  Size: 508 B

View File

Before

Width:  |  Height:  |  Size: 632 B

After

Width:  |  Height:  |  Size: 632 B

View File

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 359 B

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

View File

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 392 B

View File

Before

Width:  |  Height:  |  Size: 551 B

After

Width:  |  Height:  |  Size: 551 B

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 486 B

After

Width:  |  Height:  |  Size: 486 B

View File

Before

Width:  |  Height:  |  Size: 426 B

After

Width:  |  Height:  |  Size: 426 B

View File

Before

Width:  |  Height:  |  Size: 512 B

After

Width:  |  Height:  |  Size: 512 B

View File

Before

Width:  |  Height:  |  Size: 474 B

After

Width:  |  Height:  |  Size: 474 B

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Some files were not shown because too many files have changed in this diff Show More