core/instance.php:
support getting a new instance by some args for constructor.
add get_config and get_class_name function.
add some comments.
database: add avatar column
if ENVIRONMENT is development, show error details.
use session:get_uname instead of account:get_uname_by_uid
user avatar support!
return file type as type in array in download avatar model
allow use logined user as default target for download avatar
add slashes
add account/uploadavatar and account/downloadavatar
put out event->pub from model to controller
加括号
input:get_all()  pretty output
add get_exec_args to router
use previous format for auth failed
mess
add 601 error to uploadavatar
move event from library to system directory
rename config/hook.php as config/event.php
remove old hook, which is replaced by system/event
bugfix
replace hook by system/event
add some comments