- centos5
yum install php-pecl-yaml
/** | |
* | |
* Generic CSS for CakePHP | |
* | |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | |
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
<?php | |
require_once 'Pager.php'; | |
class MY_Pagination{ | |
var $params = array( | |
'mode' => 'sliding', | |
'perPage' => 10, | |
'delta' => 4,//現在のページの前後に表示するページ番号の数 | |
'separator' => '', | |
'curPageLinkClassName' => 'current', |
<?php | |
require_once 'Net/IPv4.php'; | |
class IpCheck { | |
function gateway(){ | |
//IPを設定する配列 | |
$ip_table = array(); | |
class ExampleException extends CakeException { /** * Constructor * * @param string $message If no message is given 'Not Found' will be the message * @param string $code Status code, defaults to 404 */ public function __construct($message = null, $code = 404) { if (empty($message)) {
<html> | |
<head> | |
<style type="text/css"> | |
/* Set up custom font and form width */ | |
body { | |
margin-left: 10px; | |
font-family: Arial,sans-serif; | |
font-size: small; | |
} |
<?php | |
/** | |
* サーバー監視シェル | |
* Gmail経由でメール送信 | |
* | |
* @author ootatter | |
*/ | |
App::uses('CakeEmail', 'Network/Email'); | |
App::uses('ConnectionManager', 'Model'); |
syntax on | |
set autoindent | |
set number | |
if has('gui_macvim') | |
set showtabline=2 " タブを常に表示 | |
set imdisable " IMを無効に | |
set antialias " アンチエイリアスを有効に | |
set cindent " Cインデントを利用 | |
set expandtab " タブを空白文字で |
#! /bin/sh | |
set -e | |
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/user/bin | |
NAME=nginx | |
DESC="nginx deamon" | |
DAEMON=/usr/sbin/$NAME | |
SCRIPTNAME=/etc/init.d/$NAME |
/** | |
* 前後の商品 | |
* | |
*/ | |
public function neighbors($product_id){ | |
$objQuery =& SC_Query_Ex::getSingletonInstance(); | |
//prev | |
$objQuery->setOrder('product_id DESC'); | |
$objQuery->setLimit('1'); |