summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-01-06 23:28:49 +0100
committerINOPIAE <inopiae@cacert.org>2013-01-06 23:28:49 +0100
commit7dca631c59754d7f9e4fff12edc924b8c03d127c (patch)
tree6b3213758501de60496086e0d1a943099df1179b /pages
parente22a338486cd4d7305eb8b2f4b36460873a5855b (diff)
downloadcacert-devel-7dca631c59754d7f9e4fff12edc924b8c03d127c.tar.gz
cacert-devel-7dca631c59754d7f9e4fff12edc924b8c03d127c.tar.xz
cacert-devel-7dca631c59754d7f9e4fff12edc924b8c03d127c.zip
bug 1122: Changed isset==false to !isset, Change from " to ', typo fix
Diffstat (limited to 'pages')
-rw-r--r--pages/account/57.php41
1 files changed, 20 insertions, 21 deletions
diff --git a/pages/account/57.php b/pages/account/57.php
index 6b15889..76eee27 100644
--- a/pages/account/57.php
+++ b/pages/account/57.php
@@ -16,11 +16,11 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
<?
- include_once($_SESSION['_config']['filepath']."/includes/notary.inc.php");
+ include_once($_SESSION['_config']['filepath'].'/includes/notary.inc.php');
if ($_SESSION['profile']['admin'] != 1 || !array_key_exists('userid',$_REQUEST) || intval($_REQUEST['userid']) < 1) {
- echo _("You do not have access to this page");
+ echo _('You do not have access to this page');
} else {
$user_id = intval($_REQUEST['userid']);
@@ -34,7 +34,7 @@
?>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
- <td colspan="5" class="title"><?=_("CCA agreement of")." ".sanitizeHTML($row['fname'])." ".sanitizeHTML($row['mname'])." ".sanitizeHTML($row['lname'])?></td>
+ <td colspan="5" class="title"><?=_('CCA agreement of').' '.sanitizeHTML($row['fname']).' '.sanitizeHTML($row['mname']).' '.sanitizeHTML($row['lname'])?></td>
</tr>
</table>
@@ -42,51 +42,51 @@
<br>
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>
- <td class="DataTD"><b><?=_("???")?></b></td>
- <td class="DataTD"><b><?=_("Date")?></b></td>
- <td class="DataTD"><b><?=_("Methode")?></b></td>
- <td class="DataTD"><b><?=_("Type")?></b></td>
+ <td class="DataTD"><b><?=_('CCA type')?></b></td>
+ <td class="DataTD"><b><?=_('Date')?></b></td>
+ <td class="DataTD"><b><?=_('Method')?></b></td>
+ <td class="DataTD"><b><?=_('Type')?></b></td>
</tr>
<?
$data=get_first_user_agreement($user_id,1);
- if (isset($data['active'])==false){
- $type="";
+ if (!isset($data['active'])){
+ $type='';
}else{
- $type=_("active");
+ $type=_('active');
}
?>
<tr>
- <td class="DataTD"><?=_("first active CCA")?></td>
+ <td class="DataTD"><?=_('First active CCA')?></td>
<td class="DataTD"><?=$data['date']?></td>
<td class="DataTD"><?=$data['method']?></td>
<td class="DataTD"><?=$type?></td>
</tr>
<?
$data=get_first_user_agreement($user_id,0);
- if (isset($data['active'])==false){
+ if (!isset($data['active'])){
$type="";
}else{
- $type=_("passive");
+ $type=_('passive');
}
?>
<tr>
- <td class="DataTD"><?=_("first passive CCA")?></td>
+ <td class="DataTD"><?=_('First passive CCA')?></td>
<td class="DataTD"><?=$data['date']?></td>
<td class="DataTD"><?=$data['method']?></td>
<td class="DataTD"><?=$type?></td>
</tr>
<?
$data=get_last_user_agreement($user_id);
- if (isset($data['active'])==false){
+ if (!isset($data['active'])){
$type="";
}elseif($data['active']==1){
- $type=_("active");
+ $type=_('active');
}else{
- $type=_("passive");
+ $type=_('passive');
}
?>
<tr>
- <td class="DataTD"><?=_("last CCA")?></td>
+ <td class="DataTD"><?=_('Last CCA')?></td>
<td class="DataTD"><?=$data['date']?></td>
<td class="DataTD"><?=$data['method']?></td>
<td class="DataTD"><?=$type?></td>
@@ -103,6 +103,5 @@
?> </table>
<?
}
- }
-?>
-
+}
+?>