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
5769d088
Commit
5769d088
authored
Sep 19, 2014
by
peupleLà
Browse files
Trad : scp/groups.php
parent
3b36154e
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/staff/apikeys.inc.php
View file @
5769d088
<?php
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ess Denied
'
);
if
(
!
defined
(
'OSTADMININC'
)
||
!
$thisstaff
->
isAdmin
())
die
(
'Acc
ès refusé
'
);
$qstr
=
''
;
$sql
=
'SELECT * FROM '
.
API_KEY_TABLE
.
' WHERE 1'
;
...
...
@@ -33,17 +33,17 @@ $qstr.='&order='.($order=='DESC'?'ASC':'DESC');
$query
=
"
$sql
ORDER BY
$order_by
LIMIT "
.
$pageNav
->
getStart
()
.
","
.
$pageNav
->
getLimit
();
$res
=
db_query
(
$query
);
if
(
$res
&&
(
$num
=
db_num_rows
(
$res
)))
$showing
=
$pageNav
->
showing
()
.
'
API Keys
'
;
$showing
=
$pageNav
->
showing
()
.
'
Clés API
'
;
else
$showing
=
'
No API keys found
!'
;
$showing
=
'
Aucune clé API trouvée
!'
;
?>
<div
style=
"width:700px;padding-top:5px; float:left;"
>
<h2>
API Keys
</h2>
<h2>
Clés API
</h2>
</div>
<div
style=
"float:right;text-align:right;padding-top:5px;padding-right:5px;"
>
<b><a
href=
"apikeys.php?a=add"
class=
"Icon newapi"
>
A
dd New API Key
</a></b></div>
<b><a
href=
"apikeys.php?a=add"
class=
"Icon newapi"
>
A
jouter une clé API
</a></b></div>
<div
class=
"clear"
></div>
<form
action=
"apikeys.php"
method=
"POST"
name=
"keys"
>
<?php
csrf_token
();
?>
...
...
@@ -54,11 +54,11 @@ else
<thead>
<tr>
<th
width=
"7"
>
</th>
<th
width=
"320"
><a
<?php
echo
$key_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=key"
>
API Key
</a></th>
<th
width=
"120"
><a
<?php
echo
$ip_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=ip"
>
IP Addr.
</a></th>
<th
width=
"100"
><a
<?php
echo
$status_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=status"
>
Statu
s
</a></th>
<th
width=
"150"
nowrap
><a
<?php
echo
$date_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=date"
>
Date
Added
<
/a></th>
<th
width=
"150"
nowrap
><a
<?php
echo
$updated_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=updated"
>
Last Updated
</a></th>
<th
width=
"320"
><a
<?php
echo
$key_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=key"
>
Clé API
</a></th>
<th
width=
"120"
><a
<?php
echo
$ip_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=ip"
>
Adresse
IP
</a></th>
<th
width=
"100"
><a
<?php
echo
$status_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=status"
>
Statu
t
</a></th>
<th
width=
"150"
nowrap
><a
<?php
echo
$date_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=date"
>
Date
ajoutée
/a>
</th>
<th
width=
"150"
nowrap
><a
<?php
echo
$updated_sort
;
?>
href=
"apikeys.php?
<?php
echo
$qstr
;
?>
&sort=updated"
>
Dernière mise à jour
</a></th>
</tr>
</thead>
<tbody>
...
...
@@ -89,11 +89,11 @@ else
<td
colspan=
"7"
>
<?php
if
(
$res
&&
$num
){
?>
Select:
<a
id=
"selectAll"
href=
"#ckb"
>
All
</a>
<a
id=
"selectNone"
href=
"#ckb"
>
None
</a>
<a
id=
"selectToggle"
href=
"#ckb"
>
Togg
le
</a>
<a
id=
"selectAll"
href=
"#ckb"
>
Tout
</a>
<a
id=
"selectNone"
href=
"#ckb"
>
Aucun
</a>
<a
id=
"selectToggle"
href=
"#ckb"
>
Bascu
le
r
</a>
<?php
}
else
{
echo
'
No API keys found
'
;
echo
'
Aucune clé API trouvée
'
;
}
?>
</td>
</tr>
...
...
@@ -104,36 +104,36 @@ if($res && $num): //Show options..
echo
'<div> Page:'
.
$pageNav
->
getPageLinks
()
.
' </div>'
;
?>
<p
class=
"centered"
id=
"actions"
>
<input
class=
"button"
type=
"submit"
name=
"enable"
value=
"
Enable"
>
<input
class=
"button"
type=
"submit"
name=
"disable"
value=
"D
i
sa
ble
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Delete
"
>
<input
class=
"button"
type=
"submit"
name=
"enable"
value=
"
Activer
>
<input class="
button
"
type=
"submit"
name=
"disable"
value=
"D
é
sa
ctiver
"
>
<input
class=
"button"
type=
"submit"
name=
"delete"
value=
"
Supprimer
"
>
</p>
<?php
endif
;
?>
</form>
<div
style=
"display:none;"
class=
"dialog"
id=
"confirm-action"
>
<h3>
Please C
onfirm
</h3>
<h3>
Veuillez c
onfirm
er
</h3>
<a
class=
"close"
href=
""
><i
class=
"icon-remove-circle"
></i></a>
<hr/>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"enable-confirm"
>
Are y
ou s
ure want to
<b>
enable
</b>
selected API keys
?
Êtes-v
ou
s
s
ûr.e de vouloir
<b>
activer
</b>
les clés API sélectionnées
?
</p>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"disable-confirm"
>
Are y
ou s
ure want to
<b>
d
i
sa
ble
</b>
selected API keys
?
Êtes-v
ou
s
s
ûr.e de vouloir
<b>
d
é
sa
ctiver
</b>
les clés API sélectionnées
?
</p>
<p
class=
"confirm-action"
style=
"display:none;"
id=
"delete-confirm"
>
<font
color=
"red"
><strong>
Are y
ou s
ure you want to DELETE selected API keys
?
</strong></font>
<br><br>
Deleted keys CANNOT be recovered
.
<font
color=
"red"
><strong>
Êtes-v
ou
s
s
ûr.e de vouloir SUPPRIMER les clés API sélectionnées
?
</strong></font>
<br><br>
Les clés supprimées ne POURRON PAS être récupérées
.
</p>
<div>
Please
confirm
to
continue.
</div>
<div>
Veuillez
confirm
er pour
continue
r
.
</div>
<hr
style=
"margin-top:1em"
/>
<p
class=
"full-width"
>
<span
class=
"buttons"
style=
"float:left"
>
<input
type=
"button"
value=
"No,
C
an
cel
"
class=
"close"
>
<input
type=
"button"
value=
"No
n
, an
nuler
"
class=
"close"
>
</span>
<span
class=
"buttons"
style=
"float:right"
>
<input
type=
"button"
value=
"
Yes, Do it
!"
class=
"confirm"
>
<input
type=
"button"
value=
"
Oui, je confirme
!"
class=
"confirm"
>
</span>
</p>
<div
class=
"clear"
></div>
...
...
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