1548 |
} |
} |
1549 |
|
|
1550 |
// if no password, or empty password logout |
// if no password, or empty password logout |
1551 |
|
$relogin = $HTTP_GET_VARS[relogin]; |
1552 |
|
$force_login = $HTTP_GET_VARS[force_login]; |
1553 |
if ( |
if ( |
1554 |
isset($gblLogin) && ( |
isset($gblLogin) && ( |
1555 |
!isset($relogin) || ( |
!isset($relogin) || ( |
1877 |
case "I" : |
case "I" : |
1878 |
if (! isset($F) || $F == "") |
if (! isset($F) || $F == "") |
1879 |
Error("Can't find file to include","Your request didn't specify file to include which should be in variable <tt>F</tt> like <tt>$HTTP_SERVER_VARS[REQUEST_URI]<b>&F=include_php_file</b></tt>",1); |
Error("Can't find file to include","Your request didn't specify file to include which should be in variable <tt>F</tt> like <tt>$HTTP_SERVER_VARS[REQUEST_URI]<b>&F=include_php_file</b></tt>",1); |
1880 |
if (file_exists("$gblIncDir/include_php/$F.php")) { |
$inc_file="$fsRealmDir/$realm".$realm_sep.$F.".php"; |
1881 |
$inc_file="$gblIncDir/include_php/${F}.php"; |
if (! file_exists($inc_file)) { |
1882 |
} elseif (file_exists("$fsRealmDir/$realm/$F.php")) { |
Error("Can't find file to include","Can't find include file <tt>$F.php</tt> in <tt>$fsRealmDir/$realm/</tt>. Meybe you should copy <tt>$gblIncDir/include_php/$F.php</tt> to <tt>$inc_file<tt> ?",1); |
|
$inc_file="$fsRealmDir/$realm/${F}.php"; |
|
|
} else { |
|
|
Error("Can't find file to include","Can't find include file <tt>$F.php</tt> in <tt>$gblIncDir/include_php/<tt> nor <tt>$fsRealmDir/$realm/</tt>",1); |
|
1883 |
} |
} |
1884 |
if (!is_readable($inc_file)) |
if (!is_readable($inc_file)) |
1885 |
Error("Read access to include file denied","Can't read PHP include file <tt>$inc_file</tt>. Fix permissions on it."); |
Error("Read access to include file denied","Can't read PHP include file <tt>$inc_file</tt>. Fix permissions on it.",1); |
1886 |
$text = "Your include file should define \$text variable which holds this text and \$title variable which is page title"; |
$text = "Your include file should define \$text variable which holds this text and \$title variable which is page title"; |
1887 |
$title = "You should define \$title variable with page title"; |
$title = "You should define \$title variable with page title"; |
1888 |
include($inc_file); |
include($inc_file); |