restコントローラーではbefore内で、全体のログインチェックを行う事が出来ない。
class Controller_Api extends \Fuel\Core\Controller_Rest
#!/bin/sh | |
echo "deleting bounce queue \n"; | |
rm -f /var/qmail/queue/bounce/*/* | |
echo "deleting remote queue \n"; | |
rm -f /var/qmail/queue/remote/0/* | |
rm -f /var/qmail/queue/remote/1/* | |
rm -f /var/qmail/queue/remote/2/* | |
rm -f /var/qmail/queue/remote/3/* | |
rm -f /var/qmail/queue/remote/4/* |
#!/bin/sh | |
# | |
#[使い方] | |
# | |
#実行権限を与える | |
# chmod 755 ./useradd.sh | |
# | |
#第一引数にユーザー名、第二引数にパスワードを書いて実行 | |
# ./useradd.sh username passwd | |
# |
<?php | |
/** | |
* http://kore1server.com/create-your-site/build-your-own-site/234-fuelphp-code-completion-code-grnerator.html | |
*/ | |
namespace Fuel\Tasks; | |
/** |
<?php | |
namespace Fuel\Migrations; | |
class Create_sessions | |
{ | |
public function up() | |
{ | |
\DBUtil::create_table('sessions', array( | |
'session_id' => array('constraint' => 40, 'type' => 'varchar', 'null' =>false), |
#!/bin/sh | |
###### | |
# netstatの80が400越えたら再起動 | |
##### | |
apacheprocess=`netstat -an | grep :80 | wc -l` | |
if [ $apacheprocess -gt 400 ]; then |
{ | |
"name": "fuel/fuel", | |
"type": "project", | |
"description" : "FuelPHP is a simple, flexible, community driven PHP 5.3+ framework, based on the best ideas of other frameworks, with a fresh start!", | |
"keywords": ["application", "website", "development", "framework", "PHP"], | |
"license": "MIT", | |
"require": { | |
"php": ">=5.3.3", | |
"composer/installers": "~1.0", | |
"monolog/monolog": "1.5.*", |
# -*- coding: utf-8 -*- | |
require 'net/http' | |
require "json" | |
require 'time' | |
######## | |
# config | |
######## | |
# crontabに登録は以下のような感じで |