#697 add install option

This commit is contained in:
Unknwon committed 2015-09-13 12:14:32 -04:00
1 parent b0bf4cc1cb
commit 5f1183cecf
7 files changed
+27 -6

No files matched your search

+2
View File
@@ -102,6 +102,8 @@ disable_gravatar = Disable Gravatar Service
disable_gravatar_popup = Disable Gravatar and custom sources, all avatars are uploaded by users or default.
disable_registration = Disable Self-registration
disable_registration_popup = Disable user self-registration, only admin can create accounts.
enable_captcha = Enable Captcha
enable_captcha_popup = Require validate captcha for user self-registration.
require_sign_in_view = Enable Require Sign In to View Pages
require_sign_in_view_popup = Only signed in users can view pages, visitors will only be able to see sign in/up pages.
admin_setting_desc = You do not have to create an admin account right now, user whoever ID=1 will gain admin access automatically.
+1 -1
View File
@@ -721,7 +721,7 @@ notices=系统提示管理
monitor=应用监控面板
first_page=首页
last_page=末页
total=总计:
total=总计:%d
dashboard.statistic=应用统计数据
dashboard.operations=管理员操作
+1
View File
@@ -38,6 +38,7 @@ type InstallForm struct {
OfflineMode bool
DisableGravatar bool
DisableRegistration bool
EnableCaptcha bool
RequireSignInView bool
AdminName string `binding:"OmitEmpty;AlphaDashDot;MaxSize(30)" locale:"install.admin_name"`
+4 -4
View File
@@ -4364,7 +4364,7 @@ func confLocaleLocale_deDeIni() (*asset, error) {
return a, nil
}
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\xbd\xeb\x72\xdc\x48\xae\x27\xfe\x9d\x4f\xc1\xf6\x09\xff\xdd\x8e\x90\xcb\xd1\xdd\xff\xbd\x44\x87\xed\x5e\x59\x6a\x5f\xe6\x58\x96\xc6\x92\x67\x76\xd6\xe1\x60\xb3\x8a\x54\x15\xc7\x55\x64\x35\xc9\x72\x59\x73\xe2\x44\xec\x6b\xec\xeb\xed\x93\x2c\xf0\x03\x90\x17\x92\x25\xd9\x3d\x27\x76\xbf\x48\xac\x4c\xe4\x0d\x89\x44\x02\x48\x24\x32\xdf\x6e\xb3\xa2\xec\x16\xe9\xd3\xf4\x38\xdd\xe6\x55\xbd\x2e\xbb\x2e\xed\xca\xf5\xf5\xa3\x55\xd3\xf5\x65\x91\xbe\xac\x7a\xfa\xdd\x7e\xae\x16\x65\x92\xac\x9a\x4d\x49\xa0\xaf\xe8\x5f\x52\xe4\xdd\x6a\xde\xe4\x6d\x41\x09\xa7\xf6\x9d\x94\x5f\xb6\xeb\xa6\x65\xa0\x5f\xe5\x2b\x59\x95\xeb\x2d\x97\xa1\x7f\x49\x57\x2d\xeb\xac\xaa\xe9\xe7\x25\x7d\xa5\xaf\xeb\xa4\x6b\x16\x55\xbe\xce\x82\x0c\x24\x58\xfe\xcf\xe9\x8f\x75\x91\x5e\xf6\xe5\x36\x7d\xd2\x6d\xf2\xf5\xfa\x59\xde\xa1\x48\x5f\xa6\xf9\x62\xd1\xec\xea\xfe\xc9\x63\xc9\x90\xca\x9b\x5d\x6f\xb5\x9f\xef\x7a\x49\xdb\x6d\x2d\xe9\xfd\x36\x69\xcb\x65\x45\x03\x6b\x29\xe9\x9d\x7e\x26\xfb\x72\xde\x55\x3d\x77\xfa\xaf\xf2\x95\x7c\x2e\xdb\xae\x6a\xb8\x3f\x7f\x91\xaf\x64\x9b\x2f\x19\xe0\x82\xfe\x25\x7d\xb9\xd9\xae\x73\x14\xb8\xd2\xcf\x64\x9d\xd7\xcb\x9d\xc0\xbc\xd1\xcf\x64\xd1\x96\x94\x95\xd5\xe5\x9e\x52\x4f\xf0\x63\x36\x9b\x25\x3b\xc2\x67\xb6\x6d\x9b\xeb\x6a\x5d\x66\x79\x5d\x64\x1b\xc1\xd8\x7b\x4a\x4f\x35\x3d\xa5\xf4\x94\xd3\x31\x84\xb2\x20\xe4\x64\x79\xa7\xe3\xa0\x69\x21\x5c\xe5\x5d\x82\xaa\xea\x7c\x63\xa5\xf9\x33\x29\x37\x79\xb5\xe6\x09\x78\xc4\x1f\xd4\xf1\xae\xdb\x37\x98\xa6\x0b\xfd\x24\x24\x64\xfd\xcd\xb6\x04\x0e\x1e\x5d\xd1\x57\xb2\xc8\xb7\xfd\x62\x95\x73\x3f\xe5\x2b\x21\xa0\x6d\x43\xc8\x68\xda\x1b\xc0\xd9\x8f\xa4\x69\x97\x79\x5d\xfd\x23\xef\x05\x41\xe7\xc1\xcf\x64\x53\xb5\x6d\xc3\xb8\x3d\xc3\x47\x42\x43\xcf\xb8\x1e\x4a\x79\x4b\x58\x08\x6a\xe1\x9c\x4d\xb5\x6c\x05\x8d\x9c\x79\x86\x5f\x5c\x0b\xe7\x5d\x37\xed\x27\xcd\x78\xc1\x9f\x83\xa2\xd4\x09\xcd\x8d\xdb\xcf\x6b\x42\xbc\xe6\x9e\xe1\x47\x04\xd0\x25\x79\xb1\x21\x54\x6e\xf3\xba\x64\x1c\x1d\xf3\x2f\xc2\x0b\xfd\x4a\x94\x9e\xb2\xae\xec\xfb\xaa\x5e\x32\xb2\x8f\x25\x29\xbd\xd4\xa4\x24\xc8\x73\x69\x37\xcd\xce\x4d\x27\xa5\xff\x8d\x7e\xa6\x17\xf2\x53\xf2\x82\x42\xc8\x74\x25\x79\x24\x5d\x76\x5d\x96\x85\x8c\xa5\x4b\x5f\xd0\x77\xb2\xdd\xad\xd7\x84\xb5\xdf\x77\x65\xd7\x73\xa1\x0b\xfa\x4d\xe3\x97\xdf\x49\xd5\x75\xf4\x41\xc9\xaf\xf1\x91\xd0\xd4\xd5\x0b\x0c\xe6\x04\x1f\x49\xf2\xa1\x2b\xf3\x76\xb1\xfa\x98\xc8\x7f\xf4\x95\x3f\x98\xf6\x0e\x4d\x2a\x13\x92\x12\x91\xb4\x60\x0d\x24\x8b\xa6\xe0\x1f\x27\xf4\x8f\xaa\xae\xea\xae\xa7\xd5\xf6\x31\xd1\x0f\x06\x93\x2f\x99\x80\xbe\xea\x81\x05\x4d\xc4\xd2\xed\x78\x06\xd3\x17\x55\xdb\xf5\x8f\xfa\x8a\x88\xf5\xdd\xae\x4e\x78\x7c\xb4\xd2\xb2\x62\x6e\x0c\xe8\x65\x43\x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x39\xb1\x09\x33\xea\x3a\xde\x6e\xd7\xd5\x42\x9a\x7e\x29\x79\x9e\xd0\x78\x0f\x55\xa4\x84\x70\x20\x14\xcb\x0b\xc8\x85\x7a\xcd\x5c\x21\x8d\xd8\x28\xca\xaf\x4a\xda\x06\x56\xbb\xa5\x30\xff\x75\xb3\x2b\xbe\xc3\x7a\xb5\x99\xf3\xcb\x35\x7d\xd7\x50\x87\x41\x1d\x0e\xc0\x37\x71\x4c\xeb\x8e\xb7\xed\xb6\xdc\x34\x3d\x23\x4e\x8b\x55\x34\x3d\xfb\x8a\x32\x69\xa4\x5d\xfe\x99\xb8\x4e\xdf\xa4\xfd\xaa\xea\x08\xc7\x6d\xb9\xe0\x8a\x89\x41\xec\x68\xc3\x94\x65\x41\xcb\x54\x96\x86\xa5\xc5\x34\x08\xa8\xcd\x8e\x56\xd3\x8a\x2a\x63\xc4\xb3\xec\x40\x55\x4e\xf5\x13\x43\xa2\x7a\xb0\xca\x69\xe5\x36\xb4\x37\xf1\x44\x9f\xe2\x43\x7f\x87\xf5\x53\xaf\xf2\xeb\x6b\xea\x55\x47\xab\xe2\x55\xba\x58\x37\xb4\xa4\xde\xbf\x7b\xd3\xf1\x82\x59\x65\xdb\xa6\xc5\x46\x4f\x59\x17\xf4\xe9\xd2\x02\x44\x33\x44\xbd\xdb\xcc\xe9\xd7\x7e\x55\x11\x1f\x04\xda\xb9\x04\xcb\x33\x94\x4a\x4d\xec\x3a\x9a\xc2\xa3\x94\x96\x30\x8d\x80\x50\x06\x02\xe0\x31\x18\xd5\x31\xf8\x35\xd1\xd8\xae\xa5\xe5\xb4\xea\xfb\xad\xb5\xfc\xea\xea\xea\x42\x9a\x76\xa9\xb7\xb5\x9d\x07\x94\x81\x39\x58\xb3\xe8\x51\xa7\x4d\x3d\x03\x91\xec\xda\xf5\x80\x7e\x68\xac\x96\x73\x00\x2f\xdc\x85\xc7\xfc\xe7\xd2\xa3\x07\x78\xee\x48\x3e\xdb\x83\x9a\x08\xc7\x2Line truncated
var _confLocaleLocale_enUsIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xc4\xbd\xeb\x72\xdc\x48\xae\x27\xfe\x9d\x4f\xc1\xf6\x09\xff\xdd\x8e\x90\xcb\xd1\xdd\xff\xbd\x44\x87\xed\x5e\x59\x6a\x5f\xe6\x58\x96\xc6\x92\x67\x76\xd6\xe1\x60\xb3\x8a\x54\x15\xc7\x55\x64\x35\xc9\x72\x59\x73\xe2\x44\xec\x6b\xec\xeb\xed\x93\x2c\xf0\x03\x90\x17\x92\x25\xd9\x3d\x27\x76\xbf\x48\xac\x4c\xe4\x0d\x89\x44\x02\x48\x24\x32\xdf\x6e\xb3\xa2\xec\x16\xe9\xd3\xf4\x38\xdd\xe6\x55\xbd\x2e\xbb\x2e\xed\xca\xf5\xf5\xa3\x55\xd3\xf5\x65\x91\xbe\xac\x7a\xfa\xdd\x7e\xae\x16\x65\x92\xac\x9a\x4d\x49\xa0\xaf\xe8\x5f\x52\xe4\xdd\x6a\xde\xe4\x6d\x41\x09\xa7\xf6\x9d\x94\x5f\xb6\xeb\xa6\x65\xa0\x5f\xe5\x2b\x59\x95\xeb\x2d\x97\xa1\x7f\x49\x57\x2d\xeb\xac\xaa\xe9\xe7\x25\x7d\xa5\xaf\xeb\xa4\x6b\x16\x55\xbe\xce\x82\x0c\x24\x58\xfe\xcf\xe9\x8f\x75\x91\x5e\xf6\xe5\x36\x7d\xd2\x6d\xf2\xf5\xfa\x59\xde\xa1\x48\x5f\xa6\xf9\x62\xd1\xec\xea\xfe\xc9\x63\xc9\x90\xca\x9b\x5d\x6f\xb5\x9f\xef\x7a\x49\xdb\x6d\x2d\xe9\xfd\x36\x69\xcb\x65\x45\x03\x6b\x29\xe9\x9d\x7e\x26\xfb\x72\xde\x55\x3d\x77\xfa\xaf\xf2\x95\x7c\x2e\xdb\xae\x6a\xb8\x3f\x7f\x91\xaf\x64\x9b\x2f\x19\xe0\x82\xfe\x25\x7d\xb9\xd9\xae\x73\x14\xb8\xd2\xcf\x64\x9d\xd7\xcb\x9d\xc0\xbc\xd1\xcf\x64\xd1\x96\x94\x95\xd5\xe5\x9e\x52\x4f\xf0\x63\x36\x9b\x25\x3b\xc2\x67\xb6\x6d\x9b\xeb\x6a\x5d\x66\x79\x5d\x64\x1b\xc1\xd8\x7b\x4a\x4f\x35\x3d\xa5\xf4\x94\xd3\x31\x84\xb2\x20\xe4\x64\x79\xa7\xe3\xa0\x69\x21\x5c\xe5\x5d\x82\xaa\xea\x7c\x63\xa5\xf9\x33\x29\x37\x79\xb5\xe6\x09\x78\xc4\x1f\xd4\xf1\xae\xdb\x37\x98\xa6\x0b\xfd\x24\x24\x64\xfd\xcd\xb6\x04\x0e\x1e\x5d\xd1\x57\xb2\xc8\xb7\xfd\x62\x95\x73\x3f\xe5\x2b\x21\xa0\x6d\x43\xc8\x68\xda\x1b\xc0\xd9\x8f\xa4\x69\x97\x79\x5d\xfd\x23\xef\x05\x41\xe7\xc1\xcf\x64\x53\xb5\x6d\xc3\xb8\x3d\xc3\x47\x42\x43\xcf\xb8\x1e\x4a\x79\x4b\x58\x08\x6a\xe1\x9c\x4d\xb5\x6c\x05\x8d\x9c\x79\x86\x5f\x5c\x0b\xe7\x5d\x37\xed\x27\xcd\x78\xc1\x9f\x83\xa2\xd4\x09\xcd\x8d\xdb\xcf\x6b\x42\xbc\xe6\x9e\xe1\x47\x04\xd0\x25\x79\xb1\x21\x54\x6e\xf3\xba\x64\x1c\x1d\xf3\x2f\xc2\x0b\xfd\x4a\x94\x9e\xb2\xae\xec\xfb\xaa\x5e\x32\xb2\x8f\x25\x29\xbd\xd4\xa4\x24\xc8\x73\x69\x37\xcd\xce\x4d\x27\xa5\xff\x8d\x7e\xa6\x17\xf2\x53\xf2\x82\x42\xc8\x74\x25\x79\x24\x5d\x76\x5d\x96\x85\x8c\xa5\x4b\x5f\xd0\x77\xb2\xdd\xad\xd7\x84\xb5\xdf\x77\x65\xd7\x73\xa1\x0b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68\xd6\x3a\x0f\x41\x4b\x75\x44\x4c\x75\xd3\xa7\xf3\x32\x45\x39\xa9\xa2\xaa\x3f\xe7\xeb\xaa\x20\x64\x7b\x84\xc4\x65\x91\x58\x34\x34\x6f\x5c\x9a\x26\xbe\xd9\x63\xa8\xf9\x82\xf8\x6b\x97\xde\x9b\xdd\x03\x43\xbb\xf7\xe8\xde\x2c\xa9\x9b\x4c\x16\x21\xb3\xbe\xa2\xea\xf2\x39\xb1\x41\x61\xcb\xad\x31\x15\x5a\x27\xd6\x15\x85\x48\x23\x08\xc6\x2d\xb3\x7a\x70\x58\x9a\x6e\xaa\x3d\x45\xa5\xb6\x2b\x84\x63\xb7\x25\xef\xe6\x57\x56\xbd\x4b\x18\x8d\x39\xb1\x09\x33\xea\x3a\xde\x6e\xd7\xd5\x42\x9a\x7e\x29\x79\x9e\xd0\x78\x0f\x55\xa4\x84\x70\x20\x14\xcb\x0b\xc8\x85\x7a\xcd\x5c\x21\x8d\xd8\x28\xca\xaf\x4a\xda\x06\x56\xbb\xa5\x30\xff\x75\xb3\x2b\xbe\xc3\x7a\xb5\x99\xf3\xcb\x35\x7d\xd7\x50\x87\x41\x1d\x0e\xc0\x37\x71\x4c\xeb\x8e\xb7\xed\xb6\xdc\x34\x3d\x23\x4e\x8b\x55\x34\x3d\xfb\x8a\x32\x69\xa4\x5d\xfe\x99\xb8\x4e\xdf\xa4\xfd\xaa\xea\x08\xc7\x6d\xb9\xe0\x8a\x89\x41\xec\x68\xc3\x94\x65\x41\xcb\x54\x96\x86\xa5\xc5\x34\x08\xa8\xcd\x8e\x56\xd3\x8a\x2a\x63\xc4\xb3\xec\x40\x55\x4e\xf5\x13\x43\xa2\x7a\xb0\xca\x69\xe5\x36\xb4\x37\xf1\x44\x9f\xe2\x43\x7f\x87\xf5\x53\xaf\xf2\xeb\x6b\xea\x55\x47\xab\xe2\x55\xba\x58\x37\xb4\xa4\xde\xbf\x7b\xd3\xf1\x82\x59\x65\xdb\xa6\xc5\x46\x4f\x59\x17\xf4\xe9\xd2\x02\x44\x33\x44\xbd\xdb\xcc\xe9\xd7\x7e\x55\x11\x1f\x04\xda\xb9\x04\xcb\x33\x94\x4a\x4d\xec\x3a\x9a\xc2\xa3\x94\x96\x30\x8d\x80\x50\x06\x02\xe0\x31\x18\xd5\x31\xf8\x35\xd1\xd8\xae\xa5\xe5\xb4\xea\xfb\xad\xb5\xfc\xea\xea\xea\x42\x9a\x76\xa9\xb7\xb5\x9d\x07\x94\x81\x39\x58\xb3\xe8\x51\xa7\x4d\x3d\x03\x91\xec\xda\xf5\x80\x7e\x68\xac\x96\x73\x00\x2f\xdc\x85\xc7\xfc\xe7\xd2\xa3\x07\x78\xee\x48\x3e\xdb\x83\x9a\x08\xc7\x2Line truncated
func confLocaleLocale_enUsIniBytes() ([]byte, error) {
return bindataRead(
@@ -4379,7 +4379,7 @@ func confLocaleLocale_enUsIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 43399, mode: os.FileMode(420), modTime: time.Unix(1442157140, 0)}
info := bindataFileInfo{name: "conf/locale/locale_en-US.ini", size: 43507, mode: os.FileMode(420), modTime: time.Unix(1442160213, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
@@ -4564,7 +4564,7 @@ func confLocaleLocale_ruRuIni() (*asset, error) {
return a, nil
}
var _confLocaleLocale_zhCnIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\xbd\x59\x73\x1b\x47\xb6\x20\xfc\xae\x08\xfd\x87\x0a\xdd\x50\xf8\xe5\xb3\x1c\xb6\xbf\x59\x62\xc2\xd0\x4c\x6f\xd7\xdd\x13\x6d\xb7\xa7\xe5\x8e\xfb\xe0\x70\xc0\x20\x50\x24\x71\x05\xa0\x60\x14\x20\x99\x7d\xe3\x46\x90\x92\x48\x82\xe2\x2e\x51\xa2\x16\x52\x14\x65\x52\xa4\x16\x12\xd4\x4e\x12\x5c\x7e\x8c\x51\x05\x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x5c\xc8\x40\x4d\x7f\x73\x95\xe6\x5c\xc8\x94\x06\x6a\x08\xc1\xf8\xeb\x0e\x4f\x74\x57\xf7\x4e\x9f\xca\x56\x6c\x80\x4a\x97\xec\xcb\x29\xaf\x7e\xdf\x6b\xee\x9f\x3b\x77\xee\xf4\xa9\x9a\x6b\x57\xd2\xe5\x8a\xd3\x9f\x2f\xd8\xe9\x4c\x29\x97\x2e\x22\xba\xda\x0b\x9b\x7e\xfd\x5d\xeb\x78\xd5\x1f\x69\x78\xb3\xd7\xfd\xfb\xaf\xbd\xb5\x7b\x3c\x09\x3b\x07\xb8\x49\x67\xdc\x94\xf7\xee\x25\x63\x85\x81\x71\x49\xb0\xb1\x52\xa6\xa8\xea\x7b\x73\xd3\xb0\x02\xc5\x4c\xbe\x90\xea\x5e\xd9\x6e\x6f\xbf\xc0\x91\xbb\xee\x65\x07\x96\xc9\x6b\x8c\xb5\x1f\x8e\x20\x1e\xd2\xd5\xa1\x32\xd4\x58\xdd\xee\x6c\xaf\xa9\xaf\xd9\x4c\xb9\x9a\x1d\xcc\xa4\xba\x4f\xa7\x3a\x8d\x11\xfa\x84\xa0\x65\x07\x50\xe4\x54\x86\x52\xad\xe6\x4d\x6f\xff\xe6\xe9\x53\x4e\x65\x20\x53\xca\xff\x3d\x53\x45\x1c\xb5\x9b\xd7\xda\xcd\xf1\xd3\xa7\x8a\xf9\x4a\xc5\xa9\xa4\xba\xb7\x96\xbc\xab\xb3\xa7\x4f\xc1\x84\xd3\x58\x55\x66\xed\xdf\xde\x81\x1d\xa5\x1a\xc0\xc2\x62\x7e\xa0\x82\xf8\xeb\x1c\x8f\xb4\x37\x9a\xde\xda\xed\xee\xd5\x4d\xb3\xbc\xdf\xa9\x5c\x0c\x55\xf6\x5f\x1f\xb5\x17\x56\x4c\x10\x18\x47\x08\x42\x0f\x25\x53\x82\x85\xa0\xe2\xf6\xf6\x6a\x7b\x6e\xcc\xaf\xcf\x1b\xc5\x99\x5c\x11\x70\x59\xce\x94\xec\x82\x94\xab\x7d\x9b\xc9\x66\x9d\x5a\xa9\x9a\x76\xed\x6a\x35\x5f\x1a\x00\x6c\xef\xce\x01\x46\x3b\xdb\x47\xed\xc3\x6d\x58\x88\xe4\xcf\x43\x4e\x4d\x2f\x66\xaa\xb5\xfb\xb4\xb5\xbf\xcf\x6b\x28\x45\xba\x1a\xaf\x8f\xaa\x46\x73\x70\xd3\xfd\xb6\x0d\xc7\x67\x69\x18\xa6\xe0\xbf\x6e\x7a\xd7\x37\x61\xb9\x6a\x85\x02\x20\xef\xfb\x9a\xed\x56\xa1\xb3\xb9\xba\xb7\xf7\xb6\xd3\x78\xe7\xbf\xb8\x72\xfa\x54\xde\x75\xe1\x33\x6c\x83\x75\x6f\xfa\x16\x8f\x1e\x9b\xca\x66\x4a\x59\x98\x8e\x37\x7b\xdb\x7f\x5b\xc7\x0f\xdf\xb8\x76\xa6\x92\x1d\xfc\x16\x47\x8d\x7f\xa4\xfc\xb9\x25\x38\x8b\xb4\xfb\x12\x96\x14\xf7\x50\x4a\x6d\x29\xea\x43\xba\x80\xa6\x9d\x1c\x4c\xab\xf9\xa3\xec\x87\x6f\xf2\x25\xb7\x0a\xc7\x0d\x5a\x96\xbf\xe0\xf0\x4c\x74\x7e\x1c\xd5\x27\x23\x5f\x2d\x10\x89\xf0\x9f\xaf\x76\x8e\xe7\x3a\xab\x53\x5c\xde\xde\x9c\xf4\xf6\x67\xb1\xf7\xef\x6b\x70\xe4\xd2\xb9\x3e\xa6\x3c\x9f\x3b\x03\xae\xd5\x79\x3c\x02\xd3\x63\x40\xeb\x8b\xa1\x0b\xff\xeb\xcf\x3f\x0d\x8f\x7c\xe5\xb8\xd5\x81\x8a\xcd\x3f\xe0\x5f\xa8\xf5\xa9\xe5\xd7\x6f\x5b\x5f\xe7\x7f\xff\xdb\x9f\x86\x01\x1b\xd0\x06\x77\xe7\xdf\xda\xf1\xa7\xb7\x61\x2a\x0a\xbb\x58\x82\x3b\x5c\x17\xb4\x5f\x34\xbd\x07\x93\x48\xc0\xdc\x6a\xf0\xb5\xb5\xdb\xf4\x97\xf6\x65\xfe\x01\xac\x20\x42\x9f\x9b\x48\x89\x3a\x30\xd0\x09\x1d\x3c\x5d\x0c\x67\xaf\xbd\xb1\x43\x05\x48\xf3\xa0\x4d\xef\xf1\x15\xff\xc1\x92\x7f\x65\xb3\x75\x78\x0c\x95\x79\x6e\x3f\x1f\xc0\x01\x7b\x27\x5f\xfe\xf4\xe5\x97\x7f\xf9\xfd\x6f\x2d\xef\xe0\x96\x7f\x73\xa6\xd5\x5c\x87\x93\x6f\xd5\xaa\xfd\xff\x35\x3d\x60\x97\xec\x0a\x50\xc6\x6c\xde\xf2\xb6\x16\xdb\xcf\x1f\x77\xef\x8f\xd1\xac\x5d\xb7\x00\x04\x03\x56\xe5\xc2\x85\x3f\x5b\x40\x7f\xbc\x83\x59\x1c\x6b\x75\x30\x18\x88\x7f\x7b\xbc\xd5\x7c\xdb\x79\xd7\xf0\x8e\xae\x41\x85\xef\x0b\x88\x71\x19\x52\x14\x93\x16\x1e\x2e\x8d\x3f\xaa\x42\xdd\xd8\x95\x4a\x1a\xa8\x5c\x75\x08\x97\x8a\x9a\xff\x05\x35\x5b\xbb\xd3\x9d\xab\x87\xad\xdd\xfd\xf6\x93\x7d\xdd\x4a\xbe\x74\x29\x53\xc8\xe7\x60\xad\x14\xc6\xa8\x76\x04\x6d\x50\xd5\x1b\x1d\xe9\x6c\xef\x7a\x53\xa3\xde\xdc\x33\x9e\xb3\x75\xe6\xdc\x19\xea\xef\xcc\x87\x67\x2c\x6a\xb0\xe4\xa4\xf9\x04\x23\xdd\xcc\xe5\xdd\x4c\x1f\xd0\x50\x26\xec\x15\x26\x49\x88\x6d\x1a\x86\xb7\xb6\xe2\x2d\x6d\xfa\x4b\x4f\x99\x4a\xf0\x71\xf1\xe6\xef\xf0\x2a\xe2\xe0\xaf\x8e\x7a\x63\x6f\x5a\xbb\x93\x6d\xd8\x7f\x5b\x8f\x98\x2b\x44\x26\xaf\xc8\x85\x6c\x05\xdd\x08\x6f\x82\xd8\x7c\x4f\x9f\x52\xeb\xc6\x3b\xd3\xdb\x5f\x8Line truncated
var _confLocaleLocale_zhCnIni = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\xbd\x59\x73\x1b\x47\xb6\x20\xfc\xae\x08\xfd\x87\x0a\xdd\x50\xf8\xe5\xb3\x1c\xb6\xbf\x59\x62\xc2\xd0\x4c\x6f\xd7\xdd\x13\x6d\xb7\xa7\xe5\x8e\xfb\xe0\x70\xc0\x20\x50\x24\x71\x05\xa0\x60\x14\x20\x99\x7d\xe3\x46\x90\x92\x48\x82\xe2\x2e\x51\xa2\x16\x52\x14\x65\x52\xa4\x16\x12\xd4\x4e\x12\x5c\x7e\x8c\x51\x05\xe0\xc9\x7f\x61\xce\x96\x59\x59\x0b\x28\xbb\xe7\xce\xbc\x48\x44\xe5\xc9\xed\x64\xe6\xd9\xf3\x64\xa6\x5c\x4e\xe7\x6c\x37\x9b\xf2\x56\xf6\x5b\xfb\x33\xd6\xe7\x8e\xd5\x69\x6c\x75\x36\x87\xdb\xf7\xae\x75\xc6\x9f\x7a\xd7\x9f\x58\x9f\xe7\xab\x96\xbf\x34\xed\x5d\x5f\x3d\x7d\xea\xf4\xa9\x41\xa7\x68\xa7\xba\x8f\x6f\x77\x57\xdf\x9c\x3e\x95\xcb\xb8\x83\x7d\x4e\xa6\x92\x4b\xf9\x33\x1b\x5e\xfd\x6d\x77\xf9\x91\xbf\x7c\x7c\xfa\x94\xfd\x43\xb9\xe0\x54\x6c\xf8\xfa\xa8\xfd\xfa\x11\x54\xb2\x0b\xe5\x94\xb7\xbb\x0d\xcd\x9d\x3e\xe5\xe6\x07\x4a\xe9\x7c\x29\xd5\xbe\xdb\xf4\x0e\x6f\xc1\x6f\x27\x9b\xcf\x14\xd2\xfa\xf3\xda\x51\x6b\x7f\xcd\xdb\x9d\xf3\x66\xdf\x31\xc8\xcf\x07\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e4\x54\x86\x52\xad\xe6\x4d\x6f\xff\xe6\xe9\x53\x4e\x65\x20\x53\xca\xff\x3d\x53\x45\x1c\xb5\x9b\xd7\xda\xcd\xf1\xd3\xa7\x8a\xf9\x4a\xc5\xa9\xa4\xba\xb7\x96\xbc\xab\xb3\xa7\x4f\xc1\x84\xd3\x58\x55\x66\xed\xdf\xde\x81\x1d\xa5\x1a\xc0\xc2\x62\x7e\xa0\x82\xf8\xeb\x1c\x8f\xb4\x37\x9a\xde\xda\xed\xee\xd5\x4d\xb3\xbc\xdf\xa9\x5c\x0c\x55\xf6\x5f\x1f\xb5\x17\x56\x4c\x10\x18\x47\x08\x42\x0f\x25\x53\x82\x85\xa0\xe2\xf6\xf6\x6a\x7b\x6e\xcc\xaf\xcf\x1b\xc5\x99\x5c\x11\x70\x59\xce\x94\xec\x82\x94\xab\x7d\x9b\xc9\x66\x9d\x5a\xa9\x9a\x76\xed\x6a\x35\x5f\x1a\x00\x6c\xef\xce\x01\x46\x3b\xdb\x47\xed\xc3\x6d\x58\x88\xe4\xcf\x43\x4e\x4d\x2f\x66\xaa\xb5\xfb\xb4\xb5\xbf\xcf\x6b\x28\x45\xba\x1a\xaf\x8f\xaa\x46\x73\x70\xd3\xfd\xb6\x0d\xc7\x67\x69\x18\xa6\xe0\xbf\x6e\x7a\xd7\x37\x61\xb9\x6a\x85\x02\x20\xef\xfb\x9a\xed\x56\xa1\xb3\xb9\xba\xb7\xf7\xb6\xd3\x78\xe7\xbf\xb8\x72\xfa\x54\xde\x75\xe1\x33\x6c\x83\x75\x6f\xfa\x16\x8f\x1e\x9b\xca\x66\x4a\x59\x98\x8e\x37\x7b\xdb\x7f\x5b\xc7\x0f\xdf\xb8\x76\xa6\x92\x1d\xfc\x16\x47\x8d\x7f\xa4\xfc\xb9\x25\x38\x8b\xb4\xfb\x12\x96\x14\xf7\x50\x4a\x6d\x29\xea\x43\xba\x80\xa6\x9d\x1c\x4c\xab\xf9\xa3\xec\x87\x6f\xf2\x25\xb7\x0a\xc7\x0d\x5a\x96\xbf\xe0\xf0\x4c\x74\x7e\x1c\xd5\x27\x23\x5f\x2d\x10\x89\xf0\x9f\xaf\x76\x8e\xe7\x3a\xab\x53\x5c\xde\xde\x9c\xf4\xf6\x67\xb1\xf7\xef\x6b\x70\xe4\xd2\xb9\x3e\xa6\x3c\x9f\x3b\x03\xae\xd5\x79\x3c\x02\xd3\x63\x40\xeb\x8b\xa1\x0b\xff\xeb\xcf\x3f\x0d\x8f\x7c\xe5\xb8\xd5\x81\x8a\xcd\x3f\xe0\x5f\xa8\xf5\xa9\xe5\xd7\x6f\x5b\x5f\xe7\x7f\xff\xdb\x9f\x86\x01\x1b\xd0\x06\x77\xe7\xdf\xda\xf1\xa7\xb7\x61\x2a\x0a\xbb\x58\x82\x3b\x5c\x17\xb4\x5f\x34\xbd\x07\x93\x48\xc0\xdc\x6a\xf0\xb5\xb5\xdb\xf4\x97\xf6\x65\xfe\x01\xac\x20\x42\x9f\x9b\x48\x89\x3a\x30\xd0\x09\x1d\x3c\x5d\x0c\x67\xaf\xbd\xb1\x43\x05\x48\xf3\xa0\x4d\xef\xf1\x15\xff\xc1\x92\x7f\x65\xb3\x75\x78\x0c\x95\x79\x6e\x3f\x1f\xc0\x01\x7b\x27\x5f\xfe\xf4\xe5\x97\x7f\xf9\xfd\x6f\x2d\xef\xe0\x96\x7f\x73\xa6\xd5\x5c\x87\x93\x6f\xd5\xaa\xfd\xff\x35\x3d\x60\x97\xec\x0a\x50\xc6\x6c\xde\xf2\xb6\x16\xdb\xcf\x1f\x77\xef\x8f\xd1\xac\x5d\xb7\x00\x04\x03\x56\xe5\xc2\x85\x3f\x5b\x40\x7f\xbc\x83\x59\x1c\x6b\x75\x30\x18\x88\x7f\x7b\xbc\xd5\x7c\xdb\x79\xd7\xf0\x8e\xae\x41\x85\xef\x0b\x88\x71\x19\x52\x14\x93\x16\x1e\x2e\x8d\x3f\xaa\x42\xdd\xd8\x95\x4a\x1a\xa8\x5c\x75\x08\x97\x8a\x9a\xff\x05\x35\x5b\xbb\xd3\x9d\xab\x87\xad\xdd\xfd\xf6\x93\x7d\xdd\x4a\xbe\x74\x29\x53\xc8\xe7\x60\xad\x14\xc6\xa8\x76\x04\x6d\x50\xd5\x1b\x1d\xe9\x6c\xef\x7a\x53\xa3\xde\xdc\x33\x9e\xb3\x75\xe6\xdc\x19\xea\xef\xcc\x87\x67\x2c\x6a\xb0\xe4\xa4\xf9\x04\x23\xdd\xcc\xe5\xdd\x4c\x1f\xd0\x50\x26\xec\x15\x26\x49\x88\x6d\x1a\x86\xb7\xb6\xe2\x2d\x6d\xfa\x4b\x4f\x99\x4a\xf0\x71\xf1\xe6\xef\xf0\x2a\xe2\xe0\xaf\x8e\x7a\x63\x6f\x5a\xbb\x93\x6d\xd8\x7f\x5b\x8f\x98\x2b\x44\x26\xaf\xc8\x85\x6c\x05\xdd\x08\x6f\x82\xd8\x7c\x4f\x9f\x52\xeb\xc6\x3b\xd3\xdb\x5f\x8Line truncated
func confLocaleLocale_zhCnIniBytes() ([]byte, error) {
return bindataRead(
@@ -4579,7 +4579,7 @@ func confLocaleLocale_zhCnIni() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "conf/locale/locale_zh-CN.ini", size: 42603, mode: os.FileMode(493), modTime: time.Unix(1442171682, 0)}
info := bindataFileInfo{name: "conf/locale/locale_zh-CN.ini", size: 42605, mode: os.FileMode(493), modTime: time.Unix(1442174946, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
+10
View File
@@ -187,6 +187,16 @@ function initInstall() {
$('#disable-gravatar').checkbox('check');
}
});
$('#disable-registration input').change(function () {
if ($(this).is(':checked')) {
$('#enable-captcha').checkbox('uncheck');
}
});
$('#enable-captcha input').change(function () {
if ($(this).is(':checked')) {
$('#disable-registration').checkbox('uncheck');
}
});
}
function initRepository() {
+2
View File
@@ -151,6 +151,7 @@ func Install(ctx *middleware.Context) {
form.OfflineMode = setting.OfflineMode
form.DisableGravatar = setting.DisableGravatar
form.DisableRegistration = setting.Service.DisableRegistration
form.EnableCaptcha = setting.Service.EnableCaptcha
form.RequireSignInView = setting.Service.RequireSignInView
auth.AssignForm(form, ctx.Data)
@@ -301,6 +302,7 @@ func InstallPost(ctx *middleware.Context, form auth.InstallForm) {
cfg.Section("server").Key("OFFLINE_MODE").SetValue(com.ToStr(form.OfflineMode))
cfg.Section("picture").Key("DISABLE_GRAVATAR").SetValue(com.ToStr(form.DisableGravatar))
cfg.Section("service").Key("DISABLE_REGISTRATION").SetValue(com.ToStr(form.DisableRegistration))
cfg.Section("service").Key("ENABLE_CAPTCHA").SetValue(com.ToStr(form.EnableCaptcha))
cfg.Section("service").Key("REQUIRE_SIGNIN_VIEW").SetValue(com.ToStr(form.RequireSignInView))
cfg.Section("").Key("RUN_MODE").SetValue("prod")
+7 -1
View File
@@ -170,11 +170,17 @@
</div>
</div>
<div class="inline field">
<div class="ui checkbox">
<div class="ui checkbox" id="disable-registration">
<label class="poping up" data-content="{{.i18n.Tr "install.disable_registration_popup"}}"><strong>{{.i18n.Tr "install.disable_registration"}}</strong></label>
<input name="disable_registration" type="checkbox" {{if .disable_registration}}checked{{end}}>
</div>
</div>
<div class="inline field">
<div class="ui checkbox" id="enable-captcha">
<label class="poping up" data-content="{{.i18n.Tr "install.enable_captcha_popup"}}"><strong>{{.i18n.Tr "install.enable_captcha"}}</strong></label>
<input name="enable_captcha" type="checkbox" {{if .enable_captcha}}checked{{end}}>
</div>
</div>
<div class="inline field">
<div class="ui checkbox">
<label class="poping up" data-content="{{.i18n.Tr "install.require_sign_in_view_popup"}}"><strong>{{.i18n.Tr "install.require_sign_in_view"}}</strong></label>