jive的源码

源代码在线查看: license.jsp

软件大小: 8244 K
上传用户: vbkechengsheji
关键词: jive 源码
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**				 *	$RCSfile: license.jsp,v $				 *	$Revision: 1.4.4.1 $				 *	$Date: 2003/02/17 16:16:19 $				 */				%>												                 java.util.*,				                 com.jivesoftware.forum.*,				                 com.jivesoftware.forum.util.*"				%>																				    if (!isSystemAdmin) {				        throw new UnauthorizedException("You don't have admin privileges to perform this operation.");				    }				%>																				    if (Version.getEdition() == Version.Edition.LITE) {				        jiveEdition = "Jive Forums Lite";				    }				    else if (Version.getEdition() == Version.Edition.PROFESSIONAL) {				        jiveEdition = "Jive Forums Professional";				    }				    else if (Version.getEdition() == Version.Edition.ENTERPRISE) {				        jiveEdition = "Jive Forums Enterprise";				    }				%>																     - Admin				    												    				    																				Below are the details of your Jive Forums license.								It is installed at:				jive.license																License Details								    								    Exception le = null;				    try {				        LicenseManager.validateLicense(jiveEdition, "2.0");				        validLicense = true;				    }				    catch (LicenseException e) {				        le = e;				    }								    if (validLicense) {				        License.LicenseType licenseType = LicenseManager.getLicenseType();				        boolean isCommercial = (licenseType == License.LicenseType.COMMERCIAL);				        boolean isNonCommercial = (licenseType == License.LicenseType.NON_COMMERCIAL);				        boolean isEvaluation = (!isCommercial && !isNonCommercial);				%>				    								    This copy of  is licensed for commercial deployment.								    								    This copy of  is licensed for non-commercial deployment. To				    purchase a commercial license, please visit				    http://www.jivesoftware.com/store/.								    				        // is evaluation				        else {  %>								    This is an evaluation copy of  and is not licensed for deployment.				    Before deploying for commercial or non-commercial use,				    you must obtain a license at				    http://www.jivesoftware.com/store/.				    				    				            if (exprDate != null) {				                long expires = exprDate.getTime() - System.currentTimeMillis();				                int daysFromNow = (int)Math.ceil((double)(expires/JiveConstants.DAY))+1;				    %>				    				    This evaulation license expires on				    ,  day from now.				    				    								    				    								    																			    				    				        License ID:				        				    				    				    				        Product:				        				    				    				        Version:				        				    				    				        License Type:				        				    				    				    				        Copies:				        				    				    				    				        License Created:				        				    								        Date exprDate = LicenseManager.getExpiresDate();				        if (exprDate != null) { %>				    				        License Expires:				        				    								    				        Licensed To:								        if (name == null) {				            name = " ";				        }				%>      				    								        if (company != null && "".equals(company)) {				%>				    				        Company/Organization:				        				    												        if (clusterMembers > 0) {				%>				    				        Cluster Members Allowed:				        				    								    				        URL:								        if (url == null || "".equals(url)) {				            url = "Unspecified or Internal Use";				        }				%>      				    								    				    				    																				License not valid: 																																								    																			

相关资源