public function __construct()
 {
     parent::__construct();
     $this->Title = "Tenant Management";
     $this->Subtitle = "Configure multiple tenants for your PhoenixSNS installation";
     $this->SidebarButtons[3]->Expanded = true;
 }
 public function __construct()
 {
     parent::__construct();
     $this->Title = "Reset Password";
     $this->RenderHeader = false;
     $this->RenderSidebar = false;
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->Title = "Log in to PhoenixSNS";
     $this->Subtitle = "You must log in to view this page";
     $this->RenderHeader = false;
     $this->RenderSidebar = false;
 }
 public function __construct()
 {
     parent::__construct();
     $this->StyleSheets[] = new WebStyleSheet("http://static.alcehosting.net/dropins/CodeMirror/StyleSheets/CodeMirror.css");
     $this->Scripts[] = new WebScript("http://static.alcehosting.net/dropins/CodeMirror/Scripts/Addons/Edit/MatchBrackets.js");
     $this->Scripts[] = new WebScript("http://static.alcehosting.net/dropins/CodeMirror/Scripts/Modes/clike/clike.js");
     $this->Scripts[] = new WebScript("http://static.alcehosting.net/dropins/CodeMirror/Scripts/Modes/php/php.js");
     $this->SidebarButtons[3]->Expanded = true;
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->Title = "Error";
     $this->Subtitle = "Something went wrong";
     $this->RenderHeader = false;
     $this->RenderSidebar = false;
     $this->ReturnButtonURL = "~/";
     $this->ReturnButtonText = "Return to Main Page";
 }
 public function __construct()
 {
     parent::__construct();
     $this->Title = "Dashboard";
     $this->Subtitle = "Welcome to PhoenixSNS";
 }
 public function __construct()
 {
     parent::__construct();
     $this->Title = "Confirm Operation";
     $this->ReturnButtonURL = "~/";
 }
 public function __construct()
 {
     parent::__construct();
     $this->HeaderButtons[] = new NavigationButton("~/modules/modify", "Create Module", "fa-plus-circle", "// return nav('/modules/modify');", "Default");
 }
 public function __construct()
 {
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->Mode = TenantManagementPageMode::Create;
     $this->SidebarButtons[3]->Expanded = true;
 }
示例#11
0
 public function __construct()
 {
     parent::__construct();
     $this->RenderHeader = false;
     $this->RenderSidebar = false;
 }
示例#12
0
    if (!IsAdministrator() && !($path[0] == "account" && ($path[1] == "login.page" || $path[1] == "resetPassword.page")) && !($path[0] == "setup") && !($path[0] == "favicon.ico")) {
        $path1 = implode("/", $path);
        $_SESSION["LoginRedirectURL"] = "~/" . $path1;
        System::Redirect("~/account/login.page");
        return true;
    }
    return true;
};
require "Tasks.inc.php";
System::$Modules[] = new Module("net.phoenixsns.TenantManager.Default", array(new ModulePage("", function ($page, $path) {
    $page = new DashboardPage();
    $page->Render();
    return true;
}), new ModulePage("system-log", function ($page, $path) {
    global $MySQL;
    $page = new WebPage();
    $page->Title = "System Log";
    $page->BeginContent();
    if (is_numeric($path[0])) {
        if ($_SERVER["REQUEST_METHOD"] == "POST" && $_POST["action"] == "delete") {
            $query = "DELETE FROM " . System::GetConfigurationValue("Database.TablePrefix") . "DebugMessages WHERE message_ID = " . $path[0];
            $result = $MySQL->query($query);
            System::Redirect("~/system-log");
        } else {
            $query = "SELECT * FROM " . System::$Configuration["Database.TablePrefix"] . "DebugMessages WHERE message_ID = " . $path[0];
            $result = $MySQL->query($query);
            $values = $result->fetch_assoc();
            echo "<h1>Error Details</h1>";
            echo "<p>" . $values["message_Content"] . "</p>";
            echo "<h2>Parameters</h2>";
            echo "<table class=\"ListView\">";