Skip to content

Instantly share code, notes, and snippets.

$strform = serialize($element);
if (strpos($strform, "forum")){
global $user;
foreach ($user->roles as $role)
{
if ($role == 'administrator')
{
$output = textarea_fetch_blog($output);
}
// $output .= "<p>$role";
function textarea_fetch_blog($output){
$output .= '<div>';
$output .= '<span style="font-size:16px;float:left;margin:18px 12px 18px 0px">匯入部落格的最新文章</span>';
$output .= '<select id="optSource" style="height:30px;position:absolute;margin-top:12px;border:1px solid #ccc;"><option value="tpTumblr">Tumblr</option>
<option value="tpWordpress">Wordpress</option>
</select>';
$output .= '<textarea id="txUrl" style="margin:10px 10px 10px 100px;border:1px solid #ccc;width:300px;height:20px;font-size:14px;padding:6px;"></textarea>';
$output .= '<span style="position:absolute;margin-top:12px;"><button id="btFetch" style="height:32px">Import</button></span>';
$output .= '</div>';
goog.provide('fire');
goog.require('lime.Director');
goog.require('lime.Scene');
goog.require('lime.Layer');
goog.require('lime.animation.KeyframeAnimation');
goog.require('lime.SpriteSheet');
goog.require('lime.ASSETS.fireball_hit.plist')
fire.W = 512;
@marvinjeng
marvinjeng / app.js
Created August 13, 2012 08:30
LINE 非公式 API を使ってログイン
var LINE = require('./line.js');
var line = new LINE();
var email = 'your email';
var password = 'your password';
line.login(email, password, function(error, result) {
if (error) {
return;
}