add globals to work with setup

This commit is contained in:
Miles Lott 2001-09-12 16:49:23 +00:00
parent e2117e0432
commit 37122a1fa7
3 changed files with 37 additions and 37 deletions

View File

@ -7,7 +7,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['auth_type']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['auth_type']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Select which type of authentication you are using.</td> <td>Select which type of authentication you are using.</td>
<td> <td>
@ -23,7 +23,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['account_repository']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['account_repository']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Select where you want to store/retrieve user accounts.</td> <td>Select where you want to store/retrieve user accounts.</td>
<td> <td>
@ -36,7 +36,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['file_repository']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['file_repository']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Select where you want to store/retrieve filesystem information.</td> <td>Select where you want to store/retrieve filesystem information.</td>
<td> <td>
@ -48,15 +48,15 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Minimum account id (e.g. 500 or 100, etc.):</td> <td>Minimum account id (e.g. 500 or 100, etc.):</td>
<td><input name="newsettings[account_min_id]" value="<?php echo $current_config['account_min_id']; ?>"></td> <td><input name="newsettings[account_min_id]" value="<?php echo $GLOBALS['current_config']['account_min_id']; ?>"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Maximum account id (e.g. 65535 or 1000000):</td> <td>Maximum account id (e.g. 65535 or 1000000):</td>
<td><input name="newsettings[account_max_id]" value="<?php echo $current_config['account_max_id']; ?>"></td> <td><input name="newsettings[account_max_id]" value="<?php echo $GLOBALS['current_config']['account_max_id']; ?>"></td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['ldap_extra_attributes']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['ldap_extra_attributes']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>If using LDAP, do you want to manage homedirectory and loginshell attributes?:</td> <td>If using LDAP, do you want to manage homedirectory and loginshell attributes?:</td>
<td> <td>
@ -69,16 +69,16 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>&nbsp;&nbsp;&nbsp;LDAP Default homedirectory prefix (e.g. /home for /home/username):</td> <td>&nbsp;&nbsp;&nbsp;LDAP Default homedirectory prefix (e.g. /home for /home/username):</td>
<td><input name="newsettings[ldap_account_home]" value="<?php echo $current_config['ldap_account_home']; ?>"></td> <td><input name="newsettings[ldap_account_home]" value="<?php echo $GLOBALS['current_config']['ldap_account_home']; ?>"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>&nbsp;&nbsp;&nbsp;LDAP Default shell (e.g. /bin/bash):</td> <td>&nbsp;&nbsp;&nbsp;LDAP Default shell (e.g. /bin/bash):</td>
<td><input name="newsettings[ldap_account_shell]" value="<?php echo $current_config['ldap_account_shell']; ?>"></td> <td><input name="newsettings[ldap_account_shell]" value="<?php echo $GLOBALS['current_config']['ldap_account_shell']; ?>"></td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['auto_create_acct']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['auto_create_acct']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Auto create account records for authenticated users:</td> <td>Auto create account records for authenticated users:</td>
<td> <td>
@ -91,11 +91,11 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Add auto-created users to this group ('Default' will be attempted if this is empty.):</td> <td>Add auto-created users to this group ('Default' will be attempted if this is empty.):</td>
<td><input name="newsettings[default_group_lid]" value="<?php echo $current_config['default_group_lid']; ?>"></td> <td><input name="newsettings[default_group_lid]" value="<?php echo $GLOBALS['current_config']['default_group_lid']; ?>"></td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['acl_default']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['acl_default']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>If no ACL records for user or any group the user is a member of: </td> <td>If no ACL records for user or any group the user is a member of: </td>
<td> <td>
@ -108,31 +108,31 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP host:</td> <td>LDAP host:</td>
<td><input name="newsettings[ldap_host]" value="<?php echo $current_config['ldap_host']; ?>"></td> <td><input name="newsettings[ldap_host]" value="<?php echo $GLOBALS['current_config']['ldap_host']; ?>"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP accounts context:</td> <td>LDAP accounts context:</td>
<td><input name="newsettings[ldap_context]" value="<?php echo $current_config['ldap_context']; ?>" size="40"></td> <td><input name="newsettings[ldap_context]" value="<?php echo $GLOBALS['current_config']['ldap_context']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP groups context:</td> <td>LDAP groups context:</td>
<td><input name="newsettings[ldap_group_context]" value="<?php echo $current_config['ldap_group_context']; ?>" size="40"></td> <td><input name="newsettings[ldap_group_context]" value="<?php echo $GLOBALS['current_config']['ldap_group_context']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP root dn:</td> <td>LDAP root dn:</td>
<td><input name="newsettings[ldap_root_dn]" value="<?php echo $current_config['ldap_root_dn']; ?>" size="40"></td> <td><input name="newsettings[ldap_root_dn]" value="<?php echo $GLOBALS['current_config']['ldap_root_dn']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP root password:</td> <td>LDAP root password:</td>
<td><input name="newsettings[ldap_root_pw]" type="password" value="<?php echo $current_config['ldap_root_pw']; ?>"></td> <td><input name="newsettings[ldap_root_pw]" type="password" value="<?php echo $GLOBALS['current_config']['ldap_root_pw']; ?>"></td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config["ldap_encryption_type"]] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['ldap_encryption_type']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>LDAP encryption type</td> <td>LDAP encryption type</td>
<td> <td>
@ -146,5 +146,5 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter some random text for app_session <br>encryption (requires mcrypt)</td> <td>Enter some random text for app_session <br>encryption (requires mcrypt)</td>
<td><input name="newsettings[encryptkey]" value="<?php echo $current_config['encryptkey']; ?>" size="40"></td> <td><input name="newsettings[encryptkey]" value="<?php echo $GLOBALS['current_config']['encryptkey']; ?>" size="40"></td>
</tr> </tr>

View File

@ -5,17 +5,17 @@
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP</td> <td>Enter the full path for temporary files.<br>Examples: /tmp, C:\TEMP</td>
<td><input name="newsettings[temp_dir]" value="<?php echo $current_config['temp_dir']; ?>" size="40"></td> <td><input name="newsettings[temp_dir]" value="<?php echo $GLOBALS['current_config']['temp_dir']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter the full path for users and group files.<br>Examples: /files, E:\FILES</td> <td>Enter the full path for users and group files.<br>Examples: /files, E:\FILES</td>
<td><input name="newsettings[files_dir]" value="<?php echo $current_config['files_dir']; ?>" size="40"></td> <td><input name="newsettings[files_dir]" value="<?php echo $GLOBALS['current_config']['files_dir']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b></td> <td>Enter the location of phpGroupWare's URL.<br>Example: http://www.domain.com/phpgroupware &nbsp; or &nbsp; /phpgroupware<br><b>No trailing slash</b></td>
<td><input name="newsettings[webserver_url]" value="<?php echo $current_config['webserver_url']; ?>" size="40"></td> <td><input name="newsettings[webserver_url]" value="<?php echo $GLOBALS['current_config']['webserver_url']; ?>" size="40"></td>
</tr> </tr>
<tr bgcolor="FFFFFF"> <tr bgcolor="FFFFFF">
@ -27,7 +27,7 @@
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<?php if ($current_config['hostname']) { $thishostname = $current_config['hostname']; } <?php if ($GLOBALS['current_config']['hostname']) { $thishostname = $GLOBALS['current_config']['hostname']; }
else { $thishostname = $SERVER_NAME; } else { $thishostname = $SERVER_NAME; }
?> ?>
<td>Enter the hostname of the machine on which this server is running.</td> <td>Enter the hostname of the machine on which this server is running.</td>
@ -36,11 +36,11 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter your default FTP server.</td> <td>Enter your default FTP server.</td>
<td><input name="newsettings[default_ftp_server]" value="<?php echo $current_config['default_ftp_server']; ?>"></td> <td><input name="newsettings[default_ftp_server]" value="<?php echo $GLOBALS['current_config']['default_ftp_server']; ?>"></td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[@$current_config['ftp_use_mime']] = " selected"; ?> <?php $selected[@$GLOBALS['current_config']['ftp_use_mime']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Attempt to use correct mimetype for FTP instead of default 'application/octet-stream'.</td> <td>Attempt to use correct mimetype for FTP instead of default 'application/octet-stream'.</td>
<td> <td>
@ -53,10 +53,10 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter your HTTP proxy server.</td> <td>Enter your HTTP proxy server.</td>
<td><input name="newsettings[httpproxy_server]" value="<?php echo $current_config['httpproxy_server']; ?>"></td> <td><input name="newsettings[httpproxy_server]" value="<?php echo $GLOBALS['current_config']['httpproxy_server']; ?>"></td>
</tr> </tr>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter your HTTP proxy server port.</td> <td>Enter your HTTP proxy server port.</td>
<td><input name="newsettings[httpproxy_port]" value="<?php echo $current_config['httpproxy_port']; ?>"></td> <td><input name="newsettings[httpproxy_port]" value="<?php echo $GLOBALS['current_config']['httpproxy_port']; ?>"></td>
</tr> </tr>

View File

@ -8,22 +8,22 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Enter the title for your site.</td> <td>Enter the title for your site.</td>
<td><input name="newsettings[site_title]" value="<?php echo $current_config["site_title"]; ?>"></td> <td><input name="newsettings[site_title]" value="<?php echo $GLOBALS['current_config']['site_title']; ?>"></td>
</tr> </tr>
<?php $selected[$current_config["showpoweredbyon"]] = " selected"; ?> <?php $selected[$GLOBALS['current_config']['showpoweredbyon']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Show 'powered by' logo on:</td> <td>Show 'powered by' logo on:</td>
<td> <td>
<select name="newsettings[showpoweredbyon]"> <select name="newsettings[showpoweredbyon]">
<option value="bottom"<?php echo $selected["bottom"]; ?>>bottom</option> <option value="bottom"<?php echo $selected['bottom']; ?>>bottom</option>
<option value="top"<?php echo $selected["top"]; ?>>top</option> <option value="top"<?php echo $selected['top']; ?>>top</option>
</select> </select>
</td> </td>
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config["countrylist"]] = " selected"; ?> <?php $selected[$GLOBALS['current_config']['countrylist']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Country Selection (Text Entry/SelectBox):</td> <td>Country Selection (Text Entry/SelectBox):</td>
<td> <td>
@ -38,7 +38,7 @@
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['htmlcompliant']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['htmlcompliant']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Use pure HTML compliant code (not fully working yet):</td> <td>Use pure HTML compliant code (not fully working yet):</td>
<td> <td>
@ -50,7 +50,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['usecookies']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['usecookies']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Use cookies to pass sessionid:</td> <td>Use cookies to pass sessionid:</td>
<td> <td>
@ -62,7 +62,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['checkfornewversion']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['checkfornewversion']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Would you like phpGroupWare to check for new version<br>when admins login ?:</td> <td>Would you like phpGroupWare to check for new version<br>when admins login ?:</td>
<td> <td>
@ -74,7 +74,7 @@
</tr> </tr>
<?php $selected = array(); ?> <?php $selected = array(); ?>
<?php $selected[$current_config['cache_phpgw_info']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['cache_phpgw_info']] = ' selected'; ?>
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Would you like phpGroupWare to cache the phpgw_info array ?:</td> <td>Would you like phpGroupWare to cache the phpgw_info array ?:</td>
<td> <td>
@ -90,9 +90,9 @@
<tr bgcolor="e6e6e6"> <tr bgcolor="e6e6e6">
<td>Default file system space per user/group ?:</td> <td>Default file system space per user/group ?:</td>
<td> <td>
<input type="text" name="newsettings[vfs_default_account_size_number]" size="7" value="<?php echo $current_config['vfs_default_account_size_number']; ?> "> <input type="text" name="newsettings[vfs_default_account_size_number]" size="7" value="<?php echo $GLOBALS['current_config']['vfs_default_account_size_number']; ?> ">
&nbsp;&nbsp; &nbsp;&nbsp;
<?php $selected[$current_config['vfs_default_account_size_type']] = ' selected'; ?> <?php $selected[$GLOBALS['current_config']['vfs_default_account_size_type']] = ' selected'; ?>
<select name="newsettings[vfs_default_account_size_type]"> <select name="newsettings[vfs_default_account_size_type]">
<option value="gb" <?php echo $selected['gb']?>>GB</option> <option value="gb" <?php echo $selected['gb']?>>GB</option>
<option value="mb" <?php echo $selected['mb']?>>MB</option> <option value="mb" <?php echo $selected['mb']?>>MB</option>