code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
defined('IN_IK') or die('Access Denied.');
$skin = 'default';
require_once IKDATA.'/config.inc.php';
$IK_APP['options']['appname'] = '相册'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户空间
$doname = isset($_GET['id']) ? $_GET['id'] : $IK_USER['user']['doname'];
//if(!((int) $userid)>0)
//{
$userdoname = aac('user')->find('user_info',array('doname'=>$doname));
$userid = $userdoname['userid'];
//}
if($userid == 0){
header("Location:... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '用户',
'version' => '1.0',
'desc' => '用户中心,积分,头衔',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'issql' => '1',
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
require_once IKDATA."/config.inc.php";
$skin = 'default'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class hi extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//析构函数
public function __destruct(){
}
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class group extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//显示所有小组分类带分页
function getArrCate($page='1',$prePageNum,$where=''){
$start_limit = !empty($page) ? ($page - 1) * $prePageNum : 0;
$limit = $prePa... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$groupid = intval($_GET['groupid']);
$strGroup = $new['group']->getOneGroup($groupid);
$title = $strGroup['groupname'];
/*
*获取小组全部内容列表
*/
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//RSS输出
$groupid = $_GET['groupid'];
$strGroup = $db->once_fetch_assoc("select * from ".dbprefix."group where groupid='$groupid'");
$arrTopics = $db->fetch_all_assoc("select * from ".dbprefix."group_topics where groupid='$groupid' order by addtime desc limit 30");
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 小组内所有帖子
*/
$groupid = intval($_GET['groupid']);
//判断是否存在这个群组
$isGroup = $db->once_num_rows("select * from ".dbprefix."group where groupid='$groupid'");
if($isGroup == '0') tsNotice("你是坏蛋吗?不是请返回!");
$strGroup = $db->once_fetch_assoc("select * from "... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//小组首页
if($IK_USER['user'] == ''){
//所有小组
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL.tsUrl('group','all',array('page'=>''));
$lstart = $page*20-20;
$arrGroups = $new['group']->findAll('group',null,'isrecommend desc','groupid... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$old = $_GET['old'];
$update = $db->once_fetch_assoc("select * from ".dbprefix."app_update where appname='$app' and old='$old'");
echo $_GET['callback'].'('.json_encode($update).')'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//发布帖子
case "":
$groupid = intval($_GET['groupid']);
//小组数目
$groupNum = $db->once_fetch_assoc("select count(*) from ".dbprefix."group where groupid='$groupid'");
if($groupNum['count(... | PHP |
<?php
//将用户全部绑定到群组
$groupid = $_GET['groupid'];
$arrUser = $db->fetch_all_assoc("select userid from ".dbprefix."user order by userid desc");
foreach($arrUser as $item){
$groupusernum = $db->once_num_rows("select * from ".dbprefix."group_users where userid='".$item['userid']."' and groupid='".$groupid."'");
if($... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 小组管理
*/
switch($ts){
//小组列表
case "list":
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = SITE_URL.'index.php?app=group&ac=admin&mg=group&ts=list&page=';
$lstart = $page*10-10;
$arrGroup = $db->fetch_all_assoc("select * f... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 配置选项
*/
switch($ts){
//基本配置
case "":
$arrOptions = $db->fetch_all_assoc("select * from ".dbprefix."group_options");
foreach($arrOptions as $item){
$strOption[$item['optionname']] = $item['optionvalue'];
}
include template("admin/op... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//我的小组发言
case "topic":
$arrTopics = $db->fetch_all_assoc("select topicid,groupid,userid,title,count_comment,addtime,uptime from ".dbprefix."group_topics where userid='".$IK_USER['user']['userid'... | PHP |
<?php
//插件条件入口
defined('IN_IK') or die('Access Denied.');
echo $app;
echo $plugin;
echo $in;
if(is_file('plugins/'.$app.'/'.$plugin.'/'.$in.'.php')){
require_once('plugins/'.$app.'/'.$plugin.'/'.$in.'.php');
}else{
tsNotice('sorry:no plugin!');
}
//形如这样
//index.php?app=group&ac=plugin&plugin=qq&in... | PHP |
<?php
//编辑小组信息
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$groupid = intval($_GET['groupid']);
//小组信息
$strGroup = $new['group']->getOneGroup($groupid);
//判断该用户是否有权限编辑
if($userid != $strGroup['userid']) header("Location: ".SITE_URL);
switch($ts){
//... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
case "":
/*
1、Email验证 500积分
2、上传头像 500积分
3、每天发布一个帖子 20积分
4、每天回复5个帖子 20积分
5、邀请好友并通过Email验证 送1000积分 并送1TB=1RMB
*/
//是否Email验证
$strUser = $db->once_fetch_assoc("select ... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "two":
$oneid = $_GET['oneid'];
$arrCate = $db->fetch_all_assoc("select * from ".dbprefix."group_cates where catereferid='$oneid'");
if($arrCate){
echo '<select id="twoid" name="twoid" class="txt">';
echo '<option value="0">请选择... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//活跃会员
$arrHotUser = aac('user')->getHotUser(16);
//最新会员
$arrNewUser = aac('user')->getNewUser(8);
//推荐小组列表
$arrRecommendGroup = $new['group']->getRecommendGroup(16);
//最新10个小组
$arrNewGroup = $new['group']->getNewGroup(10);
//最新帖子
$arrNewTopics = $db... | PHP |
<?php
//帖子标签
defined('IN_IK') or die('Access Denied.');
$tagname = urldecode(trim($_GET['tagname']));
$tagid = aac('tag')->getTagId(t($tagname));
$strTag = $db->once_fetch_assoc("select * from ".dbprefix."tag where tagid='$tagid'");
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = SITE_... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 小组话题内容页
*/
$topicid = intval($_GET['id']);
$strTopic = $new['group']->getOneTopic($topicid);
//帖子分类
if($strTopic['typeid'] != '0'){
$strTopic['type'] = $db->once_fetch_assoc("select * from ".dbprefix."group_topics_type where typeid='".$strTopic... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch ($ts) {
//加入该小组
case "join":
$groupid = intval($_GET['groupid']);
//先统计用户有多少个小组了,20个封顶
$userGroupNum = $new['group']->findCount('group_users',array('userid'=>$userid));
if($userGr... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$title = '他的小组';
include template("groups"); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$topicid = intval($_GET['topicid']);
$groupid = intval($_GET['groupid']);
if($groupid == 0 || $topicid == 0) tsNotice("非法操作!");
$strGroup = $db->once_fetch_assoc("select groupid,userid from ".dbprefix."group wh... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//小组首页
$groupid = intval($_GET['id']);
//$typeid = intval($_GET['typeid']); //帖子分类
//小组信息
$strGroup = $new['group']->getOneGroup($groupid);
if($strGroup == '') header("Location: ".SITE_URL."index.php");
$strGroup['recoverynum'] = $db->once_num_rows(... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
tsNotice('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$myGroup = $db->fetch_all_assoc("select * from ".dbprefix."group_users where userid='$userid'");
//我加入的小组
if(is_array($myGroup)){
foreach($myGroup as $key=>$item){
$arrMyGroup[] = $new[group]->getOneGroup($ite... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//编辑帖子
case "":
$topicid = intval($_GET['topicid']);
if($topicid == 0){
header("Location: ".SITE_URL);
exit;
}
$topicNum = $db->once_fetch_assoc("select count(*) from ".dbprefi... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 谁收藏了这篇帖子
*/
$topicid = intval($_GET['topicid']);
switch($ts){
case "ajax":
$arrCollectUser = $db->fetch_all_assoc("select * from ".dbprefix."group_topics_collects where topicid='$topicid'");
if(is_array($arrCollectUser)){
foreach($ar... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//添加评论
case "do":
$topicid = intval($_POST['topicid']);
$content = trim($_POST['content']);
//添加评论标签
doAction('group_comment_add','',$content,'');
if($content==''){
t... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//设置为管理员和取消为管理员
case "isadmin":
$userid = intval($_GET['userid']);
$groupid = intval($_GET['groupid']);
$isadmin = intval($_GET['isadmin']);
if($userid == '' && $groupid=='' && $isadmi... | PHP |
<?php
//创建小组
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
case "":
//先判断加入多少个小组啦
$userGroupNum = $new['group']->findCount('group_users',array('userid'=>$userid));
if($userGroupNum >= 20) tsNotice('你加入的小组总数已经到达20个,不能再创建小组!');
i... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//所有小组
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL.tsUrl('group','all',array('page'=>''));
$lstart = $page*20-20;
$arrGroups = $db->fetch_all_assoc("select groupid from ".dbprefix."group order by isrecommend desc limit $lstart,20");
foreach... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '小组',
'version' => '1.0',
'desc' => '小组,群组,BBS,社区讨论,创建小组,发表帖子',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'i... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
*包含数据库配置文件
*/
require_once IKDATA."/config.inc.php";
$skin = 'default'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
class system extends IKApp {
//构造函数
public function __construct($db) {
parent::__construct ( $db );
}
} | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 后台首页
*/
$title = '首页';
/*
*包含模版
*/
include template ( "admincp" ); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 插件设置
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
//插件列表
case "list" :
$arrApps = tsScanDir ( 'plugins' );
$apps = $_GET ['apps'];
$arrPlug... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 系统信息
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
$os = explode ( " ", php_uname () );
if (! function_exists ( "gd_info" )) {
$gd = '不支持,无法处理图像';
}
if (function_exists ( gd... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 缓存管理
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
case "" :
include template ( 'cache' );
break;
case "delall" :
//清除全站缓存
ClearAppCache('gr... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 主题设置
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
case "" :
$arrTheme = tsScanDir ( 'theme' );
$title = '系统主题';
include template ( "theme" );
break;
... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 系统设置
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
case "options" :
$arrData = array ('site_title' => trim ( $_POST ['site_title'] ), 'site_subtitle' => tri... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 系统设置
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
$arrOptions = $db->fetch_all_assoc ( "select optionname,optionvalue from " . dbprefix . "system_options" );
foreach ( $arrOp... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 链接形式设置
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
case "" :
$title = '链接形式';
include template ( "urltype" );
break;
case "do" :
$site_url... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 用户登录
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
//登录
switch ($ts) {
case "" :
$title = '登录后台';
include template ( "login" );
break;
case "do" :
$email ... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik 爱客社区门户 APP管理
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
switch ($ts) {
//app列表
case "list" :
$applists = tsScanDir ( 'app' );
foreach ( $applists as $key => $item ) {
i... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
return array ('name' => '系统管理', 'version' => '1.0', 'desc' => '管理所有APP', 'url' => 'http://www.12ik.com', 'email' => '160780470@qq.com', 'author' => '小麦', 'author_url' => 'http://www.12ik.com', 'isoption' => '0', 'isinstall' => '1', 'issql' => '1', 'issystem' => '... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
require_once IKDATA . "/config.inc.php";
$skin = 'default';
$IK_APP ['options'] ['appname'] = '系统管理'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$userid = intval($IK_USER['user']['userid']);
if($userid == '0'){
/* $arrZm = $db->fetch_all_assoc("SELECT zm FROM ".dbprefix."area GROUP BY zm");
foreach($arrZm as $key=>$item){
$arrArea[$item['zm']] = $new['location']->getAreaByZm($item['zm']);
}
$t... | PHP |
<?php
switch($ts){
case "one":
include template("admin/add_one");
break;
case "one_do":
$areaname = $_POST['areaname'];
$zm = $new['location']->getfirstchar($areaname);
$db->query("insert into ".dbprefix."area (`areaname`,`zm`) values ('$areaname','$zm')");
qiMsg("顶级区域添加成功",'返回顶级区域列表',SITE... | PHP |
<?php
switch($ts){
case "":
$areaid = $_GET['areaid'];
$strArea = $db->once_fetch_assoc("select * from ".dbprefix."area where areaid='$areaid'");
include template("admin/edit");
break;
case "do":
$areaid = $_POST['areaid'];
$areaname = $_POST['areaname'];
$zm = $new['location']->getfirstchar($areaname)... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 配置选项
*/
switch($ts){
//基本配置
case "":
$arrOptions = $db->fetch_all_assoc("select * from ".dbprefix."group_options");
foreach($arrOptions as $item){
$strOption[$item['optionname']] = $item['optionvalue'];
}
include template("admin/op... | PHP |
<?php
$areaid = $_GET['areaid'];
$strArea = $db->once_fetch_assoc("select * from ".dbprefix."area where areaid='$areaid'");
if($strArea['referid'] == '0'){
$arrTwo = $db->fetch_all_assoc("select * from ".dbprefix."area where referid='$areaid'");
foreach($arrTwo as $item){
//删除三级
$db->query("delete from ".dbp... | PHP |
<?php
switch($ts){
case "one":
$arrOne = $db->fetch_all_assoc("select * from ".dbprefix."area where referid='0'");
include template("admin/list_one");
break;
case "two":
$referid = $_GET['referid'];
$arrTwo = $db->fetch_all_assoc("select * from ".dbprefix."area where referid='$referid'");
inclu... | PHP |
<?php
$areaid = intval($_GET['areaid']);
$arrArea = $new['location']->getAreaForApp($areaid);
$strArea = $new['location']->getOneArea($areaid);
$referArea = $new['location']->getReferArea($areaid);
$title = $strArea['areaname'];
//城里的人
$arrUsers = $db->fetch_all_assoc("select userid from ".dbprefix."user_info w... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
qiMsg('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '同城',
'version' => '1.0',
'desc' => '同城APP',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'issql' => '1',
'is... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class location extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//通过连贯性找到三级区域
function getAreaForApp($areaid){
$strAreaThree = $this->db->once_fetch_assoc("select * from ".dbprefix."area where areaid='$areaid'");
... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
*包含数据库配置文件
*/
$skin = 'default';
$IK_APP['options']['appname'] = '同城';
require_once IKDATA."/config.inc.php"; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class mail extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//发送邮件
function postMail($sendmail,$subject,$content){
global $IK_SITE;
$options = fileRead('data/mail_options.php');
date_default_timezo... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
//APP配置选项
case "options":
$arrData = array(
'appname' => trim($_POST['appname']),
'appdesc' => trim($_POST['appdesc']),
'isenable' => trim($_POST['isenable']),
'mailhost' => trim($_POST['mailhost']),
'mailport' => trim($_POST['... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 配置选项
*/
$arrOptions = $db->fetch_all_assoc("select * from ".dbprefix."mail_options");
foreach($arrOptions as $item){
$strOption[$item['optionname']] = $item['optionvalue'];
}
include template("admin/options"); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
qiMsg('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array(
'name' => '邮件',
'version' => '1.0',
'desc' => '邮件',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'issql' => '1',
'issys... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
*包含数据库配置文件
*如果要单独配置请去除包含数据库配置文件,并将数据库配置信息粘贴在此处
*/
require_once IKDATA."/config.inc.php";
| PHP |
<?php
switch ($ts){
//禁用-启用
case "isenable":
$tagid = $_GET['tagid'];
$isenable = $_GET['isenable'];
$db->query("update ".dbprefix."tag set `isenable`='$isenable' where tagid = '$tagid'");
qiMsg("设置成功!");
break;
//删除
case "del":
$tagid = $_GET['tagid'];
$db->query("delete from ".dbprefi... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
include template("admin/options"); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//获取小组全部内容列表
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = 'index.php?app=tag&ac=admin&mg=list&page=';
$sLimit = $page*10-10;
$arrTags = $db->fetch_all_assoc("select * from ".dbprefix."tag order by uptime desc limit $sLimit,10");
$tag... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "":
$objname = $_GET['objname'];
$idname = $_GET['idname'];
$objid = $_GET['objid'];
include template("add_ajax");
break;
case "do":
$objname = $_POST['objname'];
$idname = $_POST['idname'];
$objid = $_POST[... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
qiMsg('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class tag extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//添加多个标签
function addTag($objname,$idname,$objid,$tags){
if($objname != '' && $idname != '' && $objid!='' && $tags!=''){
//$tags = str_replace ( ... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'name' => '标签',
'version' => '1.0',
'desc' => '标签',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '1',
'isinstall' => '1',
'issql' => '1... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
require_once IKDATA."/config.inc.php"; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class message extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//发送消息
public function sendmsg($userid,$touserid,$title,$content){
$userid = intval($userid);
$touserid = intval($touserid);
$cont... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 系统消息盒子
*/
$userid = '0';
$touserid= $_GET['userid'];
$arrMessages = $db->fetch_all_assoc("select * from ".dbprefix."message where userid='0' and touserid='$touserid' order by addtime desc limit 10");
$pattern='/(http:\/\/|https:\/\/|ftp:\/\/)([\w:\/\.... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 发送盒子
*/
$userid= $_GET['userid'];
$strTouser = $db->once_fetch_assoc("select * from ".dbprefix."user_info where userid='$userid'");
$title = '发送盒子';
include template("sendbox"); | PHP |
<?php
defined('IN_IK') or die('Access Denied.'); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$arrToUsers = $db->fetch_all_assoc("select userid from ".dbprefix."message where userid > '0' and touserid='$userid' group by userid");
if(is_array($arrToUsers)){
foreach($arrToUsers as $key=>$item){
$arrToUser[]... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$userid = $_POST['userid'];
$touserid = $_POST['touserid'];
$title = $_POST['title'];
$content = $_POST['content'];
$new['message']->sendmsg($userid,$touserid,$title,$content);
echo '1'; | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//消息盒子
$userid = intval($IK_USER['user']['userid']);
$touserid= intval($_GET['userid']);
if($userid == 0 || $touserid == 0) qiMsg("非法操作!");
$msgCount = $db->once_fetch_assoc("select count(messageid) from ".dbprefix."message where (userid='$userid' and touse... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
/**
$arrToUsers = $db->fetch_all_assoc("select userid from ".dbprefix."message where userid > '0' and touserid='$userid' group by userid");
if(is_array($arrToUsers)){
foreach($arrToUsers as $key=>$item){
$arrToUse... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 是否有新消息
*/
// 如果用户id为0或非数字,则直接返回0
$userid = intval($_GET['userid']);
if(!$userid) {
echo '0';
}
$newMsgNum = $db->once_num_rows("select * from ".dbprefix."message where touserid='$userid' and isread='0' and isinbox='0'");
if($newMsgNum ... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$messageid = empty($_POST['messageid']) ? $_GET['messageid'] : $_POST['messageid'];
switch($ts){
//删除
case "del":
if($_GET['type']=='inbox')
{
$status = aac('message')->update('message',array('touserid... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$messageid = intval($_GET['messageid']);
$arrMessages = aac('message')->find('message',array('messageid'=>$messageid));
$arrMessages['addtime'] = date('Y-m-d H:i',$arrMessages['addtime']);
if($arrMessages['userid'] ... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
qiMsg('sorry:no index!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
return array (
'name' => '站内信',
'version' => '1.0',
'desc' => '站内消息',
'url' => 'http://www.12ik.com',
'email' => '160780470@qq.com',
'author' => '小麦',
'author_url' => 'http://www.12ik.com',
'isoption' => '0',
'isinstall' => '1',
'issql' =>... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
*包含数据库配置文件
*/
require_once IKDATA."/config.inc.php";
$skin = 'default';
//APP配置
$IK_APP['options']['appname'] = '消息中心'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//小组首页
/*
if ($IK_USER ['user'] == '') {
//推荐小组列表
$arrRecommendGroups = aac ( 'group' )->getRecommendGroup ( '12' );
foreach ( $arrRecommendGroups as $key => $item ) {
$arrRecommendGroup [] = $item;
$arrRecommendGroup [$key] ['groupdesc'] =... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$strInfo = $db->once_fetch_assoc("select * from ".dbprefix."home_info where `infokey`='$ac'");
$title = '联系我们';
include template('contact'); | PHP |
<?php
switch($ts){
case "about":
$strInfo = $db->once_fetch_assoc("select * from ".dbprefix."home_info where `infokey`='about'");
include template('admin/info_about');
break;
case "about_do":
$infocontent = $_POST['infocontent'];
$db->query("update ".dbprefix."home_info set `infocontent`='$i... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
* 配置选项
*/
switch($ts){
//基本配置
case "":
include template("admin/options");
break;
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$strInfo = $db->once_fetch_assoc("select * from ".dbprefix."home_info where `infokey`='$ac'");
$title = '用户协议';
include template('agreement'); | PHP |
<?php
//插件条件入口
defined('IN_IK') or die('Access Denied.');
if(is_file('plugins/'.$app.'/'.$plugin.'/'.$in.'.php')){
require_once('plugins/'.$app.'/'.$plugin.'/'.$in.'.php');
}else{
qiMsg('sorry:no plugin!');
} | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$strInfo = $db->once_fetch_assoc("select * from ".dbprefix."home_info where `infokey`='$ac'");
$title = '关于我们';
include template('about'); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "":
$title = '更换主题';
$arrTheme = tsScanDir('theme');
include template("theme");
break;
//执行
case "do":
$theme = $_POST['site_theme'];
setcookie("ik_theme", $theme, time()+3600*30,'/');
qiMsg("主题更换成... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$strInfo = $db->once_fetch_assoc("select * from ".dbprefix."home_info where `infokey`='$ac'");
$title = '隐私声明';
include template('privacy'); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//管理入口
if(is_file('app/'.$app.'/action/admin/'.$mg.'.php')){
include_once 'app/'.$app.'/action/admin/'.$mg.'.php';
}else{
qiMsg('sorry:no index!');
} | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$lstart = $page*10-10;
$arrPhoto = $db->fetch_all_assoc("select * from ".dbprefix."photo order by addtime desc limit $lstart,10");
include template ( "homepage" ); | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.