about summary refs log tree commit diff
path: root/sourcecodes/example.php
diff options
context:
space:
mode:
authorziejd22017-09-14 15:39:41 -0500
committerziejd22017-09-14 15:57:50 -0500
commitc4f926438dcb8abe805e910399940f79ff643c4b (patch)
tree3146d05ada5cf4b48d9bdd16c1baa498e8df7192 /sourcecodes/example.php
parent57ebf49403b75dcf8482d174b59f7fd2a961d98e (diff)
downloadBNW-c4f926438dcb8abe805e910399940f79ff643c4b.tar.gz
Add files via upload
Diffstat (limited to 'sourcecodes/example.php')
-rw-r--r--sourcecodes/example.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/sourcecodes/example.php b/sourcecodes/example.php
new file mode 100644
index 00000000..dc59cc3e
--- /dev/null
+++ b/sourcecodes/example.php
@@ -0,0 +1,31 @@
+<?php
+
+$oldkeyval=$_GET["My_key"];
+
+$type_n=array();
+
+$type_n=explode("|",$oldkeyval);
+
+
+$example=trim($type_n[0]);   
+$oldkeyval=trim($type_n[1]);   
+
+/////////////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('./examplefilecopy.sh '.$example.' '.$oldkeyval.' '.$keyval);
+
+?>
+<script>
+window.open("layout_example.php?My_key=<?php print($keyval);?>",'_self',false);
+</script>
+
+
+