install.php downloaden?

Installatie lukt niet? Plotseling een foutmelding. Of weet je niet hoe iets werkt. Problemen met phpBB2 kun je in dit archief opzoeken.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
raptor167
Berichten: 2
Lid geworden op: 03 okt 2006, 20:43

install.php downloaden?

Bericht door raptor167 » 03 okt 2006, 20:58

Support Template
  • Wat is het probleem?
    Als ik de install pagina van het forum intyp(http://www.mijnsite.com/phpBB2/install/install.php) komt er in Firefox een script te staan en bij IE vraagthij of ik install.php wil downloaden.
    Wanneer ontstond het probleem?
    Vanaf het begin
    Waar is je forum gehost:
    Home.planet.nl
    Heb je onlangs iets verandert aan je forum?
    nee
Overige opmerkingen:
Hier is een deel van het script dat firefox laat zien:

<?php
/***************************************************************************
* install.php
* -------------------
* begin : Tuesday, Sept 11, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: install.php,v 1.6.2.14 2005/12/29 11:51:11 acydburn Exp $
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

// ---------
// FUNCTIONS
//
function page_header($text, $form_action = false)
{
global $phpEx, $lang;

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $lang['ENCODING']; ?>">
<meta http-equiv="Content-Style-Type" content="text/css">
<title><?php echo $lang['Welcome_install'];?></title>
<link rel="stylesheet" href="../templates/subSilver/subSilver.css" type="text/css">
<style type="text/css">
<!--
th { background-image: url('../templates/subSilver/images/cellpic3.gif') }
td.cat { background-image: url('../templates/subSilver/images/cellpic1.gif') }
td.rowpic { background-image: url('../templates/subSilver/images/cellpic2.jpg'); background-repeat: repeat-y }
td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom { background-image: url('../templates/subSilver/images/cellpic1.gif') }

/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("../templates/subSilver/formIE.css");
//-->
</style>
</head>
<body bgcolor="#E5E5E5" text="#000000" link="#006699" vlink="#5584AA">

<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<tr>
<td class="bodyline" width="100%"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../templates/subSilver/images/logo_phpBB.gif" border="0" alt="Forum Home" vspace="1" /></td>
<td align="center" width="100%" valign="middle"><span class="maintitle"><?php echo $lang['Welcome_install'];?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /><br /></td>
</tr>
<tr>
<td colspan="2"><table width="90%" border="0" align="center" cellspacing="0" cellpadding="0">
<tr>
<td><span class="gen"><?php echo $text; ?></span></td>
</tr>
</table></td>
</tr>
<tr>
<td><br /><br /></td>
</tr>
<tr>
<td width="100%"><table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline"><form action="<?php echo ($form_action) ? $form_action : 'install.'.$phpEx; ?>" name="install" method="post">
<?php

}

function page_footer()
{

?>
</table></form></td>
</tr>
</table></td>
</tr>
</table>

</body>
</html>
<?php

}

function page_common_form($hidden, $submit)
{

?>
<tr>
<td class="catBottom" align="center" colspan="2"><?php echo $hidden; ?><input class="mainoption" type="submit" value="<?php echo $submit; ?>" /></td>
</tr>
<?php

}

function page_upgrade_form()
{
global $lang;

?>
<tr>
<td class="catBottom" align="center" colspan="2"><?php echo $lang['continue_upgrade']; ?></td>
</tr>
<tr>
<td class="catBottom" align="center" colspan="2"><input type="submit" name="upgrade_now" value="<?php echo $lang['upgrade_submit']; ?>" /></td>
</tr>
<?php

}

function page_error($error_title, $error)
{

?>
<tr>
<th><?php echo $error_title; ?></th>
</tr>
<tr>
<td class="row1" align="center"><span class="gen"><?php echo $error; ?></span></td>
</tr>
<?php

}

// Guess an initial language ... borrowed from phpBB 2.2 it's not perfect,
// really it should do a straight match first pass and then try a "fuzzy"
// match on a second pass instead of a straight "fuzzy" match.
function guess_lang()
{
global $phpbb_root_path, $HTTP_SERVER_VARS;

// The order here _is_ important, at least for major_minor
// matches. Don't go moving these around without checking with
// me first - psoTFX
$match_lang = array(
'arabic' => 'ar([_-][a-z]+)?',
'bulgarian' => 'bg',
'catalan' => 'ca',
'czech' => 'cs',
'danish' => 'da',
'german' => 'de([_-][a-z]+)?',
'english' => 'en([_-][a-z]+)?',
'estonian' => 'et',
'finnish' => 'fi',
'french' => 'fr([_-][a-z]+)?',
'greek' => 'el',
'spanish_argentina' => 'es[_-]ar',
'spanish' => 'es([_-][a-z]+)?',
'gaelic' => 'gd',
'galego' => 'gl',
'gujarati' => 'gu',
'hebrew' => 'he',
'hindi' => 'hi',
'croatian' => 'hr',
'hungarian' => 'hu',
'icelandic' => 'is',
'indonesian' => 'id([_-][a-z]+)?',
'italian' => 'it([_-][a-z]+)?',
'japanese' => 'ja([_-][a-z]+)?',
'korean' => 'ko([_-][a-z]+)?',
'latvian' => 'lv',
'lithuanian' => 'lt',
'macedonian' => 'mk',
'dutch' => 'nl([_-][a-z]+)?',
'norwegian' => 'no',
'punjabi' => 'pa',
'polish' => 'pl',
'portuguese_brazil' => 'pt[_-]br',
'portuguese' => 'pt([_-][a-z]+)?',
'romanian' => 'ro([_-][a-z]+)?',
'russian' => 'ru([_-][a-z]+)?',
'slovenian' => 'sl([_-][a-z]+)?',
'albanian' => 'sq',
'serbian' => 'sr([_-][a-z]+)?',
'slovak' => 'sv([_-][a-z]+)?',
'swedish' => 'sv([_-][a-z]+)?',
'thai' => 'th([_-][a-z]+)?',
'turkish' => 'tr([_-][a-z]+)?',
'ukranian' => 'uk([_-][a-z]+)?',
'urdu' => 'ur',
'viatnamese' => 'vi',
'chinese_traditional_taiwan'=> 'zh[_-]tw',
'chinese_simplified' => 'zh',
);

if (isset($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']))
{
$accept_lang_ary = explode(',', $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']);
for ($i = 0; $i < sizeof($accept_lang_ary); $i++)
{
@reset($match_lang);
while (list($lang, $match) = each($match_lang))
{
if (preg_match('#' . $match . '#i', trim($accept_lang_ary[$i])))
{
if (file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $lang)))
{
return $lang;
}
}
}
}
}

return 'english';

}
//
// FUNCTIONS
// ---------

// Begin
error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables
set_magic_quotes_runtime(0); // Disable magic_quotes_runtime

// PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST))
{
$HTTP_POST_VARS = $_POST;
$HTTP_GET_VARS = $_GET;
$HTTP_SERVER_VARS = $_SERVER;
$HTTP_COOKIE_VARS = $_COOKIE;
$HTTP_ENV_VARS = $_ENV;
$HTTP_POST_FILES = $_FILES;

// _SESSION is the only superglobal which is conditionally set
if (isset($_SESSION))
{
$HTTP_SESSION_VARS = $_SESSION;
}
}

// Slash data if it isn't slashed
if (!get_magic_quotes_gpc())
{
if (is_array($HTTP_GET_VARS))
{
while (list($k, $v) = each($HTTP_GET_VARS))
{
if (is_array($HTTP_GET_VARS[$k]))
{
while (list($k2, $v2) = each($HTTP_GET_VARS[$k]))
{
$HTTP_GET_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_GET_VARS[$k]);
}
else
{
$HTTP_GET_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_GET_VARS);
}

if (is_array($HTTP_POST_VARS))
{
while (list($k, $v) = each($HTTP_POST_VARS))
{
if (is_array($HTTP_POST_VARS[$k]))
{
while (list($k2, $v2) = each($HTTP_POST_VARS[$k]))
{
$HTTP_POST_VARS[$k][$k2] = addslashes($v2);
}
@reset($HTTP_POST_VARS[$k]);
}
else
{
$HTTP_POST_VARS[$k] = addslashes($v);
}
}
@reset($HTTP_POST_VARS);
}

if (is_array($HTTP_COOKIE_VARS))
{
while (list($k, $v) = each($HTTP_COOKIE_VARS))
{
if (is_array($HTTP_COOKIE_VARS[$k]))
{
while (list($k2, $v2) = each

Gebruikersavatar
Paul
Beheerder
Beheerder
Berichten: 20316
Lid geworden op: 23 okt 2003, 11:38
Locatie: Utrecht
Contacteer:

Bericht door Paul » 03 okt 2006, 21:02

planet ondersteund geen php.

raptor167
Berichten: 2
Lid geworden op: 03 okt 2006, 20:43

Bericht door raptor167 » 04 okt 2006, 13:50

O, da's nou jammer :cry:

Bedankt voor je reactie :D

Gesloten