forked from ZwiiCMS-Team/ZwiiCMS
11.6.00-dev001 configuration du proxy au démarrage
This commit is contained in:
parent
2f44aceac5
commit
fabd739896
@ -47,7 +47,7 @@ class common {
|
|||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/';
|
||||||
|
|
||||||
const ZWII_VERSION = '11.6.00-dev';
|
const ZWII_VERSION = '11.6.00-dev001';
|
||||||
const ZWII_UPDATE_CHANNEL = "test";
|
const ZWII_UPDATE_CHANNEL = "test";
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
|
@ -22,6 +22,12 @@ class install extends common {
|
|||||||
'update' => self::GROUP_ADMIN
|
'update' => self::GROUP_ADMIN
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Type de proxy
|
||||||
|
public static $proxyType = [
|
||||||
|
'tcp://' => 'TCP',
|
||||||
|
'http://' => 'HTTP'
|
||||||
|
];
|
||||||
|
|
||||||
// Thèmes proposés à l'installation
|
// Thèmes proposés à l'installation
|
||||||
public static $themes = [];
|
public static $themes = [];
|
||||||
|
|
||||||
@ -98,6 +104,12 @@ class install extends common {
|
|||||||
$this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]);
|
$this->setData(['module', 'blog', 'posts', 'mon-deuxieme-article', 'userId', $userId]);
|
||||||
$this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]);
|
$this->setData(['module', 'blog', 'posts', 'mon-troisieme-article', 'userId', $userId]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sauvegarder la configuration du Proxy
|
||||||
|
$this->setData(['config', 'proxyType', $this->getInput('installProxyType') ]);
|
||||||
|
$this->setData(['config', 'proxyUrl', $this->getInput('installProxyUrl') ]);
|
||||||
|
$this->setData(['config', 'proxyPort', $this->getInput('installProxyPort', helper::FILTER_INT)]);
|
||||||
|
|
||||||
// Images exemples livrées dans tous les cas
|
// Images exemples livrées dans tous les cas
|
||||||
try {
|
try {
|
||||||
// Décompression dans le dossier de fichier temporaires
|
// Décompression dans le dossier de fichier temporaires
|
||||||
|
@ -1,56 +1,94 @@
|
|||||||
<p>Renseignez les champs ci-dessous pour finaliser l'installation.</p>
|
<p>Renseignez les champs ci-dessous pour finaliser l'installation.</p>
|
||||||
<?php echo template::formOpen('installForm'); ?>
|
<?php echo template::formOpen('installForm'); ?>
|
||||||
<?php echo template::text('installId', [
|
<ul class="accordion" data-speed="150">
|
||||||
'autocomplete' => 'off',
|
<li class="accordion-item active">
|
||||||
'label' => 'Identifiant'
|
<h3 class="accordion-title">Compte administrateur</h3>
|
||||||
]); ?>
|
<div class="accordion-content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col12">
|
||||||
<?php echo template::password('installPassword', [
|
<?php echo template::text('installId', [
|
||||||
'autocomplete' => 'off',
|
'autocomplete' => 'off',
|
||||||
'label' => 'Mot de passe'
|
'label' => 'Identifiant'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
</div>
|
||||||
<?php echo template::password('installConfirmPassword', [
|
<div class="row">
|
||||||
'autocomplete' => 'off',
|
<div class="col6">
|
||||||
'label' => 'Confirmation'
|
<?php echo template::password('installPassword', [
|
||||||
]); ?>
|
'autocomplete' => 'off',
|
||||||
</div>
|
'label' => 'Mot de passe'
|
||||||
</div>
|
]); ?>
|
||||||
<?php echo template::mail('installMail', [
|
</div>
|
||||||
'autocomplete' => 'off',
|
<div class="col6">
|
||||||
'label' => 'Adresse mail'
|
<?php echo template::password('installConfirmPassword', [
|
||||||
]); ?>
|
'autocomplete' => 'off',
|
||||||
<div class="row">
|
'label' => 'Confirmation'
|
||||||
<div class="col6">
|
]); ?>
|
||||||
<?php echo template::text('installFirstname', [
|
</div>
|
||||||
'autocomplete' => 'off',
|
</div>
|
||||||
'label' => 'Prénom'
|
<?php echo template::mail('installMail', [
|
||||||
]); ?>
|
'autocomplete' => 'off',
|
||||||
</div>
|
'label' => 'Adresse mail'
|
||||||
<div class="col6">
|
]); ?>
|
||||||
<?php echo template::text('installLastname', [
|
<div class="row">
|
||||||
'autocomplete' => 'off',
|
<div class="col6">
|
||||||
'label' => 'Nom'
|
<?php echo template::text('installFirstname', [
|
||||||
]); ?>
|
'autocomplete' => 'off',
|
||||||
</div>
|
'label' => 'Prénom'
|
||||||
</div>
|
]); ?>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
<div class="col6">
|
||||||
<?php echo template::select('installTheme', $module::$themes, [
|
<?php echo template::text('installLastname', [
|
||||||
'label' => 'Thème'
|
'autocomplete' => 'off',
|
||||||
]); ?>
|
'label' => 'Nom'
|
||||||
</div>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
</div>
|
||||||
<div class="col12">
|
</div>
|
||||||
<?php echo template::checkbox('installDefaultData',true , 'Ne pas charger l\'exemple de site (utilisateurs avancés)', [
|
</li>
|
||||||
'checked' => false
|
<li class="accordion-item">
|
||||||
]);
|
<h3 class="accordion-title">Options avancées</h3>
|
||||||
?>
|
<div class="accordion-content">
|
||||||
</div>
|
<div class="row">
|
||||||
</div>
|
<div class="col12">
|
||||||
|
<?php echo template::checkbox('installDefaultData',true , 'Ne pas charger l\'exemple de site (utilisateurs avancés)', [
|
||||||
|
'checked' => false
|
||||||
|
]);
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::select('installProxyType', $module::$proxyType, [
|
||||||
|
'label' => 'Type de proxy',
|
||||||
|
'selected' => $this->getData(['config', 'proxyType'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col6">
|
||||||
|
<?php echo template::text('installProxyUrl', [
|
||||||
|
'label' => 'Adresse du proxy',
|
||||||
|
'placeholder' => 'cache.proxy.fr',
|
||||||
|
'value' => $this->getData(['config', 'proxyUrl'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<?php echo template::text('installProxyPort', [
|
||||||
|
'label' => 'Port du proxy',
|
||||||
|
'placeholder' => '6060',
|
||||||
|
'value' => $this->getData(['config', 'proxyPort'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
|
<?php echo template::select('installTheme', $module::$themes, [
|
||||||
|
'label' => 'Thème'
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col3 offset9">
|
<div class="col3 offset9">
|
||||||
<?php echo template::submit('installSubmit', [
|
<?php echo template::submit('installSubmit', [
|
||||||
|
Loading…
Reference in New Issue
Block a user