Beispiel #1
0
<?php

error_reporting(0);
$hu = 'shouji';
@(require_once '../header.php');
if (isset($_POST["action"])) {
    if ("search" == $_POST["action"]) {
        require 'function.php';
        $phone = isset($_POST["phone"]) ? $_POST["phone"] : die("请返回");
        $result = "你查询的手机号码<font color=red>" . $phone . "</font>属于<font color=red>" . getphone($phone) . "</font>";
    }
}
?>
<div class="main">
  <div class="box">
    <div id="c">
      <h1>查询手机号码归属地</h1>
      <div class="box1" style="text-align:center;"> 
      <form action="" method="POST">
          <span class="info3" > 请输入要查询的手机号:
           <input name="phone" type="text" id="phone" class="input" size="40" url="true" value="<?php 
echo $_POST['phone'];
?>
"/><input name="action" type="hidden" value="search">
            <input name="btnS" class="but" type="submit" value="开始查询"  id="sub" />
            </form>
          </span><div class="t" id="seo_result"><?php 
echo $result;
?>
</div>
          <div style="width:100%">
Beispiel #2
0
function ajax_submitcallno()
{
    $uid = MooGetGPC('uid', 'integer', 'G');
    $callno = trim(MooGetGPC('callno', 'string', 'G'));
    if (empty($uid)) {
        echo 'no';
        exit;
    }
    if (!empty($callno)) {
        $regex = "/^1[3|5]\\d{9}\$|^18\\d{9}\$/";
        $regph = "/^(\\d{3}-)(\\d{8})\$|^(\\d{4}-)(\\d{7})\$|^\\d{8}\$|^\\d{7}\$/";
        if (!preg_match($regex, $callno) && !preg_match($regph, $callno)) {
            echo 'no';
            exit;
        }
    }
    $index_search = 'members_women members_man';
    $cl = searchApi($index_search);
    $cond = array();
    $cond[] = array('telphone', $callno, false);
    $rs2 = $cl->getResultOfReset($cond);
    $total = 0;
    if (isset($rs2["total_found"])) {
        $total = $rs2["total_found"];
    }
    if (!empty($callno)) {
        $result = $GLOBALS['_MooClass']['MooMySQL']->getOne("select uid from {$GLOBALS['dbTablePre']}members_base  where callno='{$callno}'");
        if (!empty($result['uid'])) {
            exit("yes");
        }
    }
    if ($GLOBALS['_MooClass']['MooMySQL']->query("UPDATE {$GLOBALS['dbTablePre']}members_base SET callno='{$callno}' WHERE uid='{$uid}'")) {
        serverlog(2, "{$GLOBALS['dbTablePre']}members_base", "{$GLOBALS['adminid']}号客服{$GLOBALS['username']}将会员{$uid}的备用号码修改为{$callno}", $GLOBALS['adminid'], $uid);
        echo iconv("gb2312", "UTF-8", getphone($callno));
        exit;
        //输出号码所在地
    }
}
Beispiel #3
0
<?php 
        if (strstr(iconv("gb2312", "UTF-8", getphone($tel2)), '合肥')) {
            ?>
9<?php 
            echo $tel2;
        } else {
            ?>
90<?php 
            echo $tel2;
        }
        ?>
</option>
</select>
<?php 
    } else {
        if (strstr(iconv("gb2312", "UTF-8", getphone($tel)), '合肥')) {
            ?>
9<?php 
            echo $tel;
        } else {
            ?>
90<?php 
            echo $tel;
        }
    }
    ?>
</span>&nbsp;&nbsp;&nbsp;<span id="callbtn"><input type="button" value="拨 打" onclick="callcenter()"/></span><div style="float:right; width:30px; position:absolute;top:2px; right:0px;"><a href="javascript:contact_hideDiv();" style=" color:#CCC">关闭</a></div></div>



<?php