diff options
Diffstat (limited to 'sourcecodes/clear.php')
| -rw-r--r-- | sourcecodes/clear.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sourcecodes/clear.php b/sourcecodes/clear.php index 8d8f8344..b06c9bc1 100644 --- a/sourcecodes/clear.php +++ b/sourcecodes/clear.php @@ -1,6 +1,13 @@ <?php +include("input_validate.php"); +$oldkeyval=valid_keyval($_GET["My_key"]); + +//if (preg_match('/[^A-Za-z]/',$oldkeyval)) { +// echo "Key value must contain only uppercase or lowercase letters."; +// $oldkeyval=''; +//} + -$oldkeyval=$_GET["My_key"]; /////////////Generate a random key///////////////////// $alphas=array(); @@ -11,7 +18,7 @@ $al2=rand(0,51); $al3=rand(0,51); $alpha="$alphas[$al1]"."$alphas[$al2]"."$alphas[$al3]"; -$keyval=$alpha; +$keyval=valid_keyval($alpha); shell_exec('./filecopy.sh '.$oldkeyval.' '.$keyval); ?> |
