[Fusionforge-commits] r11123 - trunk/src/www/project/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Oct 22 09:26:31 CEST 2010


Author: aljeux
Date: 2010-10-22 09:26:31 +0200 (Fri, 22 Oct 2010)
New Revision: 11123

Modified:
   trunk/src/www/project/admin/vhost.php
Log:
No html is message when possible.

Modified: trunk/src/www/project/admin/vhost.php
===================================================================
--- trunk/src/www/project/admin/vhost.php	2010-10-22 07:26:25 UTC (rev 11122)
+++ trunk/src/www/project/admin/vhost.php	2010-10-22 07:26:31 UTC (rev 11123)
@@ -103,13 +103,18 @@
 
 project_admin_header(array('title'=>_('Virtual Host Management'),'group'=>$group->getID()));
 
-?>
+print '<h2>' . _('Add New Virtual Host') . '</h2>';
 
-<p>&nbsp;</p>
+print '<p>';
+printf(_('To add a new virtual host - simply point a <strong>CNAME</strong> for <em>yourhost.org</em> at <strong>%1$s.%2$s</strong>.  %3$s does not currently host mail (i.e. cannot be an MX) or DNS</strong>.'), $group->getUnixName(), $GLOBALS['sys_default_domain'], $GLOBALS['sys_name']);
+print '</p>';
 
-<?php printf(_('<strong><span style="text-decoration:underline">Add New Virtual Host</span></strong><p>To add a new virtual host - simply point a <strong>CNAME</strong> for <em>yourhost.org</em> at <strong>%1$s.%2$s</strong>.  %3$s does not currently host mail (i.e. cannot be an MX) or DNS</strong>.  <p>Clicking on "create" will schedule the creation of the Virtual Host.  This will be synced to the project webservers - such that <em>yourhost.org</em> will display the material at <em>%4$s.%5$s</em>.'), $group->getUnixName(), forge_get_config('web_host'), forge_get_config ('forge_name'), $group->getUnixName(), forge_get_config('web_host')) ?>
-<p>
+print '<p>';
+printf(_('Clicking on "create" will schedule the creation of the Virtual Host.  This will be synced to the project webservers - such that <em>yourhost.org</em> will display the material at <em>%4$s.%5$s</em>.'), $group->getUnixName(), $GLOBALS['sys_default_domain']);
+print '</p>';
 
+?>
+
 <form name="new_vhost" action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group->getID().'&createvhost=1'; ?>" method="post"> 
 <table border="0">
 <tr>
@@ -147,7 +152,7 @@
 	echo $GLOBALS['HTML']->listTableBottom();
 
 } else {
-	echo '<p>'._('No VHOSTs defined').'No VHOSTs defined</p>';
+	echo '<p>'._('No VHOSTs defined').'</p>';
 }
 
 project_admin_footer(array());




More information about the Fusionforge-commits mailing list