必要檔案
fileuploader/upload_5xsoft.inc
- 處理檔案上傳必要加載檔案
- 使用方式參考
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)); | |
} |
必要檔案
fileuploader/upload_5xsoft.inc
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']; | |
} |
<?php | |
namespace Personalwork\Auth; | |
use Phalcon\Events\Event, | |
Phalcon\Mvc\Dispatcher, | |
Phalcon\Mvc\User\Plugin; | |
use Personalwork\Exceptions\AuthExceptions as Exception; |
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; | |
} |