} } else { if ($ordertype == "ispass") { if ($isdesc == "desc") { $orderbylist = "<div class='Time_'><a href='#' class='action2' onclick=\"setorder('ispass')\"><b>审核中(" . $xcount . ")</b></a></div><div class='Time1_'><a href='#' onclick=\"setorder('createtime')\">发布时间</a></div><div class='Time1_'><a class='' href='#' onclick=\"setorder('hot_count')\">收藏</a></div><div class='Time1_'><a href='#' onclick=\"setorder('clikc_count')\">浏览</a></div>"; } else { $orderbylist = "<div class='Time_'><a href='#' class='action' onclick=\"setorder('ispass')\"><b>审核中(" . $xcount . ")</b></a></div><div class='Time1_'><a href='#' onclick=\"setorder('createtime')\">发布时间</a></div><div class='Time1_'><a href='#' onclick=\"setorder('hot_count')\">收藏</a></div><div class='Time1_'><a href='#' onclick=\"setorder('clikc_count')\">浏览</a></div>"; } } } } } } if ($_REQUEST["keys"] != "") { $keys = preg_replace("/(\\s|\\ \\;| | )/", "", $_REQUEST["keys"]); $keys = replaceHtmlAndJs($keys); $keys = unescape($keys); $sqlwhere .= " and(title like '%" . $keys . "%' or title1 like '%" . $keys . "%') "; } if ($pk == 1) { $sql = "select * from project where project.fid = " . $_SESSION['verydeals_id'] . " and project.pro_kind = " . $pk . " " . $sqlwhere . " "; } else { $sql = "select project.*,industry_type.`name` as 'industry_type_name' from project,industry_type where project.industry_type = industry_type.id and project.fid = " . $_SESSION['verydeals_id'] . " and project.pro_kind = " . $pk . " " . $sqlwhere . " "; } $extra_order = $ordertype == "ispass" ? ",project.createtime desc" : ""; if ($_REQUEST["m"] == "re") { $orderby = " order by ispass asc,createtime desc"; } else { $orderby = " order by project." . $ordertype . " " . $isdesc . " " . $extra_order; } $sql .= $orderby;
} else { $orderbylist = "<div class='Time_'><a href='#' onclick=\"setorder('price')\">交易报价</a></div><div class='Time_'><a href='#' onclick=\"setorder('createtime')\">发布时间</a></div>"; } } } if ($subscription_pro_citys != "") { $orderby = " order by " . $ordertype . " " . $isdesc . " "; $my_sql .= $orderby; $ps = 6; $rs = mysql_query($my_sql); $allcount = mysql_num_rows($rs); $sqlpage = getlimitsql($my_sql, $ps); $yeshu = ceil($allcount / $ps); $dt = mysql_query($sqlpage, $conn); while ($row = mysql_fetch_array($dt)) { $describe_content = replaceHtmlAndJs($row["describe_content"]); $describe_content = preg_replace("/(\\s|\\ \\;| | )/", "", $describe_content); $describe_content = strlen($describe_content) > 230 ? strMax($describe_content, 230) : $describe_content; $createtime = date('Y-m-d', strtotime($row["createtime"])); $title = $row["title"]; $mail_content .= "<p><b>" . $title . "</b> " . "<br><a href='http://" . $_SERVER['HTTP_HOST'] . "/project_details.php?id=" . $row["id"] . "'>" . $describe_content . "</a></p>"; $rs = mysql_fetch_array(mysql_query("select * from pro_citys where id=" . $row['pro_citys'] . ";")); $xpro_citysname = $rs["name"]; $rs = mysql_fetch_array(mysql_query("select * from pro_area where id=" . $row['pro_area'] . ";")); $xpro_areaname = $rs["name"]; } if ($sct_investment_type == '') { $sct_investment_type = '全部'; } if ($sct_industry_type == '') { $sct_industry_type = '全部';
$rs = mysql_fetch_array(mysql_query($sql)); $name = $rs["name"]; $birthday = $rs["birthday"]; $fax = $rs["fax"]; $img = trim($rs["img"]) == "" ? "../images/looking.jpg" : trim($rs["img"]); $email = $rs["email"]; $telephone = $rs["telephone"]; $mobile = $rs["mobile"]; $enterprise = $rs["enterprise"]; $trade = $rs["trade"]; $companyname = $rs["companyname"]; $companynum = $rs["companynum"]; $companyaddress = trim($rs["companyaddress"]); $companywebsite = trim($rs["companywebsite"]); $companydesc = $rs["companydesc"]; $companydesc = replaceHtmlAndJs($companydesc); $companydesc = preg_replace("/(\\s|\\ \\;| | )/", "", $companydesc); $jobtitle = $rs["jobtitle"]; $countryid = trim($rs["countryid_com"]) == "" ? "1" : trim($rs["countryid_com"]); $provincialid = trim($rs["provincialid_com"]) == "" ? "1" : $rs["provincialid_com"]; $sex = $rs["sex"] == "" ? "男" : $rs["sex"]; $sexstr = $sex == "男" ? "<label>男</label>" : "<label>女</label>"; $city = $rs["city_com"]; $enterprise = trim($rs["enterprise"]); $trade = trim($rs["trade"]); $industry = $rs["industry"]; $logo = trim($rs["logo"]) == "" ? "images/logo_.jpg" : trim($rs["logo"]); $rsa = mysql_fetch_array(mysql_query("select * from country where id = " . $countryid . ";")); $first_country_name = $rsa["name"]; $sql = mysql_query("select * from industry_type;", $conn); $i == 1;
<div class="leftcontent"> <div id="menu"> <?php include "control/menu.php"; ?> <?php $c = trim($_REQUEST["c"]) == "" || !is_numeric($_REQUEST["c"]) ? "2" : trim($_REQUEST["c"]); $c = replaceHtmlAndJs($c); $c = preg_replace("/(\\s|\\ \\;| | )/", "", $c); $f = replaceHtmlAndJs(trim($_REQUEST["f"])); $f = preg_replace("/(\\s|\\ \\;| | )/", "", $f); $sql1 = mysql_query("select * from article_type where fid=" . $c . " order by id asc;", $conn); $i = 0; while ($rs = mysql_fetch_array($sql1)) { $xcss = ""; if ($f == $rs["id"]) { $xcss = "style='color:#900'"; } if ($i == 0) { $clist .= "<a href='list.php?c=" . $c . "&f=" . $rs["id"] . "' " . $xcss . "><b>" . $rs["name"] . "</b></a>"; } else { $clist .= " <a href='list.php?c=" . $c . "&f=" . $rs["id"] . "' " . $xcss . "><b>" . $rs["name"] . "</b></a>"; } $i++; }
function shenfenzheng($n) { $n = implode('', $n); if (count($n) > 1) { $this->error_msg($n); return false; } function replaceHtmlAndJs($document) { $document = trim($document); if (strlen($document) <= 0) { return $document; } $search = array("'<script[^>]*?>.*?</script>'si", "'<[\\/\\!]*?[^<>]*?>'si", "'([\r\n])[\\s]+'", "'&(quot|#34);'i", "'&(amp|#38);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i", "'…'", "'“'", "'”'", "'‘'", "'’'", "'—'"); $replace = array("", "", "\r\n", "\"", "&", "<", ">", "", "...", "\"", "\"", "'", "'", "-"); return @preg_replace($search, $replace, $document); } $url = "http://qq.ip138.com/idsearch/index.asp?action=idcard&userid=" . $n; $output = file($url); $data = implode("", $output); $info = explode('<td class="tdc3" align="right" width="165">', $data); if (count($info) > 1) { $info_1 = explode('<br/></td></tr></table><script', $info[1]); $info_2 = explode('</td>', $info_1[0]); if (count($info_2) > 5) { $sex = replaceHtmlAndJs($info_2[1]); $birth = replaceHtmlAndJs($info_2[3]); $addr = replaceHtmlAndJs($info_2[5]); $sex = mb_convert_encoding($sex, 'utf-8', 'gbk'); $birth = mb_convert_encoding($birth, 'utf-8', 'gbk'); $addr = mb_convert_encoding($addr, 'utf-8', 'gbk'); $addr = str_replace("提示:该18位身份证号校验位不正确,您可以使用我们的15位升18位的小工具来验证", "\n ●提示:该18位身份证号校验位不正确", $addr); $result = sprintf("查询结果:\n ●性别:%s\n ●出生日期:%s\n ●发证地:%s", trim($sex), trim($birth), trim($addr)); } else { $result = "亲,这个身份证号在宇宙中消失了~"; } } else { $result = "亲,没有数据哦,这个身份证号可能是假的~\n\n●查身份证信息:发送“身份证”+号码,例如“身份证440921198402218888”。"; } return $result; }
case '97': $data_array[$k]['status'] = ''; $data_array[$k]['message'] = '提示: 该帖被管理员或版主屏蔽'; break; case '256': $data_array[$k]['status'] = $iphone_tip; break; case '258': $data_array[$k]['status'] = $android_tip; break; case '260': $data_array[$k]['status'] = $wp_tip; break; } if (empty($_GET['dev']) || $_GET['dev'] != 'iphone') { $data_array[$k]['message'] = replaceHtmlAndJs($data_array[$k]['message']); } } } } elseif ($type == 'thread_list') { $count_sql = $topic->getSql('threadcount'); $count_info = $db->fetch_all($count_sql); $count = $count_info[0]['num']; } elseif ($type == 'top_thread') { $count_sql = $topic->getSql('top_thread_count'); $count_info = $db->fetch_all($count_sql); $count = $count_info[0]['num']; } elseif ($type == 'digest_thread') { $count_sql = $topic->getSql('digest_thread_count'); $count_info = $db->fetch_all($count_sql); $count = $count_info[0]['num'];