code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
/**
* Smarty Internal Plugin Compile Foreach
*
* Compiles the {foreach} {foreachelse} {/foreach} tags
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Foreach Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Foreac... | PHP |
<?php
/**
* Smarty Internal Plugin Compile Block Plugin
*
* Compiles code for the execution of block plugin
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Block Plugin Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_P... | PHP |
<?php
/**
* Smarty Internal Plugin
*
* @package Smarty
* @subpackage TemplateResources
*/
/**
* Smarty Resource Data Object
*
* Meta Data Container for Config Files
*
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
*
* @property string $content
* @property int $timestamp
* @p... | PHP |
<?php
/**
* Smarty Internal Plugin Compile Include
*
* Compiles the {include} tag
*
* @package Smarty
* @subpackage Compiler
* @author Uwe Tews
*/
/**
* Smarty Internal Plugin Compile Include Class
*
* @package Smarty
* @subpackage Compiler
*/
class Smarty_Internal_Compile_Include extends Smarty_Internal_CompileBase {... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-19 14:53:23
compiled from "./Smarty/templates\Main.tpl" */ ?>
<?php /*%%SmartyHeaderCode:75950d01d7141aa86-53790101%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-18 15:38:25
compiled from "./Smarty/templates\header.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1366850d01d716b78a9-98668210%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-18 15:38:25
compiled from "./Smarty/templates\bar.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2554950d01d7174cec5-54857722%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-19 14:22:54
compiled from "./Smarty/templates\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:865850d15d3e20a384-87678087%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' => ... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-18 16:48:20
compiled from "./Smarty/templates\1.tpl" */ ?>
<?php /*%%SmartyHeaderCode:2611550d02dd442a857-27306215%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
... | PHP |
<?php /* Smarty version Smarty-3.1.8, created on 2012-12-18 15:38:25
compiled from "./Smarty/templates\footer.tpl" */ ?>
<?php /*%%SmartyHeaderCode:934650d01d717da079-14203497%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>... | PHP |
<?php
include"GameControl.php";
Initialize();
//GameStart();
//GameOver(1,1);
?> | PHP |
<?php
include "../Connect.php";
mysql_select_db("db_1012", $con);
$att=$_GET["att"];
$result=mysql_query("SELECT Name FROM roleset WHERE Attitude='$att'");
$i=1;
echo '当前参加的玩家有:    <br />';
while($info=mysql_fetch_array($result))
{echo $info[0].'    ';
if($i%4==0)
{echo... | PHP |
<?php
$atti=$_GET["a"];
$xmlinfo = simplexml_load_file("../GameInfo.xml");
$content=$xmlinfo->content;
echo '<br /><br /><br />';
echo '世界线'.'<br />';
echo $content;
?>
| PHP |
<?php
include "../Connect.php";
$nam=$_GET["name"];
if($nam!='')
{
mysql_select_db("db_1012", $con);
$result=mysql_query("SELECT * FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result);
$Bag1=$info['Bag1'];
$Bag2=$info['Bag2'];
$Bag3=$info['Bag3'];
$Bag4=$info['Bag4'];
$Bag5=$info['... | PHP |
<?php
include "../Connect.php";
$nam=$_GET["name"];
if($nam!='')
{
mysql_select_db("db_1012", $con);
$result=mysql_query("SELECT * FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result);
$TitleId=$info['TitleId'];
$Exp=$info['Exp'];
$Level=$info['Level'];
$Strength=$info['Streng... | PHP |
<?php
function SkillLearn($skill)
{
}
function SkillForget($skill)
{
}
?> | PHP |
<?php
include "../Connect.php";
$nam=$_GET["name"];
if($nam!='')
{
mysql_select_db("db_1012", $con);
$result=mysql_query("SELECT * FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result);
$ArmorId=$info['ArmorId'];
$HelmetId=$info['HelmetId'];
$ShoeId=$info['ShoeId'];
$TrumpId=$info['Tr... | PHP |
<?php
session_start();
require "Itemfunction.php";
$nam=$_SESSION['User'];
include "../Connect.php";
$ids=$_GET["m"];
$idarray=explode(",",$ids);
mysql_select_db("db_1012", $con);
$result0=mysql_query("SELECT * FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result0);
$Bag1=$info['Bag1'];
$Bag2=... | PHP |
<?php
include "../Connect.php";
$nam=$_GET["name"];
if($nam!='')
{
mysql_select_db("db_1012", $con);
$result=mysql_query("SELECT Skills FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result);
$Skills=$info[0];
$Skillsid=explode(",",$Skills);
$i=0;
while($Skillsid[$i]!=''... | PHP |
<?php
session_start();
$nam=$_SESSION['User'];
include "../Connect.php";
mysql_select_db("db_1012", $con);
$location=$_GET["locationid"];
$result=mysql_query("SELECT * FROM roleset WHERE Name='$nam'");
$info=mysql_fetch_array($result);
$move=$info['Move'];
$oldlocation=$info['LocationId'];
$result=mysq... | PHP |
<?php
session_start();
include"Connect.php";
require('./Smarty/libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './Smarty/blog/templates/';
$smarty->compile_dir = './Smarty/blog/templates_c/';
$smarty->config_dir = './Smarty/blog/configs/';
$smarty->cache_dir = './Smarty/blog/cache/';
... | PHP |
<?php
session_start();
require('./Smarty/libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = './Smarty/templates/';
$smarty->compile_dir = './Smarty/templates_c/';
$smarty->config_dir = './Smarty/configs/';
$smarty->cache_dir = './Smarty/cache/';
$smarty->assign('title','1012');
$_S... | PHP |
<?php
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
class TankTest extends PHPUnit_Extensions_SeleniumTestCase
{
public $name = 'Tank test';
function setUp()
{
$this->setBrowser("*firefox");
$this->setBrowserUrl("http://vtk.tom.ru/");
}
public function testTank()
{
... | PHP |
<?php
/* SVN FILE: $Id: inflections.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* Custom Inflected Words.
*
* This file is used to hold words that are not matched in the normail Inflector::pluralize() and
* Inflector::singularize()
*
* PHP versions 4 and %
*
* CakePHP : Rapid Development Framework <http://ww... | PHP |
<?php
/* SVN FILE: $Id: database.php.default 3259 2006-07-14 15:10:55Z phpnut $ */
/**
* This is core configuration file.
*
* Use it to configure core behaviour ofCake.
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, I... | PHP |
<?php
/* SVN FILE: $Id: routes.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* Short description for file.
*
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different urls to chosen controllers and their actions (fun... | PHP |
;<?php die() ?>
; SVN FILE: $Id: acl.ini.php 2918 2006-05-22 14:30:16Z phpnut $
;/**
; * Short description for file.
; *
; *
; * PHP versions 4 and 5
; *
; * CakePHP : Rapid Development Framework <http://www.cakephp.org/>
; * Copyright (c) 2006, Cake Software Foundation, Inc.
; * 1785 E. Sahara Avenue, Suite 490... | PHP |
<?php
/* SVN FILE: $Id: core.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* This is core configuration file.
*
* Use it to configure core behaviour ofCake.
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
* ... | PHP |
<?php
/* SVN FILE: $Id: bootstrap.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
* 1785 E. Sahara ... | PHP |
<?php
/* SVN FILE: $Id: css.php 3486 2006-09-14 22:28:09Z phpnut $ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue... | PHP |
<?php
/* SVN FILE: $Id: vendors.php 3506 2006-09-17 16:30:47Z phpnut $ */
/**
* Short description for file.
*
* This file includes js vendor-files from /vendor/ directory if they need to
* be accessible to the public.
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
... | PHP |
<?php
/* SVN FILE: $Id: index.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* Short description for file.
*
* Long description for file
*
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
* 1785 E. Sahara Aven... | PHP |
<?php
/* SVN FILE: $Id: index.php 2951 2006-05-25 22:12:33Z phpnut $ */
/**
* PHP versions 4 and 5
*
* CakePHP : Rapid Development Framework <http://www.cakephp.org/>
* Copyright (c) 2006, Cake Software Foundation, Inc.
* 1785 E. Sahara Avenue, Suite 490-204
* Las Vegas, Nevada 89104
*
* Licensed... | PHP |
<?php
class Demo extends AppModel
{
var $name = 'Demo';
var $useTable = 'emptytable';
}
?>
| PHP |
<?php
class Note extends AppModel
{
var $name = 'Note';
}
?>
| PHP |
<?php
class Misc extends AppModel
{
var $name = 'Misc';
var $useTable = 'emptytable';
}
?>
| PHP |
<?php
class Category extends AppModel
{
var $name = 'Category';
}
?> | PHP |
<?php
class NotesController extends AppController
{
var $name = 'Notes';
function index()
{
$this->set('notes', $this->Note->findAll());
}
function view($id)
{
$this->Note->id = $id;
$this->set('data', $this->Note->read());
}
function add()
{
if (!empty($this->data['Note']))
{
if($this->Note... | PHP |
<?php
/**
* Pagination Component, responsible for managing the DATA required for pagination.
*/
class PaginationComponent extends Object
{
// Configuration/Default variables
/**
* Specify whether the component will use AJAX links if available.
* Tests for the presence of the RequestHandler component an... | PHP |
<div id='pagination'>
<?php
if($pagination->setPaging($paging)):
$leftArrow = $html->image("nav/arrowleft.gif", Array('height'=>15));
$longleftArrow = $html->image("nav/arrowleft.gif", Array('height'=>15,'width'=>50));
$rightArrow = $html->image("nav/arrowright.gif", Array('height'=>15));
$longrightArrow ... | PHP |
<?php
class MiscsController extends AppController
{
var $uses = 'Category';
var $layout = 'ajax_layout';
var $helpers = array('Html', 'Javascript', 'Ajax');
function index()
{
mysql_query("SET NAMES 'UTF8'");
$this->pageTitle = '十六铺——中国高校二手交易联盟';
$this->set("categorys", $this->Category->findAll());
}
f... | PHP |
<?php
// ----- begin of function library -----
// Excel begin of file header
function xlsBOF() {
echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0);
return;
}
// Excel end of file footer
function xlsEOF() {
echo pack("ss", 0x0A, 0x00);
return;
}
// Function to write a Number (double) into... | PHP |
<div class="info_box">
<div class="title">Welcome to <?php echo $config['title'];?></div>
<div class="content">
Here you can view and edit your account! <br/>
</div>
</div> | PHP |
<ul>
<div class="fb-like-box" data-href="<? echo $config['plugin.facebook.url']; ?>" data-width="240" data-show-faces="true" data-stream="false" data-header="false"></div>
</ul> | PHP |
<?
function GetStatus()
{
global $conf;
$ret = 0;
$stat = @fsockopen ($conf['serverip_log'],$conf['port_log'],$errno, $errstr, 1);
if ($stat = true)
$ret = 1;
else
return('<span class="stat_offline">offline</span>');
$stat = @fsockopen ($conf['serverip_char'],$conf['port_char'], $errno, ... | PHP |
<?
/*
Configuration file for 15CP 0.08
Legend:
(*1) = Please use = 'value'; format here!
(*2) = True / False variable!
(*3) = Interger variable. Only numbers are allowed!
*/
//General Stuff
$config['title'] = '15peaces Control Panel'; //This is the title of your control panel! (*1)
//SQL relate... | PHP |
<?php
include "config.php";
include "functions.php";
if(isset($_GET['popup'])){
if($_GET['popup'] == 'login'){
$login_pop = true;
}
if($_GET['popup'] == 'loginh'){
$login_pop = false;
}
}
if(isset($_GET['action'])){
if($_GET['action'] == 'login'){
if(isset($_POST['ok'])){
... | PHP |
<?php
/**
* 웹 Core 처리부
*
* 실제 index.php가 로드됐을 경우 실행되는 플로우를 담고 있는 페이지
* 테스트 케이스 작성을 위해 해당 부분을 따로 분리하였음.
*
* @author Platform Team
*/
$Router = Router::getInstance();
include FW_DIR_FRAMEWORK_CONF . '/conf.sslwrap.php';
include FW_DIR_FRAMEWORK_CONF . '/conf.router.php';
$Router->initialize(FW_ROUTE_MAP_TYPE, F... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.destruct.php
*
* Dispatcher 객체 생성 이후 처리될 초기화 설정들을 지정합니다.
*
* @package conf
* @author Platform Team
*/
if (!function_exists('autoDestructExecute')) {
function autoDestructExecute()
{
//Session Close
Session::instance()->clos... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.func.php
*
* 범용 함수를 관리합니다.
* _ 로 시작하는 함수는 숨겨진 기능을 하는 private 속성의 함수입니다.
*
* @package conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.func.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.func.php'... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.router.php
*
* 라우팅 맵핑 규칙을 작성 관리합니다.
*
* @package conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.router.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.router.php';
if (FW_MIDDLEWORK_USE && is_fil... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.initialize.php
*
* Dispatcher 객체 생성 이후 처리될 초기화 설정들을 지정합니다.
*
* @package conf
* @author Platform Team
*/
if (!function_exists('autoInitializeExecute')) {
function autoInitializeExecute()
{
$Model = Model::getInstance();
$Ses... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.hooker.php
*
* 프레임워크 전체 플로우 과정에서의 훅을 지원합니다.
* 코어단의 로직을 직접 수정하지 않고 코어의 움직임을 제어할 수 있습니다.
*
* @package conf
* @author Platform Team
*/
$HOOKER = array();
$f = FW_DIR_PROJECT . '/conf/conf.hooker.php';
if (is_file($f)) {
include $f;
}
$f = FW_D... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.gpcr.php
*
* 파라미터(GET, POST, COOKIE, REQUEST) 로그 설정을 합니다.
*
* @package conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.gpcr.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.gpcr.php';
if (FW_MIDDLE... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.uipack.php
*
* Uipack 을 사용하기 위한 상수를 관리합니다.
*
* @package conf
* @author Platform Team
*/
//
// Driver Infomation - JQUERY
//
/**
* 드라이버명
*/
define('UIPACK_DRIVER_JQUERY', 'jquery');
/**
* 코어 버젼
*
* !!NOTICE!!
* 버젼이 없는 경우 항상 jquery.js 파일이 호출... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.exception.php
*
* @package conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.exception.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.exception.php';
if (FW_MIDDLEWORK_USE && is_file($f)) {
inclu... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.sslwrap.php
*
* Sslwrap 환경설정 및 구동준비
*
* @package conf
* @author Platform Team
*/
$Ssl = Sslwrap::getInstance();
$Ssl->initialize(array(
'frontend_enabled' => Configure::get('FW.ssl_frontend_enabled'),
'backend_enabled' ... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.boot.php
*
* 실제 컨트롤러가 호출되어 어플리케이션이 동작하기 이전에 필요한 자원들을 미리 로드합니다.
* 해당 디렉토리는 autoload 가 적용되어 있지 않으므로 명시적으로 require 해 줄 필요가 있습니다.
*
* @package conf
* @author Platform Team
*/
include FW_DIR_FRAMEWORK_BOOT . '/abstracts.php';
include FW_DIR_FRAMEWORK_... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.path.php
*
* 디렉토리/파일 경로 관리
*
* @package conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.path.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.path.php';
if (FW_MIDDLEWORK_USE && is_file($f)) {
... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.configure.php
*
* 환경 정보를 할당합니다.
*
* @package conf
* @author Platform Team
*/
$CONFIGURE = array();
$f = FW_DIR_PROJECT . '/conf/conf.configure.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.configure.php';
if (FW... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.define.php
*
* 전역 상수를 관리합니다.
*
* @package framework
* @subpackage conf
* @author Platform Team
*/
$f = FW_DIR_PROJECT . '/conf/conf.define.php';
if (is_file($f)) {
include $f;
}
$f = FW_DIR_MIDDLEWORK . '/conf/conf.define.php';
if (... | PHP |
<?php if (!defined('__FW_RUN__')) exit('not found');
/**
* conf.autoload.php
*
* _autoload 함수에 대한 규칙을 정의합니다.
* $AUTOLOAD 에 할당되어 있지 않은 디렉토리는 autoload 의 영향을 받지 않습니다.
*
* @package conf
* @author Platform Team
*/
$AUTOLOAD = array();
$f = FW_DIR_PROJECT . '/conf/conf.autoload.php';
if (is_file($f)) {
include... | PHP |
<?php
/**
* 캐쉬 쓰기 - Normal(File)
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilCacheWriterFile extends utilCacheWriterAbstract implements utilCacheWriterInterface
{
const CACHE_DIR = '_data';
const CACHE_EXT = '.dat';
/**
* 캐쉬 설정 객체
* @v... | PHP |
<?php
/**
* 캐쉬 쓰기 - Abstract
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
abstract class utilCacheWriterAbstract
{
private static $aInstance = array();
abstract public function __construct(utilCacheConfig $cacheConfig);
/**
* 캐쉬 쓰기 파서 객체 반환
*
... | PHP |
<?php
/**
* 캐쉬 쓰기 - Interface
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
interface utilCacheWriterInterface
{
/**
* 캐쉬 데이터 설정
*
* @param String $sClassName
* @param String $sKey
* @param String $mData
*
* @retu... | PHP |
<?php
/**
* 캐쉬 쓰기 파서 - Abstract
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
abstract class utilCacheWriterParserAbstract
{
/**
* Cache Data Encoding...
*
* @param Mixed $mData
*
* @return Mixed
*/
abstract public function e... | PHP |
<?php
/**
* 캐쉬 쓰기 파서 - Serial
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilCacheWriterParserSerial extends utilCacheWriterParserAbstract
{
public function encodeData($mData)
{
return serialize($mData);
}
public function decodeData($mD... | PHP |
<?php
/**
* 캐쉬 설정
*
* <code>
* // 캐쉬 설정
* $aCacheConfig = array
* (
* $aCacheConfig['ExpireTime'] = 86400, // 캐쉬 유료 시간
* $aCacheConfig['Writer'] = 'File', // 캐쉬 쓰기 처리자(File)
* $aCacheConfig['WriterParser'] = 'Serial', // 캐쉬 쓰기 파서(Serial)
* $aCacheConfig['CacheManage'] = 'File',... | PHP |
<?php
/**
* 캐쉬 관리 - File
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 2.0
*/
class utilCacheManageFile extends utilCacheManageAbstract implements utilCacheManageInterface
{
const CACHE_MANAGE_DIR = '_smng';
const CACHE_MANAGE_EXT = '.dat';
/**
* 캐쉬 설정 - 파일 ... | PHP |
<?php
/**
* 캐쉬 관리 - Abstract
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
abstract class utilCacheManageAbstract
{
abstract public function __construct(utilCacheConfig $cacgeConfig);
}
| PHP |
<?php
/**
* 캐쉬 관리 - Filememcache
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilCacheManageFilememcache extends utilCacheManageAbstract implements utilCacheManageInterface
{
/**
* Memcache 드라이버 객체
* @var Memcache
*/
private static $Memcac... | PHP |
<?php
/**
* 캐쉬 관리 - Interface
*
* @package util
* @subpackage cache
*
* @author jylee3@simplexi.com
* @version 1.0
*/
interface utilCacheManageInterface
{
/**
* 캐쉬 관리 설정
*
* @param String $sClassName
* @param String $sKey
*
* @return Mixed
*/
public func... | PHP |
<?php
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'XMLRPC'.DS.'xmlrpc.inc';
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'XMLRPC'.DS.'xmlrpcs.inc';
/**
* 유틸리티 - XML-RPC Client
*
* @package util
* @subpackage xmlrpc
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilXmlrpcClient extends xmlrpc_client
{
publ... | PHP |
<?php
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'XMLRPC'.DS.'xmlrpc.inc';
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'XMLRPC'.DS.'xmlrpcs.inc';
/**
* 유틸리티 - XML-RPC Server
*
* @package util
* @subpackage xmlrpc
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilXmlrpcServer extends xmlrpc_server
{
publ... | PHP |
<?php
/**
* utilUipackDriverJquery
*
*
* @package util
* @subpackage Uipack
* @author Platform Team
*/
class utilUipackDriverJquery extends utilUipackDriverAbstract
{
/**
* 기본 루트 디렉토리 지정
*
* @return string
*/
protected function setDefaultRootDir()
{
return FW_DI... | PHP |
<?php
/**
* utilUipackDriverAbstract
*
*
* @package util
* @subpackage Uipack
* @author Platform Team
*/
abstract class utilUipackDriverAbstract
{
/**
* Sslwrap 객체
* @var Sslwrap
*/
private $Sslwrap;
/**
* Optimizer 객체
* @var Optimizer
*/
protected $Optim... | PHP |
<?php
/**
* utilUipackDriver
*
*
* @package util
* @subpackage Uipack
* @author Platform Team
*/
class utilUipackDriver
{
/**
* 플러그인 호출 메소드의 접두어
* @var string
*/
const PREFIX_PLUGIN = 'plugin';
/**
* 드라이버 객체
* @var utilUipackDriver[Driver명]
*/
private $Dr... | PHP |
<?php
/**
* 유틸리티 - 문자열
*
* <code>
* $utilString = utilString::getInstance();
* // UTF 호환 문자열 자르기
* // 결과 : 가나다라A
* $utilString->cutString('가나다라ABCDEF', 10);
* // HTML Decode
* // 결과 : <script type=\'text/javascript\' src="./example.js" />
* $utilString->htmlDecode('<script type='text/javascript' ... | PHP |
<?php
/**
* utilBrowser
*
* 브라우저 정보를 받아옵니다.
* <code>
* $utilBrowser = new utilBrowser;
* $utilBrowser->Name;
* $utilBrowser->Version;
* </code>
*
* @author 정상두
* @package util
*
*/
class utilBrowser
{
private $aProps = array("Version" => "0.0.0",
"Name" => "unknown",
... | PHP |
<?php
/**
* utilXans
*
* @package util
* @subpackage xans
* @author Platform Team
*/
include dirname(__FILE__) . '/Xans/_config.php';
include FW_XANS_REQUIRE_PATH;
class utilXans extends Xans
{
/**
* 생성자
*
* @param string $sPath (파일 절대경로 혹은 소스) => 소스인 경우 $isSourceParse 의... | PHP |
<?php
/**
* 유틸리티 - Captcha 이미지
*
* @package util
* @subpackage captcha
*
* @version 1.0
* @author jylee3@simplexi.com
*/
class utilCaptchaImage
{
protected $iWidth;
protected $iHeight;
protected $sCode;
protected $rImage;
protected $sImageType;
/**
* Captcha 이미지 객체 생성자
*... | PHP |
<?php
/**
* 유틸리티 - Captcha 이미지 생성자
*
* @package util
* @subpackage captcha
*
* @version 1.0
* @author jylee3@simplexi.com
*/
class utilCaptchaGenerator
{
/**
* Captcha 이미지 생성
*
* @param Integer $iWidth
* @param Integer $iHeight
* @param Integer $iCharLen
... | PHP |
<?php
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'HTMLSafe'.DS.'Safe.php';
/**
* XSS Filter - HTML Source
*
* <code>
* $sHtml = utilXssHtml::filter(array('object', 'embed'));
* </code>
*
* @package util
* @subpackage xss
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilXssHtml
{
/**
* HTML... | PHP |
<?php
/**
* XSS Filter - Variable
*
* <code>
* $iInt = utilXssHtml::filterInt(1111);
* </code>
*
* @package util
* @subpackage xss
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilXssVar
{
/**
* Integer Filter
*
* <code>
* $iInt = utilXssVar::filterInt($mInt);
* </cod... | PHP |
<?php
/**
* XSS Filter - Default
*
* <code>
* $sString utilXssDefault::filter('<SCRIPT name="name"></SCRIPT>');
* </code>
*
* @package util
* @subpackage xss
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilXssDefault
{
const RA_ATTRIBUTE = 0x01;
const RA_PROTOCOL = 0x02;
const RA_TAG... | PHP |
<?php
/**
* 유틸리티 - XSS Filter
*
* 이 유틸리티는 HTTP의 요청에 대한 모든 잠재적인 HTML 위험요소에 대해 제거합니다.
*
* 예를들어, $aPost = array('test'=>'<script></script>'); 에서 $aPost에 대한 잠재적인 위험요소를 제거하려면 아래 코드를 시행하십시오.
*
* $filPost = new utilXss($aPost);
* $sHTML = $filPost->filterHTML('test');
*
* XSS Filter는 HTML, 문자열(알파벳,숫자,_,공백,일반적으로 안전한... | PHP |
<?php
require_once 'XML/Feed/Parser.php';
/**
* 유틸리티 - XML Feed Parser(ATOM/RSS/... 지원)
*
* <code>
* $sRssXmlUrl = 'http://media.daum.net/rss/today/primary/all/rss2.xml';
* $aCurlParams = array(
* 'url' => $sRssXmlUrl,
* 'method' => 'GET',
* 'timeout' => 5
* );
* $utilCurl = utilCurl::ge... | PHP |
<?php
/**
* utilValidator
*
* 사용에 앞서...
* getInstance 메소드로 객체 생성후
* initialize 메소드를 반드시 한번은 실행해 주어야 한다.
* 이곳에서 파라미터(get, post)와 언어팩을 설정하기 때문.
*
* <code>
* $aResult = $utilValidator->inspection(array(
* array(
* 'id' => 'user_id',
* 'label' => '아이디',
* 'filter' => 'isFill&isIdent... | PHP |
<?php
require_once 'PHPExcel/PHPExcel.php';
/**
* 유틸리티 - Excel 생성
*
* 참고 : PHPExcel 샘플 및 예제코드는 아래 link에서 제공됩니다.
*
* PHPExcel
*
* Pear Installation :
* pear channel-discover pear.pearplex.net
* pear install pearplex/PHPExcel
*
* Copyright (C) 2006 - 2010 PHPExcel
*
* This library is free software;... | PHP |
<?php
/**
* 유틸리티 - JavaScript
*
* @package util
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilJavascript
{
/**
* utilJavascript Instance
*
* @return utilJavascript
*/
public static function getInstance()
{
return utilSplClass::load('utilJavascript');
}... | PHP |
<?php
/**
* Redis PHP Bindings - http://code.google.com/p/redis/
*
* Copyright 2009 Ludovico Magnocavallo
* Copyright 2009 Salvatore Sanfilippo (ported it to PHP5, fixed some bug)
* Released under the same license as Redis.
*
* Version: 0.1
*
* $Revision: 139 $
* $Date: 2009-03-15 22:59:40 +0100 (Dom, 15 Mar ... | PHP |
<?php
/**
* redis driver Predis
*
* @author ulariul jung
* @package util
* @subpackage redis
*/
require_once FW_DIR_FRAMEWORK_VENDOR.DS.'Predis'.DS.'lib'.DS.'Predis.php';
class utilRedisDriverPredis
{
public static function predis($aServerInfo)
{
return new Predis\Client($aServerInfo);
... | PHP |
<?php
/**
* performance 향상 도구
*
* 가상화하여 해당 필드를 업데이트할 수 있도록 해줘서 퍼포먼스를 향상 시킴
*
* <code>
* $utilRedisCount = utilRedisCount::getInstance('board_2');
* $utilRedisCount->set(1);
* </code>
* @package util
* @subpackage redis
* @author 정상두
*
*/
class utilRedisCount
{
/**
* utilRedis
* @var ... | PHP |
<?php
/**
* utilWebeditorDriverSimplex
*
*
* @package util
* @subpackage Webeditor
* @author Platform Team
*/
class utilWebeditorDriverSimplex extends utilWebeditorDriverAbstract
{
const PREFIX_OBJECT = 'oNN_';
/**
* 에디터 객체가 담기는 JS 변수명
*/
protected $sEditorObjectName;
/**
... | PHP |
<?php
/**
* utilWebeditorDriverAbstract
*
*
* @package util
* @subpackage Webeditor
* @author Platform Team
*/
abstract class utilWebeditorDriverAbstract
{
/**
* Load
*
* @param array $aConfig (환경설정배열)
* @return string
*/
abstract public function load($aConfig=array())... | PHP |
<?php
/**
* 유틸리티 - Captcha
*
* <code>
* // 넓이 : 120
* // 높이 : 40
* // 코드 길이 : 6
* // 출력 형식 : JPEG
* $utilCaptchaImage = utilCaptcha::generate(120, 40, 6, 'JPEG');
* // 이미지 출력
* $mResult = $utilCaptchaImage->outputCaptchaImage();
*
* // Captcha 이미지 넓이 반환
* $iResult = $utilCaptchaImage->getWidth()
* // Capt... | PHP |
<?php
require_once("Net/FTP.php");
/**
* 유틸리티 - FTP
*
* 참고 : 이 유틸리티는 Net/FTP.php(1.3.7) 를 참조합니다.
*
* @link http://pear.php.net/package/Net_FTP
*
* @package util
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilFtp extends Net_FTP
{
}
| PHP |
<?php
/**
* 유틸리티 - INI 관리
*
* INI 파일을 읽어오는 기능과 쓰는 기능을 가지고 있습니다.
*
* <code>
* <?php
* $utilIni = utilIni::getInstance();
*
* //파일불러오기
* $aFileData = $utilIni->load('test.ini');
*
* //파일저장하기
* $aData['bar'] = array(
* 'foo' => 'test',
* 'key' => 'value'
* );
* $utilIni->save('test2.ini', $aData);
... | PHP |
<?php
/**
* SPL Class Tool
*
* @package util
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilSplClass
{
/**
* SPL 클래스 인스턴스 저장소
*/
private static $instance = array();
/**
* SPL 클래스 로더
*
* <code>
* $utilString = utilSplClass::load('utilString');
*
* ... | PHP |
<?php
/**
* Array Iterator Class
*
* @package util
*
* @author jylee3@simplexi.com
* @version 1.0
*/
class utilSplIteratorArray extends ArrayIterator
{
}
| PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.