print _("Edit the block as you want. If you activate the HTML editor, you will be able to use WYSIWYG formatting (bold, colors...)");
print '<div class="align-center">';
- print "<p><b>$blocks[$name]</b> ($name)</p>";
+ echo html_e('p', array(), html_e('strong', array(), $blocks[$name], true, false). ."($name)");
echo $HTML->openForm(array('action' => '/plugins/blocks/', 'method' => 'post'));
print "<input type=\"hidden\" name=\"id\" value=\"$id\" />\n";
print "<input type=\"hidden\" name=\"pluginname\" value=\"$pluginname\" />\n";
$userid = session_get_user()->getID();
$providers = OAuthProvider::get_all_oauthproviders();
if(count($providers)>0) {
- echo '<p>'. _('This OAuth Consumer plugin allows a user to connect to different oauth enabled services.').'</p>';
- echo '<h4>'._('Accessing resources with OAuth').'</h4>';
+ echo html_e('p', array(), _('This OAuth Consumer plugin allows a user to connect to different oauth enabled services.'));
+ echo html_e('h4', array(), _('Accessing resources with OAuth'));
?>
<form action="index.php" method="post">
- <b><?php echo _('Providers'); ?></b>
- <?php $f_provider_id = getStringFromPost('providers'); ?>
+ <?php echo html_e('storng', array(), _('Providers'));
+ $f_provider_id = getStringFromPost('providers'); ?>
<select name=providers>
<?php foreach ($providers as $provider) {
echo '<option value="'.$provider->get_id().'" ';
// If there are too many users, replace the list with number of users
$nb_users = db_numrows($res);
if ($nb_users > 100) {
- $users = util_make_link("/admin/userlist.php?usingplugin=$filename", '<b>'.sprintf(_("%d users"), $nb_users).'</b>');
+ $users = util_make_link("/admin/userlist.php?usingplugin=$filename", html_e('strong', array(), sprintf(_("%d users"), $nb_users)));
} else {
$users = " ";
for($i = 0; $i < $nb_users; $i++) {
$nb_groups = db_numrows($res);
// If there are too many projects, replace the list with number of projects
if ($nb_groups > 100) {
- $groups = util_make_link("/admin/grouplist.php?usingplugin=$filename", '<b>'.sprintf(_("%d projects"), $nb_groups).'</b>');
+ $groups = util_make_link("/admin/grouplist.php?usingplugin=$filename", html_e('strong', array(), sprintf(_("%d projects"), $nb_groups)));
} else {
$groups = " ";
for($i=0;$i<$nb_groups;$i++) {