Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
usmannasir committed Dec 11, 2019
1 parent a7f1f2a commit 6e6cbed
Show file tree
Hide file tree
Showing 103 changed files with 165 additions and 165 deletions.
2 changes: 1 addition & 1 deletion ApachController/ApacheController.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
import shlex
import plogical.CyberCPLogFileWriter as logging
from ApacheVhosts import ApacheVhost
from .ApacheVhosts import ApacheVhost


class ApacheController:
Expand Down
2 changes: 1 addition & 1 deletion CLManager/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^CageFS$', views.CageFS, name='CageFS'),
Expand Down
2 changes: 1 addition & 1 deletion CLManager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.shortcuts import redirect, HttpResponse
from loginSystem.views import loadLoginPage
from plogical.acl import ACLManager
from CLManagerMain import CLManagerMain
from .CLManagerMain import CLManagerMain
import json
from websiteFunctions.models import Websites
from plogical.processUtilities import ProcessUtilities
Expand Down
2 changes: 1 addition & 1 deletion CyberCP/secMiddleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __call__(self, request):

if request.build_absolute_uri().find('saveSpamAssassinConfigurations') > -1 or request.build_absolute_uri().find('docker') > -1 or request.build_absolute_uri().find('cloudAPI') > -1 or request.build_absolute_uri().find('filemanager') > -1 or request.build_absolute_uri().find('verifyLogin') > -1 or request.build_absolute_uri().find('submitUserCreation') > -1:
continue
if key == 'backupDestinations' or key == 'ports' or key == 'imageByPass' or key == 'passwordByPass' or key == 'cronCommand' or key == 'emailMessage' or key == 'configData' or key == 'rewriteRules' or key == 'modSecRules' or key == 'recordContentTXT' or key == 'SecAuditLogRelevantStatus' or key == 'fileContent':
if key == 'recordContentAAAA' or key == 'backupDestinations' or key == 'ports' or key == 'imageByPass' or key == 'passwordByPass' or key == 'cronCommand' or key == 'emailMessage' or key == 'configData' or key == 'rewriteRules' or key == 'modSecRules' or key == 'recordContentTXT' or key == 'SecAuditLogRelevantStatus' or key == 'fileContent':
continue
if value.find(';') > -1 or value.find('&&') > -1 or value.find('|') > -1 or value.find('...') > -1 \
or value.find("`") > -1 or value.find("$") > -1 or value.find("(") > -1 or value.find(")") > -1 \
Expand Down
4 changes: 2 additions & 2 deletions IncBackups/IncScheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
django.setup()
except:
pass
from IncBackupsControl import IncJobs
from IncBackups.models import BackupJob
from .IncBackupsControl import IncJobs
from .IncBackups.models import BackupJob
from random import randint
import argparse
try:
Expand Down
2 changes: 1 addition & 1 deletion IncBackups/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^createBackup$', views.createBackup, name='createBackupInc'),
Expand Down
2 changes: 1 addition & 1 deletion WebTerminal/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.terminal, name='terminal'),
Expand Down
2 changes: 1 addition & 1 deletion api/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^createWebsite', views.createWebsite, name='createWebsiteAPI'),
Expand Down
2 changes: 1 addition & 1 deletion backup/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion backup/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadBackupHome, name='loadBackupHome'),
Expand Down
2 changes: 1 addition & 1 deletion baseTemplate/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.renderBase, name='index'),
Expand Down
4 changes: 2 additions & 2 deletions cli/cyberPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "CyberCP.settings")
django.setup()
from inspect import stack
from cliLogger import cliLogger as logger
from .cliLogger import cliLogger as logger
import json
from plogical.virtualHostUtilities import virtualHostUtilities
import re
Expand All @@ -17,7 +17,7 @@
from loginSystem.models import Administrator
from packages.models import Package
from plogical.mysqlUtilities import mysqlUtilities
from cliParser import cliParser
from .cliParser import cliParser
from plogical.vhost import vhost
from plogical.mailUtilities import mailUtilities
from plogical.ftpUtilities import FTPUtilities
Expand Down
2 changes: 1 addition & 1 deletion cloudAPI/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.router, name='router'),
Expand Down
2 changes: 1 addition & 1 deletion cloudAPI/views.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-


from cloudManager import CloudManager
from .cloudManager import CloudManager
import json
from loginSystem.models import Administrator
from plogical.CyberCPLogFileWriter import CyberCPLogFileWriter as logging
Expand Down
2 changes: 1 addition & 1 deletion containerization/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.cHome, name='cHome'),
Expand Down
2 changes: 1 addition & 1 deletion containerization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from django.shortcuts import HttpResponse, redirect
from loginSystem.views import loadLoginPage
from containerManager import ContainerManager
from .containerManager import ContainerManager
import json
from websiteFunctions.models import Websites
from .models import ContainerLimits
Expand Down
2 changes: 1 addition & 1 deletion databases/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


from django.contrib import admin
import models
from . import models
# Register your models here.


Expand Down
2 changes: 1 addition & 1 deletion databases/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion databases/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadDatabaseHome, name='loadDatabaseHome'),
Expand Down
4 changes: 2 additions & 2 deletions databases/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from django.shortcuts import redirect, HttpResponse
from loginSystem.views import loadLoginPage
from databaseManager import DatabaseManager
from pluginManager import pluginManager
from .databaseManager import DatabaseManager
from .pluginManager import pluginManager
import json
from plogical.processUtilities import ProcessUtilities
from loginSystem.models import Administrator
Expand Down
2 changes: 1 addition & 1 deletion dns/admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

import models
from . import models
from django.contrib import admin

admin.site.register(models.Domains)
Expand Down
2 changes: 1 addition & 1 deletion dns/dnsManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from plogical.dnsUtilities import DNS
from loginSystem.models import Administrator
import os
from models import Domains,Records
from .models import Domains,Records
from re import match,I,M
from plogical.mailUtilities import mailUtilities
from plogical.acl import ACLManager
Expand Down
2 changes: 1 addition & 1 deletion dns/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion dns/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadDNSHome, name='dnsHome'),
Expand Down
4 changes: 2 additions & 2 deletions dns/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from django.shortcuts import redirect
from loginSystem.views import loadLoginPage
from dnsManager import DNSManager
from pluginManager import pluginManager
from .dnsManager import DNSManager
from .pluginManager import pluginManager
import json

# Create your views here.
Expand Down
2 changes: 1 addition & 1 deletion dockerManager/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion dockerManager/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadDockerHome, name='dockerHome'),
Expand Down
2 changes: 1 addition & 1 deletion dockerManager/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from loginSystem.models import Administrator
from loginSystem.views import loadLoginPage
from .container import ContainerManager
from decorators import preDockerRun
from .decorators import preDockerRun
from plogical.acl import ACLManager
import json

Expand Down
2 changes: 1 addition & 1 deletion emailMarketing/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
class EmailmarketingConfig(AppConfig):
name = 'emailMarketing'
def ready(self):
import signals
from . import signals
2 changes: 1 addition & 1 deletion emailMarketing/emailMarketing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import csv
import re
import plogical.CyberCPLogFileWriter as logging
from emailMarketing.models import EmailMarketing, EmailLists, EmailsInList, EmailTemplate, EmailJobs, SMTPHosts
from .emailMarketing.models import EmailMarketing, EmailLists, EmailsInList, EmailTemplate, EmailJobs, SMTPHosts
from websiteFunctions.models import Websites
import threading as multi
import socket, smtplib
Expand Down
4 changes: 2 additions & 2 deletions emailMarketing/emailMarketingManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
import time
from .models import EmailMarketing, EmailLists, EmailsInList, EmailJobs
from websiteFunctions.models import Websites
from emailMarketing import emailMarketing as EM
from .emailMarketing import emailMarketing as EM
from math import ceil
import smtplib
from .models import SMTPHosts, EmailTemplate
from loginSystem.models import Administrator
from emACL import emACL
from .emACL import emACL

class EmailMarketingManager:

Expand Down
2 changes: 1 addition & 1 deletion emailMarketing/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views
urlpatterns = [
url(r'^$', views.emailMarketing, name='emailMarketing'),
url(r'^fetchUsers$', views.fetchUsers, name='fetchUsers'),
Expand Down
2 changes: 1 addition & 1 deletion emailMarketing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django.shortcuts import redirect
from loginSystem.views import loadLoginPage
from emailMarketingManager import EmailMarketingManager
from .emailMarketingManager import EmailMarketingManager
# Create your views here.


Expand Down
2 changes: 1 addition & 1 deletion emailPremium/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [

Expand Down
2 changes: 1 addition & 1 deletion examplePlugin/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class ExamplepluginConfig(AppConfig):
name = 'examplePlugin'

def ready(self):
import signals
from . import signals
2 changes: 1 addition & 1 deletion examplePlugin/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [

Expand Down
2 changes: 1 addition & 1 deletion filemanager/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^upload$',views.upload, name='upload'),
Expand Down
2 changes: 1 addition & 1 deletion firewall/admin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.contrib import admin
import models
from . import models
# Register your models here.
admin.site.register(models.FirewallRules)
2 changes: 1 addition & 1 deletion firewall/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion firewall/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^securityHome', views.securityHome, name='securityHome'),
Expand Down
4 changes: 2 additions & 2 deletions firewall/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from django.shortcuts import redirect
import json
from loginSystem.views import loadLoginPage
from firewallManager import FirewallManager
from pluginManager import pluginManager
from .firewallManager import FirewallManager
from .pluginManager import pluginManager
# Create your views here.


Expand Down
2 changes: 1 addition & 1 deletion ftp/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@


from django.contrib import admin
import models
from . import models

# Register your models here.

Expand Down
2 changes: 1 addition & 1 deletion ftp/ftpManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import json
from django.shortcuts import render,redirect
from django.http import HttpResponse
from models import Users
from .models import Users
from loginSystem.models import Administrator
import plogical.CyberCPLogFileWriter as logging
from loginSystem.views import loadLoginPage
Expand Down
2 changes: 1 addition & 1 deletion ftp/pluginManager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from signals import *
from .signals import *
from plogical.pluginManagerGlobal import pluginManagerGlobal

class pluginManager:
Expand Down
2 changes: 1 addition & 1 deletion ftp/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadFTPHome, name='loadFTPHome'),
Expand Down
4 changes: 2 additions & 2 deletions ftp/views.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-

from django.shortcuts import redirect
from ftpManager import FTPManager
from .ftpManager import FTPManager
from loginSystem.views import loadLoginPage
from pluginManager import pluginManager
from .pluginManager import pluginManager
# Create your views here.

def loadFTPHome(request):
Expand Down
2 changes: 1 addition & 1 deletion install/firewallUtilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class FirewallUtilities:

@staticmethod
def doCommand(command):
import install as inst
from . import install as inst
try:
cmd = shlex.split(command)
res = subprocess.call(cmd)
Expand Down
2 changes: 1 addition & 1 deletion loginSystem/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.conf.urls import url
import views
from . import views

urlpatterns = [
url(r'^$', views.loadLoginPage, name='adminLogin'),
Expand Down
Loading

0 comments on commit 6e6cbed

Please sign in to comment.