Initial commit
[2ch-be.git] / dev-test / old_dev / old / bak / test / v.php
blob8df83e467caf2c839c794c16aec2f54889518f56
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));
23 $d = urldecode($d);
24 $m = urldecode($m);
26 $d = Decrypt($d,KEY);
27 $m = Decrypt($m,KEY);
29 $fdir = substr($d, 0, 1);
30 $sdir = substr($d, 1, 1);
31 $data = @file(DB_PATH."$fdir/$sdir/$d");
32 $ico = "";
34 if(md5($m."kahitanupo")==trim($data[2])){
35 if(count($data)>3) {
36 if(isset($data[5]))
37 $ico = $data[5];
39 echo $data[3]." ".$data[0]." ".$ico;