Initial commit
[2ch-be.git] / dev-test / bak / v.php
blobbf0abb20b11fa4f9674cd8236946ce44c20dcac6
1 <?php
3 include('encrypt.php');
5 if (isset($_GET['d']) && isset($_GET['m']) && isset($_GET['r'])) {
6 #$d = urlencode(trim($_GET['d']));
7 #$m = urlencode(trim($_GET['m']));
8 #$r = urlencode(trim($_GET['r']));
9 $d = trim($_GET['d']);
10 $m = trim($_GET['m']);
11 $r = trim($_GET['r']);
13 $d = filter_var($d, FILTER_SANITIZE_EMAIL);
14 #if (!filter_var($d, FILTER_VALIDATE_EMAIL)) {
15 #exit;
17 $m = filter_var($m, FILTER_SANITIZE_STRING);
19 $d = strip_tags(addslashes($d));
20 $m = strip_tags(addslashes($m));
21 $r = strip_tags(addslashes($r));
22 echo $d."<br>";
23 echo $m."<br>";
24 $d = urldecode($d);
25 $m = urldecode($m);
26 echo $d."<br>";
27 echo $m."<br>";
28 $d = Decrypt($d,KEY);
29 $m = Decrypt($m,KEY);
30 #echo $_GET['d']."<br>";
31 #echo $_GET['m']."<br>";
32 #echo urlencode($_COOKIE["DMDM"])."<br>";
33 #echo urlencode($_COOKIE["MDMD"])."<br>";
34 #echo urldecode($_COOKIE["DMDM"])."<br>";
35 #echo urldecode($_COOKIE["MDMD"])."<br>";
36 echo $d."<br>";
37 echo $m."<br>";
39 #$d = Decrypt($_COOKIE["DMDM"], KEY);
40 #$m = Decrypt($_COOKIE["MDMD"], KEY);
42 #echo $d."<br>";
43 #echo $m."<br>";
45 $fdir = substr($d, 0, 1);
46 $sdir = substr($d, 1, 1);
47 $data = @file(DB_PATH."$fdir/$sdir/$d");
48 $ico = "";
50 if(md5($m."kahitanupo")==trim($data[2])){
51 if(count($data)>3) {
52 if(isset($data[5]))
53 $ico = $data[5];
55 echo $data[3]." ".$data[0]." ".$ico;
59 if(hash("sha256", $m."kahitanupo")==trim($data[2])){
60 if(count($data)>3) {
61 if(isset($data[5]))
62 $ico = $data[5];
64 echo $data[3]." ".$data[0]." ".$ico;
67 //var_dump(urlencode($_COOKIE["DMDM"]));
68 } else {
69 echo "nothing to see here!";