Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
peupleLà
osTicket-1.8
Commits
bb0029e9
Commit
bb0029e9
authored
Sep 19, 2014
by
peupleLà
Browse files
Trad : include/staff/banrule.inc.php
parent
4f89e6f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/staff/banrule.inc.php
View file @
bb0029e9
<?php
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ess Denied
'
);
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ès refusé
'
);
$info
=
array
();
$qstr
=
''
;
if
(
$rule
&&
$_REQUEST
[
'a'
]
!=
'add'
){
$title
=
'
Update Ban Rule
'
;
$action
=
'
update
'
;
$submit_text
=
'
Update
'
;
$title
=
'
Mettre à jour les règles d’interdiction
'
;
$action
=
'
Mettre à jour
'
;
$submit_text
=
'
Mettre à jour
'
;
$info
=
$rule
->
getInfo
();
$info
[
'id'
]
=
$rule
->
getId
();
$qstr
.
=
'&id='
.
$rule
->
getId
();
}
else
{
$title
=
'A
dd New Email Address to Ban List
'
;
$action
=
'
add
'
;
$submit_text
=
'A
dd
'
;
$title
=
'A
jouter une adresse courriel à la liste des interdictions
'
;
$action
=
'
Ajouter
'
;
$submit_text
=
'A
jouter
'
;
$info
[
'isactive'
]
=
isset
(
$info
[
'isactive'
])
?
$info
[
'isactive'
]
:
1
;
$qstr
.
=
'&a='
.
urlencode
(
$_REQUEST
[
'a'
]);
}
...
...
@@ -24,7 +24,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<input
type=
"hidden"
name=
"do"
value=
"
<?php
echo
$action
;
?>
"
>
<input
type=
"hidden"
name=
"a"
value=
"
<?php
echo
Format
::
htmlchars
(
$_REQUEST
[
'a'
]);
?>
"
>
<input
type=
"hidden"
name=
"id"
value=
"
<?php
echo
$info
[
'id'
];
?>
"
>
<h2>
Manage Email Ban Rule
<h2>
Gérer les règles d’interdiction des adresses courriel
<i
class=
"help-tip icon-question-sign"
href=
"#ban_list"
></i>
</h2>
<table
class=
"form_table"
width=
"940"
border=
"0"
cellspacing=
"0"
cellpadding=
"2"
>
...
...
@@ -32,24 +32,24 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
<tr>
<th
colspan=
"2"
>
<h4>
<?php
echo
$title
;
?>
</h4>
<em>
Valid email addr
es
s
requi
red
.
</em>
<em>
Une adresse de courriel valide
es
t
requi
se
.
</em>
</th>
</tr>
</thead>
<tbody>
<tr>
<td
width=
"180"
class=
"required"
>
Ban
Statu
s:
Statu
t
</td>
<td>
<input
type=
"radio"
name=
"isactive"
value=
"1"
<?php
echo
$info
[
'isactive'
]
?
'checked="checked"'
:
''
;
?>
><strong>
Activ
e
</strong>
<input
type=
"radio"
name=
"isactive"
value=
"0"
<?php
echo
!
$info
[
'isactive'
]
?
'checked="checked"'
:
''
;
?>
>
D
i
sa
bled
<input
type=
"radio"
name=
"isactive"
value=
"1"
<?php
echo
$info
[
'isactive'
]
?
'checked="checked"'
:
''
;
?>
><strong>
Activ
é
</strong>
<input
type=
"radio"
name=
"isactive"
value=
"0"
<?php
echo
!
$info
[
'isactive'
]
?
'checked="checked"'
:
''
;
?>
>
D
é
sa
ctivé
<span
class=
"error"
>
*
</span>
</td>
</tr>
<tr>
<td
width=
"180"
class=
"required"
>
Email
Ad
d
ress
:
Adress
e de courriel
</td>
<td>
<input
name=
"val"
type=
"text"
size=
"24"
value=
"
<?php
echo
$info
[
'val'
];
?>
"
>
...
...
@@ -58,7 +58,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</tr>
<tr>
<th
colspan=
"2"
>
<em><strong>
Internal notes
</strong>
: Admin notes
</em>
<em><strong>
Notes internes
</strong>
: remarques admin
</em>
</th>
</tr>
<tr>
...
...
@@ -71,7 +71,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info);
</table>
<p
style=
"padding-left:225px;"
>
<input
type=
"submit"
name=
"submit"
value=
"
<?php
echo
$submit_text
;
?>
"
>
<input
type=
"reset"
name=
"reset"
value=
"R
e
se
t
"
>
<input
type=
"button"
name=
"cancel"
value=
"
Cancel
"
onclick=
'window.location.href="banlist.php"'
>
<input
type=
"reset"
name=
"reset"
value=
"R
éinitiali
se
r
"
>
<input
type=
"button"
name=
"cancel"
value=
"
Annuler
"
onclick=
'window.location.href="banlist.php"'
>
</p>
</form>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment