Ejemplo n.º 1
0
 public static function GetUnassigned($language = null, $max = null)
 {
     global $MySQL;
     $query = "SELECT DISTINCT languagestring_StringName FROM " . System::GetConfigurationValue("Database.TablePrefix") . "LanguageStrings";
     if ($language != null) {
         $query .= " WHERE NOT languagestring_StringName IN (SELECT languagestring_StringName FROM " . System::GetConfigurationValue("Database.TablePrefix") . "LanguageStrings WHERE languagestring_LanguageID = " . $language->ID . ")";
     }
     if ($max != null && is_numeric($max)) {
         $query .= " LIMIT " . $max;
     }
     $query .= " ORDER BY " . System::GetConfigurationValue("Database.TablePrefix") . "LanguageStrings.languagestring_StringName ASC";
     $result = $MySQL->query($query);
     $count = $result->num_rows;
     $retval = array();
     for ($i = 0; $i < $count; $i++) {
         $values = $result->fetch_assoc();
         $retval[] = LanguageString::GetByAssoc($values);
     }
     return $retval;
 }
Ejemplo n.º 2
0
function displayProfileTitle()
{
    $path = System::GetVirtualPath();
    $id = $path[1];
    $CurrentTenant = Tenant::GetCurrent();
    $objUser = $CurrentTenant->GetObject("User");
    $thisuser = $objUser->GetInstance(new TenantQueryParameter("URL", $id));
    if ($thisuser == null) {
        return;
    }
    ?>
	<div class="ProfileTitle">
		<?php 
    mmo_display_user_badges_by_user($thisuser);
    ?>
		<span class="ProfileUserName"><?php 
    echo $thisuser->LongName;
    ?>
</span>
		<?php 
    if ($action != "customize") {
        ?>
			<span class="ProfileControlBox">
			<?php 
        if ($CurrentUser != null && $thisuser->ID != $CurrentUser->ID) {
            if (mmo_has_user_friend_request(null, $thisuser)) {
                ?>
				<a href="<?php 
                echo System::$Configuration["Application.BasePath"];
                ?>
/community/members/<?php 
                echo $id;
                ?>
/Disconnect">Withdraw Friend Request</a>
				<?php 
            } else {
                if (mmo_has_user_friend_request($thisuser, $CurrentUser)) {
                    ?>
				<a href="<?php 
                    echo System::$Configuration["Application.BasePath"];
                    ?>
/community/members/<?php 
                    echo $id;
                    ?>
/Connect/<?php 
                    echo mmo_get_user_friendship_auth_key($thisuser, $CurrentUser);
                    ?>
">Confirm Friendship</a>
				<?php 
                } else {
                    if ($CurrentUser->HasFriend($thisuser)) {
                        ?>
				<a href="<?php 
                        echo System::$Configuration["Application.BasePath"];
                        ?>
/community/members/<?php 
                        echo $id;
                        ?>
/Disconnect"><?php 
                        echo LanguageString::GetByName("friend_disconnect");
                        ?>
</a>
				<?php 
                    } else {
                        ?>
				<a href="<?php 
                        echo System::$Configuration["Application.BasePath"];
                        ?>
/community/members/<?php 
                        echo $id;
                        ?>
/Connect"><?php 
                        echo LanguageString::GetByName("friend_connect");
                        ?>
</a>
				<?php 
                    }
                }
            }
            ?>
			<form action="<?php 
            echo System::$Configuration["Application.BasePath"];
            ?>
/Account/Messages/Create" method="POST">
				<input type="hidden" name="message_receiver" value="<?php 
            echo $thisuser->ID;
            ?>
" />
				<input class="LinkButton" type="submit" value="<?php 
            echo LanguageString::GetByName("message_send");
            ?>
" />
			</form>
			<a href="<?php 
            echo System::$Configuration["Application.BasePath"];
            ?>
/community/members/<?php 
            echo $id;
            ?>
/trade/"><?php 
            echo LanguageString::GetByName("resource_trade");
            ?>
</a>
			<a href="<?php 
            echo System::$Configuration["Application.BasePath"];
            ?>
/community/members/<?php 
            echo $id;
            ?>
/block" onclick="/* ReportBlockDialog.Show(); return false; */">Report/Block</a>
			<?php 
        }
        if ($thisuser->IsAuthenticated) {
            ?>
				<a href="<?php 
            echo System::$Configuration["Application.BasePath"];
            ?>
/community/members/<?php 
            echo $id;
            ?>
/Customize">Customize Profile</a>
			<?php 
        }
    }
    ?>
			</span>
	</div>
<?php 
}
Ejemplo n.º 3
0
							<a href="<?php 
echo System::ExpandRelativePath("~/account/settings/deactivate");
?>
"><?php 
echo LanguageString::GetByName("deactivate_account_button");
?>
</a>
						</p>
					</td>
				</tr>
			</table>
		</div>
	</div>
	<div class="Card">
		<div class="Actions Horizontal">
			<a href="#" onclick="document.getElementById('frmSettings').submit(); return false;" accesskey="S"><i class="fa fa-check"></i> <span class="Text"><?php 
echo LanguageString::GetByName("button_savechanges");
?>
</span></a>
			<a accesskey="C" href="<?php 
echo System::ExpandRelativePath("~/");
?>
"><i class="fa fa-times"></i> <span class="Text"><?php 
echo LanguageString::GetByName("button_cancel");
?>
</span></a>
		</div>
	</div>
</form>
<?php 
$page->EndContent();