<?php
namespace entities\evr\security;

class Addresses
{
   public function __construct($user)
   {
      $this->user = $user;
      $this->set_path();
   }
   private function set_path()
   {
      $user = $this->user;
      $root = $GLOBALS["USERS_PATH"];
      $this->path = "$root/$user/" . $GLOBALS["USER_ADDRESSES_PATH"];
   }
   public function add_current()
   {
      if (!$this->find_current_address())
      {
         $entry = $_SERVER["REMOTE_ADDR"] . " " . time() . "\n";
         file_put_contents($this->path, $entry, FILE_APPEND);
      }
   }
   public function find_current_address()
   {
      foreach ($this->get() as $entry)
      {
         if ($_SERVER["REMOTE_ADDR"] == $this->extract($entry))
         {
            return true;
         }
      }
      return false;
   }
   private function get()
   {
      return file($this->path);
   }
   private function extract($entry)
   {
      $fields = explode(" ", $entry);
      return $fields[0];
   }
}
<?php
namespace entities\evr\security;

class Join_Beta_Mail extends Mail
{
   public function __construct($sender)
   {
      parent::__construct(
         $GLOBALS["BETA_RECIPIENT"], $sender, $GLOBALS["BETA_SUBJECT"]);
   }
   protected function build_message()
   {
      return $this->sender;
   }
}
<?php
namespace entities\evr\security\display;
use \entities\html as html;

class Alerts extends html\Div
{
   public function __construct()
   {
      parent::__construct("alerts");
   }
   protected function build_content()
   {
      $markup = $this->build_alert("boost", $GLOBALS["BOOST_ALERT"]);
      $markup .= $this->build_alert("sound", $GLOBALS["SOUND_ALERT"]);
      $markup .= $this->build_alert("fullscreen", $GLOBALS["FULLSCREEN_ALERT"]);
      return $markup;
   }
   private function build_alert($id, $text)
   {
      return new html\Div($id, null, $text);
   }
}
<?php
namespace entities\evr\security\display;
use \entities\html as html;

class Home extends html\Div
{
   protected function build_content()
   {
      $markup = new Header();
      $markup .= new forms\Login();
      $markup .= new Links();
      $markup .= new forms\Activate();
      $markup .= new Alerts();
      $markup .= new Beta_Invitation();
      $markup .= new \entities\evr\Trailer();
      $markup .= new Thumbs();
      return $markup;
   }
}
<?php
namespace entities\evr\security\display;
use \entities\html as html;

class Header extends html\Div
{
   public function __construct()
   {
      parent::__construct("header", null, $GLOBALS["HEADER"]);
   }
}
<?php
namespace entities\evr\security\display;
use \entities\html as html;

class Beta_Invitation extends html\Div
{
   public function __construct()
   {
      parent::__construct("invitation");
   }
   protected function build_content()
   {
      $markup = $this->build_heading();
      $markup .= file_get_contents(dirname(__FILE__) . "/invitation");
      $markup .= new forms\Join_Beta();
      return $markup;
   }
   private function build_heading()
   {
      $text = $GLOBALS["BETA_INVITATION_HEADING"];
      return new html\Div("heading", null, $text);
   }
}
<?php
namespace entities\evr\security\display;
use entities\html as html;

class Links extends html\Div
{
   public function __construct()
   {
      parent::__construct("links");
   }
   protected function build_content()
   {
      $markup = new html\A("?change", "change password", null, "password");
      $markup .= new html\A("?reset", "reset password", null, "password");
      return $markup;
   }
}
<?php
namespace entities\evr\security\display;
use \entities\html as html;

class Thumbs extends html\Div
{
   protected function build_content()
   {
      $markup = "";
      $directory = $GLOBALS["THUMBNAILS_PATH"];
      foreach (scandir($directory) as $file)
      {
         if ($file[0] != ".")
         {
            $path = $directory . $file;
            $markup .= new html\Image($path, null, "thumb");
         }
      }
      return $markup;
   }
}
<?php
namespace entities\evr\security\display\forms;
use \entities\html as html;

class Join_Beta extends html\Form
{
   protected function build_content()
   {
      $markup = new html\Input("email", "text", "email address", null, true);
      $markup .= $this->build_button();
      return $markup;
   }
   private function build_button()
   {
      $text = $GLOBALS["JOIN_BETA_BUTTON_TEXT"];
      return new html\Input("action", "submit", $text);
   }
}
3.239.59.31
3.239.59.31
3.239.59.31
 
July 18, 2022


A new era ‼

Our infrastructure has recently upgraded ‼

Nugget Communications Bureau 👍

You've never emailed like this before ‼

Roundcube

Webmail software for reading and sending email from @nugget.fun and @shampoo.ooo addresses.

Mailman3

Email discussion lists, modernized with likes and emojis. It can be used for announcements and newsletters in addition to discussions. See lists for Picture Processing or Scrapeboard. Nowadays, people use Discord, but you really don't have to!

FreshRSS

With this hidden in plain sight, old technology, even regular people like you and I can start our own newspaper or social media feed.

Nugget Streaming Media 👍

The content you crave ‼

HLS

A live streaming, video format based on M3U playlists that can be played with HTML5.

RTMP

A plugin for Nginx can receive streaming video from ffmpeg or OBS and forward it as an RTMP stream to sites like Youtube and Twitch or directly to VLC.


Professional ‼

Nugget Productivity Suite 👍

Unleash your potential ‼

Kanboard

Virtual index cards you can use to gamify your daily grind.

Gitea

Grab whatever game code you want, share your edits, and report bugs.

Nugget Security 👍

The real Turing test ‼

Fail2ban

Banning is even more fun when it's automated.

Spamassassin

The documentation explains, "an email which mentions rolex watches, Viagra, porn, and debt all in one" will probably be considered spam.

GoAccess

Display HTTP requests in real time, so you can watch bots try to break into WordPress.

Nugget Entertainment Software 👍

The best in gaming entertainment ‼

Emoticon vs. Rainbow

With everything upgraded to the bleeding edge, this HTML4 game is running better than ever.


Zoom ‼

The game engine I've been working on, SPACE BOX, is now able to export to web, so I'm planning on turning nugget.fun into a games portal by releasing my games on it and adding an accounts system. The upgraded server and software will make it easier to create and maintain. I'm also thinking of using advertising and subscriptions to support the portal, so some of these services, like webmail or the RSS reader, may be offered to accounts that upgrade to a paid subscription.