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


PHP option::xget方法代码示例

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


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

示例1: fyy_assistant_delus

function fyy_assistant_delus()
{
    $key = option::xget('fyy_assistant', 'key');
    foreach ($_POST['user'] as $uid) {
        $usname = $m->once_fetch_array("SELECT `name` FROM `" . DB_NAME . "`.`" . DB_PREFIX . "users` WHERE `id` = '{$uid}'");
        $post = new wcurl("{$murl}?pub_plugin=fyy_massistant&delus&key={$key}&stname=" . SYSTEM_NAME . "&usname={$usname}");
        $a = $post->exec();
    }
}
开发者ID:chajianku,项目名称:fyy_assistant,代码行数:9,代码来源:fyy_assistant.php

示例2: s_check_logincheck

function s_check_logincheck()
{
    if (option::xget("s_check", "login_check") != 0) {
        $geetest = new GeetestLib();
        $geetest->set_privatekey("2d5be5ba4207f11d33f7ae5e14a1c33e");
        if (isset($_POST['geetest_challenge']) && isset($_POST['geetest_validate']) && isset($_POST['geetest_seccode'])) {
            $result = $geetest->validate($_POST['geetest_challenge'], $_POST['geetest_validate'], $_POST['geetest_seccode']);
        }
        if ($result == TRUE) {
        } else {
            if ($result == FALSE) {
                ReDirect("index.php?mod=login&error_msg=" . urlencode('登陆失败,请拖动滑块完成验证'));
                die;
            } else {
                ReDirect("index.php?mod=login&error_msg=" . urlencode('登陆失败,请拖动滑块完成验证'));
                die;
            }
        }
    }
}
开发者ID:chajianku,项目名称:s_check,代码行数:20,代码来源:s_check.php

示例3: reg_supervise_logincheck

function reg_supervise_logincheck()
{
    require_once 'reg_supervise_jy.php';
    $geetest = new Geetest();
    $geetest->set_privatekey(option::xget("reg_supervise", "geetest_key"));
    session_start();
    if (isset($_POST['geetest_challenge']) && isset($_POST['geetest_validate']) && isset($_POST['geetest_seccode'])) {
        $result = $geetest->validate($_POST['geetest_challenge'], $_POST['geetest_validate'], $_POST['geetest_seccode']);
        if ($result !== TRUE) {
            msg('登录失败:验证错误');
        }
    } elseif (strtolower($_POST['bf']) !== $_SESSION["reg_supervise_gg"]) {
        msg('登录失败:验证错误');
    }
}
开发者ID:chajianku,项目名称:reg_supervise,代码行数:15,代码来源:reg_supervise.php

示例4: elseif

         $stname = $stname['stname'];
         $m->query("DELETE FROM `" . DB_NAME . "`.`" . DB_PREFIX . "allinfo` WHERE `usname` = '{$usname}' AND `stname` = '{$stname}'");
         echo '<div class="alert alert-success">删除成功!</div>';
     } elseif ($a == '4042') {
         echo '<div class="alert alert-danger">失败:无此用户!</div>';
     } else {
         echo '<div class="alert alert-danger">失败:与该站点连接失败!</div>';
     }
 } elseif (isset($_GET['del4'])) {
     if (!empty($_REQUEST['sleep'])) {
         $sleep = $_REQUEST['sleep'];
     } else {
         $sleep = 0.15;
     }
     global $m;
     $key = option::xget('fyy_massistant', 'key');
     $result = $m->query("SELECT `bduss`,`bdname` FROM `" . DB_NAME . "`.`" . DB_PREFIX . "allinfo`");
     $allrow = $result->num_rows;
     $die = 0;
     $onrow = 0;
     while ($onrow < $allrow) {
         $thresult = $m->fetch_array($result);
         $bduss = $thresult['bduss'];
         $bdid = getBaiduId($bduss);
         sleep($sleep);
         if (empty($bdid)) {
             $stname = $m->once_fetch_array("SELECT `stname` FROM `" . DB_NAME . "`.`" . DB_PREFIX . "allinfo` WHERE `bduss`='{$bduss}'");
             $stname = $stname['stname'];
             $sturl = $m->once_fetch_array("SELECT `sturl` FROM `" . DB_NAME . "`.`" . DB_PREFIX . "fyy_massistant_url` WHERE `stname`='{$stname}'");
             $sturl = $sturl['sturl'];
             $bdname = $thresult['bdname'];
开发者ID:chajianku,项目名称:fyy_massistant,代码行数:31,代码来源:fyy_massistant_setting.php

示例5:

</tr>
<tr>
<td>
极验id
</td>
<td>
<input type="text" name="geetest_id" value="<?php 
echo option::xget('reg_supervise', 'geetest_id');
?>
"
class="form-control">

</td>
</tr>
<tr>
<td>
极验key
</td>
<td>
<input type="text" name="geetest_key" value="<?php 
echo option::xget('reg_supervise', 'geetest_key');
?>
"
class="form-control">
</td>
</tr>
</table>
</div>
<input type="submit" class="btn btn-primary" value="提交更改">
</form>
开发者ID:chajianku,项目名称:reg_supervise,代码行数:30,代码来源:reg_supervise_setting.php

示例6:

> 关闭注册验证
</td>
</tr>
<tr>
<td>登陆验证<br/></td><td>
<input type="radio" name="login_check" value="1" <?php 
if (option::xget('s_check', 'login_check') == 1) {
    echo 'checked';
}
?>
> 嵌入式验证模块<br/>
<input type="radio" name="login_check" value="2" <?php 
if (option::xget('s_check', 'login_check') == 2) {
    echo 'checked';
}
?>
> 浮动式验证模块<br/>
<input type="radio" name="login_check" value="0" <?php 
if (option::xget('s_check', 'login_check') == 0) {
    echo 'checked';
}
?>
> 关闭登陆验证<br/>
</td>
</tr>
</tbody>
</table>
</div>
<input type="submit" class="btn btn-primary" value="提交更改">
</form>
开发者ID:chajianku,项目名称:s_check,代码行数:30,代码来源:s_check_setting.php

示例7: loadhead

        $usname = $_REQUEST['usname'];
        $one = $m->once_fetch_array("SELECT `t`,`id` FROM  `" . DB_NAME . "`.`" . DB_PREFIX . "users` WHERE `name` = '{$usname}'");
        if (!empty($one)) {
            echo 'done2';
            $uid = $one['id'];
            $t = $one['t'];
            $m->query("DELETE FROM `" . DB_NAME . "`.`" . DB_PREFIX . "baiduid` WHERE `uid` = '{$uid}'");
            $m->query("DELETE FROM `" . DB_NAME . "`.`" . DB_PREFIX . $t . "` WHERE `uid` = '{$uid}'");
        } else {
            echo '4042';
        }
        die;
    }
} else {
    loadhead();
    $murl = option::xget('fyy_assistant', 'murl');
    ?>
<div class="panel panel-primary" style="margin:5% 15% 5% 15%;">
	<div class="panel-heading">
		<h3 class="panel-title">忘记站点</h3>
	</div>   
	<div style="margin:0% 5% 5% 5%;"><h4>输入任意一个即可</h4>
		<form name="form" method="post" action="<?php 
    echo $murl;
    ?>
?pub_plugin=fyy_massistant&search&">
			<table class="table table-striped">
				<thead>
					<tr>
						<th style="width:30%"></th>
						<th style="width:70%"></th>
开发者ID:chajianku,项目名称:fyy_assistant,代码行数:31,代码来源:fyy_assistant_public.php


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