public function __construct() { parent::__construct(); $this->StyleSheets[] = new WebStyleSheet("~/style/LoginPage.css"); $this->Title = "Log in to " . System::GetConfigurationValue("Application.Name"); $this->CssClass = "LoginPage"; $this->UseCompatibleRenderingMode = true; $this->LoginButtonText = "Log In"; $this->Message = ""; $this->InvalidCredentials = false; }
public function __construct() { parent::__construct(); $CurrentUser = User::GetCurrent(); $this->Styles = array("margin-top" => "0px"); $this->Ribbon = new Ribbon("ribbon", "PhoenixSNS Manager"); $this->Ribbon->UserName = $CurrentUser->LongName; $this->Ribbon->HelpButton->Visible = true; $this->Ribbon->ApplicationMenu->ToolTipTitle = "PhoenixSNS Manager"; $this->Ribbon->ApplicationMenu->ToolTipText = "Access quick administrative functions from the application menu."; $this->Ribbon->ApplicationMenu->Items = array(new RibbonCommandReferenceItem("rcmdUsers")); $this->Ribbon->Commands = array(new RibbonButtonCommand("rcmdUserBrowse", "Browse Users", "~/admin/users", "alert('Find a way to get user list'); return false;", null, "Browse Users", "Search for users in the social network directory"), new RibbonButtonCommand("rcmdUserBan", "Ban a User", null, "BanUserDialog.ShowDialog();", null, "Ban Specified User", "Prevents the specified user from entering the Web site."), new RibbonButtonCommand("rcmdUserResourceTransfer", "Transfer", null, "ResourceTransferDialog.ShowDialog(); return false;", null, "Transfer Resources", "Gives a particular user (the receiver) a certain amount of resources, optionally revoking the same amount of resources from another user (the sender)."), new RibbonButtonCommand("rcmdWorldCreatePlace", "Place", null, "PlacePropertiesDialog.ShowDialog(); return false;", "~/images/Common/Icons/Ribbon/Place.png", "Create Place", "Creates a new Place in the World. Places can be private or public, and can be accessed via hotspots or triggers."), new RibbonButtonCommand("rcmdWorldCreateObjectNPC", "NPC", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "NPC", "Creates a new NPC in the World. NPCs are Avatars that roam the World and can optionally trigger an action when clicked."), new RibbonButtonCommand("rcmdWorldCreateObjectHotspot", "Hotspot", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "Hotspot", "Creates a new Hotspot in the World. Hotspots are visible objects that activate an action when the player clicks on them."), new RibbonButtonCommand("rcmdWorldCreateObjectTrigger", "Trigger", null, "ObjectPropertiesDialog.ShowDialog(); return false;", null, "Trigger", "Creates a new Trigger in the World. Triggers are invisible blocks that activate an action when the player character enters the covered area."), new RibbonDropDownCommand("rcmdWorldCreateObject", "Object", null, null, "~/images/Common/Icons/Ribbon/Objects.png", "Create Object", "Creates a new object in the current Place.", array(new RibbonCommandReferenceItem("rcmdWorldCreateObjectNPC"), new RibbonCommandReferenceItem("rcmdWorldCreateObjectHotspot"), new RibbonCommandReferenceItem("rcmdWorldCreateObjectTrigger")))); $this->Ribbon->Tabs = array(new RibbonTab("tabHome", "Home", array()), new RibbonTab("tabUsers", "Users", array(new RibbonTabGroup("rtgUsersManagement", "Management", array(new RibbonCommandReferenceItem("rcmdUserBrowse"), new RibbonCommandReferenceItem("rcmdUserBan"))), new RibbonTabGroup("rtgUsersResources", "Resources", array(new RibbonCommandReferenceItem("rcmdUserResourceTransfer"))))), new RibbonTab("tabWorld", "World", array(new RibbonTabGroup("rtgWorldCreate", "Create", array(new RibbonCommandReferenceItem("rcmdWorldCreatePlace"), new RibbonCommandReferenceItem("rcmdWorldCreateObject")))))); if ($this->Ribbon->SelectedTab !== null) { $this->Ribbon->SelectedTab = $this->Ribbon->Tabs[0]; } }
$page->EndContent(); } return; case "trade": require "trade.inc.php"; return; default: if ($path[2] == "") { if (System::$Configuration["Shoutout.Enabled"]) { System::Redirect("~/community/members/" . $path[1] . "/shoutout"); } else { System::Redirect("~/community/members/" . $path[1] . "/information"); } return; } $page = new WebPage(sprintf(LanguageString::GetByName("profile_title"), $thisuser->LongName)); $page->BreadcrumbItems = array(new BreadcrumbItem("~/community", "Community"), new BreadcrumbItem("~/community/members", "Members"), new BreadcrumbItem("~/community/members/" . $thisuser->ShortName, $thisuser->LongName, true)); if (file_exists("style/themes/user/" . $thisuser->UserName . ".css")) { $page->StyleSheets[] = new WebStyleSheet("~/community/members/" . $thisuser->ShortName . "/theme/stylesheet"); } if ($path[2] == "journals" && $path[3] != "") { $page->ResourceLinks[] = new WebResourceLink("alternate", "application/atom+xml", "~/community/members/" . $thisuser->ShortName . "/journals/" . $path[3] . "/entries.atom", "Atom feed"); } $page->BeginContent(); ?> <div class="ProfilePage"> <?php displayProfileTitle(); $friends = $thisuser->GetFriends(); $groups = Group::GetByUser($thisuser); ?>
protected function AfterRenderContent() { ?> </td> </tr> </table> <?php parent::AfterRenderContent(); }
public function __construct() { parent::__construct(); $this->CssClass = "RegistrationPage"; }
protected function Initialize() { parent::Initialize(); $this->Scripts[] = new WebScript("~/Scripts/World.js"); // World }