protected function RenderContent()
    {
        ?>
			<form method="POST" id="frmMain">
			<?php 
        $tbs = new TabContainer("tbs");
        $tbs->TabPages[] = new TabPage("tabInformation", "Information", null, null, null, function () {
            ?>
				<table style="width: 100%;">
					<tr>
						<td style="width: 100px;">Title: </td>
						<td><input name="organization_Title" type="text" value="<?php 
            echo $this->CurrentObject->Title;
            ?>
" /></td>
					</tr>
				</table>
				<?php 
        });
        $tbs->TabPages[] = new TabPage("tabUsers", "Users", null, null, null, function () {
        });
        $tbs->CurrentTab = $tbs->TabPages[0];
        $tbs->Render();
        ?>
				<div class="Buttons">
					<input class="Button Default" type="submit" value="Save Changes" />
					<a class="Button" href="<?php 
        echo System::ExpandRelativePath("~/organizations");
        ?>
">Discard Changes</a>
				</div>
			</form>
			<?php 
    }
示例#2
0
    protected function RenderContent()
    {
        ?>
		<form method="POST">
			<div class="LoginContainer">
				<div class="Billboard">
					<img src="<?php 
        echo System::ExpandRelativePath("~/Images/Billboard.png");
        ?>
" />
				</div>
				<div class="Branding">
					Log in to <span class="ProductName"><?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
</span>
				</div>
				<div class="Credentials">
					<p><?php 
        echo System::GetConfigurationValue("Manager.LoginScreen.WelcomeMessage");
        ?>
</p>
					<div class="FormView">
						<div class="Field">
							<label for="txtUserName">User <u>N</u>ame</label>
							<input type="text" name="user_LoginID" id="txtUserName" placeholder="User name" />
						</div>
						<div class="Field">
							<label for="txtPassword"><u>P</u>assword</label>
							<input type="password" name="user_Password" id="txtPassword" placeholder="Password" />
						</div>
						<?php 
        if ($this->InvalidCredentials) {
            ?>
						<div class="Field">
							<span class="ErrorMessage">Incorrect user name or password. Please try again.</span>
						</div>
						<?php 
        }
        ?>
					</div>
					<div class="ButtonContainer">
						<input type="submit" value="Continue" />
					</div>
				</div>
				<div class="Footer">
					<?php 
        echo System::GetConfigurationValue("Manager.LoginScreen.FooterMessage");
        ?>
				</div>
			</div>
		</form>
		<?php 
    }
示例#3
0
    protected function RenderContent()
    {
        $pages = Page::Get();
        $count = count($pages);
        ?>
<div class="Panel">
	<h3 class="PanelTitle">Pages (<?php 
        echo $count;
        ?>
)</h3>
	<div class="PanelContent">
		<div class="ProfilePage">
			<div class="ProfileTitle">
				<span class="ProfileUserName">
					<?php 
        echo "There ";
        if ($count == 1) {
            echo "is ";
        } else {
            echo "are ";
        }
        echo $count;
        if ($count == 1) {
            echo " page";
        } else {
            echo " pages";
        }
        echo ".";
        ?>
				</span>
				<span class="ProfileControlBox">
					<a href="<?php 
        echo System::ExpandRelativePath("~/community/pages/create.mmo");
        ?>
" onclick="DisplayCreatePageDialog();">Create Page</a>
				</span>
			</div>
			<div class="ProfileContent">
			<?php 
        $grpPages = new ButtonGroup("grpPages");
        foreach ($pages as $item) {
            $grpPages->Items[] = new ButtonGroupButton(null, $item->Title, null, "~/community/pages/" . $item->Name . "/images/thumbnail.png", "~/community/pages/" . $item->Name, "PageInformationDialog.ShowDialog(" . $item->ID . ");");
        }
        $grpPages->Render();
        ?>
			</div>
		</div>
	</div>
</div>
<?php 
    }
    protected function RenderContent()
    {
        if ($this->CurrentObject != null) {
            ?>
			<table style="width: 100%;">
				<tr id="Property_Header">
				<?php 
            $properties = $this->CurrentObject->GetInstanceProperties();
            foreach ($properties as $property) {
                if ($property->ColumnVisible) {
                    echo "<th>" . $property->Name . "</th>";
                }
            }
            ?>
				</tr>
				<?php 
            $instances = $this->CurrentObject->GetInstances();
            foreach ($instances as $instance) {
                ?>
						<tr id="Property_<?php 
                echo $property->ID;
                ?>
">
						<?php 
                foreach ($properties as $property) {
                    if ($property->ColumnVisible) {
                        echo "<td>";
                        $value = $instance->GetPropertyValue($property);
                        $property->RenderColumn($value);
                        echo "</td>";
                    }
                }
                ?>
						</tr>
						<?php 
            }
            ?>
			</table>
			<div class="Buttons">
				<input type="submit" class="Button Default" value="Save Changes" />
				<a class="Button" href="<?php 
            echo System::ExpandRelativePath("~/tenant/modify/" . $this->CurrentTenant->URL . "/objects/" . $this->CurrentObject->ID);
            ?>
">Discard Changes</a>
			</div>
			<?php 
        }
    }
示例#5
0
    protected function BeforeContent()
    {
        ?>
		<div class="SetupContainer">
			<div class="Billboard">
				<img src="<?php 
        echo System::ExpandRelativePath("~/Images/Billboard.png");
        ?>
" />
			</div>
			<div class="Branding">
				<span class="ProductName">PhoenixSNS</span> Initial Configuration
			</div>
			<div class="Credentials">
		<?php 
    }
示例#6
0
function RenderSliceRecursive($slice)
{
    echo "div.Avatar" . $slice->Base->ID . " div." . $slice->Name . "\r\n";
    echo "{\r\n";
    echo "\tbackground-image: url('" . System::ExpandRelativePath("~/images/avatar/bases/" . $slice->Base->ID . "/1/slices/" . $slice->Name . ".png');\r\n");
    echo "\tposition: absolute;\r\n";
    echo "\tleft: " . $slice->Left . "px;\r\n";
    echo "\ttop: " . $slice->Top . "px;\r\n";
    echo "\twidth: " . $slice->Width . "px;\r\n";
    echo "\theight: " . $slice->Height . "px;\r\n";
    echo "\ttransform-origin: " . $slice->OriginLeft . "px " . $slice->OriginTop . "px;\r\n";
    echo "}\r\n";
    $slices = $slice->GetSlices();
    foreach ($slices as $slice1) {
        RenderSliceRecursive($slice1);
    }
}
    protected function RenderContent()
    {
        ?>
			<form method="POST" id="frmMain">
			<?php 
        $tbs = new TabContainer("tbs");
        $tbs->TabPages[] = new TabPage("tabInformation", "Information", null, null, null, function () {
            ?>
				<div class="FormView" style="width: 100%;">
					<div class="Field">
						<label for="txtTitle" style="width: 100px;">Title:</label>
						<input id="txtTitle" name="datacenter_Title" type="text" value="<?php 
            echo $this->CurrentObject->Title;
            ?>
" />
					</div>
					<div class="Field">
						<label for="txtDescription" style="vertical-align: top;">Description:</label>
						<textarea id="txtDescription" name="datacenter_Description" style="width: 100%;" rows="5"><?php 
            echo $this->CurrentObject->Description;
            ?>
</textarea>
					</div>
					<div class="Field">
						<label for="txtHostName">Hostname:</label>
						<input id="txtHostName" name="datacenter_HostName" type="text" value="<?php 
            echo $this->CurrentObject->HostName;
            ?>
" />
					</div>
				</div>
				<?php 
        });
        $tbs->SelectedTab = $tbs->TabPages[0];
        $tbs->Render();
        ?>
				<div class="Buttons">
					<input type="submit" class="Button Default" value="Save Changes" />
					<a class="Button" href="<?php 
        echo System::ExpandRelativePath("~/data-centers");
        ?>
">Discard Changes</a>
				</div>
			</form>
			<?php 
    }
    protected function RenderContent()
    {
        ?>
			<p><?php 
        echo $this->Message;
        ?>
</p>
			<form method="POST">
				<input type="hidden" name="Confirm" value="1" />
				<input class="Button Default" type="submit" value="Continue" />
				<a class="Button" href="<?php 
        echo System::ExpandRelativePath($this->ReturnButtonURL);
        ?>
">Cancel</a>
			</form>
			<?php 
    }
示例#9
0
    protected function RenderContent()
    {
        ?>
		<p><?php 
        echo $this->Message;
        ?>
</p>
		<p style="text-align: right;">
			<a href="<?php 
        echo System::ExpandRelativePath($this->ReturnButtonURL);
        ?>
"><?php 
        echo $this->ReturnButtonText;
        ?>
</a>
		</p>
		<?php 
    }
示例#10
0
function RenderMemberTile($member)
{
    ?>
<div class="Tile">
	<div class="TileImage">
		<a href="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $member->ShortName);
    ?>
" onclick="DisplayMemberInformation(<?php 
    echo $member->ID;
    ?>
); return false;">
		<img class="ButtonGroupButtonImage" src="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $member->ShortName . "/images/avatar/thumbnail.png");
    ?>
" />
		</a>
	</div>
	<div class="TileTitle">
		<a href="<?php 
    echo System::ExpandRelativePath("~/community/members/" . $member->ShortName);
    ?>
" onclick="DisplayMemberInformation(<?php 
    echo $member->ID;
    ?>
); return false;">
		<?php 
    \PhoenixSNS\Objects\mmo_display_user_badges_by_user($member);
    echo $member->LongName;
    ?>
		</a>
	</div>
	<div class="TileContent">
		<div style="font-size: 0.8em;">Friends since</div>
		<div style="padding-left: 8px;"><?php 
    echo $member->Timestamp;
    ?>
</div>
	</div>
</div>
<?php 
}
示例#11
0
 public static function BuildSearchURL($properties = null, $validObjects = null, $caseInsensitive = false, $tenant = null)
 {
     if ($properties == null) {
         $properties = array();
     }
     if ($validObjects == null) {
         $validObjects = array();
     }
     $url = System::ExpandRelativePath("~/API/Search.php?");
     if ($tenant != null) {
         $url .= "tenant=" . $tenant->URL;
     } else {
         $url .= "tenant=" . System::$TenantName;
     }
     $url .= "&propertyCount=" . count($properties);
     $i = 0;
     foreach ($properties as $propertyID => $searchValue) {
         $url .= "&propertyID" . $i . "=" . $propertyID;
         $url .= "&propertyValue" . $i . "=" . $searchValue;
         $url .= "&propertyComparison" . $i . "=" . "contains";
         $i++;
     }
     $count = count($validObjects);
     if ($count > 0) {
         $objectIDs = "";
         for ($i = 0; $i < $count; $i++) {
             $objectIDs .= $validObjects[$i]->ID;
             if ($i < $count - 1) {
                 $objectIDs .= ",";
             }
         }
         $url .= "&validObjects=" . $objectIDs;
     }
     if ($caseInsensitive) {
         $url .= "&caseInsensitive";
     }
     return $url;
 }
示例#12
0
    protected function RenderContent()
    {
        ?>
		<form method="POST">
		<?php 
        $tc = new TabContainer();
        $tc->TabPages[] = new TabPage("tabGeneralInformation", "General Information", null, null, null, function () {
            ?>
				<div class="FormView">
					<div class="Field">
						<label for="txtModuleTitle">Title:</label>
						<input id="txtModuleTitle" name="module_Title" type="text" value="<?php 
            echo $this->Module->Title;
            ?>
" />
					</div>
					<div class="Field">
						<label for="txtModuleDescription" style="vertical-align: top;">Description: </label>
						<textarea id="txtModuleDescription" name="module_Description" style="width: 100%;" rows="5"><?php 
            echo $this->Module->Description;
            ?>
</textarea>
					</div>
				</div>
				<?php 
        });
        $tc->TabPages[] = new TabPage("tabApplicationMenuItems", "Application Menu Items", null, null, null, function () {
            $lv = new ListView();
            $lv->Columns = array(new ListViewColumn("chTitle", "Title"), new ListViewColumn("chDescription", "Description"), new ListViewColumn("chTarget", "Target"));
            $menuitems = $this->Module->GetMainMenuItems();
            foreach ($menuitems as $menuitem) {
                $lv->Items[] = new ListViewItem(array(new ListViewItemColumn("chTitle", $menuitem->Title), new ListViewItemColumn("chDescription", $menuitem->Description), new ListViewItemColumn("chTarget", $menuitem->TargetURL)));
            }
            $lv->Render();
        });
        $tc->TabPages[] = new TabPage("tabModulePages", "Module Pages", null, null, null, function () {
            $lv = new ListView();
            $lv->Columns = array(new ListViewColumn("chURL", "URL"));
            $pages = $this->Module->GetPages();
            foreach ($pages as $modulePage) {
                $lv->Items[] = new ListViewItem(array(new ListViewItemColumn("chURL", "<a href=\"" . System::ExpandRelativePath("~/modules/modify/" . $this->Module->ID . "/pages/" . $modulePage->ID) . "\">" . $modulePage->URL . "</a>", $modulePage->URL)));
            }
            $lv->Render();
        });
        $tc->Render();
        ?>
			<div class="Buttons" style="text-align: right;">
				<input class="Button Default" type="submit" value="Save Changes" />
				<a class="Button" href="<?php 
        echo System::ExpandRelativePath("~/modules");
        ?>
">Discard Changes</a>
			</div>
		</form>
		<?php 
    }
示例#13
0
echo $topic->Title;
?>
</span>
	</div>
	<div class="Content">
		<?php 
echo $topic->Description;
?>
	</div>
	<div class="Actions Horizontal">
		<a href="<?php 
echo System::ExpandRelativePath("~/community/groups/" . $thisgroup->Name . "/topics/" . $topic->Name . "/comment.mmo");
?>
"><i class="fa fa-comment"></i> Leave a comment</a>
		<a href="<?php 
echo System::ExpandRelativePath("~/community/groups/" . $thisgroup->Name . "/topics");
?>
"><i class="fa fa-list-alt"></i> <span class="Text">Return to group</span></a>
	</div>
	<div class="Comments">
	<?php 
$comments = $topic->GetComments(5);
foreach ($comments as $comment) {
    $comment->Render();
}
?>
	</div>
</div>
	<?php 
/*
if (count($path) > 6 && $path[6] == "delete.mmo")
示例#14
0
			<?php 
    $page->EndContent();
    return true;
}), new ModulePage("complete", function ($path) {
    $page = new \PsychaticaWebPage();
    $page->BeginContent();
    ?>
					<div class="Card">
						<div class="Title"><i class="fa fa-smile-o"></i> <span class="Text">Thank you for your payment!</span></div>
						<div class="Content">
							<p>
								Your transaction has been completed, and a receipt for your purchase has been emailed to you.
								You may log into your PayPal&reg; account to view details of this transaction.
							</p>
							<p style="text-align: center;">
								<img src="<?php 
    echo System::ExpandRelativePath("~/images/coingold.png");
    ?>
" alt="PsychatiGold" /><br />
								<span style="font-size: 24pt; font-weight: bold;">50500</span><br />
								PsychatiGold coins have been added to your Wallet
							</p>
						</div>
						<div class="Actions Horizontal">
							<a href="#">Go to the Market</a>
						</div>
					</div>
					<?php 
    $page->EndContent();
    return true;
})))))));
    protected function RenderContent()
    {
        if ($this->CurrentObject != null) {
            ?>
			<form method="POST">
			<?php 
            $tbs = new TabContainer("tbsObject");
            //								ID						title			imageurl	targeturl	script	contentfunc
            $tbs->TabPages[] = new TabPage("tabGeneralInformation", "General Information", null, null, null, function () {
                ?>
					<div class="FormView">
						<div class="Field">
							<label for="txtObjectName">Object <u>n</u>ame:</label>
							<input type="text" name="object_Name" id="txtObjectName" accesskey="n" value="<?php 
                echo $this->CurrentObject->Name;
                ?>
" />
						</div>
						<div class="Field">
							<label for="cboModuleID">Parent <u>m</u>odule:</label>
							<select id="cboModuleID" name="object_ModuleID" accesskey="m">
							</select>
						</div>
						<div class="Field">
							<label for="cboParentObjectID">Parent <u>o</u>bject:</label>
							<select id="cboParentObjectID" name="object_ParentObjectID" accesskey="o">
							</select>
						</div>
					</div>
					<?php 
            });
            $tbs->TabPages[] = new TabPage("tabStaticProperties", "Static Properties", null, null, null, function () {
                ?>
					<table class="ListView" style="width: 100%;">
						<tr id="Property_Header">
							<th style="width: 32px;"><a href="#" onclick="AddPropertyBelow('Header');" title="Add Below">[+]</a></th>
							<th style="width: 256px;">Property</th>
							<th style="width: 128px;">Data Type</th>
							<th>Default Value</th>
						</tr>
						<?php 
                $properties = $this->CurrentObject->GetProperties();
                foreach ($properties as $property) {
                    ?>
								<tr id="StaticProperty_<?php 
                    echo $property->ID;
                    ?>
">
									<td style="width: 32px;"><a href="#" onclick="AddStaticPropertyBelow('<?php 
                    echo $property->ID;
                    ?>
');" title="Add Below">[+]</a></td>
									<td><?php 
                    echo $property->Name;
                    ?>
</td>
									<td><?php 
                    echo $property->DataType == null ? "(undefined)" : "<a href=\"" . System::ExpandRelativePath("~/datatype/modify/" . $property->DataType->ID) . "\">" . $property->DataType->Name . "</a>";
                    ?>
</td>
									<td>
									<?php 
                    if ($property->DataType == null || $property->DataType->ColumnRendererCodeBlob == null) {
                        ?>
										<input style="width: 100%;" type="text" id="txtStaticProperty_<?php 
                        echo $property->ID;
                        ?>
" name="StaticProperty_<?php 
                        echo $property->ID;
                        ?>
" value="<?php 
                        echo $property->DefaultValue;
                        ?>
" />
										<?php 
                    } else {
                        call_user_func($property->DataType->ColumnRendererCodeBlob, $property->Value);
                    }
                    ?>
									</td>
								</tr>
								<?php 
                }
                ?>
					</table>
					<?php 
            });
            $tbs->TabPages[] = new TabPage("tabInstanceProperties", "Instance Properties", null, null, null, function () {
                ?>
					<script type="text/javascript">
					function AddInstancePropertyBelow(id)
					{
						var hdnNewPropertyCount = document.getElementById("hdnNewPropertyCount");
						hdnNewPropertyCount.value = parseInt(hdnNewPropertyCount.value) + 1;
						
						var parentRow = document.getElementById("InstanceProperty_" + id);
						var table = parentRow.parentElement;
						
						var tr = table.insertRow(parentRow.sectionRowIndex + 1);
						
						var tdAdd = tr.insertCell(-1);
						tdAdd.innerHTML = "<a href=\"#\" onclick=\"AddInstancePropertyBelow('');\" title=\"Add Below\">[+]</a>";
						
						var tdProperty = tr.insertCell(-1);
						tdProperty.innerHTML = "<input type=\"text\" name=\"InstanceProperty_" + hdnNewPropertyCount.value + "_Name\" />";
						
						var tdDataType = tr.insertCell(-1);
						tdDataType.innerHTML = "<input type=\"text\" name=\"InstanceProperty_" + hdnNewPropertyCount.value + "_DataTypeID\" />";
						
						var tdDefaultValue = tr.insertCell(-1);
						tdDefaultValue.innerHTML = "<input type=\"text\" name=\"InstanceProperty_" + hdnNewPropertyCount.value + "_DefaultValue\" />";
					}
					</script>
					<input type="hidden" id="hdnNewPropertyCount" name="InstanceProperty_NewPropertyCount" value="0" />
					<table class="ListView" style="width: 100%;">
						<tr id="InstanceProperty_Header">
							<th style="width: 32px;"><a href="#" onclick="AddInstancePropertyBelow('Header'); return false;" title="Add Below">[+]</a></th>
							<th style="width: 256px;">Property</th>
							<th style="width: 128px;">Data Type</th>
							<th>Default Value</th>
						</tr>
						<?php 
                $properties = $this->CurrentObject->GetInstanceProperties();
                foreach ($properties as $property) {
                    ?>
								<tr id="InstanceProperty_<?php 
                    echo $property->ID;
                    ?>
">
									<td style="width: 32px;"><a href="#" onclick="AddInstancePropertyBelow('<?php 
                    echo $property->ID;
                    ?>
'); return false;" title="Add Below">[+]</a></td>
									<td><?php 
                    echo $property->Name;
                    ?>
</td>
									<td><?php 
                    echo $property->DataType == null ? "(undefined)" : "<a href=\"" . System::ExpandRelativePath("~/datatype/modify/" . $property->DataType->ID) . "\">" . $property->DataType->Name . "</a>";
                    ?>
</td>
									<td>
									<?php 
                    $property->RenderColumn();
                    ?>
									</td>
								</tr>
								<?php 
                }
                ?>
					</table>
					<?php 
            });
            $tbs->TabPages[] = new TabPage("tabStaticMethods", "Static Methods", null, null, null, function () {
                ?>
					<table class="ListView" style="width: 100%;">
						<tr id="StaticMethod_Header">
							<th style="width: 32px;"><a href="#" onclick="AddStaticMethodBelow('Header');" title="Add Below">[+]</a></th>
							<th style="width: 256px;">Method</th>
							<th>Description</th>
							<th style="width: 128px;">Return Data Type</th>
						</tr>
						<?php 
                $methods = $this->CurrentObject->GetMethods();
                foreach ($methods as $method) {
                    ?>
								<tr id="StaticMethod_<?php 
                    echo $method->ID;
                    ?>
">
									<td style="width: 32px;"><a href="#" onclick="AddStaticMethodBelow('<?php 
                    echo $method->ID;
                    ?>
');" title="Add Below">[+]</a></td>
									<td><a href="<?php 
                    echo System::ExpandRelativePath("~/tenant/modify/" . $this->CurrentTenant->URL . "/objects/" . $this->CurrentObject->ID . "/methods/static/" . $method->ID);
                    ?>
"><?php 
                    echo $method->Name;
                    ?>
</a></td>
									<td><?php 
                    echo $method->Description;
                    ?>
</td>
									<td><?php 
                    /* echo($method->DataType == null ? "(undefined)" : "<a href=\"#\">" . $method->DataType->Name . "</a>"); */
                    ?>
</td>
								</tr>
								<?php 
                }
                ?>
					</table>
					<?php 
            });
            $tbs->TabPages[] = new TabPage("tabInstances", "Instances", null, "~/tenant/modify/" . $this->CurrentTenant->URL . "/objects/" . $this->CurrentObject->ID . "/instances", null, function () {
                $listview = new ListView("lvInstances");
                $listview->Width = "100%";
                $properties = $this->CurrentObject->GetInstanceProperties();
                foreach ($properties as $property) {
                    if ($property->ColumnVisible) {
                        $listview->Columns[] = new ListViewColumn("P" . $property->ID, $property->Name);
                    }
                }
                $instances = $this->CurrentObject->GetInstances();
                foreach ($instances as $instance) {
                    $cols = array();
                    foreach ($properties as $property) {
                        if ($property->ColumnVisible) {
                            $cols[] = new ListViewItemColumn("P" . $property->ID, "", "", function ($vals) {
                                $inst = $vals[0];
                                $prop = $vals[1];
                                $prop->RenderColumn($inst->GetPropertyValue($prop));
                            }, array($instance, $property));
                        }
                    }
                    $lvi = new ListViewItem($cols);
                    $listview->Items[] = $lvi;
                }
                $listview->Render();
            });
            $tbs->SelectedTab = $tbs->TabPages[0];
            $tbs->Render();
            ?>
			
					<div class="Buttons">
						<input type="submit" class="Button Default" value="Save Changes" />
						<a class="Button" href="<?php 
            echo System::ExpandRelativePath("~/tenant/modify/" . $this->CurrentTenant->URL);
            ?>
">Discard Changes</a>
					</div>
				</form>
				<?php 
        }
    }
示例#16
0
            Message("Database returned error " . $MySQL->errno . ": " . $MySQL->error);
            $failed = true;
        }
        $tenant = Tenant::Create($_POST["Application_DefaultTenant"], "The default tenant for PhoenixSNS.");
        $tablefilepath = dirname(__FILE__) . "/TenantObjects/*.inc.php";
        $tablefiles = glob($tablefilepath);
        foreach ($tablefiles as $tablefile) {
            $tenant = Tenant::GetByID(1);
            require $tablefile;
        }
        require dirname(__FILE__) . "/DefaultTenant.inc.php";
        ?>
				</table>
				<?php 
        if (!$failed) {
            echo "<script type=\"text/javascript\">window.location.href='" . System::ExpandRelativePath("~/") . "';</script>";
            return true;
        }
        return true;
    }
    $page = new SetupPage();
    $page->BeginContent();
    ?>
<p>
	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" id="frm">
	<div class="FormView" id="fvStep1">
		<div class="Field">
			<label for="txtUserName"><u>S</u>erver Name</label>
示例#17
0
    protected function RenderContent()
    {
        $wndHelpWithServer = new Window("wndHelpWithServer", "About the &quot;Server&quot; parameter");
        $wndHelpWithServer->Width = 600;
        $wndHelpWithServer->Visible = false;
        $wndHelpWithServer->BeginContent();
        ?>
<p>
	Enter the server name on which you registered your PhoenixSNS account. Because PhoenixSNS accounts are decentralized, you may log into multiple sites
	using the same credentials. Whenever you log in, PhoenixSNS will contact your identity provider and retrieve information that you have shared between
	your identity provider and <?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
.
</p>
<p>
	You have total control over what information gets sent from <?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
 to your Identity Provider and vice versa. Your privacy and cross-posting options
	can be changed from your User Control Panel.
</p>
<?php 
        $wndHelpWithServer->BeginButtons();
        ?>
<div style="text-align: center;"><input type="submit" value="OK" onclick="wndHelpWithServer.Hide(); return false;" /></div>
<?php 
        $wndHelpWithServer->EndButtons();
        $wndHelpWithServer->EndContent();
        ?>
<div class="LogoAndLoginArea">
	<div class="LogoArea">
		<img class="Logo" src="<?php 
        echo System::ExpandRelativePath("~/images/Logo.png");
        ?>
" alt="<?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
" />
		<p class="Slogan"><?php 
        echo System::GetConfigurationValue("Application.Slogan");
        ?>
</p>
	</div>
	<form class="LoginForm" method="POST" action="<?php 
        echo System::ExpandRelativePath(System::GetConfigurationValue("Account.LoginPath"));
        ?>
" style="margin-left: auto; margin-right: auto;">
		<div class="Field">
			<label for="txtUserName">Login <u>n</u>ame:</label>
			<input type="text" id="txtUserName" name="member_username" value="" style="width: 100%;" />
		</div>
		<div class="Field">
			<label for="txtPassword"><u>P</u>assword:</label>
			<input type="password" id="txtPassword" name="member_password" value="" style="width: 100%;" />
		</div>
		<div class="Field">
			<label for="txtServerName" id="lblServerName"><u>S</u>erver:</label>
			<input type="text" id="txtServerName" accesskey="S" name="member_servername" value="<?php 
        echo System::GetConfigurationValue("Application.DomainName");
        ?>
" style="width: 100%;" /> <a href="#" onclick="wndHelpWithServer.ShowDialog();"><img style="vertical-align: middle;" src="<?php 
        echo System::ExpandRelativePath("~/images/icons/help.png");
        ?>
" alt="(?)" title="More information" /></a>
		</div>
		<?php 
        if ($this->InvalidCredentials) {
            ?>
		<div class="Message Error">
			The login name or password you specified is invalid.  Please try again.
		</div>
		<?php 
        }
        ?>
		<div class="Buttons">
			<input type="submit" value="Log In" onclick="frmLogin.submit(); return false;" />
		</div>
	</form>
	<p class="LoginMessage" style="font-style: oblique;"><?php 
        echo $this->Message;
        ?>
</p>
	<div class="ActionList">
		<a class="Action" href="<?php 
        echo System::ExpandRelativePath(System::GetConfigurationValue("Account.RegisterPath"));
        ?>
">
			<span class="ActionTitle">Don't have an account?</span>
			<span class="ActionLink">Register now!</span>
		</a>
		<a class="Action" href="<?php 
        echo System::ExpandRelativePath(System::GetConfigurationValue("Account.ResetPasswordPath"));
        ?>
">
			<span class="ActionTitle">Forgot your password?</span>
			<span class="ActionLink">Reset it here.</span>
		</a>
		<a class="Action" href="<?php 
        echo System::ExpandRelativePath("~/contribute");
        ?>
">
			<span class="ActionTitle">Want to help out?</span>
			<span class="ActionLink">See ways you can contribute.</span>
		</a>
	</div>
</div>

<script type='text/javascript'>
	// TEST!!!
	/*
	var supportsVibrate = "vibrate" in navigator;
	
	// Vibrate multiple times for multiple durations
	// Vibrate for three seconds, wait two seconds, then vibrate for one second
	navigator.vibrate([500, 500, 500, 500, 500]);
	*/
</script>

<?php 
    }
示例#18
0
            $page->Render();
            return true;
        } else {
            $page = new WebPage();
            $page->Title = "Success";
            $page->BeginContent();
            ?>
						<p>Enjoy your <?php 
            echo $pack->Title;
            ?>
! Check out your new look on the avatar to the right.</p>
						<p style="text-align: center;"><a href="<?php 
            echo System::ExpandRelativePath("~/market");
            ?>
">Buy some more clothes</a> or <a href="<?php 
            echo System::ExpandRelativePath("~/");
            ?>
">return to home page</a>!</p>
						<?php 
            $page->EndContent();
            return true;
        }
    }
    if ($CurrentUser == null) {
        $_SESSION["LoginRedirectURL"] = "~/market/starter";
        System::Redirect("~/account/login.page");
        return true;
    } else {
        if ($CurrentUser->CountInventoryItems() > 0) {
            $errorPage = new ErrorPage();
            $errorPage->Message = "Only new Members are allowed to use the Starter Pack. Sorry for the inconvenience!";
示例#19
0
?>
" + this.Base.ID + "/" + this.View.ID + "/slices/leg_right_lower.png",
			"<?php 
echo System::ExpandRelativePath("~/images/avatar/bases/");
?>
" + this.Base.ID + "/" + this.View.ID + "/slices/foot_right.png",
			"<?php 
echo System::ExpandRelativePath("~/images/avatar/bases/");
?>
" + this.Base.ID + "/" + this.View.ID + "/slices/leg_left_upper.png",
			"<?php 
echo System::ExpandRelativePath("~/images/avatar/bases/");
?>
" + this.Base.ID + "/" + this.View.ID + "/slices/leg_left_lower.png",
			"<?php 
echo System::ExpandRelativePath("~/images/avatar/bases/");
?>
" + this.Base.ID + "/" + this.View.ID + "/slices/foot_left.png"
		];
		var data =
		[
			"head", "torso", "arm_right_upper", "arm_right_lower", "hand_right", "arm_left_upper", "arm_left_lower", "hand_left", "leg_right_upper",
			"leg_right_lower", "foot_right", "leg_left_upper", "leg_left_lower", "foot_left"
		];
		var imageLoader = new ImageLoader(images);
		var parent = this;
		imageLoader.Data = data;
		imageLoader.OnError = function(sender, e)
		{
			console.error("image load failed for " + e.Image.src);
			window.setTimeout(Avatar.StopLoading, 2000, sender.CallbackData, true);
 protected function RenderContent()
 {
     $items = DataType::Get();
     $lv = new ListView();
     $lv->Columns = array(new ListViewColumn("chDataTypeName", "Name"), new ListViewColumn("chDataTypeDescription", "Description"));
     foreach ($items as $item) {
         $lv->Items[] = new ListViewItem(array(new ListViewItemColumn("chDataTypeName", "<a href=\"" . System::ExpandRelativePath("~/data-types/modify/" . $item->ID) . "\">" . $item->Name . "</a>"), new ListViewItemColumn("chDataTypeDescription", $item->Description)));
     }
     $lv->Render();
 }
示例#21
0
		html += "</a>";
		buttons.innerHTML = html;
	};
	this.ReceiveMessage = function(id, message)
	{
		var receiver = document.getElementById("ChatArea_" + this.ID + "_Panel_" + id + "_Receiver");
		var receiver_name = receiver.value;
		var button = document.getElementById("ChatArea_" + this.ID + "_Buttons_" + id + "_Button");
		if (button.className == "ChatBarButton")
		{
			button.className = "ChatBarButton Attention";
		}
		
		var history = document.getElementById("ChatArea_" + this.ID + "_Panel_" + id + "_History");
		var html = "<div class=\"ChatPanelHistoryMessage\"><img title=\"" + this.GetDisplayNameForUserName(receiver_name) + "\" alt=\"" + this.GetDisplayNameForUserName(receiver_name) + "\" src=\"<?php 
echo System::ExpandRelativePath("~/community/members/");
?>
" + receiver_name + "/images/avatar/thumbnail.png\" class=\"ChatPanelHistoryMessageAvatar\"><div class=\"ChatPanelHistoryMessageContent\">" + JH.Utilities.HtmlEncode(message) + "</div></div>";
		history.innerHTML += html;
		history.scrollTop = history.scrollTopMax;
	};
	this.AutoUpdatePresence = function(id)
	{
		var receiver = document.getElementById("ChatArea_" + this.ID + "_Panel_" + id + "_Receiver");
		var receiver_name = receiver.value;
		
		var input = document.getElementById("ChatArea_" + this.ID + "_Panel_" + id + "_Input");
		if (input.value == "")
		{
			if (input.status != "active")
			{
    protected function RenderContent()
    {
        if ($this->CurrentObject != null) {
            ?>
			<h1>Method: <?php 
            echo $this->CurrentMethod->Name;
            ?>
 on <?php 
            echo $this->CurrentObject->Name;
            ?>
@<?php 
            echo $this->CurrentTenant->URL;
            ?>
</h1>
			<table class="FormView">
				<tr class="Required">
					<td><label for="txtMethodName">Method Name</label></td>
					<td><input type="text" id="txtMethodName" name="method_Name" value="<?php 
            echo $this->CurrentMethod->Name;
            ?>
" /></td>
				</tr>
			</table>
			<h2>Code Blob</h2>
			<form method="POST">
			<textarea id="txtCodeBlob" name="method_CodeBlob" style="width: 100%;" rows="40"><?php 
            echo $this->CurrentMethod->CodeBlob;
            ?>
</textarea>
			<style type="text/css">
			.CodeMirror
			{
				border: dotted 1px #AAAAAA;
				line-height: 18px;
			}
			.CodeMirror .CodeMirror-linenumbers
			{
				width: 48px;
			}
			</style>
			<script type="text/javascript">
			var txtCodeBlob = document.getElementById("txtCodeBlob");
			var editor = CodeMirror.fromTextArea(txtCodeBlob,
			{
				lineNumbers: true,
				matchBrackets: true,
				mode: "text/x-php",
				indentUnit: 4,
				indentWithTabs: true
			});
			</script>
			<div class="Buttons">
				<input type="submit" value="Save Changes" />
				<a class="Button" href="<?php 
            echo System::ExpandRelativePath("~/tenant/modify/" . $this->CurrentTenant->URL . "/objects/" . $this->CurrentObject->ID);
            ?>
">Discard Changes</a>
			</div>
			</form>
			<?php 
        }
    }
示例#23
0
     header("Content-Type: application/rss+xml");
     echo "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n";
     echo "<rss version=\"2.0\">\n";
     echo "\t<channel>\n";
     echo "\t\t<title>Members</title>\n";
     echo "\t\t<description>A list of all members in " . System::$Configuration["Application.Name"] . "</description>\n";
     echo "\t\t<link>" . System::ExpandRelativePath("~/") . "</link>\n";
     echo "\t\t<lastBuildDate>Mon, 06 Sep 2010 00:01:00 +0000 </lastBuildDate>\n";
     echo "\t\t<pubDate>Mon, 06 Sep 2009 16:20:00 +0000 </pubDate>\n";
     echo "\t\t<ttl>1800</ttl>\n";
     $members = User::Get();
     foreach ($members as $member) {
         echo "\t\t<item>\n";
         echo "\t\t\t<title>" . $member->LongName . "</title>\n";
         echo "\t\t\t<description>" . \JH\Utilities::HtmlEncode($member->ProfileContent->Description) . "</description>\n";
         echo "\t\t\t<link>" . System::ExpandRelativePath("~/community/members/" . $member->ShortName) . "</link>\n";
         // <guid>unique string per item</guid>
         echo "\t\t\t<pubDate>Mon, 06 Sep 2009 16:20:00 +0000 </pubDate>\n";
         echo "\t\t</item>\n";
     }
     echo "\t</channel>\n";
     echo "</rss>";
     return true;
 case "members":
     require "Members/Main.inc.php";
     return true;
 case "groups":
     if (System::$Configuration["Groups.Enabled"]) {
         require "Groups/Main.inc.php";
         return true;
     } else {
示例#24
0
    protected function RenderContent()
    {
        $CurrentTenant = Tenant::GetCurrent();
        $objUser = $CurrentTenant->GetObject("User");
        $CurrentUser = $objUser->GetMethod("GetCurrentUser")->Execute();
        $members = $objUser->GetInstances();
        $count = count($members);
        foreach ($members as $member) {
            $description = $member->GetPropertyValue("Description");
            // SingleInstance<Gender>
            $gender = $member->GetPropertyValue("Gender");
            // SingleInstance<Gender>
            if ($gender != null) {
                $gender = $gender->ToString();
            }
            $age = null;
            $birthdate = $member->GetPropertyValue("BirthDate");
            // DateTime
            if ($birthdate != null) {
                // TODO: calculate age from birth date
                $age = $birthdate;
            }
            $location = $member->GetPropertyValue("Location");
            // SingleInstance<Place>
            if ($location != null) {
                $location = $location->ToString();
            }
            ?>
<div class="Card MemberCard">
	<div class="Title">
		<table style="width: 100%;">
			<tr>
				<td rowspan="2" style="width: 96px;"><img src="<?php 
            echo System::ExpandRelativePath("~/community/members/" . $member->GetPropertyValue("URL") . "/images/avatar/thumbnail.png");
            ?>
" alt="<?php 
            echo $member->GetPropertyValue("DisplayName");
            ?>
" title="<?php 
            echo $member->GetPropertyValue("DisplayName");
            ?>
" /></td>
				<td class="MemberName"><?php 
            echo $member->GetPropertyValue("DisplayName");
            ?>
</td>
			</tr>
			<tr>
				<td><?php 
            if ($gender != null) {
                echo $gender . " - ";
            }
            if ($age != null) {
                echo $age . " - ";
            }
            if ($location != null) {
                echo $location->ToString();
            }
            ?>
</td>
			</tr>
		</table>
	</div>
	<?php 
            if ($description != null) {
                ?>
<div class="Content"><?php 
                echo $description;
                ?>
</div><?php 
            }
            ?>
	<div class="Actions Horizontal">
		<div class="Left" style="background-color: #3366FF;">
			<div style="padding-left: 16px; color: #FFFFFF; font-weight: bold;">Member</div>
		</div>
		<div class="Right">
		<?php 
            if ($CurrentUser != null) {
                $hasfriend = false;
                /*
                $hasfriend = $CurrentUser->GetMethod("HasFriend")->Execute(array
                (
                	new TenantQueryParameter("member", $member)
                ));
                */
                if ($hasfriend) {
                    ?>
					<strong>Friends</strong>
					<?php 
                } else {
                    ?>
					<a href="#" title="Add Friend"><i class="fa fa-plus"></i> <span class="Text">Add Friend</span></a>
					<?php 
                }
                ?>
			<a href="#" title="Poke"><i class="fa fa-hand-o-right"></i> <span class="Text">Poke</span></a>
			<a href="#" title="View Profile"><i class="fa fa-eye"></i> <span class="Text">View Profile</span></a>
			<?php 
            }
            ?>
		</div>
	</div>
</div>
<?php 
        }
        ?>
</div>
<?php 
    }
示例#25
0
			<td><input type="text" id="txtTablePrefix" name="database_tableprefix" value="<?php 
    if (isset(System::$Configuration["Database.TablePrefix"])) {
        echo System::$Configuration["Database.TablePrefix"];
    } else {
        echo "phoenix_";
    }
    ?>
" style="width: 100%;" /></td>
		</tr>
		<tr>
			<td colspan="2" style="text-align: center;"><input type="submit" value="Continue" /></td>
		</tr>
	</table>
</form>
<?php 
    $page->EndContent();
    return true;
}, function ($path) {
    $enabled = false;
    if (isset(System::$Configuration["Setup.Enabled"])) {
        $enabled = System::$Configuration["Setup.Enabled"] == "true";
    }
    if (!$enabled) {
        $page = new \WebFX\WebPage();
        $page->Title = "Configuration Error";
        $page->BeginContent();
        echo "<div style=\"text-align: center;\"><img style=\"height: 120px;\" src=\"" . System::ExpandRelativePath("~/images/PhoenixSNSLogo.png") . "\" /></div><div>This PhoenixSNS installation has not been configured. Please contact the server administrator.</div>";
        $page->EndContent();
        return false;
    }
})));
示例#26
0
    protected function RenderContent()
    {
        $CurrentUser = User::GetCurrent();
        ?>
<div class="Card">
	<div class="Title">
		<i class="fa fa-users"></i> <span class="Text"><?php 
        echo $this->Group->Title;
        ?>
</span>
	</div>
	<div class="Content">
		<table style="width: 100%">
			<tr>
				<td style="width: 128px;"><img src="<?php 
        echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/images/avatar/thumbnail.png");
        ?>
" style="width: 112px; height: 112px;" /></td>
				<td><?php 
        echo $this->Group->Description;
        ?>
</td>
			</tr>
		</table>
		<table style="width: 100%">
			<tr>
				<td style="width: 25%">Created on:</td>
				<td><?php 
        echo $this->Group->DateCreated;
        ?>
</td>
			</tr>
		</table>
	</div>
	<div class="Actions Horizontal">
	<?php 
        if ($CurrentUser != null) {
            if ($this->Group->HasMember($CurrentUser)) {
                ?>
		<a title="Invite Friends" href="<?php 
                echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/invite");
                ?>
" onclick="InviteFriendsDialog.Show(<?php 
                echo $this->Group->ID;
                ?>
); return false;"><i class="fa fa-share-square-o"></i> <span class="Text">Invite Friends</span></a>
		<a title="Leave Group" href="<?php 
                echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/disconnect");
                ?>
"><i class="fa fa-sign-out"></i> <span class="Text">Leave Group</span></a>
		<?php 
            } else {
                if ($this->Group->HasPermission($CurrentUser, 2) || $this->Group->HasPermission($CurrentUser, 3)) {
                    ?>
		<a title="Join Group" href="<?php 
                    echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/connect");
                    ?>
"><i class="fa fa-sign-in"></i> <span class="Text">Join Group</span></a>
		<?php 
                }
            }
            if ($this->Group->HasPermission($CurrentUser, 4)) {
                ?>
		<a title="Change Group Settings" href="<?php 
                echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/settings");
                ?>
"><i class="fa fa-cog"></i> <span class="Text">Change Group Settings</span></a>
		<?php 
            }
            if ($this->Group->Creator->ID == $CurrentUser->ID) {
                ?>
		<a title="Delete Group" href="<?php 
                echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/delete.phnx");
                ?>
"><i class="fa fa-trash-o"></i> <span class="Text">Delete Group</span></a>
		<?php 
            }
        } else {
            ?>
<i class="fa fa-warning"></i> Please log in to join this group.<?php 
        }
        ?>
	</div>
</div>
<div class="Card">
	<div class="Title">
		<i class="fa fa-comments"></i> <span class="Text">Discussions (<?php 
        echo $this->Group->CountTopics();
        ?>
)</span>
	</div>
	<div class="Content">
		<div class="ListBox">
<?php 
        $topics = $this->Group->GetTopics(5);
        foreach ($topics as $topic) {
            ?>
				<a href="<?php 
            echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/topics/" . $topic->Name);
            ?>
">
					<div class="ListItemTitle"><?php 
            echo $topic->Title;
            ?>
</div>
				</a>
<?php 
        }
        ?>
		</div>
	</div>
	<div class="Actions Horizontal">
<?php 
        if ($this->Group->HasMember($CurrentUser)) {
            ?>
			<a href="<?php 
            echo System::ExpandRelativePath("~/community/groups/" . $this->Group->Name . "/topics/create.mmo");
            ?>
" title="Start a discussion"><i class="fa fa-pencil-square-o"></i> <span class="Text">Start a discussion</span></a>
<?php 
        }
        ?>
	</div>
</div>
<div class="Card">
	<div class="Title">
		<i class="fa fa-shield"></i> <span class="Text">Members (<?php 
        echo $this->Group->CountMembers();
        ?>
)</span>
	</div>
	<div class="Content">
		<div class="ButtonGroup ButtonGroupHorizontal">
<?php 
        $members = $this->Group->GetMembers();
        foreach ($members as $member) {
            ?>
			<a class="ButtonGroupButton" href="<?php 
            echo System::ExpandRelativePath("~/community/members/" . $member->ShortName);
            ?>
" onclick="DisplayMemberInformation(<?php 
            echo $member->ID;
            ?>
); return false;">
				<img class="ButtonGroupButtonImage" src="<?php 
            echo System::ExpandRelativePath("~/community/members/" . $member->ShortName . "/images/avatar/thumbnail.png");
            ?>
" />
				<span class="ButtonGroupButtonText"><?php 
            echo $member->ToString();
            ?>
</span>
			</a>
<?php 
        }
        ?>
		</div>
	</div>
</div>
<?php 
    }
    protected function RenderContent()
    {
        ?>
			<div class="Jumbotron">
				<div class="Title">The new PhoenixSNS is here</div>
				<div class="Content">Upgrade to the latest version for important security updates and bug fixes</div>
				<div class="Buttons"><a href="#" class="Button Default">Download now</a> <a href="#" class="Button">Learn more</a></div>
			</div>
			<div class="PanelContainer ThreeColumn">
			<?php 
        $countActive = Tenant::Count(true, false);
        $countInactive = Tenant::Count(false, true);
        ?>
				<div class="Panel Primary">
					<div class="Header">
						<div class="Expand">
							<div>
								<div class="Icon"><i class="fa fa-building-o fa-5x">&nbsp;</i></div>
							</div>
							<div>
								<div class="PrimaryContent"><?php 
        echo $countActive;
        ?>
</div>
								<div class="SecondaryContent">active tenant<?php 
        echo $countActive != 1 ? "s" : "";
        ?>
</div>
							</div>
						</div>
					</div>
					<div class="Footer Dark Borderless">
						<a href="<?php 
        echo System::ExpandRelativePath("~/tenant");
        ?>
">Manage Tenants</a>
					</div>
				</div>
				<div class="Panel Warning">
					<div class="Header">
						<div class="Expand">
							<div>
								<div class="Icon"><i class="fa fa-warning fa-5x">&nbsp;</i></div>
							</div>
							<div>
								<div class="PrimaryContent"><?php 
        echo $countInactive;
        ?>
</div>
								<div class="SecondaryContent">inactive or expired tenant<?php 
        echo $countInactive != 1 ? "s" : "";
        ?>
</div>
							</div>
						</div>
					</div>
					<div class="Footer Dark Borderless">
						<a href="<?php 
        echo System::ExpandRelativePath("~/tenant");
        ?>
">Manage Tenants</a>
					</div>
				</div>
				<div class="Panel Success">
					<div class="Header">
						<div class="Expand">
							<div>
								<div class="Icon"><i class="fa fa-warning fa-5x">&nbsp;</i></div>
							</div>
							<div>
								<div class="PrimaryContent">0</div>
								<div class="SecondaryContent">issues to resolve</div>
							</div>
						</div>
					</div>
					<div class="Footer Dark Borderless">
						<a href="#">View Details</a>
					</div>
				</div>
			</div>
			<?php 
    }
    protected function RenderContent()
    {
        ?>
		<form id="frmRegister" method="POST">
			<div class="Card">
				<div class="Title"><i class="fa fa-shield"></i> <span class="Text">Create an account</span></div>
				<div class="Content">
					<p>
						Welcome to the <?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
 community! Before you can access members-only
						features, you must complete the following information. Please choose a private login ID and password for your account. Do not
						give this information to anyone else even if they are a <?php 
        echo System::GetConfigurationValue("Application.Name");
        ?>
						team member.
					</p>
					<p>
						<table style="width: 100%">
							<tr>
								<td style="width: 300px;"><?php 
        if ($_POST["un"] !== null && $_POST["un"] == "") {
            echo "<span style=\"color: #FF0000\">*</span> ";
        }
        ?>
 Login I<u>D</u> (private):</td>
								<td><input name="un" type="text" accesskey="D" size="50" maxlength="50" value="<?php 
        echo $_POST["un"];
        ?>
" placeholder="ph3n1xxx" /></td>
							</tr>
							<tr>
								<td><?php 
        if ($_POST["pw"] !== null && $_POST["pw"] == "") {
            echo "<span style=\"color: #FF0000\">*</span> ";
        }
        ?>
 <u>P</u>assword:</td>
								<td><input name="pw" type="password" accesskey="P" size="50" maxlength="50" placeholder="S0me*Sup3r/SecRET_passWord!" /></td>
							</tr>
							<tr>
								<td><?php 
        if ($_POST["pwc"] !== null && $_POST["pwc"] == "") {
            echo "<span style=\"color: #FF0000\">*</span> ";
        }
        ?>
 <u>C</u>onfirm password:</td>
								<td><input name="pwc" type="password" accesskey="C" size="50" maxlength="50" /></td>
							</tr>
							<tr>
								<td><?php 
        if ($_POST["ln"] !== null && $_POST["ln"] == "") {
            echo "<span style=\"color: #FF0000\">*</span> ";
        }
        ?>
 Display <u>n</u>ame:</td>
								<td><input id="txtLongName" name="ln" type="text" accesskey="L" size="50" maxlength="100" value="<?php 
        echo $_POST["ln"];
        ?>
" onkeyup="AutoGenerateName('txtLongName', 'txtShortName');" placeholder="Phenix the Great" /></td>
							</tr>
							<tr>
								<td><?php 
        if ($_POST["sn"] !== null && $_POST["sn"] == "") {
            echo "<span style=\"color: #FF0000\">*</span> ";
        }
        ?>
 <u>S</u>hort URL: <span class="ShortURLPath" style="font-size: 9pt; color: #AAAAAA; display: block; text-align: right;"><?php 
        echo System::ExpandRelativePath("~/community/members/");
        ?>
</span></td>
								<td style="vertical-align: bottom;"><input id="txtShortName" name="sn" type="text" accesskey="S" size="50" maxlength="50" value="<?php 
        echo $_POST["sn"];
        ?>
" onkeyup="AutoGenerateNameInvalidate('txtShortName');" placeholder="phenix" /></td>
							</tr>
							<tr>
								<td colspan="2" style="color: #FF0000; padding-top: 16px;">
								<?php 
        if ($_POST["un"] !== null && $_POST["un"] == "" || $_POST["pw"] !== null && $_POST["pw"] == "" || $_POST["sn"] !== null && $_POST["sn"] == "" || $_POST["ln"] !== null && $_POST["ln"] == "") {
            echo "Your request for membership could not be completed because some required information was not provided. Please ensure that all fields marked with a red asterisk (<span style=\"color: #FF0000\">*</span>) have been completely filled out.";
        } else {
            if ($UserRegistered == UserRegistrationStatus::UserNameTaken) {
                echo "Your request for membership could not be completed because the user name is already taken. Please choose a different user name.";
            } else {
                if ($UserRegistered == UserRegistrationStatus::DisplayNameTaken) {
                    echo "Your request for membership could not be completed because the display name is already taken. Please choose a different display name.";
                } else {
                    if ($UserRegistered == UserRegistrationStatus::PasswordMismatch) {
                        echo "The password and confirmation password do not match.  Please re-enter your password and confirmation password, and then try again.";
                    }
                }
            }
        }
        ?>
 
								</td>
							</tr>
						</table>
					</p>
				</div>
				<div class="Actions Horizontal">
					<a href="#" onclick="document.getElementById('frmRegister').submit(); return false;"><i class="fa fa-check"></i> <span class="Text">Register</span></a>
					<a href="<?php 
        echo System::ExpandRelativePath("~/");
        ?>
"><i class="fa fa-times"></i> <span class="Text">Cancel</span></a>
				</div>
			</div>
		</form>
		<?php 
    }
示例#29
0
        ?>
<div class="ProfilePage">
	<?php 
        displayProfileTitle();
        $friends = $thisuser->GetFriends();
        $groups = Group::GetByUser($thisuser);
        ?>
	<?php 
        if ($action == "customize") {
            require "customize.inc.php";
        } else {
            if ($thisuser->Theme != null) {
                if ($thisuser->Theme->Creator != null) {
                    ?>
		<p>Theme by <a href="<?php 
                    echo System::ExpandRelativePath("~/community/members/" . $thisuser->Theme->Creator->ShortName);
                    ?>
"><?php 
                    echo $thisuser->Theme->Creator->LongName;
                    ?>
</a></p>
		<?php 
                }
            }
            ?>
	<div class="Card">
		<div class="Title"><i class="fa fa-user"></i> <span class="Text"><?php 
            echo $thisuser->LongName;
            ?>
</span></div>
		<div class="Content">
    protected function RenderContent()
    {
        $CurrentUser = User::GetCurrent();
        ?>
			<div class="CardSet" style="width: 30%">
				<div class="Card">
					<div class="Title"><i class="fa fa-globe"></i><span class="Title">World</span></div>
					<div class="Content">
						<span class="Emphasis">No friends</span> are in the World at the moment
					</div>
					<div class="Actions Vertical">
						<a href="#">Invite a friend to a personal Place</a>
						<a href="#">Explore the World</a>
					</div>
				</div>
				<div class="Card">
					<div class="Title">
						<i class="fa fa-money"></i> <span class="Text">Resources</span>
					</div>
					<div class="Content" style="text-align: center;">
					<?php 
        $resources = MarketResourceType::Get();
        foreach ($resources as $resource) {
            ?>
							<div class="Resource">
								<div class="Icon"><img src="<?php 
            echo System::ExpandRelativePath("~/images/" . System::GetConfigurationValue("Application.DefaultResourceBundle") . "/Resources/24x24/" . $resource->ID . ".png");
            ?>
" title="<?php 
            echo $resource->TitlePlural;
            ?>
" /></div>
								<div class="Value"><?php 
            echo MarketResourceTransaction::GetAmountByUser($CurrentUser, $resource);
            ?>
</div>
							</div>
							<?php 
        }
        ?>
					</div>
					<div class="Actions Vertical">
						<a href="#">Learn more about earning credits</a>
						<a href="#">Earn interest by putting your credits in the Bank</a>
						<a href="<?php 
        echo System::ExpandRelativePath("~/contribute/purchase");
        ?>
">Get more with PsychatiGold</a>
					</div>
				</div>
				<div class="Card">
					<div class="Title">
						Fashion
					</div>
					<div class="Content">
						<span class="Emphasis">No new items</span> available in the Market
					</div>
					<div class="Actions Vertical">
						<a href="#"><i class="fa fa-shopping-cart"></i> <span class="Text">Visit the Market to buy and sell items</span></a>
					</div>
				</div>
			</div>
			<div class="CardSet" style="width: 30%">
				<?php 
        /*
        <div class="Card">
        	<div class="Title"><i class="fa fa-globe"></i><span class="Title">Next scheduled maintenance</span></div>
        	<div class="Content">
        	<?php
        		$et = Tenant::GetCurrent()->EndTimestamp;
        		if ($et == null)
        		{
        			?><span class="Emphasis">To be determined</span><?php
        		}
        		else
        		{
        			?><span class="Emphasis"><?php echo($et); ?></span><?php
        		}
        	?>
        	</div>
        </div>
        */
        ?>
				<div class="Card">
					<div class="Title"><i class="fa fa-information"></i><span class="Title">Fight the evil horde!</span></div>
					<div class="Content">
						<p>An invasion is taking place! Gather your wits and tactics to beat the enemy!</p>
						<p>14 friends play this</p>
					</div>
					<div class="Actions Vertical">
						<a href="#">Play War of Ages</a>
					</div>
				</div>
			</div>
			<div class="CardSet" style="width: 30%">
				<div class="Card">
					<div class="Title"><i class="fa fa-globe"></i><span class="Title"><a href="#">alcexhim</a> invited you to his Place!</span></div>
					<div class="Content">
						<span class="Emphasis">My Personal Room</span>
					</div>
					<div class="Actions Vertical">
						<a href="#">Go to alcexhim's Place</a>
					</div>
				</div>
			</div>
			<?php 
        /*
        $stories = DashboardStory::Get();
        if (count($stories) > 0)
        {
        	foreach ($stories as $story)
        	{
        		$card = new Card('card' . $story->ID, $story->Title, $story->Content, $story->ClassName, $story->IconName);
        		$card->Actions = array
        		(
        			new CardAction(LanguageString::GetByName("unlike"), "#", null, 'thumbs-o-up', '_blank', 4),
        			new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        			new CardAction(LanguageString::GetByName("share"), null, null, "share", "_blank")
        		);
        		$card->Render();
        	}
        }
        else
        {
        	?><p>There's nothing here!</p><?php
        }
        */
        /*
        (new Card('card1', '<a href="#">alcexhim</a> posted a video <span class="Location"> at <a href="/world/town-square">Town Square</a>',
        'Just chillin\' with the peeps.',
        null, "video-camera",
        array
        (
        	new CardAction(LanguageString::GetByName("like"), "#", null, "thumbs-up", null),
        )))->Render();
        
        (new Card('card2', "Ready for the next big thing in virtual concert production?",
        '<a href="http://www.concertroid.com" target="_blank"><img class="Advertisement" style="width: 100%;" src="http://www.concertroid.com/images/logo.png" alt="http://www.concertroid.com/" /></a>',
        "Sponsored", "star",
        array
        (
        	new CardAction("Like Concertroid on Psychatica", "#", null, 'thumbs-up', '_blank'),
        	new CardAction("Visit Web Site", "http://www.concertroid.com", null, "external-link", "_blank")
        )))->Render();
        
        (new Card('card3', "Psychatica design updated",
        'The new design is based around the concept of &quot;cards&quot;, which can update automatically
        over time and present you with only the most important information and an intuitive way to act
        upon it.',
        "Official", "info",
        array
        (
        	new CardAction(LanguageString::GetByName("unlike"), "#", null, 'thumbs-o-up', '_blank', 4),
        	new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        	new CardAction(LanguageString::GetByName("share"), null, null, "share", "_blank")
        )))->Render();
        
        (new Card('card4', "Psychatica fixes and updates",
        'The major issue with Journal creation has been fixed, and the
        Market now has some items for you to buy. Enjoy the new fashion
        items in the <a href="' . System::ExpandRelativePath("~/market") . '">Psychatica Market</a>!',
        "Official", "info",
        array
        (
        	new CardAction(LanguageString::GetByName("like"), "#", null, 'thumbs-up', '_blank', 1),
        	new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        	new CardAction(LanguageString::GetByName("share"), null, null, "share", "_blank")
        )))->Render();
        
        (new Card('card4', "Psychatica updates",
        'The terminology &quot;User name&quot; for the private credential associated with your account has been changed to
        &quot;User ID&quot; to avoid confusion with the publicly-visible Short and Long names so that people are not encouraged
        to use the same User ID as their Short or Long name. It will eventually be made impossible to create a user account
        with the same User ID and Short/Long name.',
        "Official", "info",
        array
        (
        	new CardAction(LanguageString::GetByName("like"), "#", null, 'thumbs-up', '_blank', 1),
        	new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        	new CardAction(LanguageString::GetByName("share"), null, null, "share", "_blank")
        )))->Render();
        
        (new Card('card4', "Psychatica updates",
        'The World button on the navigation bar now only displays when you are logged in. This is to avoid confusing users who don\'t
        realize that they must be logged in to use the World.',
        "Official", "info",
        array
        (
        	new CardAction(LanguageString::GetByName("like"), "#", null, 'thumbs-up', '_blank', 1),
        	new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        	new CardAction(LanguageString::GetByName("share"), null, null, "share", "_blank")
        )))->Render();
        */
        /*
        <div class="Card">
        	<div class="Title"><span class="Text"><?php echo(LanguageString::GetByName("currentevents")); ?></span></div>
        	<div class="Content">
        		<div class="ListBox">
        			<?php
        			$events = Event::Get();
        			foreach ($events as $event)
        			{
        			?>
        			<a href="<?php echo(\System::ExpandRelativePath("~/Events/" . $event->Name)); ?>">
        				<div class="ListItemTitle">
        					<?php
        						echo("<span class=\"EventType\" style=\"color: " . $event->Type->Color . "; border-color: " . $event->Type->Color . ";\">" . $event->Type->Title . "</span> ");
        						echo($event->Title);
        						echo("<span class=\"EventDate\">" . $event->BeginDate . " &mdash; " . $event->EndDate . "</span>");
        					?>
        				</div>
        				<div class="ListItemDescription">
        					<?php
        						echo($event->Description);
        					?>
        				</div>
        			</a>
        			<?php
        			}
        			?>
        		</div>
        	</div>
        </div>
        */
        /*
        $img = "~/images/wallpaper/bg1.jpg";
        (new Card('card4', "New wallpaper available",
        '<a style="text-align: center; display: block;" href="' . System::ExpandRelativePath($img) . '" target="_blank"><img src="' . System::ExpandRelativePath($img) . '" style="width: 300px; height: auto;" /></a>
        <span class="Description">
        	Our Phoenix-human hybrid girl Phelicia loves to go sky-tumbling! She will keep you company on your desktop or laptop PC. Be on the lookout for more designs targeted at mobile devices!
        </span><br /><br />Designed by <a href="#">roololoo</a>',
        "Official", "picture-o",
        array
        (
        	new CardAction(LanguageString::GetByName("like"), "#", null, 'thumbs-up', '_blank', 1),
        	new CardAction(LanguageString::GetByName("comment"), null, null, "comment", "_blank"),
        	new CardAction(LanguageString::GetByName("download"), null, null, "download", "_blank")
        )))->Render();
        */
        /*
        <tr>
        	<?php
        	if (\System::$Configuration["Questions.Enabled"])
        	{
        	?>
        	<td style="width: 50%; vertical-align: top;">
        		<div class="Panel">
        			<h3 class="PanelTitle"><?php echo(LanguageString::GetByName("questions")); ?></h3>
        			<div class="PanelContent">
        			<?php
        				$questions = Question::Enumerate();
        				if (count($questions) == 0)
        				{
        			?>
        			<p>No questionnaires yet, why not <a href="/questions/create.mmo">create one</a>!</p>
        			<?php
        				}
        			?>
        			</div>
        		</div>
        	</td>
        	<?php
        	}
        	if (\System::$Configuration["Suggestions.Enabled"])
        	{
        	?>
        	<td style="vertical-align: top;">
        		<div class="Panel">
        			<h3 class="PanelTitle"><?php echo(LanguageString::GetByName("suggestions")); ?></h3>
        			<div class="PanelContent">
        				<p>
        					Help us improve and make the site even more awesome! Tell us what kind of features, games,
        					items, and other ideas you'd like to see in Psychatica! If we use your ideas, you might
        					win prizes!
        				</p>
        				<?php
        				if ($CurrentUser == null)
        				{
        				?>
        				<p>
        					If you are interested in contributing, please first log into Psychatica by the form on the
        					right panel.
        				</p>
        				<?php
        				}
        				else
        				{
        					$form = new WebForm("modules/suggestionBoxReceive.php", "POST");
        					$form->Begin();
        					
        					$cboSuggestionTypeID = new WebDropDownList("suggestion_type_id");
        					$cboSuggestionTypeID->Width = "100%";
        					
        					$query = "SELECT * FROM phpmmo_suggestion_types";
        					$result = mysql_query($query);
        					$count = mysql_num_rows($result);
        					for ($i = 0; $i < $count; $i++)
        					{
        						$values = mysql_fetch_assoc($result);
        						$cboSuggestionTypeID->AddItem($values["suggestion_type_id"], $values["suggestion_type_title"]);
        					}
        					
        					$cboSuggestionTypeID->Render();
        					
        					$txtSuggestionContent = new WebTextBox("suggestion_content");
        					$txtSuggestionContent->RowCount = 3;
        					$txtSuggestionContent->Width = "100%";
        					$txtSuggestionContent->Multiline = true;
        					$txtSuggestionContent->Render();
        					
        					$cmdSubmit = new WebButton();
        					$cmdSubmit->Text = "Submit Request";
        					$cmdSubmit->HorizontalAlign = "right";
        					$cmdSubmit->Render();
        					
        					$form->End();
        				}
        				?>
        			</div>
        		</div>
        	</td>
        	<?php
        	}
        	?>
        </tr>
        */
    }