#!/usr/bin/perl # # Guillaume Cottenceau, Pixel # # Copyright 2002-2005 Mandriva # # This software may be freely redistributed under the terms of the GNU # public license. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # use lib qw(/usr/lib/libDrakX); use common; use bootloader; use fs; use fs::proc_partitions; use partition_table::raw; my @choices = map { my $type = partition_table::raw::typeOfMBR($_->{dev}); if_($type && member($type, bootloader::main_method_choices()) , [ $_->{dev}, $type ]); } fs::proc_partitions::read_raw(); my $choice; if (!@choices) { print "No known Linux bootloader has been found, nothing to do.\n"; } elsif (@choices == 1) { print "I've found a Linux bootloader only on <$choices[0][0]>.\n\n"; $choice = $choices[0]; } else { print "I've found the following Linux bootloaders:\n", (map_index { "\t" . $::i . ": <$_->[1]> \ton <$_->[0]>\n" } @choices), "\n", "Which disk/partition do you want to overwrite with the Windows bootloader?\n", "\t "; if ( =~ /^(\d+)$/i && $1 >= 1) { $choice = $choices[$1 - 1]; } } if ($choice) { print "I'm going to overwrite bootloader on <$choice->[0]> with Windows bootloader. Ok? "; =~ /^n/i and exit 0; system('dd', 'if=/usr/lib/extipl/aldebaran.bin', "of=/dev/$choice->[0]") == 0 or print "\tFailed!\n"; } #------------------------------------------------- #- $Log$ #- Revision 1.5 2005/06/13 04:33:50 prigaux #- move functions using /proc/partitions out of fsedit to fs::proc_partitions #- #- Revision 1.4 2005/05/19 08:59:54 prigaux #- rewrite using DrakX modules #- #- Revision 1.3 2005/04/19 12:49:39 prigaux #- update copyright #- #- Revision 1.2 2004/07/20 02:42:12 prigaux #- MandrakeSoft -> Mandrakesoft #- #- Revision 1.1 2002/02/27 13:31:30 gc #- add "restore Windows Boot Loader" to rescue #- #- /option>
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-11-05 07:15:05 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-11-05 07:15:05 +0000
commit05fa8e8c221fc38fcb03e74da54edd3f2a28847c (patch)
tree6f04a0ff26dbe3022f64a7d87e853ed37dc70f93 /phpBB/templates/subSilver
parent5f978355dba56553ed9100a975efc402daaea87f (diff)
downloadforums-05fa8e8c221fc38fcb03e74da54edd3f2a28847c.tar
forums-05fa8e8c221fc38fcb03e74da54edd3f2a28847c.tar.gz
forums-05fa8e8c221fc38fcb03e74da54edd3f2a28847c.tar.bz2
forums-05fa8e8c221fc38fcb03e74da54edd3f2a28847c.tar.xz
forums-05fa8e8c221fc38fcb03e74da54edd3f2a28847c.zip
Re-added coppa stuff for admin (who removed it??)
Added SMTP username and password settiings git-svn-id: file:///svn/phpbb/trunk@1281 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/templates/subSilver')
-rw-r--r--phpBB/templates/subSilver/admin/board_config_body.tpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/templates/subSilver/admin/board_config_body.tpl b/phpBB/templates/subSilver/admin/board_config_body.tpl
index 1663d27a08..2116e46aa2 100644
--- a/phpBB/templates/subSilver/admin/board_config_body.tpl
+++ b/phpBB/templates/subSilver/admin/board_config_body.tpl
@@ -132,6 +132,18 @@
<td class="row2"><input type="text" size="20" maxlength="255" name="avatar_gallery_path" value="{AVATAR_GALLERY_PATH}" /></td>
</tr>
<tr>
+ <th class="thHead" colspan="2">COPPA Settings</th>
+ </tr>
+ <tr>
+ <td class="row1">COPPA Fax Number</td>
+ <td class="row2"><input type="text" size="25" maxlength="100" name="coppa_fax" value="{COPPA_FAX}" /></td>
+ </tr>
+ <tr>
+ <td class="row1">COPPA Mailing Address<br /><span class="gensmall">This is the mailing address where parents will send COPPA registration forms</span></td>
+ <td class="row2"><textarea name="coppa_mail" rows="5" cols="30">{COPPA_MAIL}</textarea></td>
+ </tr>
+
+ <tr>
<th class="thHead" colspan="2">Email Settings</th>
</tr>
<tr>
@@ -151,6 +163,15 @@
<td class="row2"><input type="text" name="smtp_host" value="{SMTP_HOST}" size="25" maxlength="50" /></td>
</tr>
<tr>
+ <td class="row1">SMTP Username</td>
+ <td class="row2"><input type="text" name="smtp_username" value="{SMTP_USERNAME}" size="25" maxlength="50" /></td>
+ </tr>
+ <tr>
+ <td class="row1">SMTP Password</td>
+ <td class="row2"><input type="text" name="smtp_password" value="{SMTP_PASSWORD}" size="25" maxlength="50" /></td>
+ </tr>
+
+ <tr>
<td class="catBottom" colspan="2" align="center">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="Save Settings" class="mainoption" />
</td>
</tr>