Show. php source code:
<?
If ($ action = "cp "){
Echo "<div align = center>
<P> rolling menu data input </p>
<Form method = post action = show. php? Action = edit>
<P> text 1:
<Input type = text name = t1 maxlength = 30>
Link 1:
<Input type = text name = l1 maxlength = 50>
</P>
<P> text 2:
<Input type = text name = t2 maxlength = 30>
Link 2:
<Input type = text name = l2 maxlength = 50>
</P>
<P> Text 3:
<Input type = text name = t3 maxlength = 30>
Link 3:
<Input type = text name = l3 maxlength = 50>
</P>
<P> text 4:
<Input type = text name = t4 maxlength = 30>
Link 4:
<Input type = text name = l4 maxlength = 50>
</P>
<P> text 5:
<Input type = text name = t5 maxlength = 30>
Link 5:
<Input type = text name = l5 maxlength = 50>
</P>
<P>
<Input type = submit name = Submit value = submit>
<Input type = submit name = Submit2 value = rewrite>
</P>
</Form>
</Div> "; exit ;}
If ($ action = "edit "){
$ Wname = "data.txt"; # data storage file, attribute 666
$ Writeurl = "<a href = $ l1> $ t1 <\/a> <br> <a href = $ l2> $ t2 <\/a> <br> <br> <a href = $ l3> $ t3 <\/a> <br> <a href = $ l4> $ t4 <\/a> <br> <br> <a href = $ l5> $ t5 <\/a> <br> ";
$ Fp = fopen ($ wname, "w ");
$ Ww = fputs ($ fp, $ writeurl );
If ($ ww) {echo file written successfully;} else {echo write failed ;}
Exit ;}
$ Wname = "php-bin/data.txt"; # because it is called on the page, you must enter the relative or absolute path of the page and program!
$ Fa = fopen ($ wname, "r + ");
$ Wwww = fread ($ fa, filesize ($ wname ));
Echo "<table border = \" 0 \ "bgcolor = \" # A8EB9B \ "cellpadding = \" 1 \ "cellspacing = \" 0 \ "width = 129> <TR> <TD> <table bgcolor = \ "# FFFFFF \" cellpadding = \ "5 \" cellspacing = \ "0 \" width = 129 border = \ "0 \" VALIGN = \ "Top \"> <tr> <td> <script language = \ "JavaScript1.2 \">
Var marqueewidth = 118
Var marqueeheights = 104
Var speed = 1
Var marqueecontents = '$ wwww'
If (document. all)
Document. write ('<marquee ction = \ "up \" scrollAmount =' + speed + 'style = \ "width:' + marqueewidth + '; height: '+ marqueeheight +' \ "> '+ marqueecontents +' </marquee> ')
Function regenerate (){
Window. location. reload ()
}
Function regenerate2 (){
If (document. layers ){
SetTimeout (\ "window. onresize = regenerate \", 450)
Intializemarquee ()
}
}
Function intializemarquee (){
Document.cmarquee01.document.cmarquee02.doc ument. write (marqueecontents)
Document.cmarquee01.document.cmarquee02.doc ument. close ()
Thelength316document.cmarquee01.document.cmarquee02.doc ument. height
Scrollit ()
}
Function scrollit (){
If (document.cmarquee01.doc ument. cmarquee02.top> = thelength * (-1 )){
Document.cmarquee01.doc ument. cmarquee02.top-= speed
SetTimeout (\ "scroltimeout () \", 100)
}
Else {
Document.cmarquee01.doc ument. cmarquee02.top = marqueeheight
Scrollit ()
}
}
Window. onload = regenerate2
</Script> <ilayer width = & {marqueewidth}; height = & {marqueeheight }; name = \ "cmarquee01 \"> <layer name = \ "cmarquee02 \" width = & {marqueewidth}; height = & {marqueeheight};> </layer> </ilayer> </tr> </table> </TD> </TR> </TABLE> ";
?>
Create a blank file named data.txt in the same level directory of show. php before using include on the page!
Show. php? Action = cp and can be set. Of course, because there is no password protection, you can change cp to another text!