ok i delete line 26 on install.php and now i have same wight screen but only without line 26 error
this is orginal install.php
PHP Code:
<?
$Directory = str_replace('/install/index.php', '', $_SERVER['PHP_SELF']);
$ServerRoot = $_SERVER['DOCUMENT_ROOT'].$Directory;
define('SERVER_ROOT', $ServerRoot);
define('STATIC_SERVER', $Directory.'/static/');
//$_SESSION['hi'] = 'hi';
print_r($_SESSION);
if($_POST){
$Options = $_POST;
} else {
$Options = array();
$Options['site_url'] = $_SERVER['HTTP_HOST'].$Directory;
$Options['announce_url']= 'http://tracker.'.$_SERVER['HTTP_HOST'].':34000';
$Options['server_root'] = $_SERVER['DOCUMENT_ROOT'].$Directory;
$Options['session_dir'] = ini_get('session.save_path');
$Options['tmp_dir'] = '/tmp';
$Options['sqlhost'] = '127.0.0.1';
$Options['sqlport'] = (ini_get('mysqli.default_port')) ? ini_get('mysqli.default_port') : '3306';
$Options['sqlhost'] = (ini_get('mysqli.default_host')) ? ini_get('mysqli.default_host') : '127.0.0.1';
}
//print_r($_SERVER);
$PageTitle = 'Install';
include(SERVER_ROOT.'/design/publicheader.php');
?>
<div style="width:500px;">
<form action="index.php" method="post">
<table cellpadding="5" cellspacing="5" border="0" align="center">
<tr>
<td colspan="2"><strong>All settings can be altered in /classes/config.php later. All fields are required. Passwords are displayed in plain text. </strong></td>
</tr>
<?
if($Error) {
?>
<tr>
<td colspan="2"><strong style="color: #ff0000"><?=$Error?></strong></td>
</tr>
<?
}
?>
<tr valign="top">
<td align="right" width="150">Site name:</td>
<td align="left">
<input type="text" name="site_name" class="inputtext" value="<?= display_str($Options['site_name']) ?>" />
<br /><em>The name of your site, eg. "Awesome Elite Tracker".</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Site URL:</td>
<td align="left">
<input type="text" name="site_url" class="inputtext" value="<?= display_str($Options['site_url']) ?>" />
<br /><em>No 'http://', no trailing slash.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Announce URL:</td>
<td align="left">
<input type="text" name="announce_url" class="inputtext" value="<?= display_str($Options['announce_url']) ?>" />
<br /><em>eg. http://tracker.example.com:34000</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Server root:</td>
<td align="left">
<input type="text" name="server_root" class="inputtext" value="<?= display_str($Options['server_root']) ?>" />
<br /><em>No trailing slash.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Session directory:</td>
<td align="left">
<input type="text" name="session_dir" class="inputtext" value="<?= display_str($Options['session_dir']) ?>" />
<br /><em>The directory where php sessions are stored. Ensure that it's readable. Use default if unsure.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Temporary files:</td>
<td align="left">
<input type="text" name="tmp_dir" class="inputtext" value="<?= display_str($Options['tmp_dir']) ?>" />
<br /><em>Where to store temporary files. Use default if unsure.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">Database name:</td>
<td align="left">
<input type="text" name="sqldb" class="inputtext" value="<?= display_str($Options['sqldb']) ?>" />
</td>
</tr>
<tr valign="top">
<td align="right" width="150">MySQL user:</td>
<td align="left">
<input type="text" name="sqllogin" class="inputtext" value="<?= display_str($Options['sqllogin']) ?>" />
<br /><em>You should create this user yourself (can be done after the installation). This user shouldn't be root, and shouldn't have ridiculously high access.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">MySQL password:</td>
<td align="left">
<input type="text" name="sqlpass" class="inputtext" value="<?= display_str($Options['sqlpass']) ?>" />
</td>
</tr>
<tr valign="top">
<td align="right" width="150">MySQL host:</td>
<td align="left">
<input type="text" name="sqlhost" class="inputtext" value="<?= display_str($Options['sqlhost']) ?>" />
</td>
</tr>
<tr valign="top">
<td align="right" width="150">MySQL port:</td>
<td align="left">
<input type="text" name="sqlport" class="inputtext" value="<?= display_str($Options['sqlport']) ?>" />
</td>
</tr>
<tr valign="top">
<td align="right" width="150"><span style="color: red;">MySQL root password:</span></td>
<td align="left">
<input type="text" name="sqlrootpass" class="inputtext" value="<?= display_str($Options['sqlpass']) ?>" />
<br /><em>Used for setting up the database only - is not stored.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">SysOp username:</td>
<td align="left">
<input type="text" name="admin_username" class="inputtext" value="<?= display_str($Options['admin_username']) ?>" />
<br /><em>The username of the main sysop, with user id 1.</em>
</td>
</tr>
<tr valign="top">
<td align="right" width="150">SysOp password:</td>
<td align="left">
<input type="text" name="admin_pass" class="inputtext" value="<?= display_str($Options['admin_pass']) ?>" />
<br /><em>Choose something long and complicated.</em>
</td>
</tr>
<tr valign="top">
<td align="center" colspan="2">
<input type="submit" value="Install" />
</td>
</tr>
</table>
</form>
</div>
<?
include(SERVER_ROOT.'/design/publicfooter.php');
?>