当前位置: 首页>>代码示例>>PHP>>正文


PHP get_antispam函数代码示例

本文整理汇总了PHP中get_antispam函数的典型用法代码示例。如果您正苦于以下问题:PHP get_antispam函数的具体用法?PHP get_antispam怎么用?PHP get_antispam使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_antispam函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: showForm

/**
 * Zeigt das Formular an, in dem User ihre Einträge machen können
 *
 * @param  $text Vorbelegung für den text
 * @param  $mail Vorbelegung für die Emailadresse
 * @param  $page Vorbelegung für die Homepage
 */
function showForm($text = "", $mail = "", $page = "", $fehler = "")
{
    global $allgAr;
    $tpl = new tpl('gbook.htm');
    $ar = array('uname' => $_SESSION['authname'], 'SMILIES' => getsmilies(), 'ANTISPAM' => get_antispam('gbook', 1), 'TXTL' => $allgAr['Gtxtl'], 'TEXT' => $text, 'PAGE' => $page, 'MAIL' => $mail, 'FEHLER' => $fehler);
    $tpl->set_ar_out($ar, "formular_eintrag");
    if (!isset($_SESSION['klicktime_gbook'])) {
        $_SESSION['klicktime_gbook'] = 0;
    }
}
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:17,代码来源:gbook.php

示例2: tpl

        $design->footer(1);
    }
}
// anzeigen
$design->header();
$tpl = new tpl('selfbp', 1);
$akl = '';
if (isset($_REQUEST['akl'])) {
    $akl = $_REQUEST['akl'];
}
// loeschen
if (isset($_REQUEST['del'])) {
    $del = $_REQUEST['del'];
    $a = substr($del, 0, 1);
    $e = substr($del, 1);
    if ($e != 'neu') {
        unlink('include/contents/selfbp/self' . $a . '/' . $e);
    }
}
$text = get_text($akl);
$properties = get_properties($text);
if (!isset($properties['wysiwyg'])) {
    $properties['wysiwyg'] = 1;
}
$text = edit_text($text, false);
// $text = rteSafe($text);
$filename = get_filename($akl);
$akl = get_akl($akl);
$view = get_view(isset($properties['view']) ? $properties['view'] : '');
$tpl->set_ar_out(array('akl' => $akl, 'text' => $text, 'filename' => $filename, 'exfilename' => $filename, 'wysiwyg' => $properties['wysiwyg'], 'title' => isset($properties['title']) ? $properties['title'] : '', 'hmenu' => isset($properties['hmenu']) ? $properties['hmenu'] : '', 'view' => $view, 'viewoptions' => isset($properties['viewoptions']) ? $properties['viewoptions'] : '', 'wysiwyg_editor' => $properties['wysiwyg'] == 1 ? '<script type="text/javascript">buttonPath = "include/images/icons/editor/"; imageBrowse = "admin.php?selfbp-imagebrowser"; makeWhizzyWig("bbwy", "all");</script>' : '', 'ANTISPAM' => get_antispam('adminuser_action', 0, true)), 0);
$design->footer();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:selfbp.php

示例3: db_query

        db_query('UPDATE `prefix_rules` SET `text` = "' . $text . '", `titel` = "' . $titel . '", `zahl` = "' . $zahl . '" WHERE `id` = "' . $sid . '"');
    }
}
if (!empty($_GET['delete'])) {
    $delete = escape($_GET['delete'], 'integer');
    db_query('DELETE FROM `prefix_rules` WHERE `id` = "' . $delete . '" LIMIT 1');
}
if (empty($_GET['sid'])) {
    $row = array();
    $row['sub'] = 'Eintragen';
    $row['zahl'] = '';
    $row['titel'] = '';
    $row['text'] = $row['sid'] = '';
} else {
    $abf = 'SELECT `text`,`zahl`,`titel`,`id` as `sid` FROM `prefix_rules` WHERE `id` = "' . escape($_GET['sid'], 'integer') . '"';
    $erg = db_query($abf);
    $row = db_fetch_assoc($erg);
    $row['sub'] = '&Auml;ndern';
}
$clas = '';
$tpl = new tpl('rules', 1);
$row['ANTISPAM'] = get_antispam('adminuser_action', 0, true);
$tpl->set_ar_out($row, 0);
$erg = db_query('SELECT * FROM `prefix_rules` ORDER BY `zahl`');
while ($row = db_fetch_assoc($erg)) {
    $clas = $clas == 'Cmite' ? 'Cnorm' : 'Cmite';
    $row['class'] = $clas;
    $tpl->set_ar_out($row, 1);
}
$tpl->out(2);
$design->footer();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:rules.php

示例4: file_exists

         }
         if ($row['opt_pm_popup'] == 1) {
             $row['opt_pm_popup1'] = 'checked';
             $row['opt_pm_popup0'] = '';
         } else {
             $row['opt_pm_popup1'] = '';
             $row['opt_pm_popup0'] = 'checked';
         }
         $row['avatarbild'] = file_exists($row['avatar']) ? '<img src="' . $row['avatar'] . '" alt=""><br />' : '';
         $row['Fabreite'] = $allgAr['Fabreite'];
         $row['Fahohe'] = $allgAr['Fahohe'];
         $row['Fasize'] = $allgAr['Fasize'];
         $row['forum_max_sig'] = $allgAr['forum_max_sig'];
         $row['uid'] = $_SESSION['authid'];
         $row['forum_usergallery'] = $allgAr['forum_usergallery'];
         $row['antispam'] = get_antispam('user_profile_edit', 0, true);
         $tpl->set_ar_out($row, 0);
         if ($allgAr['forum_avatar_upload']) {
             $tpl->out(1);
         }
         $tpl->set_ar_out($row, 2);
         profilefields_change($_SESSION['authid']);
         $tpl->out(3);
     } else {
         $tpl = new tpl('user/login.htm');
         $tpl->set_out('WDLINK', 'index.php', 0);
     }
 } elseif ($csrfCheck) {
     # submit
     # change poassword
     if (!empty($_POST['np1']) and !empty($_POST['np2']) and !empty($_POST['op'])) {
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:profil_edit.php

示例5: escape

        $k = escape($k, 'integer');
        $astat = db_result(db_query("SELECT stat FROM prefix_topics WHERE id = " . $k), 0, 0);
        $nstat = $astat == 1 ? 0 : 1;
        db_query("UPDATE `prefix_topics` SET stat = '" . $nstat . "' WHERE id = " . $k);
    }
    wd('index.php?forum-showtopics-' . $fid, 'Status ge&auml;ndert', 2);
} elseif (!$csrfCheck || empty($_POST['del']) && empty($_POST['shift'])) {
    $limit = $allgAr['Ftanz'];
    // Limit
    $page = $menu->getA(3) == 'p' ? $menu->getE(3) : 1;
    $MPL = db_make_sites($page, "WHERE fid = '{$fid}'", $limit, '?forum-editforum-' . $fid, 'topics');
    $anfang = ($page - 1) * $limit;
    $q = "SELECT a.id, a.name, a.rep, a.erst, a.hit, a.art, a.stat, b.time, b.erst as last, b.id as pid\r\n   FROM prefix_topics a\r\n  \tLEFT JOIN prefix_posts b ON a.last_post_id = b.id\r\n  \tWHERE a.fid = {$fid}\r\n   \tORDER BY a.art DESC, b.time DESC\r\n   \tLIMIT " . $anfang . "," . $limit;
    $tpl = new tpl('forum/editforum.htm');
    $tpl->set('id', $fid);
    $tpl->set('antispam', get_antispam('forum_edit_forum', 0, true));
    $tpl->set_out('MPL', $MPL, 0);
    $erg = db_query($q);
    while ($row = db_fetch_assoc($erg)) {
        $row['date'] = date('d.m.y - H:i', $row['time']);
        $tpl->set_ar_out($row, 1);
    }
    $tpl->out(2);
} elseif (isset($_POST['del']) and isset($_POST['dely']) and $_POST['dely'] == 'yes' and $csrfCheck) {
    $pmin = 0;
    $tmin = 0;
    foreach ($_POST['in'] as $k => $v) {
        $k = escape($k, 'integer');
        $erg = db_query("SELECT erstid FROM prefix_posts WHERE tid = " . $k . " AND erstid > 0");
        while ($row = db_fetch_object($erg)) {
            db_query("UPDATE prefix_user SET posts = posts - 1 WHERE id = " . $row->erstid);
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:edit_forum.php

示例6: db_query

         $tpl->set_ar_out(array('class' => $class, 'id' => $row['id'], 'name' => $row['name'], 'url' => $row['url'], 'pos' => $row['pos']), 4);
     }
     // Tabellenuebergang
     $tpl->out(1);
     // Aendern oder Einfuegen
     if ($aid == 'edit') {
         $mid = $menu->get(3);
         $erg = db_query('SELECT `pos`, `menu` FROM `prefix_modules` WHERE `id` = ' . $mid);
         $row = db_fetch_assoc($erg);
         $kat = getKats($row['menu']);
         $modul = dblistee($mid, 'SELECT `id`, `name` FROM `prefix_modules` WHERE (`menu` = "" AND (`gshow` = 1 OR `ashow` = 1)) OR `id` = ' . $mid . ' ORDER BY `name` ASC');
         $tpl->set_ar_out(array('aname' => 'Eintrag bearbeiten', 'modul' => $modul, 'kat' => $kat, 'pos' => $row['pos'], 'ANTISPAM' => get_antispam('adminuser_action', 0, true)), 5);
     } else {
         $kat = getKats();
         $modul = dblistee('', 'SELECT `id`, `name` FROM `prefix_modules` WHERE `menu` = "" AND (`gshow` = 1 OR `ashow` = 1) ORDER BY `name` ASC');
         $tpl->set_ar_out(array('aname' => 'Eintrag hinzuf&uuml;gen', 'modul' => $modul, 'kat' => $kat, 'pos' => $row['pos'], 'ANTISPAM' => get_antispam('adminuser_action', 0, true)), 5);
     }
     // Template-Footer
     $tpl->out(2);
     break;
 case 'del':
     // Betroffene Modul-ID
     $mid = $menu->get(3);
     // Aktuelle Position und Menus abfragen
     $erg = db_query('SELECT `pos`, `menu` FROM `prefix_modules` WHERE `id` = ' . $mid . ' LIMIT 0, 1');
     $row = db_fetch_assoc($erg);
     // Postitionen des alten Menues neu speichern und Modul-Kat zuruecksetzen
     db_query('UPDATE `prefix_modules` SET `pos` = `pos` -1 WHERE `menu` = "' . $row['menu'] . '" AND `pos` > ' . $row['pos']);
     db_query('UPDATE `prefix_modules` SET `menu` = "", `pos` = NULL WHERE `id` = ' . $mid);
     wd('admin.php?modules-adminmenu', 'Eintrag gel&ouml;scht');
     $design->footer(1);
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:adminmenu.php

示例7: escape

 }
 if ($menu->getA(3) == 'd' and is_numeric($menu->getE(3)) and has_right(-7, 'gbook')) {
     $did = escape($menu->getE(3), 'integer');
     db_query("DELETE FROM prefix_koms WHERE uid = " . $id . " AND cat = 'GBOOK' AND id = " . $did);
 }
 $r = db_fetch_assoc(db_query("SELECT time, name, mail, page, txt as text, id FROM prefix_gbook WHERE id = " . $id));
 $r['datum'] = date('d.m.Y', $r['time']);
 if ($r['page'] != '') {
     $r['page'] = get_homepage($r['page']);
     $r['page'] = ' &nbsp; <a href="' . $r['page'] . '" target="_blank"><img src="include/images/icons/page.gif" border="0" alt="Homepage ' . $lang['from'] . ' ' . $r['name'] . '"></a>';
 }
 if ($r['mail'] != '') {
     $r['mail'] = ' &nbsp; <a href="mailto:' . escape_email_to_show($r['mail']) . '"><img src="include/images/icons/mail.gif" border="0" alt="E-Mail ' . $lang['from'] . ' ' . $r['name'] . '"></a>';
 }
 $tpl = new tpl('gbook.htm');
 $r['ANTISPAM'] = get_antispam('gbookkom', 0);
 $r['uname'] = $_SESSION['authname'];
 $r['text'] = bbcode($r['text']);
 $tpl->set_ar_out($r, 4);
 $i = 1;
 $erg = db_query("SELECT id, name, text FROM prefix_koms WHERE uid = " . $id . " AND cat = 'GBOOK' ORDER BY id DESC");
 $anz = db_num_rows($erg) + 1;
 while ($r1 = db_fetch_assoc($erg)) {
     $r1['zahl'] = $anz - $i;
     $r1['text'] = bbcode($r1['text']);
     if (has_right(-7, 'gbook')) {
         $r1['text'] .= '<a href="index.php?gbook-show-' . $id . '-d' . $r1['id'] . '"><img src="include/images/icons/del.gif" alt="' . $lang['delete'] . '" border="0" title="' . $lang['delete'] . '" /></a>';
     }
     $tpl->set_ar_out($r1, 5);
     $i++;
 }
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:gbook.php

示例8: elseif

            echo '<textarea cols="55" rows="3" name="' . $row['schl'] . '">' . $row['wert'] . '</textarea>';
        } elseif ($row['typ'] == 'grecht') {
            $grl = dblistee($allgAr[$row['schl']], "SELECT id,name FROM prefix_grundrechte ORDER BY id ASC");
            echo '<select name="' . $row['schl'] . '">' . $grl . '</select>';
        } elseif ($row['typ'] == 'grecht2') {
            $grl = dblistee($allgAr[$row['schl']], "SELECT id,name FROM prefix_grundrechte WHERE id >= -2 ORDER BY id ASC");
            echo '<select name="' . $row['schl'] . '">' . $grl . '</select>';
        } elseif ($row['typ'] == 'password') {
            echo '<input size="50" type="password" name="' . $row['schl'] . '" value="***" />';
        }
        echo '</td></tr>' . "\n\n";
        $ch = $row['kat'];
    }
    echo '<tr class="Cdark"><td></td><td><input type="submit" value="Absenden" name="submit"></td></tr>';
    echo '</table>';
    echo get_antispam('admin_allg', 0, true);
    echo '</form>';
} elseif ($csrfCheck) {
    $abf = 'SELECT * FROM `prefix_config` ORDER BY kat';
    $erg = db_query($abf);
    while ($row = db_fetch_assoc($erg)) {
        if ($row['typ'] == 'password' and $_POST[$row['schl']] == '***') {
            continue;
        } elseif ($row['typ'] == 'password') {
            require_once 'include/includes/class/AzDGCrypt.class.inc.php';
            $cr64 = new AzDGCrypt(DBDATE . DBUSER . DBPREF);
            $_POST[$row['schl']] = $cr64->crypt($_POST[$row['schl']]);
        }
        db_query('UPDATE `prefix_config` SET wert = "' . escape($_POST[$row['schl']], 'textarea') . '" WHERE schl = "' . $row['schl'] . '"');
    }
    wd('admin.php?allg', 'Erfolgreich ge&auml;ndert', 2);
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:allg.php

示例9: AzDGCrypt

if (isset($_POST['subform']) and chk_antispam('smtpconf', true)) {
    if (!empty($_POST['smtp_pass'])) {
        require_once 'include/includes/class/AzDGCrypt.class.inc.php';
        $cr64 = new AzDGCrypt(DBDATE . DBUSER . DBPREF);
        $smtp['smtp_pass'] = $cr64->crypt($_POST['smtp_pass']);
    }
    unset($_POST['smtp_pass']);
    foreach ($keys as $key) {
        if (isset($_POST[$key])) {
            $smtp[$key] = $_POST[$key];
        }
    }
    if (!isset($_POST['smtp_pop3beforesmtp'])) {
        $smtp['smtp_pop3beforesmtp'] = 0;
    }
    $smtpsql = escape(serialize($smtp), 'textarea');
    db_query('UPDATE `prefix_allg` SET `t1` = "' . $smtpsql . '" WHERE `k` = "smtpconf"');
    if (mysql_affected_rows() == 0) {
        echo '<h2>Es wurden keine &Auml;nderungen vorgenommen!</h2>';
    } else {
        echo '<h2>&Auml;nderungen gespeichert</h2>';
    }
}
//Formular ausgeben
$tpl = new tpl('smtpconf', 1);
$smtp['smtp'] = $allgAr['mail_smtp'] ? 1 : 0;
$smtp['smtp_selauth'] = arlistee($smtp['smtp_auth'], $authMethods);
$smtp['smtp_pass'] = (isset($smtp['smtp_pass']) and !empty($smtp['smtp_pass'])) ? 1 : 0;
$smtp['antispam'] = get_antispam('smtpconf', 0, true);
$tpl->set_ar_out($smtp, 0);
$design->footer();
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:smtpconf.php

示例10: db_fetch_object

    if ($menu->getA(3) == 'z') {
        $row = db_fetch_object(db_query("SELECT txt,erst FROM prefix_posts WHERE id = " . $menu->getE(3)));
        $xtext = '[quote=' . escape_nickname($row->erst) . ']' . "\n" . $row->txt . "\n[/quote]";
    }
    if ($menu->getA(3) == 'f') {
        $r = db_fetch_assoc(db_query("SELECT id,text,title FROM prefix_faqs WHERE id = " . $menu->getE(3)));
        $xtext = 'FAQ Artikel: [url=index.php?faqs-s' . $r['id'] . '#FAQ' . $r['id'] . ']' . $r['title'] . '[/url]' . "\n" . unescape($r['text']);
    }
    if (isset($_POST['priview'])) {
        $tpl->set_out('txt', bbcode(unescape($txt)), 0);
    }
    if (empty($txt)) {
        $txt = $xtext;
    }
    $tpl = new tpl('forum/newpost');
    $ar = array('txt' => escape_for_fields(unescape($txt)), 'tid' => $tid, 'name' => $name, 'SMILIES' => getsmilies(), 'antispam' => get_antispam('newpost', 1));
    $tpl->set_ar_out($ar, 1);
    $erg = db_query('SELECT erst, txt FROM `prefix_posts` WHERE tid = "' . $tid . '" ORDER BY time DESC LIMIT 0,5');
    while ($row = db_fetch_assoc($erg)) {
        $row['txt'] = bbcode($row['txt']);
        $tpl->set_ar_out($row, 2);
    }
    $tpl->out(3);
} else {
    # save post
    $_SESSION['klicktime'] = $dppk_time;
    $design = new design($title, $hmenu, 1);
    $design->header();
    if (loggedin()) {
        $uid = $_SESSION['authid'];
        $erst = escape($_SESSION['authname'], 'string');
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:new_post.php

示例11: vormerken

    # als upcoming war vormerken (kategorie 1)
    db_query("INSERT INTO prefix_wars (datime,`status`,gegner,tag,page,mail,icq,wo,tid,`mod`,game,mtyp,land,txt) VALUES ('" . $datum . "','1','" . $clanname . "','" . $clantag . "','" . $clanpage . "','" . $mailaddy . "','" . $icqnumber . "','" . $meetingplace . "','" . $squad . "','" . $xonx . "','" . $game . "','" . $matchtype . "','" . $clancountry . "','" . $message . "')");
    # pm an den leader
    sendpm($_SESSION['authid'], $row['mod1'], 'Fightus Anfrage', $txt, -1);
    # Wenn Co Leader != Leader
    if ($row['mod1'] != $row['mod2']) {
        sendpm($_SESSION['authid'], $row['mod2'], 'Fightus Anfrage', $txt, -1);
    }
    if ($row['mod3'] != $row['mod2'] and $row['mod1'] != $row['mod3']) {
        sendpm($_SESSION['authid'], $row['mod3'], 'Fightus Anfrage', $txt, -1);
    }
    # informieren
    echo sprintf($lang['leaderofxalert'], $row['name']);
} else {
    $clancountry = arlistee($clancountry, get_nationality_array());
    $squad = '<option value="0">choose</option>';
    $squad .= dblistee($squad, "SELECT id,name FROM prefix_groups WHERE show_fightus = 1 ORDER BY pos");
    if (empty($meetingtime)) {
        $meetingtime = date('d.m.Y - H:i:s');
    }
    $tpl = new tpl('fightus.htm');
    foreach ($far as $v) {
        if ($x > 0 and empty($_POST[$v])) {
            echo 'missing: ' . $lang[$v] . '<br />';
        }
        $tpl->set($v, ${$v});
    }
    $tpl->set('ANTISPAM', get_antispam('fightus', 120));
    $tpl->out(0);
}
$design->footer();
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:fightus.php

示例12: array

}
$arm = array();
for ($i = 0; $i < 60; $i++) {
    $arm[$i] = $i;
}
$ars = array();
for ($i = 0; $i < 24; $i++) {
    $ars[$i] = $i;
}
$tpl = new tpl('kalender.htm', 1);
$limit = 30;
// Limit
$page = $menu->getA(1) == 'p' ? $menu->getE(1) : 1;
$MPL = db_make_sites($page, '', $limit, "admin.php?kalender", 'kalender');
$anfang = ($page - 1) * $limit;
$aus = array('AKTION' => $Faktion, 'MPL' => $MPL, 'EID' => $Fid, 'TITLE' => $Ftitle, 'TEXT' => $Ftext, 'stunden' => arliste($Fhours, $ars, $tpl, 'stunden'), 'minuten' => arliste($Fmins, $arm, $tpl, 'minuten'), 'zende' => $Fzende, 'begind' => $Fbegind, 'recht' => dbliste($Frecht, $tpl, 'recht', "SELECT `id`,`name` FROM `prefix_grundrechte` ORDER BY `id` DESC"), 'FSUB' => $Fsub, 'ANTISPAM' => get_antispam('adminuser_action', 0, true));
$tpl->set_ar_out($aus, 0);
if (!isset($_GET['edit'])) {
    $tpl->out(1);
} else {
    $tpl->out(2);
}
$tpl->out(3);
unset($aus);
// Liste
$result = db_query('SELECT `gid`,`id`,`title`,`time` FROM `prefix_kalender` ORDER BY `time` DESC LIMIT ' . $anfang . ',' . $limit);
while ($row = db_fetch_assoc($result)) {
    $aus = array('ID' => $row['id'], 'DATE' => date('d.m.Y', $row['time']), 'TIME' => date('H:i', $row['time']), 'TITLE' => $row['title'], 'GID' => $row['gid']);
    $tpl->set_ar_out($aus, 4);
}
$tpl->set_ar_out(array('MPL' => $MPL), 5);
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:kalender.php

示例13: design

        } else {
            echo 'antihack';
        }
        exit;
    }
}
$title = $allgAr['title'] . ' :: Shoutbox ' . $lang['archiv'];
$hmenu = 'Shoutbox ' . $lang['archiv'];
$design = new design($title, $hmenu);
$design->header();
$data = array();
$page = $menu->getA(1) == 'p' ? $menu->getE(1) : 1;
$limit = $allgAr['sb_archive_limit'];
$mpl = db_make_sites($page, '', $limit, 'index.php?shoutbox', 'shoutbox');
$erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT ' . ($page - 1) * $limit . ', ' . $limit);
while ($row = db_fetch_assoc($erg)) {
    $row['textarea'] = BBCode_onlySmileys($row['textarea'], $allgAr['sb_maxwordlength']);
    $time = strtotime($row['time']);
    if ($time != 0) {
        $dateformat = date('d.m.Y') == date('d.m.Y', $time) ? 'H:i' : 'd.m. - H:i';
        $row['time'] = date($dateformat, $time);
    } else {
        $row['time'] = 0;
    }
    $data[$row['id']] = $row;
}
require_once 'include/includes/class/iSmarty.php';
$smarty = new iSmarty();
$smarty->assign(array('data' => $data, 'lang' => $lang, 'siteadmin' => is_siteadmin(), 'antihack' => get_antispam('shoutboxarchive', 0, true), 'multipages' => $mpl));
$smarty->display('shoutbox.tpl');
$design->footer();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:shoutbox.php

示例14: defined

#   Support: www.ilch.de
defined('main') or die('no direct access');
if ($forum_rights['mods'] == FALSE) {
    $forum_failure[] = 'Keine Berechtigung dieses Forum zu moderiren';
    check_forum_failure($forum_failure);
}
$title = $allgAr['title'] . ' :: Forum :: ' . $aktForumRow['kat'] . ' :: ' . $aktForumRow['name'] . ' :: ' . $aktTopicRow['name'] . ' :: Beitrag l&ouml;schen';
$hmenu = $extented_forum_menu . '<a class="smalfont" href="index.php?forum">Forum</a><b> &raquo; </b><a class="smalfont" href="index.php?forum-showcat-' . $aktForumRow['cid'] . '">' . $aktForumRow['kat'] . '</a><b> &raquo; </b><a class="smalfont" href="index.php?forum-showtopics-' . $fid . '">' . $aktForumRow['name'] . '</a><b> &raquo; </b>';
$hmenu .= '<a class="smalfont" href="index.php?forum-showposts-' . $tid . '">' . $aktTopicRow['name'] . '</a> <b> &raquo; </b>Beitrag l&ouml;schen' . $extented_forum_menu_sufix;
$design = new design($title, $hmenu, 1);
$design->header();
$postid = escape($menu->get(3), 'integer');
$csrfCheck = chk_antispam('forum_del_post', true);
if (empty($_POST['delete']) || !$csrfCheck) {
    $tpl = new tpl('forum/del_post');
    $tpl->set_ar(array('tid' => $tid, 'get3' => $postid, 'antispam' => get_antispam('forum_del_post', 0, true)));
    $tpl->out(0);
} elseif ($csrfCheck) {
    $erstid = @db_result(db_query("SELECT erstid FROM `prefix_posts` WHERE id = " . $postid . " LIMIT 1"), 0);
    if ($erstid > 0) {
        db_query("UPDATE `prefix_user` SET posts = posts - 1 WHERE id = {$erstid}");
    }
    db_query("DELETE FROM `prefix_posts` WHERE id = " . $postid . " LIMIT 1");
    $erg = db_query("SELECT MAX(id) FROM prefix_posts WHERE tid = " . $tid);
    $max = db_result($erg, 0);
    db_query("UPDATE `prefix_topics` SET last_post_id = " . $max . ", `rep` = `rep` - 1 WHERE id = " . $tid);
    db_query("UPDATE `prefix_forums` SET last_post_id = " . $max . ", posts = posts - 1 WHERE id = " . $fid);
    $tpl = new tpl('forum/del_post');
    $tpl->set_out('tid', $tid, 1);
}
$design->footer();
开发者ID:kveldscholten,项目名称:Ilch-1.1,代码行数:31,代码来源:del_post.php

示例15: design

}
$design = new design('Ilch Admin-Control-Panel :: Captcha', '', 2);
$design->header();
if (@(!(include "include/includes/func/captcha/settings.php"))) {
    $imagewidth = 170;
    $imageheight = 50;
    $fontsize = 24;
    $bgintensity = 100;
    $bgfonttype = 3;
    $scratchamount = 100;
    $scratches = 0;
    $passphraselenght = 4;
    $addagrid = 1;
    $addhorizontallines = 0;
    $useRandomColors = 1;
    $minsize = 20;
    $maxsize = 30;
    $angle = 45;
}
$tpl = new tpl('captcha', 1);
$useRandomColorsja = $useRandomColors == 1 ? 'checked' : '';
$useRandomColorsno = $useRandomColors == 1 ? '' : 'checked';
$addagridja = $addagrid == 1 ? 'checked' : '';
$addagridno = $addagrid == 1 ? '' : 'checked';
$addhorizontallinesja = $addhorizontallines == 1 ? 'checked' : '';
$addhorizontallinesno = $addhorizontallines == 1 ? '' : 'checked';
$scratchesja = $scratches == 1 ? 'checked' : '';
$scratchesno = $scratches == 1 ? '' : 'checked';
$r = array('imagewidth' => $imagewidth, 'imageheight' => $imageheight, 'fontsize' => $fontsize, 'bgintensity' => $bgintensity, 'bgfonttype' => $bgfonttype, 'scratchamount' => $scratchamount, 'scratches' => $scratches, 'passphraselenght' => $passphraselenght, 'minsize' => $minsize, 'maxsize' => $maxsize, 'angle' => $angle, 'useRandomColorsja' => $useRandomColorsja, 'useRandomColorsno' => $useRandomColorsno, 'addagridja' => $addagridja, 'addagridno' => $addagridno, 'addhorizontallinesja' => $addhorizontallinesja, 'addhorizontallinesno' => $addhorizontallinesno, 'scratchesja' => $scratchesja, 'scratchesno' => $scratchesno, 'ANTISPAM' => get_antispam('adminuser_action', 0, true));
$tpl->set_ar_out($r, 0);
$design->footer();
开发者ID:rjdesign,项目名称:Ilch-1.2,代码行数:31,代码来源:captcha.php


注:本文中的get_antispam函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。