projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use the new check_php_version function everywhere
[squirrelmail.git]
/
plugins
/
sent_subfolders
/
setup.php
diff --git
a/plugins/sent_subfolders/setup.php
b/plugins/sent_subfolders/setup.php
index c8dba2e5fd3484565a58df4af0762353c9571bc0..6598a3d4002521e6874a09fb5ea827e9519a5ded 100644
(file)
--- a/
plugins/sent_subfolders/setup.php
+++ b/
plugins/sent_subfolders/setup.php
@@
-49,7
+49,7
@@
function squirrelmail_plugin_init_sent_subfolders() {
function sent_subfolders_check_handleAsSent() {
global $handleAsSent_result, $sent_subfolders_base,
$use_sent_subfolders;
function sent_subfolders_check_handleAsSent() {
global $handleAsSent_result, $sent_subfolders_base,
$use_sent_subfolders;
- if (
(float)substr(PHP_VERSION,0,3) < 4.1
) {
+ if (
!check_php_version(4,1)
) {
global $_SESSION;
}
$sent_subfolders_base = 'INBOX.Sent';
global $_SESSION;
}
$sent_subfolders_base = 'INBOX.Sent';
@@
-88,7
+88,7
@@
function sent_subfolders_load_prefs() {
function sent_subfolders_optpage_loadhook_folders() {
global $optpage_data, $imapServerAddress, $imapPort;
function sent_subfolders_optpage_loadhook_folders() {
global $optpage_data, $imapServerAddress, $imapPort;
- if (
(float)substr(PHP_VERSION,0,3) < 4.1
) {
+ if (
!check_php_version(4,1)
) {
global $_SESSION, $_COOKIE;
}
$username = $_SESSION['username'];
global $_SESSION, $_COOKIE;
}
$username = $_SESSION['username'];
@@
-159,7
+159,7
@@
function sent_subfolders_update_sentfolder() {
global $data_dir, $imapServerAddress, $imapPort;
global $use_sent_subfolders, $move_to_sent, $imap_server_type;
global $data_dir, $imapServerAddress, $imapPort;
global $use_sent_subfolders, $move_to_sent, $imap_server_type;
- if (
(float)substr(PHP_VERSION,0,3) < 4.1
) {
+ if (
!check_php_version(4,1)
) {
global $_SESSION, $_COOKIE;
}
$username = $_SESSION['username'];
global $_SESSION, $_COOKIE;
}
$username = $_SESSION['username'];