File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 11<?php
2+
3+ $ errlang =array (
4+ "" ,
5+ "Note Not Found " ,
6+
7+ ""
8+ );
9+
210echo "
311<title>NoteText | LanGongDEV</title>
412<div class= \"head \"><h1>LanGong NoteText Online</h1></div>
3341 <td>
3442 <center>
3543 <h2>View and Edit</h2>
36- <br>
44+
3745 <form action= \"/jump.php \" method= \"post \">
38- <br>
46+ <br><br>
3947 <div class= \"input \">
40- <input type= \"number \" name= \"sid \" placeholder= \"Input your note ID \">
48+ <input type= \"number \" name= \"sid \" placeholder= \"" ;
49+
50+ if ($ error == "" )
51+ echo "Input your note ID " ;
52+ if ($ error == 1 )
53+ echo $ errlang [1 ];
54+
55+ echo "\">
4156 </div>
4257 <br><br>
4358 <div class= \"b \">
Original file line number Diff line number Diff line change 3030 <?php
3131 $ pid =trim ($ _GET ['id ' ]);
3232 $ type =trim ($ _GET ['type ' ]);
33+ $ error =trim ($ _GET ['error ' ]);
3334
3435
3536 ?>
Original file line number Diff line number Diff line change 11<?php
2+ include "get.php " ;
23echo "<title>Please wait...</title> " ;
34$ num =$ _POST ['sid ' ];
4- if ($ num =="" ){
5- echo "<script>window.location.href='/'</script> " ;
5+ if ($ num =="" || $ num <= 0 || $ num > $ fileio -> getline ( " doc/name " , 1 ) ){
6+ echo "<script>window.location.href='/?error=1 '</script> " ;
67}
78else {
89 echo "<script>window.location.href='/?type=view&id= $ num'</script> " ;
You can’t perform that action at this time.
0 commit comments