Initial commit
[2ch-be.git] / dev-test / rest2.php
blob5a69d9b8ec8087607dc0a7345b7d0b8925c63c53
1 <?php
2 include("encrypt.php");
3 // isset if login or not
5 if(isset($_POST['sub'])){
7 ($_POST['DMDM']==""?die("NG"):"");
9 $email = Decrypt($_POST['DMDM'],KEY);
10 $email = filter_var($email, FILTER_SANITIZE_EMAIL);
11 $fdir = substr($email, 0, 1);
12 $sdir = substr($email, 1, 1);
13 if(file_exists(DB_PATH."$fdir/$sdir/$email")){
14 echo "1- ".DB_PATH."$fdir/$sdir/$email";
15 }else{
16 echo 0;
22 <form method="post" action="rest2.php">
24 <input type="hidden" name="DMDM" value="<?php echo $_COOKIE['DMDM']; ?>">
25 <input type="submit" value="submit" name="sub">
26 </form>