-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.html
49 lines (46 loc) · 1.18 KB
/
footer.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
function createPath2() {
$path = $_SERVER['SCRIPT_FILENAME'];
$path = str_replace('/', '\\', $path);
return $path;
}
?>
</div>
<script>
function myFunction() {
/* Get the text field */
var copyText = document.getElementById("myInput");
copyText.select();
copyText.setSelectionRange(0, 99999)
/* Copy the text inside the text field */
document.execCommand("copy");
}
</script>
<!--
<script type="text/javascript">
$('a[rel="external"]').attr('target', '_blank');
</script>
-->
<div id="footer">
<p style="font-size:12px; color:#888888"><?php print @$_SERVER['SERVER_SOFTWARE'] . '<br>' . @$_SERVER['SERVER_SIGNATURE']; ?></p>
<div style="float: right;"><input onclick="javascript:document.getElementById('myInputf').select();document.execCommand('copy');return true;" type="text" value="<?php echo createPath2(); ?>" id="myInputf"></div>
</div>
</div>
<?php
//echo "<pre>";
//print_r($_SERVER);
//echo "</pre>";
?>
<!--
<script>
let myLinks = document.querySelectorAll('a');
for (let link of myLinks) {
link.setAttribute('target', '_blank');
}
-->
</script>
</body>
</html>
<?php
//include_once('D:/_apps/index.php');
?>