More hard-coded .php extensions

git-svn-id: file:///svn/phpbb/trunk@1984 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-01-28 02:36:21 +00:00
parent 25ef416369
commit a421fa3f52
3 changed files with 6 additions and 6 deletions

View file

@ -119,7 +119,7 @@ $template->set_filenames(array(
$template->assign_vars(array( $template->assign_vars(array(
"S_DISALLOW_SELECT" => $disallow_select, "S_DISALLOW_SELECT" => $disallow_select,
"S_FORM_ACTION" => append_sid('admin_disallow.php'), "S_FORM_ACTION" => append_sid("admin_disallow.$phpEx"),
"L_INFO" => $output_info, "L_INFO" => $output_info,
"L_DISALLOW_TITLE" => $lang['Disallow_control'], "L_DISALLOW_TITLE" => $lang['Disallow_control'],

View file

@ -45,7 +45,7 @@ if( !empty($setmodules) )
// //
$phpbb_root_dir = "./../"; $phpbb_root_dir = "./../";
require('pagestart.inc'); require('pagestart.inc');
include($phpbb_root_path . 'includes/prune.php'); include($phpbb_root_path . 'includes/prune.'.$phpEx);
// //
// Get the forum ID for pruning // Get the forum ID for pruning

View file

@ -345,8 +345,8 @@ else
// //
if( !empty($HTTP_POST_VARS['send_file']) && $HTTP_POST_VARS['send_file'] == 1 && !defined("PHPBB_INSTALLED") && empty($HTTP_POST_VARS['upgrade_now']) ) if( !empty($HTTP_POST_VARS['send_file']) && $HTTP_POST_VARS['send_file'] == 1 && !defined("PHPBB_INSTALLED") && empty($HTTP_POST_VARS['upgrade_now']) )
{ {
header("Content-Type: text/x-delimtext; name=\"config.php\""); header("Content-Type: text/x-delimtext; name=\"config.$phpEx\"");
header("Content-disposition: attachment; filename=config.php"); header("Content-disposition: attachment; filename=config.$phpEx");
// //
// We need to stripslashes no matter what the setting of magic_quotes_gpc is // We need to stripslashes no matter what the setting of magic_quotes_gpc is
@ -463,7 +463,7 @@ else if( !empty($HTTP_POST_VARS['ftp_file']) && !defined("PHPBB_INSTALLED") )
// //
@ftp_chdir($conn_id, $ftp_dir); @ftp_chdir($conn_id, $ftp_dir);
$res = ftp_put($conn_id, 'config.php', $tmpfname, FTP_ASCII); $res = ftp_put($conn_id, 'config.'.$phpEx, $tmpfname, FTP_ASCII);
@ftp_quit($conn_id); @ftp_quit($conn_id);
@ -799,7 +799,7 @@ else
@umask(0111); @umask(0111);
$no_open = FALSE; $no_open = FALSE;
$fp = @fopen('config.php', 'w'); $fp = @fopen('config.'.$phpEx, 'w');
if( !$fp ) if( !$fp )
{ {
// //