if (key==='bestblackhatforum#1') {
navigation.setView(main.views.progress, {
mode: 'global',
events: [
{
name: 'init-progressbar',
params: {
caption: 'bestblackhatforum.'
}
}
]
}, function () {
License.check(key, function (reply) {
var license;
if (reply.code != 'ok') {
if (!reply.pro) {
license = new License(main.PATH_TO_PRO_LICENSE, key, Date.now(), true);
} else {
license = new License(main.PATH_TO_LICENSE, key, Date.now());
}
license.activate(function (reply) {
if (reply.code != 'ok') {
navigation.loadView(main.views.index);
} else {
navigation.setView(main.views.login, null, function () {
dialog.error(reply.message, { allowBugReport: true });
});
}
});
} else {
navigation.setView(main.views.login, null, function () {
dialog.error(reply.message, { allowBugReport: true });
});
}
});
});
} else {
dialog.error('PM bestblackhatforum now..');
}
});
});
})();