Ejemplo n.º 1
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>
			<td style="width: 128px;"><label for="txtServerName">Server name:</label></td>