コード例 #1
0
ファイル: profile.php プロジェクト: hscale/SiteZilla
				<?php 
echo icon('userimage', '130px') . ' ' . helpIcon(MSG00223);
?>
			</td>
			<td colspan="2" rowspan="1" style="text-align:center; font-weight:bold; background-color:#A3A3A3;">
				<?php 
if (isAdmin($_SESSION['userid'])) {
    echo $fullnames . ' <a href="admin.php?admp=users&edit=' . $userid . '">' . icon('edit') . '</a> ' . helpIcon(MSG00224);
    if (helpEnabled($userid)) {
        echo ' <a href="' . scriptName() . '?user=hidehelp">' . icon('hide_help', '20px') . '</a> <font style="font-size:10px;font-weight:normal;"><-- ' . MSG00225 . '</font>';
    } else {
        echo ' <a href="' . scriptName() . '?user=showhelp">' . icon('show_help', '20px') . '</a>';
    }
} else {
    echo $fullnames . ' <a href="' . scriptName() . '?user=edit">' . icon('edit') . '</a> ' . helpIcon(MSG00224);
    if (helpEnabled($userid)) {
        echo ' <a href="' . scriptName() . '?user=hidehelp">' . icon('hide_help', '20px') . '</a> <font style="font-size:10px;font-weight:normal;"><-- ' . MSG00225 . '</font>';
    } else {
        echo ' <a href="' . scriptName() . '?user=showhelp">' . icon('show_help', '20px') . '</a>';
    }
}
?>
			</td>
		</tr>
		<tr style="background-color:#D6D6D6;">
			<td width="140px" style="font-weight:bold; text-align:right;">
				<?php 
echo MSG00202;
?>
:
			</td>
コード例 #2
0
ファイル: functions.php プロジェクト: hscale/SiteZilla
function jsEnabled()
{
    if (isset($_SESSION['userid'])) {
        if (isset($_SESSION['js_disabled'])) {
            if ($_SESSION['js_disabled'] == 1 or !helpEnabled($_SESSION['userid'])) {
                return false;
            } else {
                return true;
            }
        } else {
            return true;
        }
    } else {
        return false;
    }
}