Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Commits
ad561844
Verified
Commit
ad561844
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Wip reboot
parent
9a5955ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
wol/www/index.php
+17
-1
17 additions, 1 deletion
wol/www/index.php
with
17 additions
and
1 deletion
wol/www/index.php
+
17
−
1
View file @
ad561844
...
@@ -143,6 +143,21 @@ if(!isset($action)){
...
@@ -143,6 +143,21 @@ if(!isset($action)){
<input
type=
"hidden"
name=
"mac"
value=
"
<?php
echo
$entry
[
1
];
?>
"
>
<input
type=
"hidden"
name=
"mac"
value=
"
<?php
echo
$entry
[
1
];
?>
"
>
<input
type=
"submit"
value=
"Démarrer"
title=
"Démarrer la machine"
>
<input
type=
"submit"
value=
"Démarrer"
title=
"Démarrer la machine"
>
</form>
</form>
<script>
function
validate
(
name
)
{
if
(
!
confirm
(
"
Êtes-vous sûr de vouloir redémarrer la machine
"
+
name
)
{
return
false
;
}
else
{
return
true
;
}
}
</script>
<form
action=
"index.php"
method=
"post"
>
<input
type=
"hidden"
name=
"action"
value=
"reboot"
>
<input
type=
"hidden"
name=
"mac"
value=
"
<?php
echo
$entry
[
1
];
?>
"
>
<input
type=
"submit"
value=
"Redémarrer"
title=
"redémarrer la machine"
onsubmit=
"return validate(
<?
echo
$entry
[
2
];
?>
);"
>
</form>
<form
action=
"index.php"
method=
"post"
>
<form
action=
"index.php"
method=
"post"
>
<input
type=
"hidden"
name=
"action"
value=
"upgrade"
>
<input
type=
"hidden"
name=
"action"
value=
"upgrade"
>
<input
type=
"hidden"
name=
"name"
value=
"
<?php
echo
$entry
[
2
];
?>
"
>
<input
type=
"hidden"
name=
"name"
value=
"
<?php
echo
$entry
[
2
];
?>
"
>
...
@@ -221,6 +236,7 @@ if(!isset($action)){
...
@@ -221,6 +236,7 @@ if(!isset($action)){
'upgradeApt'
,
'upgradeApt'
,
'upgrade'
,
'upgrade'
,
'getLog'
,
'getLog'
,
'reboot'
,
];
];
if
(
$action
==
"wake"
){
if
(
$action
==
"wake"
){
echo
"<div id='result'><p>Démarrage demandé pour la machine
$mac
, veuillez patienter</p></div>"
;
echo
"<div id='result'><p>Démarrage demandé pour la machine
$mac
, veuillez patienter</p></div>"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment