Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->StyleSheets[] = new WebStyleSheet("~/StyleSheets/Main.css");
     $this->StyleSheets[] = new WebStyleSheet("http://static.alcehosting.net/dropins/WebFramework/StyleSheets/Professional/Main.css");
     $tenants = Tenant::Get();
     $tenantsNavigationButtons = array();
     foreach ($tenants as $tenant) {
         $tenantsNavigationButtons[] = new NavigationButton("~/tenant/modify/" . $tenant->URL, $tenant->URL, null, null, null);
     }
     $this->HeaderButtons = array();
     $this->SidebarButtons = array(new NavigationSeparator("Quick Start"), new NavigationButton("~/", "Dashboard", "dashboard"), new NavigationSeparator("Management"), new NavigationButton("~/tenant", "Tenants", "th-list", null, null, count($tenants), $tenantsNavigationButtons), new NavigationButton("~/modules", "Modules", "puzzle-piece", null, null, Module::Count()), new NavigationButton("~/data-centers", "Data Centers", "building-o", null, null, DataCenter::Count()), new NavigationButton("~/payment-plans", "Payment Plans", "money", null, null, PaymentPlan::Count()), new NavigationButton("~/organizations", "Organizations", "suitcase", null, null, Organization::Count()), new NavigationButton("~/users", "Users", "users", null, null, User::Count()), new NavigationButton("~/data-types", "Data Types", "sitemap", null, null, DataType::Count()), new NavigationButton("~/tenant-types", "Tenant Types", "tenant-types", null, null, TenantType::Count()), new NavigationSeparator("Help and Support"), new NavigationButton("~/support/documentation", "Documentation", "book"), new NavigationButton("~/support/bugspray", "Report a Bug", "bug"), new NavigationButton("~/system-log", "System Log", "file-text-o"));
     $this->RenderHeader = true;
     $this->RenderSidebar = true;
 }
Ejemplo n.º 2
0
            }
        }
        global $MySQL;
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Users ADD UNIQUE KEY (user_LoginID, user_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Users ADD UNIQUE KEY (user_URLName, user_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Users ADD UNIQUE KEY (user_DisplayName, user_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Groups ADD UNIQUE KEY (group_Name, group_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Groups ADD UNIQUE KEY (group_Title, group_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Places ADD UNIQUE KEY (place_Name, place_TenantID)");
        $MySQL->query("ALTER TABLE " . System::GetConfigurationValue("Database.TablePrefix") . "Places ADD UNIQUE KEY (place_Title, place_TenantID)");
        ?>
				</table>
				<?php 
        return true;
    }
    $page = new WebPage();
    $page->BeginContent();
    ?>
<div style="text-align: center;">
	<img src="<?php 
    echo System::ExpandRelativePath("~/images/PhoenixSNSLogo.png");
    ?>
" style="height: 200px;" />
</div>
<p style="text-align: center;">
	Please provide some information about your server to create the initial PhoenixSNS instance. Other instances may
	be created and removed at any time by entering the Administrator Control Panel.
</p>
<form method="POST">
	<table style="width: 400px; margin-left: auto; margin-right: auto;">
		<tr>