code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://topthink.com All rights reserved.
// +------------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
class SaeMysql extends SaeObject {
static $link;
static $charset;
function __construct() {
global $sae_config;
self::$charset = $sae_config['db_charset'];
$this->connect();
parent::__construct();
}
//连接数据库
protected function connect() {
... | PHP |
<?php
class SaeImage extends SaeObject {
private $_img_data = ''; //图片数据
private $_options = array(); //图片选项
private $_width = 0;
private $_height = 0;
private $_image = null; //存储image资源
const image_limitsize = 2097152;
public function __construct($img_data='') {
pa... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
/**
* SAE数据抓取服务
*
* @author zhiyong
* @version $Id: SaeFetchurl.class.php 2766 2012-02-20 15:58:21Z luofei614@gmail.com $
* @package sae
*
*/
/**
* SAE数据抓取class
*
* SaeFetchurl用于抓取外部数据。支持的协议为http/https。<br />
* 该类已被废弃,请直接使用curl抓取外部资源
* @deprecated 该类已被废弃,请直接使用curl抓取外部资源
*
* 默认超时时间:
* - 连接超时: 5秒
... | PHP |
<?php
// +----------------------------------------------------------------------
// | sae模拟器配置
// +----------------------------------------------------------------------
// | Author: luofei614<www.3g4k.com>
// +----------------------------------------------------------------------
// $Id: config.php 2793 2012-03-... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +--------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
//SAE系统常量,根据自己实际情况进行修改。
define( 'SAE_MYSQL_HOST_M', $sae_config['db_host'] );
define( 'SAE_MYSQL_HOST_S', $sae_config['db_host'] );
define( 'SAE_MYSQL_PORT', 3306 );
define( 'SAE_MYSQL_USER', $sae_config['db_user'] );
define( 'SAE_MYSQL_PASS', $sae_config['db_pass']);
define( 'SAE_MYSQL_DB', $sae_config['d... | PHP |
<?php
//SAE系统函数
function sae_set_display_errors($show=true){
//在本地设置不显示错误, 只不显示sae_debug的文字信息, 但是会显示系统错误,方便我们开发。
global $sae_config;
$sae_config['display_error']=$show;
}
function sae_debug($log){
global $sae_config;
error_log(date('[c]').$log.PHP_EOL,3,$sae_config['debug_file']);
if($sae_config['d... | PHP |
<?php
//模拟器需要用的函数
function Imit_L($key){
static $msgs=array();
if(is_array($key)){
$msgs=array_merge($msgs,$key);
return ;
}
return $msgs[$key];
}
| PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +--------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +--------------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | 模拟器数据库采用sqlite3
// +----------------------------------------------------------------------
// | Author: luofei614<www.3g4k.com>
// +----------------------------------------------------------------------
// $Id: ImitSqlite.class.... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
/**
* +---------------------------------------------------
* | SAE本地开发环境, 模拟sae服务
* +---------------------------------------------------
* @author luofei614<www.3g4k.com>
*/
@(ini_set('post_max_size', '10M')); // sae下最大上传文件为10M
@(ini_set('upload_max_filesize', '10M'));
$sae_config = include(SAE_PA... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +----------------------------------------------... | PHP |
<?php
//sae下的固定配置,以下配置将会覆盖项目配置。
return array(
'DB_TYPE'=> 'mysql', // 数据库类型
'DB_HOST'=> SAE_MYSQL_HOST_M.','.SAE_MYSQL_HOST_S, // 服务器地址
'DB_NAME'=> SAE_MYSQL_DB, // 数据库名
'DB_USER'=> SAE_MYSQL_USER, // 用户名
'DB_PWD'=> SAE_MYSQL_PASS, // 密码
'DB_PORT'=> SAE_MYSQL_PORT, // 端... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
/**
* +---------------------------------------------------
* | 对Memcache操作的封装,用于文件缓存
* +---------------------------------------------------
* @author luofei614<www.3g4k.com>
*/
if (!class_exists('SaeMC')) {
//[sae]对Memcache操作的封装,编译缓存,模版缓存存入Memcache中(非wrappers的形式)
class SaeMC {
static public $h... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +--------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009 http://thinkphp.cn All rights reserved.
// +--------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
//平滑函数,sae和本地都可以用,增加系统平滑性
function sae_unlink($filePath) {
if (IS_SAE) {
$arr = explode('/', ltrim($filePath, './'));
$domain = array_shift($arr);
$filePath = implode('/', $arr);
$s = Think::instance('SaeStorage');
return $s->delete($domain, $filePath);
} else {
... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://thinkphp.cn All rights reserved.
// +--------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://topthink.com All rights reserved.
// +------------------------------------------------... | PHP |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
// +-----------------------------------------... | PHP |
<?php
//帐号和密码必须是字母或数字或中横线或下横线组成,长度在三位及以上
/**
访问范围:
帐号 三位以上20位以下
tours 所有的线路xml可访问
c1_5 可访问一级类别的id为5的所以线路
c1_5_c2_6 可访问一级类别的id为5并且二级类别id为6的线路 若有c2必须有c1
每分钟连接数
unlimited 为不限制 若为数字时表示一分钟内查接的次数
*/
$apiuser=array(
//帐号 密码 访问范围 每分钟连接数
"dreamstr... | PHP |
<? require_once "../global.php";
require_once RootDir."/"."inc/Function.Libary.php";
require_once RootDir."/"."inc/Uifunction.php";
require_once "Up_file_suonue.php";
if($_SESSION["Login"][1]=="" or $_SESSION["Login"][1]==Null ) die("你没有权限上传");
?>
<style type="text/css">
<!--
.pt11 {
font-si... | PHP |
<style>
.menu_iframe{position:absolute; visibility:inherit; top:0px; left:0px; width:170px; z-index:-1; filter: Alpha(Opacity=0);}
.cal_table{ border:#333333 solid 1px; border-collapse:collapse; background:#ffffff; font-size:12px}
.cal_drawdate{ background:#E3EBF6;border-collapse:collapse; width:100%}
.cal_dra... | PHP |
<?
/*************************
说明:
判断传递的变量中是否含有非法字符
使用方法:1.在需要的地方包含本文件 调用函数FunPostGetFilter() 参数默认为1不显示非法的字符
如$_POST、$_GET
功能:
防注入
**************************/
function turnxinqi($str)
{//转入星期的数字,转换成中文字
switch($str)
{
case 0:
return "日";
case 1:
return "一";
case 2:
return "二";
... | PHP |
<?php require "../global.php";
require_once RootDir."/"."inc/config.php";
require_once RootDir."/"."inc/Uifunction.php";
require_once RootDir."/"."inc/Function.Libary.php";
require_once RootDir."/".$SystemConest[1]."/system/Config.php";
require_once RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
req... | PHP |
<style>
.menu_iframe{position:absolute; visibility:inherit; top:0px; left:0px; width:170px; z-index:-1; filter: Alpha(Opacity=0);}
.cal_table{ border:#333333 solid 1px; border-collapse:collapse; background:#ffffff; font-size:12px}
.cal_drawdate{ background:#E3EBF6;border-collapse:collapse; width:100%}
.cal_dra... | PHP |
<?php
class CURL
{
var $cookie_file; // 设置Cookie文件保存路径及文件名
var $loginurl;//登陆地地址
var $actionstr;//登陆参数
function __construct()
{
$this->cookie_file=tempnam("./TEMP","COOKIEdsdsdsdsdsdwerwdszx454.txt");
}
function vlogin()
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$this->... | PHP |
<?php
//定义网站参数
//$databese=1 为mysql数据库 2为mssql数据库
$databese=1;
if($databese==1)
{
require_once RootDir."/inc/dabase_mysql.php";
}
else
{
require_once RootDir."/inc/dabase_mssql.php";
}
?>
| PHP |
<?php
/**
* 功能:生成缩略图
* 作者:phpox
* 日期:Thu May 17 09:57:05 CST 2007
*/
class CreatMiniature
{
//公共变量
var $srcFile=""; //原图
var $echoType; //输出图片类型,link--不保存为文件;file--保存为文件
var $im=""; //临时变量
var $srcW=""; //原图宽
... | PHP |
<?
$SYSTEM_FILE_POSTFIX=array('.zip','.rar','.jpg','.png','.gif','.wma','.rm','.wmv','.doc','.mpeg','.mp3','.avi');//充许文件上传类型
$SYSTEM_agree_size=1*1024*1024;//充许文件上传的大小
$SYSTEM_save_path=$dirname."/upfiles/";//上传文件存放的路径
?> | PHP |
<?php require "../global.php";?>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="/Public/jsLibrary/Jslibary.js"></script>
<style>
body,td{font-size:12px;}
.spanplace{display:none;}
.xztdbgc{background-color:#FFDD99;}
</style>... | PHP |
<?php
?>
<script language='javascript'>var UEDITOR_HOME_URL= '/guanli/system/ueditor/';</script>
<script type='text/javascript' src='/guanli/system/ueditor/editor_config.js'></script>
<script type='text/javascript' src='/guanli/system/ueditor/editor_all.js'></script>
<link rel='stylesheet' href='/guanli/system... | PHP |
<?php
function Menu_JS($MenuNum)
{
?>
<script language="javascript" type="text/javascript">
<!--
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;
function expandIt(index){//-----------------------------------------
var menuitem=new Array()
<?php
for($i=1;$i<=$Me... | PHP |
<?php
class Page
{
private $totalpage;
private $stride;
private $currentpage;
//配置总页数
function setTotalpage($objpage=0){
$this->totalpage=$objpage;
}
//配置当前页
function setCurrentpage($objpage=1){
$this->currentpage=$objpage;
}
//配置跨度
function setStride($obj... | PHP |
<?php
/**
* 判断字符串是否是email
* @param str $str
* @return 是email返回true,不是返回false
*/
function ismail($str)
{
preg_match("/[\w\-\.]+@[\w\-\.]+\.[\w]+/", $str,$t);
return ($t[0])?true:false;
}
/**
* 判断字符串是否只由字母,数字,下划线或中划线或.组成
* @param str $str
* @param 成功返回true 失败返回false
*/
function isstri($str)
{
... | PHP |
<?php
//本页面是本次项目的特殊函数
function geturl($str,$t)
{
if($t=="p") return preg_replace("/@[\S\s]*/", "", $str);
if($t=="w") return preg_replace("/^[\w\-\_\.\/]*@/", "", $str);
}
?> | PHP |
<?php
require_once RootDir."/inc/config.php";
?> | PHP |
<?php
session_start();
$_SESSION['SafeCode']="";
$type = 'gif';
$width= 50;
$height= 20;
header("Content-type: image/".$type);
srand((double)microtime()*1000000);
$randval = randStr(4,"");
if($type!='gif' && function_exists('imagecreatetruecolor')){
$im = @imagecreatetruecolor($width,$height);
}els... | PHP |
<?php
/**
名称:邮件发送类!!!
功能:使用SMTP服务器,在PHP代码中发送邮件。
特点:可以使用要求身份验证的SMTP服务器。
*/
class smtpgn
{
var $smtp_port;
var $time_out;
var $host_name;
var $log_file;
var $relay_host;
var $debug;
var $auth;
var $user;
var $pass;
var $sock;
/**初始化邮件类
* @param $relay_host smtp服务器
* @param $smtp_... | PHP |
<?
//中文语言包
$charsetsys=array(
"tourstitle" => "线路标题",
"toursname" =>"线路名称",
"add" =>"添加",
"keyword"=>"关键字",
"pagetitle" =>"页面标题",
"bianhao" =>"产品编号",
"chufacity" =>"出发城市",
"jieshucity" =>"结束城市",
"chutuandate" =>"出团日期",
"jifen" =>"积分",
"jifenbeishu" =>"积分倍数",
"mobanfile" =>"模板文件",
"htmlurl" =... | PHP |
<?php require "../global.php";
require "Uifunction.php";
?>
<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
<script type="text/javascript" src="/Public/jsLibrary/Jslibary.js"></script>
<style>
body,td{font-size:12px;}
.spanplace{display:none;}
.xztdbgc{backgr... | PHP |
<?PHP
//验证用户权限
function GetReadRule($intRuleValue)
{
$GetReadRule=false;
if(!is_numeric($intRuleValue))
return false;
$strRules="1,3,5,9,7,11,13,15,17,19,21,23,25,27,29,31";
$ArrRules=explode(",",$strRules);
foreach($ArrRules as $values){
if($values==$intRuleValue){
$GetReadRule=true;
}
... | PHP |
<?
//文件操作类
//生成文件、删除文件均只能在本站点内操作
class ActionFile
{
var $Root;
function __construct()
{
$this->Root=RootDir;
}
///创建文件夹 在已有文件夹下
function CreateFolder($dir)
{
$dir=$this->Root.$dir;
if (!file_exists($dir))
{
mkdir($dir, 0777);
return true;
}
return false;
}
//删除... | PHP |
<?php
/*
Template Name: Discography
*/
get_header();
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo do_shortcode('[admin_login]');
echo '<!-- //コンテンツ START// -->';
?>
<div id="main" class="clearfix">
<h2 class="discography">Discography</h2>
<div id="search_box">
... | PHP |
<?php
define("PACKAGE_ROOT", dirname(__FILE__));
include_once PACKAGE_ROOT.'/lib/mastercontrol.php';
// お試し中
//include_once 'lib/theme-options.php';
/* DEBUG
define('SAVEQUERIES', true);
// Debug SQL Logger
add_action('shutdown', 'sql_logger');
function sql_logger() {
global $wpdb;
$log_file = fopen(PACKAGE_R... | PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-... | PHP |
<?php
define( POST_ID, get_the_ID());
define( CUSTOM_TYPE , get_template_type() );
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
if ( CUSTOM_TYPE === "shop" ){
include 'dialog_shop.php';
exit;
} else if ( CUSTOM_TYPE === "xml" ){
echo exec_xml();
exit;
}
if ( is_file( $custom_type_file )... | PHP |
<?php
/*
Template Name: Discography
*/
get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo '<!-- //コンテンツ START// -->';
?>
<div id="main" class="clearfix">
<div id="search_box">
<?php
... | PHP |
<?php
/*
* トップページ
*/
echo 'トップページ';
?>
| PHP |
<?php
/*
* Template Name: Profile
*/
get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
echo '<!-- //コンテンツ START// -->';
list($conf_profile) = get_posts('post_type=profile&order=DSC');
if ( isset( $conf_pr... | PHP |
<?php
/*
Template Name: PhotoGallery
*/
?>
<?php get_header();
echo '<div id="google_translate_element" style="float:right"></div>';
echo do_shortcode('[content_header]');
echo do_shortcode('[gnavi]');
?>
<!--<link type="text/css" rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style... | PHP |
<?php
// 固定ページでない時、表示するページ
if ( is_home() ){
echo "Not Found Page";
} else {
echo "<!-- index.php -->";
}
define( CUSTOM_TYPE , get_template_type() );
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
global $posts;
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
... | PHP |
<?php
define( CUSTOM_TYPE , get_template_type() );
if ( CUSTOM_TYPE === "xml" ){
echo exec_xml();
exit;
}
$custom_type_file = PACKAGE_ROOT . '/custom_' . CUSTOM_TYPE . '.php';
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| PHP |
<!-- フッター START -->
<div id="footer">
CopyRight <?php bloginfo('name'); ?>
</div>
<!-- //フッター END// -->
<?php wp_footer(); ?>
</div>
</body>
</html>
| PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content... | PHP |
<?php
echo $custom_type_file;
$custom_type_file = PACKAGE_ROOT . '/custom_top.php';
if ( is_file( $custom_type_file ) ){
include $custom_type_file;
} else {
get_header();
run_layout();
get_footer();
}
?>
| PHP |
<?php
function stockstyle_footer(){
$likeCount = facebook_likeCount("http://www.facebook.com/stockstyle");
print <<<FOOTER_STYLE
<div style="clear:both; width:810px; height:125px; margin:0; text-align:center;"><img src="/cybird/ad/images/ad.png"></div>
<div id="powered">
Powered by <a href="https://www.faceb... | PHP |
<?php
// プラグイン
//remove_action( 'wp_head', 'wordbooker_header' );
// login-with-ajax'
remove_action( 'wp_head', 'wpogp_auto_include' );
remove_action( 'wp_head', 'wp_page_numbers_stylesheet' );
remove_action( 'wp_head', 'widget_akismet_style' );
remove_action( 'wp_head', 'feed_links' );
// システム
remove_action( 'wp_head... | PHP |
<?php
/**
* MasterControl Theme Options
*
* @package WordPress
* @since MasterControl 1.0
*/
/**
* Properly enqueue styles and scripts for our theme options page.
*
* This function is attached to the admin_enqueue_scripts action hook.
*
* @since MasterControl 1.0
*
*/
function mastercontrol... | PHP |
<?php
//+++++++++++++++++++++++++++++++++++++++++
//パンくずリスト用
function get_breadcrumbs(){
global $wp_query;
if ( !is_home() ){
// Add the Home link
echo '<a href="'. get_settings('home') .'">TOP</a>';
if ( is_category() )
{
$catTitle = single_cat_title( "", false );
$cat = get_cat_ID( $catTitle );
... | PHP |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// XML
register_post_type(
'xml',
array(
'label' => 'XML',
'hierarchical' => false,
'public' => true,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/design.gif',
'supports' => array(
'ti... | PHP |
<?php
//+++++++++++++++++++++++++++++++++++++++++
// カスタムポスト BLOG
register_post_type(
'xml',
array(
'label' => 'XML',
'hierarchical' => false,
'public' => true,
'show_ui' => false,
'query_var' => false,
'menu_icon' => '/wp-content/images/tool/design.gif',
... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.