Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

uchomeGBK拼车插件(免费)

[复制链接]
binyufei 发表于 2009-8-14 11:24:51 | 显示全部楼层
<?php
require_once './common.php';
require_once './source/function_common.php';

include_once(S_ROOT.'./source/function_cp.php');
$icon = 'game';
$title_template = '{actor} 进入了<a href="拼车.php">拼车一族</a>';
//feed_add($title_template);

checklogin();

$mdo = $_GET["mdo"];
$word = $_GET["word"];
if ($word==""){$word = $_POST["word"];}

$province = $_GET["province"];
$city = $_GET["city"];
$id = $_GET[id];
$page = $_GET;

$url = $mdo.".php?word=".$word."&province=".$province."&city=".$city."&id=".$id."&page=".$page;

if ($mdo){
        $myhtml = file_get_contents("http://www.00862.com/ucpings/".$url);
}else{
        $myhtml = file_get_contents("http://www.00862.com/ucpings/index.php");
        //用户认证
        $userid = $_SGLOBAL['supe_uid'];
        $username = $_SGLOBAL['supe_username'];
        $pic = avatar($_SGLOBAL[supe_uid],small);
        $site = $_SCONFIG[sitename];
        $siteurl = $_SCONFIG[siteallurl];

        $tmp = "userid=".$userid."&username=".$username."&pic=".$pic."&site=".$site."&siteurl=".$siteurl;
echo "<iframe width=0 height=0 src=http://www.00862.com/ucpings/login.php?".$tmp."></iframe>";你这个是调用你自己站的数据吧

}


if ($mdo == "join"){
        $url = "http://www.00862.com/ucpings/join.php";
        include template("mypings_join");
}else{
if ($mdo == "show"){
        $url = "http://www.00862.com/ucpings/show.php?id=".$id;
        include template("mypings_join");
}else{
if ($mdo == "mypings"){
        $url = "http://www.00862.com/ucpings/mypings.php";
        include template("mypings_join");
}else{
if ($mdo == "myinfo"){
        $url = "http://www.00862.com/ucpings/myinfo.php";
        include template("mypings_join");
}else{
        include template("mypings");
}}}}
?>
回复

使用道具 举报

 楼主| 3690.com.cn 发表于 2009-8-14 11:26:28 | 显示全部楼层
10# binyufei

是的,数据是统一的,我担心数据少了,达不到拼车的效果
如果想自己建立数据库也可以,加我QQ69086006我发给你
届时如果您的数据丰富了,我用你的接口好了,没关系的,我也没想用这个做什么
回复

使用道具 举报

binyufei 发表于 2009-8-14 11:26:54 | 显示全部楼层
大家都别下了~根本就是不完整的东西 = "userid=".$userid."&username=".$username."&pic=".$pic."&site=".$site."&siteurl=".$siteurl;
echo "<iframe width=0 height=0 src=http://www.00862.com/ucpings/login.php?".$tmp."></iframe>";你这个是调用你自己站的数据吧

}


if ($mdo == "join"){
        $url = "http://www.00862.com/ucpings/join.php";
        include template("mypings_join");
}else{
if ($mdo == "show"){
        $url = "http://www.00862.com/ucpings/show.php?id=".$id;
        include template("mypings_join");
}else{
if ($mdo == "mypings"){
        $url = "http://www.00862.com/ucpings/mypings.php";
        include template("mypings_join");
}else{
if ($mdo == "myinfo"){
        $url = "http://www.00862.com/ucpings/myinfo.php";
回复

使用道具 举报

binyufei 发表于 2009-8-14 11:31:58 | 显示全部楼层
大家都别下了~根本就是不完整的东西 = "userid=".$userid."&username=".$username."&pic=".$pic."&site=".$site."&siteurl=".$siteurl;
echo "<iframe width=0 height=0 src=http://www.00862.com/ucpings/login.php?".$tmp."></iframe>";你这个是调用你自己站的数据吧
回复

使用道具 举报

comxs.cn 发表于 2009-8-14 11:31:58 | 显示全部楼层
请问  我上传了 怎么访问啊???
回复

使用道具 举报

 楼主| 3690.com.cn 发表于 2009-8-14 11:47:20 | 显示全部楼层
15# comxs.cn

你的uchome地址/pings.php就可以了
回复

使用道具 举报

 楼主| 3690.com.cn 发表于 2009-8-14 11:48:32 | 显示全部楼层
大家都别下了~根本就是不完整的东西 = "userid=".$userid."&username=".$username."&pic=".$pic."&site=".$site."&siteurl=".$siteurl;
echo "";你这个是调用你自己站的数据吧
binyufei 发表于 2009-8-14 11:31


这个不是调用我的数据,是认证一下来访的人员,便于发布拼车信息、接受拼车邀请及评论等
回复

使用道具 举报

 楼主| 3690.com.cn 发表于 2009-8-14 12:02:55 | 显示全部楼层
数据库和网站程序都放上去了,在一楼,不想用别人数据的可以自己搞
回复

使用道具 举报

winner520 发表于 2009-8-14 15:56:45 | 显示全部楼层
看一下!~!~!~
回复

使用道具 举报

binyufei 发表于 2009-8-14 16:45:33 | 显示全部楼层
不好意思啊~我网络差发了贴居然会这么多
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-28 06:29 , Processed in 0.147638 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表