about summary refs log tree commit diff
path: root/sourcecodes/clear.php
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/clear.php')
-rw-r--r--sourcecodes/clear.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/sourcecodes/clear.php b/sourcecodes/clear.php
new file mode 100644
index 00000000..8d8f8344
--- /dev/null
+++ b/sourcecodes/clear.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.php?My_key=<?php print($keyval);?>",'_self',false);
+</script>