3 //if (isset($_POST['info']) && !empty($_POST['info'])) {
4 if (isset($_POST['info'])) {
5 if(isset($_POST['isca'])){
6 header('location:status.php');
11 if (strlen($inf) > 250) {
12 $echo = "Content too long";
14 $inf = str_replace("<", "<", $inf);
15 $inf = str_replace(">", ">", $inf);
16 $inf = str_replace("\n", "<br>", $inf);
17 $inf = str_replace(" ", " ", $inf);
18 $inf = urlencode($inf);
19 $email = Decrypt($_COOKIE['DMDM'],KEY
);
20 $email = filter_var($email, FILTER_SANITIZE_EMAIL
);
21 if (!filter_var($email, FILTER_VALIDATE_EMAIL
)) {
22 $echo = "Invalid email";
24 $fdir = substr($email, 0, 1);
25 $sdir = substr($email, 1, 1);
26 $data = @file
(DB_PATH
."$fdir/$sdir/$email");
28 for ($i=0; $i < count($data); $i++
) {
29 $data[$i] = trim($data[$i]);
31 $writeData = $data[0]."\n".$data[1]."\n".$data[2]."\n".$data[3]."\n".$data[4]."\n".$data[5]."\n".$inf."\n".$data[7]."\n";
32 if(file_put_contents(DB_PATH
."$fdir/$sdir/$email", $writeData)) {
33 $echo = "Successfully updated";
35 $echo = "Error while updating database";
38 echo "User doesn't Exists";