Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tetras-back
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NoCloud
Tetras-back
Commits
c604d1ef
Unverified
Commit
c604d1ef
authored
8 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Fix last encoding issues
parent
d097195b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tetras-back
+3
-1
3 additions, 1 deletion
src/tetras-back
src/www/discs.php
+5
-5
5 additions, 5 deletions
src/www/discs.php
with
8 additions
and
6 deletions
src/tetras-back
+
3
−
1
View file @
c604d1ef
...
...
@@ -197,6 +197,8 @@ sub do_backup($){
sub
do_sendmail
($$){
my
(
$subject
,
$message
)
=
@_
;
utf8::
encode
(
$subject
);
utf8::
encode
(
$message
);
my
$msg
=
MIME::
Lite
->
new
(
From
=>
'
tetras-back
',
To
=>
'
root
',
...
...
@@ -206,7 +208,7 @@ sub do_sendmail($$){
$msg
->
attr
("
content-type.charset
"
=>
"
UTF-8
");
$msg
->
attach
(
Type
=>
'
text/plain; charset=UTF-8
',
Data
=>
utf8::
encode
(
$message
)
,
Data
=>
$message
,
);
# Add your text message.
$msg
->
attach
(
Type
=>
'
text/plain; charset=UTF-8
',
...
...
This diff is collapsed.
Click to expand it.
src/www/discs.php
+
5
−
5
View file @
c604d1ef
...
...
@@ -36,7 +36,7 @@
//add save button + text field that triggers tetras-back \-\-save uuid=name
foreach
(
$conf
[
'CONNECTED'
]
as
$uuid
=>
$dev
)
:
?>
<tr><td>
<?php
echo
utf8_encode
(
$dev
)
?>
</td><td>
<?php
echo
utf8_encode
(
$uuid
)
?>
</td>
<tr><td>
<?php
echo
$dev
?>
</td><td>
<?php
echo
$uuid
?>
</td>
<td>
<form
action=
"actions.php"
method=
"post"
>
<input
type=
"hidden"
name=
"uuid"
value=
"
<?php
echo
$uuid
?>
"
>
...
...
@@ -89,10 +89,10 @@ foreach ($conf['KNOWN'] as $uuid => $value) :
}
?>
<tr>
<td>
<?php
echo
utf8_encode
(
$name
)
?>
</td>
<td>
<?php
echo
utf8_encode
(
$uuid
)
?>
</td>
<td>
<?php
echo
utf8_encode
(
$last_seen
)
?>
</td>
<td>
<?php
echo
utf8_encode
(
$last_backup_state
)
?>
</td>
<td>
<?php
echo
$name
?>
</td>
<td>
<?php
echo
$uuid
?>
</td>
<td>
<?php
echo
$last_seen
?>
</td>
<td>
<?php
echo
$last_backup_state
?>
</td>
<td>
<form
action=
"actions.php"
method=
"post"
>
<input
type=
"hidden"
name=
"name"
value=
"
<?php
echo
$name
?>
"
>
...
...
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