示例#1
0
function maxUserSites($userid)
{
    $usersites = getTotalUserWebsites($userid);
    $db = Database::obtain();
    $sql = "SELECT `maxwebsites` FROM " . TABLE_USERS . "\n\t\t\t\tWHERE `id` =" . $userid . "";
    $userdata = $db->fetch_array($sql);
    $sites = $userdata[0]['maxwebsites'];
    if ($sites > $usersites) {
        return false;
    } else {
        return true;
    }
}
示例#2
0
?>
			</td>
		</tr>
		<tr style="background-color:#A3A3A3;">
			<td style="font-weight:bold; text-align:right;">
				<?php 
echo MSG00205;
?>
:<br>
			</td>
			<td>
				<?php 
if (isAdmin($_SESSION['userid'])) {
    echo '(<strong>' . getTotalUserWebsites($userid) . ' <a href="admin.php?admp=users&websites=' . $userid . '">' . icon('view') . '</a></strong>) ' . MSG00206 . ' (<strong>' . $maxwebsites . '</strong>) ' . MSG00207 . '. ';
} else {
    echo '(<strong>' . getTotalUserWebsites($userid) . ' <a href="wc.php?website">' . icon('view') . '</a></strong>) ' . MSG00206 . ' (<strong>' . $maxwebsites . '</strong>) ' . MSG00207 . '. ';
}
if (isUser($_SESSION['userid'])) {
    echo helpIcon(MSG00229);
} else {
    echo helpIcon(MSG00230);
}
?>
			</td>
		</tr>
		<tr style="background-color:#D6D6D6;">
			<td width="105px" style="font-weight:bold; text-align:right;">
				<?php 
echo MSG00157;
?>
:<br>
示例#3
0
} else {
    echo $status . '<input type="hidden" name="account_active" value="' . $astatus . '" />';
}
?>
			</td>
		</tr>
		<tr style="background-color:#A3A3A3;">
			<td style="font-weight:bold; text-align:right;">
				<?php 
echo MSG00205;
?>
:<br>
			</td>
			<td>
				<?php 
echo '(<strong>' . getTotalUserWebsites($userid);
?>
 <a href="sz.php?website"><?php 
echo icon('view');
?>
</a></strong>) <?php 
echo MSG00206;
?>
 <?php 
if (isAdmin($_SESSION['userid'])) {
    echo '(<strong><input type="text" name="maxwebsites" value="' . $maxwebsites . '" size="5"/>';
} else {
    echo '(<strong>' . $maxwebsites;
}
?>
</strong>) <?php