function getDataDir(){if(!isValue(typeof Qt)){return""}return Qt.getDataDir()}function getUserDir(){if(!isValue(typeof Qt)){return""}return Qt.getUserDir()}function getCodeDir(){if(!isValue(typeof Qt)){return""}return Qt.getCodeDir()}function getAccount(){if(!isValue(typeof Qt)){return""}return toJson(Qt.getAccount())}function getUser(){if(!isValue(typeof Qt)){return""}return toJson(Qt.getUser())}function getFile(a){if(!isValue(typeof Qt)){return""}return Qt.getFile(a)}function getFileLan(){if(!isValue(typeof Qt)){return""}return Qt.getFileLan()}function setFileLan(a){if(!isValue(typeof Qt)){return""}Qt.setFileLan(a)}function saveFile(b,a){if(!isValue(typeof Qt)){return""}return Qt.saveFile(b,a)}function getCodeFile(){if(!isValue(typeof Qt)){return""}return toJson(Qt.getCodeList())}function log(a){if(isValue(typeof Qt)){Qt.slLog(a)}}function getServerUrl(){mServerUrl=isValue(typeof Qt)?Qt.getServerUrl():mServerUrl}function getUsername(){if(!isValue(typeof Qt)){return}return Qt.getUsername()}function getTipUsername(){var a=getUsername();if(!a){return}if(a.length==32){a=$.t("main.anonymous");mbox($.t("main.newbie"),3)}$("#title_username").html(a);return a}function getPasswordEncode(a,b){if(!isValue(typeof Qt)){return}return Qt.getPasswordEncode(a,b)}function getUrl(a,b,c){if(!isValue(typeof Qt)){return}c=isValue(typeof c)?c:"";Qt.getUrl(a,b,c)}function getUserInfo(b){var a=getUser();return !a[b]?"0":a[b]}function setUserInfo(b,c){if(!Qt){return}var a=getUser();a[b]=c;Qt.setUserInfo(JSON.stringify(a))}function getUserStat(a){var b=getUserDir()+"userStat";b=toJson(getFile(b));return !b[a]?"0":b[a]}function setUserStat(a,b){var c=getUserStat();c[a]=b;saveFile(getDataDir()+"userStat",JSON.stringify(c))}function getUseCode(){if(!Qt){return false}var a=getUser();return a.use_code>0}function setUseCode(a){setUserInfo("use_code",a);jsonp("user/use_code.php?id="+a)}function getOpen(){if(!isValue(typeof Qt)){return}return Qt.getOpen()}function setOpen(a){if(!isValue(typeof Qt)){return}return Qt.setOpen(a)}function setUser(b,a){if(!isValue(typeof Qt)){return}Qt.setUser(b,a);getUsername()};