Revision f8ec8de4
Added by Renato Botelho about 15 years ago
usr/local/www/diag_nanobsd.php | ||
---|---|---|
46 | 46 |
require_once("guiconfig.inc"); |
47 | 47 |
require_once("config.inc"); |
48 | 48 |
|
49 |
$pgtitle = array("Diagnostics","NanoBSD");
|
|
49 |
$pgtitle = array(gettext("Diagnostics"), gettext("NanoBSD"));
|
|
50 | 50 |
include("head.inc"); |
51 | 51 |
|
52 | 52 |
// Survey slice info |
... | ... | |
70 | 70 |
echo <<<EOF |
71 | 71 |
<div id="loading"> |
72 | 72 |
<img src="/themes/metallic/images/misc/loader.gif"> |
73 |
Setting slice information, please wait...
|
|
73 |
gettext("Setting slice information, please wait...")
|
|
74 | 74 |
<p/> |
75 | 75 |
</div> |
76 | 76 |
EOF; |
77 | 77 |
nanobsd_switch_boot_slice(); |
78 |
$savemsg = "The boot slice has been set to " . nanobsd_get_active_slice();
|
|
78 |
$savemsg = gettext("The boot slice has been set to") . " " . nanobsd_get_active_slice();
|
|
79 | 79 |
// Survey slice info |
80 | 80 |
nanobsd_detect_slice_info(); |
81 | 81 |
|
... | ... | |
85 | 85 |
echo <<<EOF |
86 | 86 |
<div id="loading"> |
87 | 87 |
<img src="/themes/metallic/images/misc/loader.gif"> |
88 |
Duplicating slice. Please wait, this will take a moment...
|
|
88 |
gettext("Duplicating slice. Please wait, this will take a moment...")
|
|
89 | 89 |
<p/> |
90 | 90 |
</div> |
91 | 91 |
EOF; |
92 | 92 |
if(nanobsd_clone_slice($_POST['destslice'])) { |
93 |
$savemsg = "The slice has been duplicated.<p/>If you would like to boot from this newly duplicated slice please set it using the bootup information area.";
|
|
93 |
$savemsg = gettext("The slice has been duplicated.") . "<p/>" . gettext("If you would like to boot from this newly duplicated slice please set it using the bootup information area.");
|
|
94 | 94 |
} else { |
95 |
$savemsg = "There was an error while duplicating the slice. Operation aborted.";
|
|
95 |
$savemsg = gettext("There was an error while duplicating the slice. Operation aborted.");
|
|
96 | 96 |
} |
97 | 97 |
// Re-Survey slice info |
98 | 98 |
nanobsd_detect_slice_info(); |
... | ... | |
113 | 113 |
<div class="tabcont"> |
114 | 114 |
<span class="vexpl"> |
115 | 115 |
<span class="red"> |
116 |
<strong>NOTE: </strong>
|
|
116 |
<strong><?=gettext("NOTE") . ":"?> </strong>
|
|
117 | 117 |
</span> |
118 |
The options on this page are intended for use by advanced users only.
|
|
118 |
<?=gettext("The options on this page are intended for use by advanced users only.")?>
|
|
119 | 119 |
<br/> |
120 | 120 |
</span> |
121 | 121 |
<p/> |
122 | 122 |
<table width="100%" border="0" cellpadding="6" cellspacing="0"> |
123 | 123 |
<tr> |
124 |
<td colspan="2" valign="top" class="listtopic">Bootup information</td>
|
|
124 |
<td colspan="2" valign="top" class="listtopic"><?=gettext("Bootup information");?></td>
|
|
125 | 125 |
</tr> |
126 | 126 |
<tr> |
127 |
<td width="22%" valign="top" class="vncell">NanoBSD Image size</td>
|
|
127 |
<td width="22%" valign="top" class="vncell"><?=gettext("NanoBSD Image size");?></td>
|
|
128 | 128 |
<td width="78%" class="vtable"> |
129 | 129 |
<?php echo $NANOBSD_SIZE; ?> |
130 | 130 |
</td> |
131 | 131 |
</tr> |
132 | 132 |
<tr> |
133 |
<td width="22%" valign="top" class="vncell">Bootup</td>
|
|
133 |
<td width="22%" valign="top" class="vncell"><?=gettext("Bootup");?></td>
|
|
134 | 134 |
<td width="78%" class="vtable"> |
135 | 135 |
<form action="diag_nanobsd.php" method="post" name="iform"> |
136 |
Bootup slice is currently: <?php echo $ACTIVE_SLICE; ?>
|
|
137 |
<br/><br/>This will switch the bootup slice to the alternate slice.
|
|
136 |
<?=gettext("Bootup slice is currently");?>: <?php echo $ACTIVE_SLICE; ?>
|
|
137 |
<br/><br/><?=gettext("This will switch the bootup slice to the alternate slice.");?>
|
|
138 | 138 |
<br/> |
139 | 139 |
<input type='hidden' name='bootslice' value='switch'> |
140 | 140 |
<input type='submit' value='Switch Slice'></form> |
... | ... | |
144 | 144 |
<td colspan="2" valign="top" class=""> </td> |
145 | 145 |
</tr> |
146 | 146 |
<tr> |
147 |
<td colspan="2" valign="top" class="listtopic">Duplicate bootup slice to alternate</td>
|
|
147 |
<td colspan="2" valign="top" class="listtopic"><?=gettext("Duplicate bootup slice to alternate");?></td>
|
|
148 | 148 |
</tr> |
149 | 149 |
<tr> |
150 |
<td width="22%" valign="top" class="vncell">Duplicate bootup slice</td>
|
|
150 |
<td width="22%" valign="top" class="vncell"><?=gettext("Duplicate bootup slice");?></td>
|
|
151 | 151 |
<td width="78%" class="vtable"> |
152 | 152 |
<form action="diag_nanobsd.php" method="post" name="iform"> |
153 |
Destination slice:
|
|
153 |
<?=gettext("Destination slice");?>:
|
|
154 | 154 |
<select name='destslice'> |
155 | 155 |
<option value='<?php echo $COMPLETE_PATH; ?>'> |
156 | 156 |
<?php echo "{$COMPLETE_BOOT_PATH} -> {$TOFLASH}"; ?> |
157 | 157 |
</option> |
158 | 158 |
</select> |
159 | 159 |
<br/> |
160 |
This will duplicate the bootup slice to the alternate slice. Use this if you would like to duplicate the known good working boot partition to the alternate.
|
|
160 |
<?=gettext("This will duplicate the bootup slice to the alternate slice. Use this if you would like to duplicate the known good working boot partition to the alternate.");?>
|
|
161 | 161 |
</td> |
162 | 162 |
</tr> |
163 | 163 |
<tr> |
... | ... | |
168 | 168 |
<td colspan="2" valign="top" class=""> </td> |
169 | 169 |
</tr> |
170 | 170 |
<tr> |
171 |
<td colspan="2" valign="top" class="listtopic">View upgrade log</td>
|
|
171 |
<td colspan="2" valign="top" class="listtopic"><?=gettext("View upgrade log");?></td>
|
|
172 | 172 |
</tr> |
173 | 173 |
<tr> |
174 |
<td width="22%" valign="top" class="vncell">View previous upgrade log</td>
|
|
174 |
<td width="22%" valign="top" class="vncell"><?=gettext("View previous upgrade log");?></td>
|
|
175 | 175 |
<td width="78%" class="vtable"> |
176 | 176 |
<?php |
177 | 177 |
if($_POST['viewupgradelog']) { |
Also available in: Unified diff
Sync with mainline, diag_* files were missing