settings->get($table."::".$record); } public function dbSet($table, $record, $value) { return $this->settings->set($table."::".$record, $value); } /* | Notifications | | notify("text"); | notifyAfter(delay, "text"); | notifyNow("text"); */ public function notify($text) { $this->dbSet("blueprint", "notification:text", $text); shell_exec("cd /var/www/".escapeshellarg($this->placeholder->folder()).";echo ".escapeshellarg($text)." > .blueprint/data/internal/db/notification;"); return; } public function notifyAfter($delay, $text) { $this->dbSet("blueprint", "notification:text", $text); shell_exec("cd /var/www/".escapeshellarg($this->placeholder->folder()).";echo ".escapeshellarg($text)." > .blueprint/data/internal/db/notification;"); header("Refresh:$delay"); return; } public function notifyNow($text) { $this->dbSet("blueprint", "notification:text", $text); shell_exec("cd /var/www/".escapeshellarg($this->placeholder->folder()).";echo ".escapeshellarg($text)." > .blueprint/data/internal/db/notification;"); header("Refresh:0"); return; } /* | Files | | fileRead("path"); */ public function fileRead($path) { return shell_exec("cat ".escapeshellarg($path).";"); } }