$text = $params['text'];
//check if the user has the plugin activated
if ($user->usesPlugin($this->name)) {
- echo ' <p>
- <a href="/plugins/quota_management/index.php?id=' . $userid . '&type=user&pluginname=' . $this->name . '">' . _('View Personal quota_management') .'</a></p>';
+ echo ' <p>' ;
+ echo util_make_link ("/plugins/quota_management/index.php?id=$userid&type=user&pluginname=".$this->name,
+ _('View Personal quota_management')
+ ) ;
+ echo '</p>';
}
} elseif ($hookname == "project_admin_plugins") {
// this displays the link in the project admin options page to it´s quota_management administration
$group_id = $params['group_id'];
$group = &group_get_object($group_id);
if ( $group->usesPlugin ( $this->name ) ) {
- echo '<a href="/plugins/quota_management/index.php?id=' . $group->getID() . '&type=admin&pluginname=' . $this->name . '">' . _('View the quota_management Administration') . '</a><br />';
+ echo util_make_link ('/plugins/quota_management/index.php?id='.$group->getID().'&type=admin&pluginname='.$this->name,
+ _('View the quota_management Administration')
+ ) ;
+ echo '<br />';
}
}
elseif ($hookname == "blahblahblah") {
// www/admin/index.php line 167
// ...
?>
- <li><a href="/plugins/quota_management/quota.php"><?php echo _('Ressources usage and quota'); ?></a></li>
+ <li><?php echo util_make_link ("/plugins/quota_management/quota.php",
+ _('Ressources usage and quota')
+ ); ?></li>
<?php
}
elseif ($hookname == "quota_label_project_admin") {
<input type="hidden" name="group_id" value="<?php echo $q["group_id"]; ?>" />
<tr>
<td style="border-top:thin solid #808080"><?php echo $q["group_id"]; ?></td>
- <td style="border-top:thin solid #808080"><a href="/project/admin/quota.php?group_id=<?php echo $q["group_id"]; ?>">
+ <td style="border-top:thin solid #808080"><a href="<?php echo util_make_url ('/project/admin/quota.php?group_id='.$q['group_id']); ?>">
<?php echo $q["unix_name"]; ?>
</a></td>
<td style="border-top:thin solid #808080"><?php echo $q["name"]; ?></td>