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