code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
*
* An open source application development framework for PHP 5.1.6 or newer
*
* @package CodeIgniter
* @author ExpressionEngine Dev Team
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
* @license http://codei... | PHP |
<!DOCTYPE html>
<html lang="en">
<?php include('includes/head.php');?><!--Head-->
<body>
<!-- Header and Nav-bar
================================================== -->
<?php include('includes/header.php');?><!--Header and Nav-Bar-->
<div class="push">
</div>
<!-- Contents... | PHP |
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Product reviews, News and much more...</title>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<style>
body
{
background:#e8f6f7;
}
a:hover
{
text-decorati... | PHP |
<?php
/*
* 爱客网单入口
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
//定义网站根目录,APP目录,DATA目录,核心目录
define ( 'IN_IK', true );
define ( 'IKROOT', dirname ( __FILE__ ) );
define ( 'IKAPP', IKROOT . '/app' );
define ( 'IKDATA', IKROOT . '/data' );
define ... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 安装程序
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
//安装文件的IMG,CSS文件
$skins = 'data/install/skins/';
//进入正题
$title = '12IK-爱客网安装程序';
require_once 'action/' . $install . '.php'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 安装程序
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
//判断目录可写
$f_cache = iswriteable ( 'cache' );
$f_data = iswriteable ( 'data' );
$f_plugins = iswriteable ( 'plugins' );
$f_uploa... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 安装程序
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
$site_url = getHttpUrl ();
include 'install/html/next.html'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 安装程序
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
$host = trim ( $_POST ['host'] );
$port = trim ( $_POST ['port'] );
$user = trim ( $_POST ['user'] );
$pwd = trim ( $_POST ['pwd... | PHP |
<?php
echo phpinfo(); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 数据库程序
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
class MySql {
public $queryCount = 0;
public $conn;
public $result;
//构造函数
//$IK_DB 数据库链接参数
function __constru... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 爱客网 网站核心文件
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
if (substr ( PHP_VERSION, 0, 1 ) != '5')
exit ( "网站运行环境要求PHP5!" );
error_reporting ( E_ALL & ~ E_NOTICE & ~ E_WARNING );
@set... | PHP |
<?php
/////////////////////////////////////////////////////////////////
// 12IK爱客网中文社区, Copyright (C) 2012 - 2015 12IK.COM //
/////////////////////////////////////////////////////////////////
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
class IKApp {
public $db;
public function __construct($dbh... | PHP |
<?php
/*~ class.phpmailer.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.1 |
| Contact: via sourceforge.net support pages (als... | PHP |
<?php
/*~ class.pop3.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.1 |
| Contact: via sourceforge.net support pages (also www... | PHP |
<?php
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 5.1 |
| Contact: via sourceforge.net support pages (also www... | PHP |
<?php
/**
* PHPMailer language file: refer to English translation for definitive list
* Simplified Chinese Version
* @author liqwei <liqwei@liqwei.com>
*/
$PHPMAILER_LANG ['authenticate'] = 'SMTP 错误:登录失败。';
$PHPMAILER_LANG ['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。';
$PHPMAILER_LANG ['data_not_accepted'] = 'S... | PHP |
<?php
/**
* PHPMailer language file: refer to English translation for definitive list
* Traditional Chinese Version
* @author liqwei <liqwei@liqwei.com>
*/
$PHPMAILER_LANG ['authenticate'] = 'SMTP 錯誤:登錄失敗。';
$PHPMAILER_LANG ['connect_host'] = 'SMTP 錯誤:無法連接到 SMTP 主機。';
$PHPMAILER_LANG ['data_not_accepted'] = '... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
class IKImage {
//图片类型
var $type;
//实际宽度
var $width;
//实际高度
var $height;
//改变后的宽度
var $resize_width;
//改变后的高度
var $resize_height;
//是否裁图
var $cut;
//源图象
var $srcimg;
//目标图象地址
var $dstimg;
//临时创建的图象
var $im;
//截图的x坐标位置
var $... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 12ik爱客网 网站核心函数
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
//AutoAppClass
function aac($appname) {
global $db;
$class = $appname;
$path = IKAPP . '/' . $appname . '/';
if (! class... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
/*
* 爱客网 网站核心文件
* @copyright (c) 2012-3000 12IK All Rights Reserved
* @author wanglijun
* @Email:160780470@qq.com
*/
class template {
var $var_regexp = "\@?\\\$[a-zA-Z_][\\\$\w]*(?:\[[\w\-\.\"\'\[\]\$]+\])*";
var $vtag_regexp = "\<\?php echo (\@?... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' ); | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
switch ($ts) {
case "user" :
$userid = intval ( $_GET ['userid'] );
//获取用户信息
$strUser = aac('user')->getOneUser($userid);
if($userid == 0) header("Location: ".SITE_URL."index.php");
//分页
$page = isset($_GET['page']) ? $_GET['page']... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
case "":
//分类
$arrCate = $new['note']->getArrCate($userid);
if ($arrCate==''){
$db->query("insert into ".dbprefix."note_cate (`userid`,`catename`) values ('$userid','默认分类')");
}
... | 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=note&ac=admin&mg=note&ts=list&page=';
$lstart = $page*10-10;
//获取全部日志
$arrNote = $db->fetch_all_assoc("select * from ... | 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.');
switch($ts){
case "list":
//列表
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = SITE_URL.'index.php?app=article&ac=admin&mg=cate&ts=list&page=';
$lstart = $page*10-10;
$arrCate = $db->fetch_all_assoc("select * from ".dbprefi... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
case "":
$catename = $_GET['catename'];
include template("add_ajax");
break;
case "add":
$catename = t($_POST['catename']);
if($userid == '0'){
echo 0;
}elseif(e... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
case "edit" :
//分类
$arrCate = $new['note']->getArrCate($userid);
$noteid = intval( $_GET['noteid'] );
$strNote = $db->once_fetch_assoc ( "select * from " . dbprefix . "note where noteid... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$noteid = intval ( $_GET ['noteid'] );
//根据noteid获取内容
$strNote = aac('note')-> getOneNote($noteid);
$strNote['tags'] = aac('tag')->getObjTagByObjid('note','noteid',$noteid); //标签
$strNote ['content'] = editor2html ( $strNote ['content'] );
$strNote ['use... | 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.');
$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.' );
$userid = intval ( $_GET ['userid'] );
//获取用户信息
$strUser = aac('user')->getOneUser($userid);
if($userid == 0) header("Location: ".SITE_URL."index.php");
//分页
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL."inde... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "list";
$cateid = intval($_GET['cateid']);
//列表
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$url = SITE_URL.tsUrl('note','cate',array('cateid'=>$cateid,'page'=>''));
$lstart = $page*10-10;
$arrNotes = $db->fetch... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//不登陆不允许评论
$userid = aac('user')->isLogin();
switch($ts){
//添加评论
case "add":
$noteid = intval($_POST['noteid']);
$content = trim($_POST['content']);
if($content == '') tsNotice('没有任何内容是不允许你通过滴^_^');
if(mb_strlen($content,'utf8')>10000) tsNotice... | 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'
); | 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.');
class note extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//根据userid获取所有分类
function getArrCate($userid){
$arrCate = $this->db->fetch_all_assoc("select * from ".dbprefix."note_cate where `userid`='$userid'");
... | 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
*/
//判断升级
if (is_file ( 'data/up.php' ))
$app = 'upgrade';
if ($app == 'upgrade' && ! is_file ( 'data/up.php' ))
$app = 'gro... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class feed extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//添加feed
public function add($userid,$template,$data){
$userid = intval($userid);
/*
if(is_array($arrDatas)){
foreach($arrDatas as $key=... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL.tsUrl('feed','index',array('page'=>''));
$lstart = $page*20-20;
$arrFeeds = $db->fetch_all_assoc("select * from ".dbprefix."feed where userid='$use... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
//用户是否登录
$userid = aac('user')->isLogin();
switch($ts){
//添加feed
case "do":
$content = trim($_POST['content']);
if($content==''){
tsNotice('不要这么偷懒嘛,多少请写一点内容哦^_^');
}elseif(mb_strlen($content,'utf8')>100){//限制发表内容多长度,默认为1w
... | 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' => '1',
'issys... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
/*
*包含数据库配置文件
*/
require_once IKDATA."/config.inc.php";
$IK_APP['options']['appname'] = '动态';
$skin = 'default'; | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//加载风格
include_once 'theme.php';
include_once 'RoomFunction.php';
//页面
switch ($ts) {
case "" :
//房间显示页面
$roomid = intval($_GET['roomid']);
$strRoom = aac('site')->getOneRoom($roomid);
//获取于该房间的应用
/*$strBulletins = aac('site')->getBulleti... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//$userid = $IK_USER['user']['userid'];
//$siteid = intval($_GET['siteid']);
$roomid = intval($_GET['roomid']);
//$strSite = aac('site')->getOneSite($siteid);
//页面
switch ($ts) {
case "update" :
$arrdata = array();
$arrdata['leftmod'] = $_POST[... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
switch ($ts) {
case "" :
//未创建小站
//$userid = aac('user')->isLogin();
$title = "我的小站";
include template("index");
break;
case "user" :
$userid = intval ( $_GET ['userid'] );
//获取用户信息
include template ( 'index' );
break;
} | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//用户是否登录
$userid = aac('user')->isLogin();
$siteid = intval($_GET['siteid']);
//定义返回json
$arrJson = array();
//初始化 room
$arrData = array(
'siteid' => $siteid,
'userid' => $userid,
'name' => '未命名房间',
'addtime' => time(),
);
$r... | 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=site&ac=admin&mg=site&ts=list&page=';
$lstart = 0;//$page*10-10;
//获取全部
//$arrSite = $db->fetch_all_assoc("select * f... | 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.' );
$notesid = intval($_GET['notesid']);
$strNotes = aac('site')->getOneNotes($notesid);
$siteid = $strNotes['siteid'];
$roomid = $strNotes['roomid']; //导航
$userid = $_SESSION['tsuser']['userid'];
//加载风格
include_once 'theme.php';
//页面
switch ($ts) {
case ... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$siteid = intval($_GET['id']);
//加载风格
include_once 'theme.php';
//页面
switch ($ts) {
case "" :
//小站管理员
$adminUser = aac('user')->getOneUser($strSite['userid']);
//查询喜欢该小站的成员
$likeUsers = aac('site')->findAll('site_follow', array('follow_siteid'=>... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//排序
function sortMod($mod)
{
$strMods = array();
foreach($mod as $key => $item)
{
$item = explode('-',$item); // $item[0] 表名 $item[1] 数据id
//公告栏
if($item[0]=='bulletin')
{
$tables = aac('site')->find('site_bulletin', array('bulle... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//用户是否登录
$userid = aac('user')->isLogin();
$siteid = intval($_GET['siteid']);
$roomid = intval($_GET['roomid']);
$roomname = htmlspecialchars(trim($_POST['name']));
//定义返回json
$arrJson = array();
//开始创建room
$arrData = array(
'name' => $roomnam... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$bulletinid = intval($_GET['bulletinid']);
$strBulletin = aac('site')->getOneBulletin($bulletinid);
$siteid = $strBulletin['siteid'];
$roomid = $strBulletin['roomid']; //导航
$userid = $_SESSION['tsuser']['userid'];
//加载风格
include_once 'theme.php';
//页面
s... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//用户是否登录
$userid = aac('user')->isLogin();
//个人小站
switch ($ts) {
case "savetheme" :
//保存theme
$siteid = intval($_GET['siteid']);
$status = 1;// 1 失败 0 成功
$arrData = array(
'siteid' => $siteid,
'userid' => $userid,
'theme_id' =... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
switch ($ts) {
case "site" :
//发现更多小站
//分页
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL."index.php?app=site&ac=explore&ts=site&page=";
$lstart = $page*10-10;
$arrSites = $db->fetch_all_assoc ( "select * from " . ... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//用户是否登录
$userid = aac('user')->isLogin();
//修改提示层
$siteid = intval($_GET['siteid']);
$isSetting = intval($_POST['isSetting']);
//定义返回json
$arrJson = array();
//开始创建room
$arrData = array(
'issetting' => $isSetting
);
$isupdate = $db->u... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//用户是否登录
$userid = aac('user')->isLogin();
$siteid = intval($_GET['siteid']);
$strSite = aac('site')->getOneSite($siteid);
//定义返回json
$arrJson = array();
//检查用户能否创建房间 以及创建数量
$roomNum = aac('site') -> findCount('site_room',array('siteid'=>$siteid));
... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$forumid = intval($_GET['forumid']);
$strForum = aac('site')->find('site_forum',array('forumid'=>$forumid));;
$siteid = $strForum['siteid'];
$roomid = $strForum['roomid']; //导航
$userid = $_SESSION['tsuser']['userid'];
//加载风格
include_once 'theme.php';
//页... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$siteid = isset($_GET['siteid']) ? intval($_GET['siteid']) : $siteid;
$strSite = aac('site')->getOneSite($siteid);
//判断是否有风格
$isTheme = aac('site') -> find('site_theme',array('siteid'=>$siteid));
if(is_array($isTheme))
{
$strTheme = aac('site') -> ge... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$roomid = intval($_GET['roomid']);
$strRoom = aac('site')->getOneRoom($roomid);
$siteid = $strRoom['siteid'];
//加载风格
include_once 'theme.php';
$strArchives = aac('site')->findAll('site_archive',array('roomid'=>$roomid), 'addtime desc');
foreach($s... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//加载风格
//页面
switch ($ts) {
case "" :
echo 111;
include template("test");
break;
} | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//加载风格
include_once 'theme.php';
//用户是否登录
$userid = aac('user')->isLogin();
$siteid = intval($_GET['siteid']);
//个人小站
switch ($ts) {
case "" :
//管理中心
$strSite = aac('site')->getOneSite($siteid);
$title = "小站管理";
include template("ad... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
$ts = isset($_POST['ts']) ? $_POST['ts'] : $ts;
$userid = $_SESSION['tsuser']['userid'];
//小站操作
switch ($ts) {
case "like" :
if($userid>0)
{
//$arrJson = array('r'=>'0');
$follow_siteid = trim($_POST['siteid']);
aac('site')->create(... | 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.' );
$userid = $IK_USER['user']['userid'];
$siteid = intval($_GET['siteid']);
$roomid = intval($_GET['roomid']);
$strSite = aac('site')->getOneSite($siteid);
$htmlTemplate = '<div class="mod sort" id="{table}-{itemid}"><div class="hd"><h2><span>{title}</span... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//加载风格
include_once 'theme.php';
include_once 'RoomFunction.php';
//个人小站
switch ($ts) {
case "" :
//个人小站
$roomid = $strNavs[0]['roomid'];
$strRoom = aac('site')->getOneRoom($roomid);
//左侧组件
$modsort = aac('site')->getRoomWidgetSort($roomid)... | PHP |
<?php
defined ( 'IN_IK' ) or die ( 'Access Denied.' );
//判断用户是否登录
$userid = aac('user') -> islogin();
switch ($ts) {
case "" :
//创建小站
$title = "创建小站";
include template("new_site");
break;
case "create" :
//开始创建
$sitename = trim($_POST['sitename']);
$sitedesc = trim($_POST['sitedesc'... | 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',... | 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.');
class site extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//判断是否存在小站
function isSite($siteid){
$isSite = $this->findCount('site',array('siteid'=>$siteid));
if($isSite > 0){
return true;
}else{
return... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
class photo extends IKApp{
//构造函数
public function __construct($db){
parent::__construct($db);
}
//getPhotoForApp
function getPhotoForApp($photoid){
$strPhoto = $this->db->once_fetch_assoc("select * from ".dbprefix."photo where photoid='$photoid'... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_URL."index.php?app=photo&ac=index&page=";
$lstart = $page*28-28;
$arrAlbum = $db->fetch_all_assoc("select * from ".dbprefix."photo_album where `isrecommend`='1' order by albumid desc limit $lstar... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "list":
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$lstart = $page*10-10;
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=photo&ts=list&page=';
$arrPhoto = $db->fetch_all_assoc("select * from ".dbprefi... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "list":
$page = isset($_GET['page']) ? intval($_GET['page']) : 1;
$lstart = $page*10-10;
$url = SITE_URL.'index.php?app=photo&ac=admin&mg=album&ts=list&page=';
$arrAlbum = $db->fetch_all_assoc("select * from ".dbprefix."... | 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.');
$arrPhotos = $db->fetch_all_assoc("select * from ".dbprefix."photo where `isrecommend`='1' order by photoid desc limit 60");
foreach($arrPhotos as $key=>$item){
$arrPhoto[] = $item;
$arrPhoto[$key]['user'] = aac('user')->getOneUser($item['userid']);
}
$titl... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
//我的相册/用户相册
case "":
$userid = intval($_GET['userid']);
if($userid == 0) header("Location: ".SITE_URL."index.php");
$strUser = aac('user')->getOneUser($userid);
$page = isset($_GET['page']) ? $_GET['page'] : '1';
$url = SITE_U... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$arrPhotos = $db->fetch_all_assoc("select * from ".dbprefix."photo order by photoid desc limit 60");
foreach($arrPhotos as $key=>$item){
$arrPhoto[] = $item;
$arrPhoto[$key]['user'] = aac('user')->getOneUser($item['userid']);
}
include template("pinte"); | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
switch($ts){
case "flash":
$userid = intval($_POST['userid']);
if($userid=='0'){
echo '00000';
exit;
}
$albumid = intval($_POST['albumid']);
$arrData = array(
'userid' => $userid,
'albumid' => $albumid,
'addtime' => time... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$photoid = intval($_GET['photoid']);
if($photoid == 0){
header("Location: ".SITE_URL.tsUrl('photo'));
exit;
}
$photoNum = $db->once_fetch_assoc("select count(*) from ".dbprefix."photo where `photoid`='$photoid'");
if($photoNum['count(*)']==0){
header("L... | PHP |
<?php
defined('IN_IK') or die('Access Denied.');
$userid = intval($IK_USER['user']['userid']);
if($userid == 0) header("Location: ".SITE_URL."index.php");
$strUser = aac('user')->isUser($userid);
switch($ts){
//普通上传
case "upload":
//包含模版
include template("ajax/upload");
break;
//
... | 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.');
//上传照片
$userid = intval($IK_USER['user']['userid']);
if($userid == 0) header("Location: ".SITE_URL."index.php");
$albumid = intval($_GET['albumid']);
if($albumid == 0) header("Location: ".SITE_URL."index.php");
$strAlbum = $db->once_fetch_assoc("select * from... | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.