mirror of
				https://github.com/usmannasir/cyberpanel.git
				synced 2025-10-31 02:15:55 +01:00 
			
		
		
		
	Email Forwarding.
This commit is contained in:
		
							
								
								
									
										10
									
								
								api/views.py
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								api/views.py
									
									
									
									
									
								
							| @@ -220,16 +220,17 @@ def deleteWebsite(request): | ||||
|                 json_data = json.dumps(data_ret) | ||||
|                 return HttpResponse(json_data) | ||||
|  | ||||
|             numberOfWebsites = str(Websites.objects.count() + ChildDomains.objects.count()) | ||||
|  | ||||
|             ## Deleting master domain | ||||
|  | ||||
|             website = Websites.objects.get(domain=websiteName) | ||||
|             websiteOwner = website.admin | ||||
|  | ||||
|             if admin.websites_set.all().count() == 0: | ||||
|                 websiteOwner.delete() | ||||
|  | ||||
|             ## Deleting master domain | ||||
|  | ||||
|             numberOfWebsites = str(Websites.objects.count() + ChildDomains.objects.count()) | ||||
|  | ||||
|  | ||||
|             execPath = "sudo python " + virtualHostUtilities.cyberPanel + "/plogical/virtualHostUtilities.py" | ||||
|  | ||||
|             execPath = execPath + " deleteVirtualHostConfigurations --virtualHostName " + websiteName + \ | ||||
| @@ -246,7 +247,6 @@ def deleteWebsite(request): | ||||
|         json_data = json.dumps(data_ret) | ||||
|         return HttpResponse(json_data) | ||||
|  | ||||
|  | ||||
| def submitWebsiteStatus(request): | ||||
|     try: | ||||
|         if request.method == 'POST': | ||||
|   | ||||
		Reference in New Issue
	
	Block a user