[evolvis-commits] r16272: No html in messages.

mirabilos at evolvis.org mirabilos at evolvis.org
Tue Mar 1 01:06:05 CET 2011


Author: mirabilos
Date: 2011-03-01 01:06:04 +0100 (Tue, 01 Mar 2011)
New Revision: 16272

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/admin/pluginman.php
   trunk/gforge_base/evolvisforge-5.1/src/www/snippet/add_snippet_to_package.php
   trunk/gforge_base/evolvisforge-5.1/src/www/snippet/index.php
   trunk/gforge_base/evolvisforge-5.1/src/www/snippet/package.php
   trunk/gforge_base/evolvisforge-5.1/src/www/snippet/submit.php
Log:
No html in messages.

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/admin/pluginman.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/admin/pluginman.php	2011-03-01 00:06:02 UTC (rev 16271)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/admin/pluginman.php	2011-03-01 00:06:04 UTC (rev 16272)
@@ -171,12 +171,14 @@
 
 // -->
 </script>
+
+<form name="theform" action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="get">
 <?php
 echo '<p>';
 echo _('Here you can activate / deactivate site-wide plugins which are in the plugins/ folder. Then, you should activate them also per project, per user or whatever the plugin specifically applies to.');
 echo '</p>';
-echo '<div class="warning">'._('Be careful because some groups/users can be using the plugin. Deactivating it will remove the plugin from all users/groups. Be <strong>extra</strong> careful not to run the init-script again when the plugin is reactivated, because some scripts have DROP TABLE statements.').'</div>';
-echo '<form name="theform" action="'.getStringFromServer('PHP_SELF').'" method="post">';
+echo '<p class="important">' . _('Be careful because some projects/users can be using the plugin. Deactivating it will remove the plugin from all users/projects.') . '</p>';
+echo '<p class="important">' . _('Be EXTRA careful running the SQL init script when a plugin has been deactivated prior use (and you want to re-activate) because some scripts have DROP TABLE statements.') . '</p>';
 $title_arr = array( _('Plugin Name'),
 		    _('Status'),
 		    _('Action'),

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/snippet/add_snippet_to_package.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/snippet/add_snippet_to_package.php	2011-03-01 00:06:02 UTC (rev 16271)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/snippet/add_snippet_to_package.php	2011-03-01 00:06:04 UTC (rev 16272)
@@ -128,7 +128,8 @@
 	<p>
 	<strong><?php echo _('Package:'); ?></strong><br />
 	<?php echo db_result($result,0,'name') . ' -  ' . db_result($result,0,'version'); ?></p>
-	<p><?php echo _('You can use this form repeatedly to keep adding snippets to your package.</p><p>The "Snippet Version ID" is the unique ID number that is shown next to a specific version of a snippet on the browse pages.'); ?></p>
+	<p><?php echo _('You can use this form repeatedly to keep adding snippets to your package.'); ?></p>
+	<p><?php echo _('The "Snippet Version ID" is the unique ID number that is shown next to a specific version of a snippet on the browse pages.'); ?></p>
 	<p>
 	<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
 	<input type="hidden" name="post_changes" value="y" />

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/snippet/index.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/snippet/index.php	2011-03-01 00:06:02 UTC (rev 16271)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/snippet/index.php	2011-03-01 00:06:04 UTC (rev 16272)
@@ -47,9 +47,17 @@
  */
 function snippet_mainpage() {
 	global $SCRIPT_LANGUAGE,$SCRIPT_CATEGORY;
-	$return =_('<p>The purpose of this archive is to let you share your code snippets, scripts,	and functions with the Open Source Software Community.</p><p>You can create a "new snippet", then post additional versions of that snippet quickly and easily.</p><p>Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets.</p><p> </p><h3>Browse Snippets</h3>	<p>You can browse the snippet library quickly:</p>').'
-	<br />
-	<p/>
+	$return = '<p>' 
+      . _('The purpose of this archive is to let you share your code snippets, scripts, and functions with the Open Source Software Community.')
+      . '</p><p>' 
+      . _('You can create a "new snippet", then post additional versions of that snippet quickly and easily.') 
+      . '</p><p>' 
+      . _('Once you have snippets posted, you can then create a "Package" of snippets. That package can contain multiple, specific versions of other snippets.') 
+      . '</p><h3>' 
+      . _('Browse Snippets') 
+      . '</h3><p>' 
+      . _('You can browse the snippet library quickly:').'
+	</p>
 	<table width="100%" border="0">
 	<tr><td>
 	</td></tr>

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/snippet/package.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/snippet/package.php	2011-03-01 00:06:02 UTC (rev 16271)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/snippet/package.php	2011-03-01 00:06:04 UTC (rev 16272)
@@ -131,8 +131,16 @@
 	snippet_header(array('title'=>_('Submit A New Snippet Package')));
 
 	?>
-	</p><?php echo _('<p>You can group together existing snippets into a package using this interface. Before creating your package, make sure all your snippets are in place and you have made a note of the snippet ID\'s.</p><ol><li>Create the package using this form.</li><li><strong>Then</strong> use the "Add Snippets to Package" link to add files to your package.</li></ol><p><span class="important">Note:</span> You can submit a new version of an existing package by browsing the library and using the link on the existing package. You should only use this page if you are submitting an entirely new package.'); ?></p>
-	<p/>
+	</p>
+    <p>
+    <?php echo _('You can group together existing snippets into a package using this interface. Before creating your package, make sure all your snippets are in place and you have made a note of the snippet ID\'s.'); ?>
+    </p>
+	<ol>
+      <li><?php echo _('Create the package using this form.'); ?></li>
+	  <li><?php echo _('<strong>Then</strong> use the "Add Snippets to Package" link to add files to your package.'); ?></li>
+	</ol>
+	<p><?php echo _('<span class="important">Note:</span> You can submit a new version of an existing package by browsing the library and using the link on the existing package. You should only use this page if you are submitting an entirely new package.'); ?>
+    </p>
 	<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post">
 	<input type="hidden" name="form_key" value="<?php echo form_generate_key(); ?>"/>
 	<input type="hidden" name="post_changes" value="y" />

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/snippet/submit.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/snippet/submit.php	2011-03-01 00:06:02 UTC (rev 16271)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/snippet/submit.php	2011-03-01 00:06:04 UTC (rev 16272)
@@ -88,8 +88,12 @@
 	snippet_header(array('title'=>_('Snippet submit')));
 
 	?>
-	<p><?php echo _('You can post a new code snippet and share it with other people around the world. Just fill in this information. <strong>Give a good description</strong> and <strong>comment your code</strong> so others can read and understand it.</p><p><span class="important">Note:</span> You can submit a new version of an existing snippet by browsing the library. You should only use this page if you are submitting an entirely new script or function.'); ?>
+	<p>
+    <?php echo _('You can post a new code snippet and share it with other people around the world. Just fill in this information. <strong>Give a good description</strong> and <strong>comment your code</strong> so others can read and understand it.'); ?>
 	</p>
+	<p>
+    <?php echo _('<span class="important">Note:</span> You can submit a new version of an existing snippet by browsing the library. You should only use this page if you are submitting an entirely new script or function.'); ?>
+	</p>
 	<form action="<?php echo getStringFromServer('PHP_SELF'); ?>" method="post" id="snippet_submit">
 	<?php
 	echo $HTML->html_input('form_key', '', '', 'hidden', form_generate_key());



More information about the evolvis-commits mailing list