@@ -63,15 +63,15 @@ function mod_table_exists($tablename) { //check if mysql table exists, if it's
6363 <TR><TH class='heading'>Module Deletion - Confirmation</TH></TR>
6464 <TR><TD> </TD></TR>
6565 <TR><TD> </TD></TR>
66- <FORM NAME="delete_2" action="<?php echo $ _SERVER ['PHP_SELF ' ]; ?> " method="post">
67- <TR><TD style='font-size: 14px; font-weight: bold; background-color: #AEAEAE; text-align: center;'>Selected Module: <?php print $ _POST ['module_choice ' ];?> </TD></TR>
66+ <FORM NAME="delete_2" action="<?php echo htmlspecialchars ( $ _SERVER ['PHP_SELF ' ], ENT_QUOTES , ' UTF-8 ' ) ; ?> " method="post">
67+ <TR><TD style='font-size: 14px; font-weight: bold; background-color: #AEAEAE; text-align: center;'>Selected Module: <?php print htmlspecialchars ( $ _POST ['module_choice ' ], ENT_QUOTES , ' UTF-8 ' ) ;?> </TD></TR>
6868 <TR><TD> </TD></TR>
6969 <TR><TD> </TD></TR>
7070 <TR><TD> </TD></TR>
7171 <TR><TD CLASS="td_label">Click Submit to confirm module deletion or Cancel to abort</TD></TR>
7272 <TR><TD> </TD></TR>
7373 <TR><TD> </TD></TR>
74- <INPUT TYPE='hidden' NAME='confirmation' VALUE='<?php print $ _POST ['module_choice ' ];?> '>
74+ <INPUT TYPE='hidden' NAME='confirmation' VALUE='<?php print htmlspecialchars ( $ _POST ['module_choice ' ], ENT_QUOTES , ' UTF-8 ' ) ;?> '>
7575 <INPUT TYPE='hidden' NAME='flag' VALUE='Confirmation Received'>
7676 <TR><TD ALIGN="center"><INPUT TYPE="button" VALUE="Cancel" onClick="window.location.href='config.php'" > <input type="submit" name="submit" value="Submit" /></TD></TR>
7777 </FORM></TABLE>
@@ -102,8 +102,8 @@ function rmdir_recurse($path) {
102102
103103?>
104104 <DIV style='background-color:#CECECE; position: absolute; width: 60%; height: 60%; left: 20%; top: 10%; border:2px inset #FFF2BF; display: block; text-align: center'>
105- <BR /><BR /><BR /><BR /><?php print $ _POST ['flag ' ];?> <BR /><BR />
106- Deleting Tickets Module........<?php print $ _POST ['confirmation ' ];?> <BR /><BR />
105+ <BR /><BR /><BR /><BR /><?php print htmlspecialchars ( $ _POST ['flag ' ], ENT_QUOTES , ' UTF-8 ' ) ;?> <BR /><BR />
106+ Deleting Tickets Module........<?php print htmlspecialchars ( $ _POST ['confirmation ' ], ENT_QUOTES , ' UTF-8 ' ) ;?> <BR /><BR />
107107 Dropping Table........<?php print $ table ;?> ...........
108108<?php
109109 $ query = "DROP table ` {$ GLOBALS ['mysql_prefix ' ]}" . $ table ."` " ;
@@ -115,7 +115,7 @@ function rmdir_recurse($path) {
115115 }
116116?>
117117
118- Removing Directory and files /modules/<?php print $ _POST ['confirmation ' ];?> ..........
118+ Removing Directory and files /modules/<?php print htmlspecialchars ( $ _POST ['confirmation ' ], ENT_QUOTES , ' UTF-8 ' ) ;?> ..........
119119<?php
120120 $ directory = $ tickets_dir . "/modules/ " . $ module_name ;
121121 $ rem_dir = rmdir_recurse ($ directory );
@@ -162,7 +162,7 @@ function rmdir_recurse($path) {
162162 <DIV style='background-color:#CECECE; position: absolute; width: 40%; height: 20%; left: 5%; top: 10%; border:2px inset #FFF2BF; display: block'>
163163 <TABLE BORDER="0">
164164 <TH COLSPAN="2">Delete a Tickets Module<BR /></TH>
165- <FORM NAME="delete_1" action="<?php echo $ _SERVER ['PHP_SELF ' ]; ?> " method="post">
165+ <FORM NAME="delete_1" action="<?php echo htmlspecialchars ( $ _SERVER ['PHP_SELF ' ], ENT_QUOTES , ' UTF-8 ' ) ; ?> " method="post">
166166 <TR CLASS="even"><TD CLASS="td_label">Module: </TD><TD><?php print $ choice ;?> </TD>
167167 <TR CLASS="even"><TD COLSPAN="2" ALIGN="center"><input type="submit" name="submit" value="Submit" /></TD></TR>
168168 </FORM></TABLE>
0 commit comments