Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-editconf
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-editconf
Commits
69b89f13
Commit
69b89f13
authored
Sep 29, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added missing (ignored by filter) file
parent
a5afc764
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
.gitignore
.gitignore
+3
-1
xmlxmt.cgi
src/xmlxmt.cgi
+35
-0
No files found.
.gitignore
View file @
69b89f13
...
...
@@ -11,4 +11,6 @@ sysroots
bitbake-logs
/temp
*.o
*.cgi
image
src/editconf.cgi
src/strconf.cgi
src/xmlxmt.cgi
0 → 100755
View file @
69b89f13
#!/bin/sh
case
"
$REQUEST_METHOD
"
in
GET
)
if
test
-z
"
$QUERY_STRING
"
;
then
cat
<<
EOF
Content-type: text/xml
<?xml version="1.0" ?>
<environment>
<SERVER_NAME>
$SERVER_NAME
</SERVER_NAME>
<SERVER_SOFTWARE>
$SERVER_SOFTWARE
</SERVER_SOFTWARE>
<SERVER_PROTOCOL>
$SERVER_PROTOCOL
</SERVER_PROTOCOL>
<SERVER_PORT>
$SERVER_PORT
</SERVER_PORT>
<SERVER_SIGNATURE>
$SERVER_SIGNATURE
</SERVER_SIGNATURE>
<REMOTE_ADDR>
$REMOTE_ADDR
</REMOTE_ADDR>
<REMOTE_HOST>
$REMOTE_HOST
</REMOTE_HOST>
<REMOTE_PORT>
$REMOTE_PORT
</REMOTE_PORT>
<HTTP_USER_AGENT>
$HTTP_USER_AGENT
</HTTP_USER_AGENT>
<HTTP_REFFERER>
$HTTP_REFFERER
</HTTP_REFFERER>
<HTTP_REQUEST>
$HTTP_REQUEST
</HTTP_REQUEST>
<DOCUMENT_ROOT>
$DOCUMENT_ROOT
</DOCUMENT_ROOT>
<REQUEST_TIME>
$REQUEST_TIME
</REQUEST_TIME>
</environment>
EOF
else
URL
=
`
/usr/local/bin/unescape
$QUERY_STRING
`
wget
"
$URL
"
-q
-O
/tmp/wget
$$
>
/tmp/wg
echo
"Content-type: text/xml"
echo
cat
/tmp/wget
$$
rm
/tmp/wget
$$
fi
;;
esac
Write
Preview
Markdown
is supported
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