Project

General

Profile

« Previous | Next » 

Revision 159

Added by ryan about 19 years ago

Removed relative path input

View differences:

index.php
1 1
<?php
2 2

  
3
// $Id: index.php,v 1.10 2005/06/21 09:14:24 rdjurovich Exp $
3
// $Id$
4 4

  
5 5
/*
6 6

  
......
183 183
		</tr>
184 184
		<tr>
185 185
			<td style="color: #666666;">
186
				Absolute Path:
187
			</td>
188
			<td>
189
				<?php
190
				// Try to guess installation path
191
				if(isset($_SERVER['SCRIPT_FILENAME']) AND $_SERVER['SCRIPT_FILENAME'] != "") { // This usually works on linux systems
192
					$guessed_path = rtrim(dirname($_SERVER['SCRIPT_FILENAME']), 'install');
193
				} elseif(isset($_SERVER['PATH_TRANSLATED']) AND $_SERVER['PATH_TRANSLATED'] != "") { // This usually works on windows systems
194
					$guessed_path = rtrim(dirname($_SERVER['PATH_TRANSLATED']), 'install');
195
				} else {
196
					$guessed_path = "";
197
				}
198
				?>
199
				<input type="text" tabindex="2" name="wb_path" style="width: 99%;" value="<?php if(isset($_SESSION['wb_path'])) { echo $_SESSION['wb_path']; } else { echo $guessed_path; } ?>" />
200
			</td>
201
		</tr>
202
		<tr>
203
			<td style="color: #666666;">
204 186
				Default Timezone:
205 187
			</td>
206 188
			<td>

Also available in: Unified diff