FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot-web-editor/config.php at master · mlwmlw/gnuplot-web-editor · GitHub
mlwmlw
/
gnuplot-web-editor
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot-web-editor
/
config.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (22 loc) · 751 Bytes
Breadcrumbs
gnuplot-web-editor
/
config.php
Copy path
File metadata and controls
24 lines (22 loc) · 751 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$
config
=
array
();
$
config
[
'
gnuplot
'
] =
exec
(
'
export PATH=$PATH:/usr/local/bin/;which gnuplot 2> /dev/null
'
);
$
config
[
'
dot
'
] =
exec
(
'
export PATH=$PATH:/usr/local/bin/;which dot 2> /dev/null
'
);
if
(!
$
config
[
'
gnuplot
'
]) {
echo
'
gnuplot not found
'
;
exit
;
}
//check perms
$
stat
=
stat
(
'
./record
'
);
if
(!(
$
stat
[
'
mode
'
] &
000002
)) {
$
warning
=
'
Does not have permission to write to the directory(./record)
'
;
}
if
(
get_magic_quotes_gpc
()) {
function
stripslashes_gpc
(&
$
value
) {
$
value
=
stripslashes
(
$
value
);
}
array_walk_recursive
(
$
_GET
,
'
stripslashes_gpc
'
);
array_walk_recursive
(
$
_POST
,
'
stripslashes_gpc
'
);
array_walk_recursive
(
$
_COOKIE
,
'
stripslashes_gpc
'
);
array_walk_recursive
(
$
_REQUEST
,
'
stripslashes_gpc
'
);
}
Back
|
FazBrowse Home
|
New Git URL