10 Commits

Author SHA1 Message Date
Gregor Schulte
1e60371abe 64bit Anpassungen
Name der Distro angepasst
Max Value in Statistiken angepasst
Hash Verfahren auf SHA256 umgestellt
2022-02-09 09:40:58 +01:00
Gregor Schulte
79fc07e010 ReadMe angepasst 2021-12-14 12:27:22 +01:00
Gregor Schulte
db683a5b19 Merge durchgeführt in bullseye (Pull-Request #1)
Bullseye
2021-12-14 11:22:25 +00:00
Gregor Schulte
3ebc78f14d PiControl-2.2.0.zip edited online with Bitbucket 2021-12-14 11:22:01 +00:00
Gregor Schulte
588c82f4e8 PiControl-2.2.0-full.zip edited online with Bitbucket 2021-12-14 11:21:54 +00:00
Gregor Schulte
22fa53e3a3 Pi Control.iml edited online with Bitbucket 2021-12-14 10:54:44 +00:00
Gregor Schulte
1257825709 PiControl-2.2.0.zip edited online with Bitbucket 2021-12-14 10:54:32 +00:00
Gregor Schulte
6f819ed9f5 PiControl-2.2.0-full.zip edited online with Bitbucket 2021-12-14 10:54:18 +00:00
Gregor Schulte
6adb4fe93e Korrektur bei der Download URL 2021-12-14 11:50:53 +01:00
Gregor Schulte
97d666a794 Debian 11 Support 2021-12-14 09:50:28 +01:00
13 changed files with 487 additions and 573 deletions

2
.gitignore vendored
View File

@@ -99,3 +99,5 @@ data/DoctrineORMModule/cache/
demos/
extras/documentation
*.zip

View File

@@ -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.

View File

@@ -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

View File

@@ -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) ? '&#10004;' : '&#10006; <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) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;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) ? '&#10004;' : '&#10006; <a style="color: inherit; text-decoration: underline" href="'.$data['configHelp'].'?s=view&amp;i=13'.getURLLangParam().'" target="_blank">'._t('Anleitung zur Installation').'</a>'; ?></td>

View File

@@ -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);

View File

@@ -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;
}
?>

View File

@@ -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());

View File

@@ -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

View File

@@ -84,7 +84,7 @@ $statisticConfig = array(
'fix' => true
),
'max' => array(
'value' => 1200,
'value' => 2100,
'use' => 'fix',
'fix' => true
)

View File

@@ -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;