Why does this get suspended

Hello my domain was suspended just wondering what could of caused it i created a suppourt ticket but might as well ask here for your opinions

script one (files.php) named it that cause i was going to put images there

<?php
session_start();
?>
<?php

//for debug: echo session_id();

if (empty($_POST) == true and strpos(file_get_contents("sessions.txt"), session_id() == false))
{
  header("Location: index.php");
}
elseif (strpos(file_get_contents("sessions.txt"), session_id()) !== false)
{
  //pass
}
elseif (empty($_POST) !== true and hash("sha256", $_POST["auth"]) == "d09de118fa99b279ae60ddba9f9ce4afcade38c0578188df67ac79f05b514856")
{
  $filetowrite = fopen("sessions.txt", "a");
  fwrite($filetowrite, session_id() . "\n");
  fclose($filetowrite);
}
else
{
  header("Location: index.php");
}
?>
<!DOCTYPE html>
<html>
  <head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
      body {
        font-family: sans-serif;
        word-wrap: break-word;
      }
    </style>
  </head>
  <body>
    <p>Welcome</p>
    <hr>
    <p>Sory for the website not looking very new and modern its just for compatibility.</p>
    <br>
    <center>
      <p>What am i up to?</p>
    </center>
    <div>
      <article>
        <p>Test Post</p>
        <p><a href="files.php">Go to test post.</a></p>
      </article>
    </div>
  </body>
</html>

script2 (index.php)

<?php
  session_start();
?>
<!DOCTYPE html>
<html>
  <head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
  body {
    font-family: sans-serif;
    word-wrap: break-word;
  }
</style>
  </head>
  <body>
  <center>
<p>Webpage is password protected</p>
<form method="POST" action="files.php">
  <input type="password" name="auth" placeholder="password">
  <input type="submit" value="submit">
</form>
  </center>
<?php
  date_default_timezone_set('America/Los_Angeles');

  // for debug: echo session_id();

  if (date('l') !== file_get_contents('date'))
  {
    $file = fopen("key.key", "w");
    fwrite($file, hash("sha256", random_bytes(32)));
    fclose($file);
    $file = fopen("date", "w");
    fwrite($file, date('l'));
    fclose($file);

    if (filesize("sessions.txt") >= 8000000)
    {
      $file = fopen("sessions.txt", "w");
      fwrite($file, "");
      fclose($file);
    }
  }
?> 
  </body>
</html>

any idea why this would get suspended just wondering while they respond to my ticket.

File hosting isn’t allowed.

it’s just named that it’s got no files rlly
later renamed to login.php

btw images are stored elsewhere in a cloud drive

Still, File Sharing isn’t allowed.

Should be allowed as long as you’re not hosting the files on the InfinityFree itself.

exactly later I was told that the script isn’t supported on my support ticket

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.