Compare commits
10 Commits
2.2.0
...
2.3.1beta1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e60371abe | ||
|
|
79fc07e010 | ||
|
|
db683a5b19 | ||
|
|
3ebc78f14d | ||
|
|
588c82f4e8 | ||
|
|
22fa53e3a3 | ||
|
|
1257825709 | ||
|
|
6f819ed9f5 | ||
|
|
6adb4fe93e | ||
|
|
97d666a794 |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -99,3 +99,5 @@ data/DoctrineORMModule/cache/
|
||||
demos/
|
||||
extras/documentation
|
||||
|
||||
*.zip
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
Binary file not shown.
Binary file not shown.
@@ -4,4 +4,4 @@
|
||||
[Pi Control Installation](https://pi-control.de/install/)
|
||||
|
||||
## Bei Fragen oder Problemen
|
||||
Schreibe mir eine E-Mail an [support@pi-control.de](mailto:support@pi-control.de) oder nutze das Feedback in Pi Control.
|
||||
Über das [Ticketsystem](https://bugs.die-schultes.eu/projects/pi-control/issues) können Fehler gemeldet werden und im [Forum](https://bugs.die-schultes.eu/projects/pi-control/boards) gibt es Hilfe zu Fragen rund um Pi Control
|
||||
@@ -48,10 +48,10 @@
|
||||
<td><?php _e('SSH2-Erweiterung installiert'); ?></td>
|
||||
<td class="<?php echo ($data['phpSSH']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpSSH']['status'] == true) ? '✔' : '✖ <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'#phpssh'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!--<tr>
|
||||
<td><?php _e('Mcrypt-Erweiterung installiert'); ?></td>
|
||||
<td class="<?php echo ($data['phpMcrypt']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpMcrypt']['status'] == true) ? '✔' : '✖ <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&i=12'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
|
||||
</tr>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td><?php _e('CLI-Erweiterung installiert'); ?></td>
|
||||
<td class="<?php echo ($data['phpCLI']['status'] == true) ? 'green' : 'red'; ?>"><?php echo ($data['phpCLI']['status'] == true) ? '✔' : '✖ <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&i=13'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>
|
||||
|
||||
@@ -25,8 +25,8 @@ if (version_compare(PHP_VERSION, '7.0.0') >= 0)
|
||||
if (extension_loaded('ssh2'))
|
||||
$phpSSH['status'] = true;
|
||||
|
||||
//if (function_exists('mcrypt_encrypt') !== false)
|
||||
$phpMcrypt['status'] = true;
|
||||
#if (function_exists('mcrypt_encrypt') !== false)
|
||||
# $phpMcrypt['status'] = true;
|
||||
|
||||
if (trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '')
|
||||
$phpCLI['status'] = true;
|
||||
@@ -62,7 +62,7 @@ foreach ($filesFolders as $file => $info)
|
||||
}
|
||||
|
||||
// Sonstiges
|
||||
if ($otherDistribution['version'] == 'Raspbian GNU/Linux 10' || $otherDistribution['version'] == 'Raspbian GNU/Linux 11')
|
||||
if ($otherDistribution['version'] == 'Raspbian GNU/Linux 10' || $otherDistribution['version'] == 'Raspbian GNU/Linux 11' || $otherDistribution['version'] == 'Debian GNU/Linux 11')
|
||||
$otherDistribution['status'] = true;
|
||||
|
||||
if (isset($_COOKIE['_pi-control_install_language']) && $_COOKIE['_pi-control_install_language'] != '')
|
||||
@@ -71,7 +71,8 @@ else
|
||||
setCookie('_pi-control_install_language', $globalLanguage);
|
||||
|
||||
// Button
|
||||
if ($phpVersion['status'] === false || $phpSSH['status'] === false || $phpMcrypt['status'] === false || $phpCLI['status'] === false || $phpCURL['status'] === false || $phpZipArchive['status'] === false || $phpAllowUrlFopen['status'] === false || $filesFoldersExist['status'] === false || $filesFoldersPermission['status'] === false || $otherDistribution['status'] === false || $otherCookie['status'] === false)
|
||||
//if ($phpVersion['status'] === false || $phpSSH['status'] === false || $phpMcrypt['status'] === false || $phpCLI['status'] === false || $phpCURL['status'] === false || $phpZipArchive['status'] === false || $phpAllowUrlFopen['status'] === false || $filesFoldersExist['status'] === false || $filesFoldersPermission['status'] === false || $otherDistribution['status'] === false || $otherCookie['status'] === false)
|
||||
if ($phpVersion['status'] === false || $phpSSH['status'] === false || $phpCLI['status'] === false || $phpCURL['status'] === false || $phpZipArchive['status'] === false || $phpAllowUrlFopen['status'] === false || $filesFoldersExist['status'] === false || $filesFoldersPermission['status'] === false || $otherDistribution['status'] === false || $otherCookie['status'] === false)
|
||||
$error = true;
|
||||
|
||||
$tpl->assign('phpVersion', $phpVersion);
|
||||
|
||||
@@ -368,8 +368,15 @@ function urlIsPublic($url)
|
||||
$ip = gethostbyname($url);
|
||||
$long = ip2long($ip);
|
||||
|
||||
if (($long >= 167772160 && $long <= 184549375) || ($long >= -1408237568 && $long <= -1407188993) || ($long >= -1062731776 && $long <= -1062666241) || ($long >= 2130706432 && $long <= 2147483647) || $long == -1)
|
||||
return false;
|
||||
if (PHP_INT_SIZE == 4) {
|
||||
if (($long >= 167772160 && $long <= 184549375) || ($long >= -1408237568 && $long <= -1407188993) || ($long >= -1062731776 && $long <= -1062666241) || ($long >= 2130706432 && $long <= 2147483647) || $long == -1) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if (($long >= 3232235520 && $long <= 3232301055) || ($long >= 2886729728 && $long <= 2887778303) || ($long >= 167772160 && $long <= 184549375) || $long == -1) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -614,4 +621,3 @@ function getURLLangParam($echo = false, $html = true, $first = false)
|
||||
|
||||
return $param;
|
||||
}
|
||||
?>
|
||||
@@ -31,5 +31,5 @@ foreach ($fileArray as $file)
|
||||
}
|
||||
}
|
||||
|
||||
if (trim(exec('dpkg -s php7.0-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '')
|
||||
if (trim(exec('dpkg -s php7.4-cli | grep Status: ')) != '' || trim(exec('dpkg -s php7.3-cli | grep Status: ')) != '')
|
||||
setConfig('cron:execution.cron', time());
|
||||
|
||||
@@ -10,13 +10,13 @@ if (!isset($config))
|
||||
'ssh_ip' => '127.0.0.1'
|
||||
),
|
||||
'version' => array(
|
||||
'version' => '2.2.0',
|
||||
'versioncode' => 30,
|
||||
'version' => '2.3.1beta1',
|
||||
'versioncode' => 32,
|
||||
'android_comp_level' => 25
|
||||
),
|
||||
'url' => array(
|
||||
'update' => 'https://pic.die-schultes.eu/service/v1/update/',
|
||||
'updateDownload' => 'https://www.die-schultes.eu/wp-content/uploads/',
|
||||
'updateDownload' => 'https://bugs.die-schultes.eu/attachments/',
|
||||
'updateNotification' => 'https://pi-control.de/?service=update_notification',
|
||||
'plugin' => 'https://pi-control.de/service/v1/plugin/',
|
||||
'pluginDownload' => 'https://pi-control.de/?service=plugin',
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -84,7 +84,7 @@ $statisticConfig = array(
|
||||
'fix' => true
|
||||
),
|
||||
'max' => array(
|
||||
'value' => 1200,
|
||||
'value' => 2100,
|
||||
'use' => 'fix',
|
||||
'fix' => true
|
||||
)
|
||||
|
||||
@@ -253,7 +253,7 @@ class UpdateController
|
||||
|
||||
if (!class_exists('cURL'))
|
||||
(include LIBRARY_PATH.'curl/curl.class.php');
|
||||
$curl = new cURL($this->updateDownloadURL.'&'.http_build_query(array('file' => $version->getFilename())));
|
||||
$curl = new cURL($this->updateDownloadURL . $version->getFilename());
|
||||
$curlStatus = $curl->downloadFile(UPDATE_PATH.'update.zip');
|
||||
|
||||
if (!is_bool($curlStatus))
|
||||
@@ -268,7 +268,7 @@ class UpdateController
|
||||
return $curl->getStatusCode();
|
||||
}
|
||||
|
||||
if (md5_file(UPDATE_PATH.'update.zip') !== $version->getChecksum())
|
||||
if (hash_file('sha256', UPDATE_PATH.'update.zip') !== $version->getChecksum())
|
||||
{
|
||||
unlink(UPDATE_PATH.'update.zip');
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user