Specify port, username and password for the console dropper as variables instead of hardcoded text in the template

feature/node-rewrite
Sven Slootweg 12 years ago
parent 95d30302cc
commit 215f54dba6

@ -13,8 +13,9 @@
if(!isset($_CVM)) { die("Unauthorized."); }
/* TODO: Specify user, password and port as variables. */
$sPageContents .= Templater::AdvancedParse("{$sTheme}/client/vps/console", $locale->strings, array(
'host' => htmlspecialchars($_SERVER['SERVER_NAME'])
'host' => htmlspecialchars($_SERVER['SERVER_NAME']),
'port' => 22,
'username' => "vzshell",
'password' => "vzshell"
));

@ -11,15 +11,15 @@
</tr>
<tr>
<th>{%!console-title-port}</th>
<td>22</td>
<td>{%?port}</td>
</tr>
<tr>
<th>{%!console-title-username}</th>
<td>vz</td>
<td>{%?username}</td>
</tr>
<tr>
<th>{%!console-title-password}</th>
<td>vz</td>
<td>{%?password}</td>
</tr>
</table>

Loading…
Cancel
Save