diff options
Diffstat (limited to 'sourcecodes/clear_example.php')
| -rw-r--r-- | sourcecodes/clear_example.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sourcecodes/clear_example.php b/sourcecodes/clear_example.php new file mode 100644 index 00000000..4b0a8315 --- /dev/null +++ b/sourcecodes/clear_example.php @@ -0,0 +1,20 @@ +<?php + +$oldkeyval=$_GET["My_key"]; + +/////////////Generate a random key///////////////////// +$alphas=array(); +$alphas = array_merge(range('A', 'Z'), range('a', 'z')); + +$al1=rand(0,51); +$al2=rand(0,51); +$al3=rand(0,51); + +$alpha="$alphas[$al1]"."$alphas[$al2]"."$alphas[$al3]"; +$keyval=$alpha; +shell_exec('./filecopy.sh '.$oldkeyval.' '.$keyval); + +?> +<script> +window.open("layout_example.php?My_key=<?php print($keyval);?>",'_self',false); +</script> |
