Ejemplo n.º 1
0
            $user = db_result($r_user);
            if ($user['user_id'] == U_ID) {
                $err_mess .= 'Du kannst keine Nachricht an Dich selbst senden.';
            }
            if ($art == 1 && ($user['user_mail'] == '' || $config['mail_func'] == 0)) {
                $err_mess .= ($err_mess == '' ? '' : '<br />') . 'Ein Versand per E-Mail ist leider nicht m&ouml;glich.';
            }
            $err_mess .= ($err_mess == '' ? '' : '<br />') . check_string($topic, 1);
            if (strlen($text) < 3) {
                $err_mess .= ($err_mess == '' ? '' : '<br />') . 'Der Text ist zu kurz.';
            }
            if (strlen($text) > $config['max_pm_len']) {
                $err_mess .= ($err_mess == '' ? '' : '<br />') . 'Der Text ist zu lang.';
            }
            if ($user['pm_count'] == $config['max_pm_count']) {
                $P = globalPermissions($user['groupids']);
                if ($P[19] == 0) {
                    $err_mess .= ($err_mess == '' ? '' : '<br />') . 'Die PMbox des Empf&auml;ngers ist leider voll.';
                    db_query("UPDATE " . $pref . "user SET\n\t\t\t\t\t     pm_overflow='1'\n\t\t\t\t\t WHERE user_id='{$user['user_id']}'");
                }
            }
        }
        if ($err_mess != '') {
            // back -----------------
            $mess = '<form action="pm.php" method="post" name="sendback">
			  ' . $err_mess . '
			  <input type="hidden" name="action" value="new" />
			  <input type="hidden" name="back" value="1" />
			  <input type="hidden" name="username" value="' . $username . '" />
			  <input type="hidden" name="art" value="' . $art . '" />
			  <input type="hidden" name="topic" value="' . $topic . '" />
Ejemplo n.º 2
0
    define('P_IP', $P[13]);
    define('P_NOFLOODPROT', $P[14]);
    define('P_NOEDITLIMIT', $P[15]);
    define('P_POLLNEW', $P[20]);
    define('P_POLLADD', $P[21]);
    define('P_CLOSEPOLL', $P[22]);
    define('P_OCLOSEPOLL', $P[23]);
    define('P_EDITPOLL', $P[24]);
    define('P_OEDITPOLL', $P[25]);
    $P = globalPermissions(U_GROUPIDS);
    define('P_CANSEEINVIS', $P[16]);
    define('P_NOPMLIMIT', $P[17]);
    define('P_CEVENT', $P[18]);
    define('P_SHOWDELETED', $P[19]);
} else {
    $P = globalPermissions(U_GROUPIDS);
    define('P_CANSEEINVIS', $P[16]);
    define('P_NOPMLIMIT', $P[17]);
    define('P_CEVENT', $P[18]);
    define('P_SHOWDELETED', $P[19]);
}
// create head options
$data['board_name'] = $config['board_name'];
$headoption = array();
if (U_ID < 1) {
    $headoption[] = '<a href="register.php">Registrieren</a>';
}
if ($config['pm'] && U_ID > 0) {
    $headoption[] = '<a href="pm.php">Private Messages</a>';
}
if (U_ID > 0) {