// jQuery
$(document).ready(function() {
// code
})
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; | |
} |
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
<?php | |
namespace Personalwork\Auth; | |
use Phalcon\Events\Event, | |
Phalcon\Mvc\Dispatcher, | |
Phalcon\Mvc\User\Plugin; | |
use Personalwork\Exceptions\AuthExceptions as Exception; |
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
dheader('Expires: '.gmdate('D, d M Y H:i:s', TIMESTAMP + 3600).' GMT'); | |
if($attach['remote']) { | |
$filename = $_G['setting']['ftp']['attachurl'].'forum/'.$attach['attachment']; | |
} else { | |
$filename = DISCUZ_ROOT.$_G['setting']['attachdir'].'forum/'.$attach['attachment']; | |
// $filename = '/home/wetalk/public_html/data/attachment/forum/'.$attach['attachment']; | |
} |
必要檔案
fileuploader/upload_5xsoft.inc
- 處理檔案上傳必要加載檔案
- 使用方式參考
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
In the Action() | |
```php | |
$reflection=$this->annotations->get("[modelclass]"); | |
foreach($reflection->getPropertiesAnnotations() as $key => $collection) { | |
if( $collection->has('comment') ){ | |
$anno=$collection->get('comment'); | |
var_dump($anno->getArgument(0)); | |
} |
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
<?php | |
/** | |
* [Discuz!] (C)2001-2099 Comsenz Inc. | |
* This is NOT a freeware, use is subject to license terms | |
* | |
* $Id: class_cache.php 27449 2014-10-06 17:52 by assassin0905 $ | |
*/ | |
if(!defined('IN_DISCUZ')) { |
** 匹配Unicode字符的正則表達式
這裡是幾個主要非英文語系字符範圍(google上找到的):
- 2E80~33FFh:中日韓符號區。收容康熙字典部首、中日韓輔助部首、注音符號、日本假名、韓文音符,中日韓的符號、標點、帶圈或帶括符文數字、月份,以及日本的假名組合、單位、年號、月份、日期、時間等。
- 3400~4DFFh:中日韓認同表意文字擴充A區,總計收容6,582個中日韓漢字。
- 4E00~9FFFh:中日韓認同表意文字區,總計收容20,902個中日韓漢字。
- A000~A4FFh:彝族文字區,收容中國南方彝族文字和字根。
- AC00~D7FFh:韓文拼音組合字區,收容以韓文音符拼成的文字。
- F900~FAFFh:中日韓兼容表意文字區,總計收容302個中日韓漢字。
- FB00~FFFDh:文字表現形式區,收容組合拉丁文字、希伯來文、阿拉伯文、中日韓直式標點、小符號、半角符號、全角符號等。
OlderNewer