http://203.104.248.135/kcs/sound/titlecall/c/07.mp3
http://203.104.248.135/kcs/sound/kc#ship_id/[1-37].mp3
http://203.104.248.135/kcs/ships/#ship_id.swf?VERSION=1
| /***************************************************************************** | |
| このクラスは某、打ち止め氏のktaiwebから投稿するためのクラスを書きなおしたものです。 | |
| cURLの方がアクセスは何故か早かったので、authenticity_tokenとCookieはcURLで取得しています。 | |
| PHP.iniの設定でextension=php_curl.dllをコメントアウトしていると正しく使えず、errorが出る可能性があります。 | |
| ;を外して再起動すれば使えるようになると思います。 | |
| -----テスト環境----- | |
| ・Windows Vista SP1 | |
| ・Apache/2.2.17 (Win32) | |
| ・PHP5.3.4 |
| <?php | |
| /***************************************************************************** | |
| このクラスは某、打ち止め氏のktaiwebから投稿するためのクラスを書きなおしたものです。 | |
| cURLの方がアクセスは何故か早かったので、authenticity_tokenとCookieはcURLで取得しています。 | |
| PHP.iniの設定でextension=php_curl.dllをコメントアウトしていると正しく使えず、errorが出る可能性があります。 | |
| ;を外して再起動すれば使えるようになると思います。 | |
| -----テスト環境----- | |
| ・Windows Vista SP1 | |
| ・Apache/2.2.17 (Win32) |
| <?php | |
| $user[]= new ktaiWebLibrary("Twitter ID","Password"); | |
| $user[]= new ktaiWebLibrary("Twitter ID2","Password"); | |
| // and more... | |
| $fav = 1; //ふぁぼをする場合1 | |
| $rt = 0; //RTをする場合1 | |
| /* | |
| twitterのAPIで "http://api.twitter.com/1/statuses/user_timeline.json" | |
| から引数で "trim_user"=>1 とした配列を$friends_timelineに渡してあげれば幸せになります。 |
| <?php | |
| //基本的にどっか別のライブラリに組み込む形がいいと思うよ。 | |
| //get_friends_timeline_multiメソッドの第一引数に配列でユーザーIDを入れると配列にそいつらのツイートが全部まとめて入ってくるから複数ユーザーをふぁぼったりするときに捗るかと。 | |
| //checkSourceShootingStarにツイートのsourceを送るとShootingStarか判別してくれる。stsの経験値稼ぎに貢献できるね☆ | |
| require 'twitteroauth.php'; | |
| class twitteroauthS{ | |
| // Consumer keyの値 | |
| public $consumer_key = ""; | |
| // Consumer secretの値 | |
| public $consumer_secret = ""; |
| <?php | |
| //メソッド名とか変わってるかもしれないから一応確認してね。TLの取得もできるかもしれないけど、きまぐれで取得できてないからだれかデバッグしてくれるとありがたい | |
| class ktaiWebLibrary{ | |
| private $authenticity_token; | |
| private $preliminaryCookie; | |
| private $cookie; //_komadori_session=.+?;なものが入っています。 | |
| private $login; //ログインに成功すればtrue 失敗していればfalseが入っています。 | |
| public $userAgent = "Mozilla/0 (iPhone;)";//UserAgentを変更する場合はここを編集してください。 |
| -------------sortingUa.php------------- | |
| <?php | |
| /** | |
| * スマートフォンかどうかを振り分ける簡易的なクラスです。 | |
| * | |
| * @package sortingUa | |
| * @author shobotch | |
| * @sinse PHP 5.3.8 | |
| * @version 1.0.0 | |
| */ |
| <?php | |
| /** | |
| * Smarty {get_page_info} function plugin | |
| */ | |
| function smarty_function_get_page_info($param, &$smarty){ | |
| //var_dump($param["page"]); | |
| //現在のページ数からどのくらいの範囲のページを詳細に表示するか | |
| //例:5の場合、手前は現在のページからdetailの半分の値で小数点以下切り捨てで、この場合2こ表示する。 | |
| // 奥はdetailの数だけ表示するので、この場合4こ表示する。 |
| <?php | |
| class AccountSearch{ | |
| public $account_list = array(); | |
| public function checkAccount($name = array(), $single = false){ | |
| $url = array(); | |
| $falg = array(); | |
| foreach ($name as $value) { |
| package ws.temp.dustcode; | |
| import android.app.Activity; | |
| import android.content.Context; | |
| import android.os.Bundle; | |
| import android.support.v4.view.PagerAdapter; | |
| import android.support.v4.view.ViewPager; | |
| import android.view.LayoutInflater; | |
| import android.view.Menu; | |
| import android.view.View; |