Initial commit
[2ch-be.git] / dev-test / rest.php
blobf748f5547a333911fa05b14a47a90fd488f357af
1 <?php
2 include("encrypt.php");
3 // isset if login or not
6 $email = Decrypt($_POST['DMDM'],KEY);
7 $email = filter_var($email, FILTER_SANITIZE_EMAIL);
8 $fdir = substr($email, 0, 1);
9 $sdir = substr($email, 1, 1);
10 if($_SERVER['SERVER_NAME'] == "i.2ch.net") {
11 if(file_exists(DB_PATH."$fdir/$sdir/$email")){
12 echo 1;
13 }else{
14 echo 0;
16 }else{
17 echo 0;