-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode-1.php
More file actions
43 lines (42 loc) · 1.29 KB
/
code-1.php
File metadata and controls
43 lines (42 loc) · 1.29 KB
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
<?php
include "header.php";
?>
<td align=center>
Copy the below code in to the pages where you want HNT (HIOX FREE News Ticker)<br><br>
<table width=400 height=250 align=center class=maintext>
<tr>
<td>
<form name="select_all">
<textarea style="color: green; font-size: 13px;" name="text_area" rows="6" cols="80" border=0px>
<?php
$url = $_SERVER['SCRIPT_FILENAME'];
$pp = strrpos($url,"/");
$url = substr($url,0,$pp);
$ura = $_SERVER['SCRIPT_NAME'];
$host = $_SERVER['SERVER_NAME'];
$ser = "http://$host";
$ura= $ser.$ura;
$pp1 = strrpos($ura,"/");
$ura = substr($ura,0,$pp1);
$url1=explode('/', $url);
//$url=array_pop($url1);
$url1=implode('/', $url1);
$ura1=explode('/', $ura);
//$ura=array_pop($ura1);
$ura1=implode('/', $ura1);
echo "<?php
$"."hm = \"$url1\";
$"."hm2 = \"$ura1\";
include \"$"."hm/hnt.php\";
?>";
?>
</textarea><br>
<input type="button" value="Select All" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">
</form>
</td>
</tr>
</table>
</td>
<?php
include "footer.php";
?>