Commit deb84e5e authored by Helmo's avatar Helmo

template improvement

parent 735c081e
......@@ -648,9 +648,11 @@ class page_action extends tform_actions {
$app->tpl->setVar('database_username', $db_user_params['database_user']);
$app->tpl->setVar('database_password', $db_user_params['database_password']);
$app->tpl->setVar('ftp_server_name', $webserver['server_name']);
$app->tpl->setVar('ftp_username', $ftp_params['username']);
$app->tpl->setVar('ftp_password', $ftp_params['password']);
if(isset($ftp_params)) {
$app->tpl->setVar('ftp_server_name', $webserver['server_name']);
$app->tpl->setVar('ftp_username', $ftp_params['username']);
$app->tpl->setVar('ftp_password', $ftp_params['password']);
}
$app->tpl->setVar('ssh_server_name', $webserver['server_name']);
$app->tpl->setVar('ssh_username', $ssh_params['username']);
......
<pre>
Site: {tmpl_var name='sitedomain'}
<tmpl_if name="database_user">
DB name/user {tmpl_var name='database_user'}
DB password {tmpl_var name='database_password'}
PhpMyAdmin https://{tmpl_var name='ssh_server_name]'}/phpmyadmin/
PhpMyAdmin https://{tmpl_var name='ssh_server_name'}/phpmyadmin/
</tmpl_if>
FTP Server {tmpl_var name='ftp_server_name]'}
<tmpl_if name="ftp_server_name">
FTP Server {tmpl_var name='ftp_server_name'}
FTP user {tmpl_var name='ftp_username'}
FTP password {tmpl_var name='ftp_password'}
</tmpl_if>
SSH Server {tmpl_var name='ssh_server_name]'}
<tmpl_if name="ssh_server_name">
SSH Server {tmpl_var name='ssh_server_name'}
SSH user {tmpl_var name='ssh_username'}
SSH password {tmpl_var name='ssh_password'}
</tmpl_if>
</pre>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment