Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Website: [http://www.cloudlog.co.uk](http://www.cloudlog.co.uk)

- Linux based Operating System
- Apache (Nginx should work)
- PHP Version 7.4 (PHP 8.2 works)
- PHP Version 7.4 or higher (PHP 8.4 supported)
- MySQL (MySQL 5.7 or higher)

Notes
Expand Down
4 changes: 2 additions & 2 deletions application/views/components/hamsat/table.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@
?>
<td><span data-bs-toggle="tooltip" title="<?php if ($rove['mhz'] != '') {
printf("%.3f", $rove['mhz']);
echo " " . $direction ?? '';
} ?>"><?= $rove['satellite']['name'] ?></span></td>
echo " " . ($direction ?? '');
} ?>"><?php echo $rove['satellite']['name']; ?></span></td>
<td><span title="<?php echo $rove['mode']; ?>" class="badge <?php echo $modeclass; ?>"><?php echo $rove['mode']; ?></span></td>
<td>

Expand Down
2 changes: 1 addition & 1 deletion application/views/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function echoQrbCalcLink($mygrid, $grid, $vucc)
<div class="container dashboard">
<?php if (($this->config->item('use_auth') && ($this->session->userdata('user_type') >= 2)) || $this->config->item('use_auth') === FALSE) { ?>

<?php if (version_compare(PHP_VERSION, '7.4.0') <= 0) { ?>
<?php if (version_compare(PHP_VERSION, '8.0.0') < 0) { ?>
<div class="alert alert-danger" role="alert">
<?php echo lang('dashboard_php_version_warning') . ' ' . PHP_VERSION . '.'; ?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions application/views/logbookadvanced/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
?>
</script>
<script>
const CSRF_NAME = '<?= $this->security->get_csrf_token_name(); ?>';
const CSRF_HASH = '<?= $this->security->get_csrf_hash(); ?>';
const CSRF_NAME = '<?php echo $this->security->get_csrf_token_name(); ?>';
const CSRF_HASH = '<?php echo $this->security->get_csrf_hash(); ?>';
</script>
<style>
/*Legend specific*/
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
case 'testing':
case 'production':
ini_set('display_errors', 0);
if (version_compare(PHP_VERSION, '5.3', '>='))
if (version_compare(PHP_VERSION, '7.0', '>='))
{
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED);
}
Expand Down
19 changes: 15 additions & 4 deletions system/libraries/Encryption.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CI_Encryption {
public function __construct(array $params = array())
{
$this->_drivers = array(
'mcrypt' => defined('MCRYPT_DEV_URANDOM'),
'mcrypt' => defined('MCRYPT_DEV_URANDOM') && function_exists('mcrypt_encrypt'),
'openssl' => extension_loaded('openssl')
);

Expand Down Expand Up @@ -203,9 +203,20 @@ public function initialize(array $params)

if (empty($this->_driver))
{
$this->_driver = ($this->_drivers['openssl'] === TRUE)
? 'openssl'
: 'mcrypt';
// Prefer OpenSSL on modern PHP versions where mcrypt is not available
if ($this->_drivers['openssl'] === TRUE)
{
$this->_driver = 'openssl';
}
elseif ($this->_drivers['mcrypt'] === TRUE)
{
$this->_driver = 'mcrypt';
}
else
{
// This shouldn't happen as we check both drivers in constructor
show_error('Encryption: No available encryption driver found.');
}

log_message('debug', "Encryption: Auto-configured driver '".$this->_driver."'.");
}
Expand Down