squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

configtest.php File Reference

Go to the source code of this file.

Namespaces

 squirrelmail
 

Functions

 do_err ($str, $exit=TRUE)
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short tags (< tt >short_open_tag=off</tt >). This shouldn\ 't be a problem with ' . 'SquirrelMail or any plugin coded coded according to the ' . 'SquirrelMail Coding Guidelines
 

Variables

const PAGE_NAME 'configtest'
 
const SM_PATH '../'
 
if(file_exists(SM_PATH . 'config/config.php')) $IND = str_repeat('&nbsp;',4)
 
 $test_location = get_location()
 
 $included = array_map('basename', get_included_files() )
 
if(!in_array('config.php', $included)) if (!in_array( 'strings.php', $included))
 
 $webOwnerID = 'N/A'
 
 $webOwnerInfo = array('name' => 'N/A')
 
 $webGroupID = 'N/A'
 
 $webGroupInfo = array('name' => 'N/A')
 
if((bool) ini_get('session.auto_start') &&ini_get('session.auto_start') !='off') $safe_mode = ini_get('safe_mode')
 
if($safe_mode) $variables_order = strtoupper(ini_get('variables_order'))
 
if(empty($variables_order)) do_err('Your variables_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess files
 
if(empty($variables_order)) do_err('Your variables_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C S Your variables_order setting is insufficient for SquirrelMail to function It needs at least GPCS
 
if(empty($variables_order)) do_err('Your variables_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C S Your variables_order setting is insufficient for SquirrelMail to function It needs at least but you have it set to t even available $gpc_order = strtoupper(ini_get('gpc_order'))
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to GPC
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions missing
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with register_globals
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them on
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange behaviour
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the problem
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the please file a bug report against the failing plugin The correct contact information is most likely to be found in the plugin documentation plugins You have enabled the< i ></i > plugin
 
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the please file a bug report against the failing plugin The correct contact information is most likely to be found in the plugin documentation plugins You have enabled the< i ></i > but I cannot find it plugins setup php You have enabled the< i ></i > but I cannot read its setup php file functions plugin php Some output is produced when plugins are loaded Usually this means there is an error in one of the plugin setup or configuration files The output was
 
 $plugin_err = boolean_hook_function('configtest', NULL, 1)
 
if($plugin_err) else
 
 foreach ( $theme as $thm)
 
if(! $stream) $smtpline = fgets($stream, 1024)
 
 $stream
 
if(! $stream) $imapline = fgets($stream, 1024)
 
 $capline = fgets($stream, 1024)
 
if((!ini_get('safe_mode'))||!strcmp(ini_get('safe_mode_allowed_env_vars'),'')||preg_match('/^( else [\w_]+,) *TZ/', ini_get('safe_mode_allowed_env_vars')))
 

Function Documentation

◆ do_err()

do_err (   $str,
  $exit = TRUE 
)

Definition at line 17 of file configtest.php.

References $IND, and exit.

◆ tags()

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short tags ( < tt >  short_open_tag = off</tt>)

Variable Documentation

◆ $capline

$capline = fgets($stream, 1024)

Definition at line 449 of file configtest.php.

◆ $gpc_order

if (empty( $variables_order)) do_err( 'Your variables_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C S Your variables_order setting is insufficient for SquirrelMail to function It needs at least but you have it set to t even available $gpc_order = strtoupper(ini_get('gpc_order'))

Definition at line 175 of file configtest.php.

◆ $imapline

if (! $stream) $imapline = fgets($stream, 1024)

Is the first response 'OK'?

Definition at line 438 of file configtest.php.

◆ $included

$included = array_map('basename', get_included_files() )

Definition at line 61 of file configtest.php.

◆ $IND

if (file_exists(SM_PATH . 'config/config.php')) $IND = str_repeat('&nbsp;',4)

Definition at line 41 of file configtest.php.

Referenced by do_err().

◆ $plugin_err

$plugin_err = boolean_hook_function('configtest', NULL, 1)

This hook was added in 1.5.2 and 1.4.10. Each plugins should print an error message and return TRUE if there are any errors in its setup/configuration.

Definition at line 319 of file configtest.php.

◆ $safe_mode

if ((bool) ini_get( 'session.auto_start') &&ini_get( 'session.auto_start') !='off') $safe_mode = ini_get('safe_mode')

Definition at line 129 of file configtest.php.

◆ $smtpline

if (! $stream) $smtpline = fgets($stream, 1024)

Definition at line 392 of file configtest.php.

◆ $stream

◆ $test_location

$test_location = get_location()

Definition at line 45 of file configtest.php.

◆ $variables_order

if ( $safe_mode) $variables_order = strtoupper(ini_get('variables_order'))

Definition at line 151 of file configtest.php.

◆ $webGroupID

$webGroupID = 'N/A'

Definition at line 102 of file configtest.php.

◆ $webGroupInfo

$webGroupInfo = array('name' => 'N/A')

Definition at line 103 of file configtest.php.

◆ $webOwnerID

$webOwnerID = 'N/A'

Definition at line 92 of file configtest.php.

◆ $webOwnerInfo

$webOwnerInfo = array('name' => 'N/A')

Definition at line 93 of file configtest.php.

◆ behaviour

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange behaviour

Definition at line 223 of file configtest.php.

◆ else [1/2]

if ((!ini_get( 'safe_mode'))||!strcmp(ini_get( 'safe_mode_allowed_env_vars'),'')||preg_match('/^( else[\w_]+,) *TZ/', ini_get( 'safe_mode_allowed_env_vars')))
Initial value:
{
echo "Webmail users can't change their time zone settings.<br />\n"

Definition at line 526 of file configtest.php.

◆ else [2/2]

if (!empty( $addrbook_dsn)||!empty( $prefs_dsn)||!empty( $addrbook_global_dsn)) else
Initial value:
{
echo $IND . "Plugins OK.<br />\n"

Definition at line 322 of file configtest.php.

◆ files

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess files

Definition at line 152 of file configtest.php.

◆ foreach

foreach($theme as $thm)

Definition at line 328 of file configtest.php.

◆ GPC

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to GPC

Definition at line 176 of file configtest.php.

◆ GPCS

if (empty( $variables_order)) do_err( 'Your variables_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C S Your variables_order setting is insufficient for SquirrelMail to function It needs at least GPCS

Definition at line 152 of file configtest.php.

◆ if

if(substr($imapline, 0, 4) !=' *OK')

Check the IMAP server

Definition at line 69 of file configtest.php.

◆ missing

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions missing

Definition at line 176 of file configtest.php.

◆ on

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them on

Definition at line 223 of file configtest.php.

◆ PAGE_NAME

const PAGE_NAME 'configtest'

This is the configtest page

Definition at line 28 of file configtest.php.

◆ plugin

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the please file a bug report against the failing plugin The correct contact information is most likely to be found in the plugin documentation plugins You have enabled the<i></i> but I cannot find it plugins setup php You have enabled the<i></i> plugin

Definition at line 250 of file configtest.php.

◆ problem

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the problem

Definition at line 250 of file configtest.php.

◆ register_globals

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with register_globals
Initial value:
=on can cause problems.'
.' See <a href="http://www.php.net/manual/en/security.registerglobals.php">'
.'security information about register_globals</a>.';
do_err($rg_error,false);
}
if ( (function_exists('get_magic_quotes_runtime') && @get_magic_quotes_runtime()) ||
(function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) ||
( (bool) ini_get('magic_quotes_sybase') && ini_get('magic_quotes_sybase') != 'off' )
) {
$magic_quotes_warning='You have enabled any one of <tt>magic_quotes_runtime</tt>

Definition at line 223 of file configtest.php.

◆ SM_PATH

const SM_PATH '../'

@ignore

Definition at line 31 of file configtest.php.

◆ was

if (empty( $gpc_order)) do_err( 'Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with<tt> magic_quotes_gpc</tt> or<tt> magic_quotes_sybase</tt> in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them but when experiencing stray backslashes in your mail or other strange it may be advisable to turn them off short_open_tag You have configured PHP not to allow short but if you experience problems with PHP code being displayed in some of the pages and changing setting to on solves the please file a bug report against the failing plugin The correct contact information is most likely to be found in the plugin documentation plugins You have enabled the<i></i> but I cannot find it plugins setup php You have enabled the<i></i> but I cannot read its setup php file functions plugin php Some output is produced when plugins are loaded Usually this means there is an error in one of the plugin setup or configuration files The output was

Definition at line 250 of file configtest.php.

$imapServerAddress
$imapServerAddress
Definition: config_default.php:202
on
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with< tt > magic_quotes_gpc</tt > or< tt > magic_quotes_sybase</tt > in your PHP configuration We recommend all those settings to be off SquirrelMail may work with them on
Definition: configtest.php:223
$use_imap_tls
$use_imap_tls
Definition: config_default.php:240
information
so scroll down until you see a form button It might pause a little while it is looking up information
Definition: options.php:123
$imapPort
$imapPort
Definition: config_default.php:210
$IND
if(file_exists(SM_PATH . 'config/config.php')) $IND
Definition: configtest.php:41
register_globals
if(empty($gpc_order)) do_err('Your gpc_order setting seems to be empty. Make sure it is undefined in any PHP ini files htaccess etc and not specifically set to an empty value or SquirrelMail may not function correctly G P C Your gpc_order setting is insufficient for SquirrelMail to function It needs to be set to but you have it set to session pcre Required PHP extensions enable_dl safe_mode mb_internal_encoding mbstring func_overload You have enabled mbstring overloading It can cause problems with SquirrelMail scripts that rely on single byte string functions register_globals register_globals off You have enabled PHP register_globals Running PHP installation with register_globals
Definition: configtest.php:223