Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Thomas Bourgeat
thundermodo
Commits
ce9852d7
Commit
ce9852d7
authored
Sep 04, 2013
by
Antonin Delpeuch
Browse files
Changed the way we SSH to the server
parent
ff29a522
Changes
4
Show whitespace changes
Inline
Side-by-side
chrome/content/toolbar-events.js
View file @
ce9852d7
...
...
@@ -46,10 +46,8 @@ var ToolbarEvents = {
return
;
var
subject
=
msg
.
mime2DecodedSubject
;
ToolbarEvents
.
mylog
(
msg
);
var
re
=
/moderate
([
0-9A-F
]{8})
\(([
a-z0-9
]
*
)\)
/g
;
matches
=
re
.
exec
(
subject
);
ToolbarEvents
.
mylog
(
msg
);
if
(
!
matches
)
{
...
...
@@ -70,14 +68,11 @@ var ToolbarEvents = {
var
process
=
Components
.
classes
[
"
@mozilla.org/process/util;1
"
]
.
createInstance
(
Components
.
interfaces
.
nsIProcess
);
var
file
=
new
FileUtils
.
File
(
"
/
usr/bin/s
sh
"
);
var
file
=
new
FileUtils
.
File
(
"
/
home/antonin/Programmation/Moderation/send-moderate.
sh
"
);
process
.
init
(
file
);
ToolbarEvents
.
mylog
(
"
delpeuch@clipper
\
~gourous/bin/su-gourous
\
~gourous/bin/moderate --
"
+
action
+
"
"
+
cookie
+
"
delpeuch
"
);
process
.
runAsync
([
"
delpeuch@clipper
"
,
"
\
~gourous/bin/su-gourous
"
,
"
\
~gourous/bin/moderate
"
,
"
--
"
+
action
,
cookie
,
"
delpeuch
"
],
6
);
process
.
runAsync
([
"
delpeuch
"
,
action
,
cookie
],
3
);
},
onAccept
:
function
()
{
...
...
@@ -90,7 +85,7 @@ var ToolbarEvents = {
onReject
:
function
()
{
if
(
ToolbarEvents
.
currentCookie
!=
''
)
{
ToolbarEvents
.
runCmd
(
"
refus
er
"
,
ToolbarEvents
.
currentCookie
);
ToolbarEvents
.
runCmd
(
"
ignor
er
"
,
ToolbarEvents
.
currentCookie
);
}
},
...
...
chrome/locale/en-US/hello.dtd
0 → 100644
View file @
ce9852d7
<!ENTITY title.label "Hello World">
<!ENTITY separate.label "This is a separate window!">
<!ENTITY close.label "Close">
chrome/locale/fr-FR/hello.dtd
0 → 100644
View file @
ce9852d7
<!ENTITY title.label "Bonjour le monde">
<!ENTITY separate.label "Voilà une fenêtre séparée !">
<!ENTITY close.label "Fermer">
send-moderate.sh
0 → 100755
View file @
ce9852d7
#!/bin/sh
export
SSH_ASKPASS
=
/usr/lib/openssh/gnome-ssh-askpass
ssh
$1
@trolle.ens.fr
\~
gourous/bin/su-gourous
\~
gourous/bin/moderate
--
$2
$3
< /dev/null
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