|
|
|
@ -147,6 +147,11 @@ class config extends common {
|
|
|
|
|
15 => '15 articles',
|
|
|
|
|
20 => '20 articles'
|
|
|
|
|
];
|
|
|
|
|
// Type de proxy
|
|
|
|
|
public static $proxyType = [
|
|
|
|
|
'tcp://' => 'TCP',
|
|
|
|
|
'http://' => 'HTTP'
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function generateFiles() {
|
|
|
|
@ -288,6 +293,9 @@ class config extends common {
|
|
|
|
|
$this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN) === true) {
|
|
|
|
|
$this->setData(['core','lastAutoUpdate',0]);
|
|
|
|
|
}
|
|
|
|
|
// Vérification du proxy
|
|
|
|
|
$proxy = $this->getData(['config','proxyType']) . $this->getData(['config','proxyUrl']) . ':' . $this->getData(['config','proxyPort']);
|
|
|
|
|
|
|
|
|
|
$this->setData([
|
|
|
|
|
'config',
|
|
|
|
|
[
|
|
|
|
@ -310,9 +318,12 @@ class config extends common {
|
|
|
|
|
],
|
|
|
|
|
'timezone' => $this->getInput('configTimezone', helper::FILTER_STRING_SHORT, true),
|
|
|
|
|
'title' => $this->getInput('configTitle', helper::FILTER_STRING_SHORT, true),
|
|
|
|
|
'itemsperPage' => $this->getInput('itemsperPage', helper::FILTER_INT,true),
|
|
|
|
|
'itemsperPage' => $this->getInput('configItemsperPage', helper::FILTER_INT,true),
|
|
|
|
|
'legalPageId' => $this->getInput('configLegalPageId'),
|
|
|
|
|
'autoUpdate' => $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN)
|
|
|
|
|
'autoUpdate' => $this->getInput('configAutoUpdate', helper::FILTER_BOOLEAN),
|
|
|
|
|
'proxyType' => $this->getInput('configProxyType'),
|
|
|
|
|
'proxyUrl' => $this->getInput('configProxyUrl'),
|
|
|
|
|
'proxyPort' => $this->getInput('configProxyPort',helper::FILTER_INT)
|
|
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
if(self::$inputNotices === []) {
|
|
|
|
|