global $startMessage, $username, $key, $imapServerAddress, $imapPort,
$show_html_default, $has_unsafe_images, $sort;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_GET;
}
if(isset($_GET['view_unsafe_images'])) {
}
function save_option($option) {
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION;
}
global $data_dir;
/* Always set up the language before calling these functions */
function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE ) {
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION;
}
if (isset($_SESSION['base_uri'])) {
function displayInternalLink($path, $text, $target='') {
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION;
}
$compose_new_win, $username, $datadir, $compose_width, $compose_height,
$attachemessages, $provider_name, $provider_uri;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION;
}
function bug_report_save() {
global $username,$data_dir;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_POST;
}
global $PHP_SELF;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_GET, $_POST;
}
function delete_move_next_delete() {
global $imapConnection, $auto_expunge;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_GET;
}
function delete_move_next_move() {
global $imapConnection, $mailbox;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_POST;
}
global $username,$data_dir;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_POST;
}
global $mailfetch_server_,$mailfetch_alias_,$mailfetch_user_,$mailfetch_pass_;
global $mailfetch_lmos_, $mailfetch_uidl_, $mailfetch_login_, $mailfetch_fref_;
global $PHP_SELF;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION;
}
$username = $_SESSION['username'];
require_once (SM_PATH . 'plugins/mail_fetch/functions.php');
global $data_dir, $imapServerAddress, $imapPort;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_SESSION, $_COOKIE;
}
$username = $_SESSION['username'];
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';
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 $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'];
/* Just for poor wretched souls with E_ALL. :) */
global $data_dir;
-if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+if ( !check_php_version(4,1) ) {
global $_SESSION;
}
function sqspell_makePage($title, $scriptsrc, $body){
global $color, $SQSPELL_VERSION;
- if ( (float)substr(PHP_VERSION,0,3) < 4.1 ) {
+ if ( !check_php_version(4,1) ) {
global $_GET;
}
if (isset($_GET['MOD'])) {