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


PHP VFilter::process方法代码示例

本文整理汇总了PHP中VFilter::process方法的典型用法代码示例。如果您正苦于以下问题:PHP VFilter::process方法的具体用法?PHP VFilter::process怎么用?PHP VFilter::process使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VFilter的用法示例。


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

示例1: VFilter

require $config['BASE_DIR'] . '/classes/validation.class.php';
$filter = new VFilter();
$subject = $filter->get('s', 'STRING', 'GET');
$compose = array('receiver' => '', 'friend' => '', 'subject' => $subject, 'body' => '', 'save_outbox' => 1, 'send_self' => 0);
if (isset($query['1']) && $query['1'] != '') {
    $valid = new VValidation();
    if ($valid->usernameExists($query['1'])) {
        $compose['receiver'] = $query['1'];
    }
}
if (isset($_POST['send_mail'])) {
    $valid = new VValidation();
    $receiver = $filter->get('receiver');
    $friend = $filter->get('receiver_friend');
    $subject = $filter->get('subject');
    $body = $filter->process(trim($_POST['body']), array('a'), array('href'));
    if ($receiver == '') {
        if ($friend != '') {
            if (!$valid->usernameExists($friend)) {
                $errors[] = translate('mail.compose_user_invalid', $config['site_name']);
            } else {
                $sql = "SELECT UID FROM signup WHERE username = '" . mysql_real_escape_string($friend) . "' LIMIT 1";
                $rs = $conn->execute($sql);
                $fuid = intval($rs->fields['UID']);
                $sql = "SELECT UID FROM friends WHERE UID = " . $uid . " AND FID = " . $fuid . " AND status = 'Confirmed' LIMIT 1";
                $conn->execute($sql);
                if ($conn->Affected_Rows() === 1) {
                    $receiver = $friend;
                    $compose['friend'] = $friend;
                } else {
                    $errors[] = translate('mail.compose_user_missing', htmlspecialchars($friend, ENT_QUOTES, 'UTF-8'));
开发者ID:ecr007,项目名称:pr0n,代码行数:31,代码来源:compose.php

示例2: die

<?php

defined('_VALID') or die('Restricted Access!');
Auth::checkAdmin();
$player = array('profile' => '', 'autorun' => 'true', 'buffertime' => 5, 'replay' => 1, 'related' => 1, 'related_content' => 'related', 'share' => 1, 'mail' => 1, 'embed' => 1, 'text_adv' => 1, 'text_adv_type' => 'global', 'text_adv_delay' => 5, 'video_adv' => 1, 'video_adv_type' => 'global', 'video_adv_position' => 'b', 'skin' => 'default', 'mail_color' => '0x999999', 'related_color' => '0x999999', 'replay_color' => '0x999999', 'embed_color' => '0x999999', 'copy_color' => '0x999999', 'time_color' => '0x999999', 'share_color' => '0x999999', 'adv_link_color' => '0x999999', 'adv_nav_color' => '0x999999', 'adv_title_color' => '0x999999', 'adv_body_color' => '0x999999');
if (isset($_POST['submit_add'])) {
    $filter = new VFilter();
    $profile = $filter->process($_POST['profile']);
    $autorun = $filter->process($_POST['autorun']);
    $buffertime = intval($_POST['buffertime']);
    $buttons = intval($_POST['buttons']);
    $replay = intval($_POST['replay']);
    $related = intval($_POST['related']);
    $related_content = $filter->process($_POST['related_content']);
    $share = intval($_POST['share']);
    $mail = intval($_POST['mail']);
    $embed = intval($_POST['embed']);
    $text_adv = intval($_POST['text_adv']);
    $text_adv_type = $filter->process($_POST['text_adv_type']);
    $text_adv_delay = intval($_POST['text_adv_delay']);
    $video_adv = intval($_POST['video_adv']);
    $video_adv_type = $filter->process($_POST['video_adv_type']);
    $video_adv_position = $filter->process($_POST['video_adv_position']);
    $skin = $filter->process($_POST['skin']);
    $mail_color = $filter->process($_POST['mail_color']);
    $related_color = $filter->process($_POST['related_color']);
    $replay_color = $filter->process($_POST['replay_color']);
    $copy_color = $filter->process($_POST['copy_color']);
    $embed_color = $filter->process($_POST['embed_color']);
    $time_color = $filter->process($_POST['time_color']);
    $share_color = $filter->process($_POST['share_color']);
开发者ID:humor-zo,项目名称:chaofan,代码行数:31,代码来源:playeradd.php


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