]>
git.immae.eu Git - perso/Immae/Config/Nix.git/blob - systems/eldiron/websites/cloud/add-htaccess.php
3 namespace bantu\IniGetWrapper {
class IniGetWrapper
{ } }
4 namespace Psr\Log {
class LoggerInterface
{ } }
9 namespace OCP\Security
{
10 class ISecureRandom {
}
16 public function __construct($a) {
19 public function getValue($val, $default) {
20 if(isset($this->a
[$val])) {
21 return $this->a
[$val];
32 public function __construct($argv) {
35 public function getSystemConfig() {
36 return new OC\
SystemConfig(Array(
37 'htaccess.RewriteBase' => $this->argv
[1],
41 public function get($c) {
44 public function getL10N() {
45 return new \OCP\
IL10N();
47 public function query($c) {
50 public function getSecureRandom() {
51 return new \OCP\Security\
ISecureRandom();
56 public static Bool $CLI = false;
57 public static $SERVERROOT = '.';
58 public static $WEBROOT;
59 public static \NServer
$server;
62 \OC
::$server = new NServer($argv);
63 \OC
::$WEBROOT = $argv[1];
65 require "./lib/private/Setup.php";
66 $result = \OC\Setup
::updateHtaccess();