This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |