mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-09 22:07:48 -05:00
* Minor update whitespace PHPCS rules To simplify our configuration, apply more rules, and be clearer about what is added or removed compared with PSR12. Does not change our current conventions, but just a bit more consistent. * Forgotten *.phtml * Sort exclusion patterns + add a few for Extensions repo * Relaxed some rules
46 lines
661 B
PHP
Executable File
46 lines
661 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
declare(strict_types=1);
|
|
require(__DIR__ . '/_cli.php');
|
|
|
|
$dirs = [
|
|
'/',
|
|
'/cache',
|
|
'/extensions-data',
|
|
'/favicons',
|
|
'/fever',
|
|
'/PubSubHubbub',
|
|
'/PubSubHubbub/feeds',
|
|
'/PubSubHubbub/keys',
|
|
'/tokens',
|
|
'/users',
|
|
'/users/_',
|
|
];
|
|
|
|
$ok = true;
|
|
|
|
foreach ($dirs as $dir) {
|
|
@mkdir(DATA_PATH . $dir, 0770, true);
|
|
$ok &= touch(DATA_PATH . $dir . '/index.html');
|
|
}
|
|
|
|
file_put_contents(DATA_PATH . '/.htaccess', <<<'EOF'
|
|
# Apache 2.2
|
|
<IfModule !mod_authz_core.c>
|
|
Order Allow,Deny
|
|
Deny from all
|
|
Satisfy all
|
|
</IfModule>
|
|
|
|
# Apache 2.4
|
|
<IfModule mod_authz_core.c>
|
|
Require all denied
|
|
</IfModule>
|
|
|
|
EOF
|
|
);
|
|
|
|
accessRights();
|
|
|
|
done((bool)$ok);
|