mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
supply site name for joomla
This commit is contained in:
@@ -831,6 +831,7 @@ $parameters = array(
|
|||||||
password = self.extraArgs['password']
|
password = self.extraArgs['password']
|
||||||
prefix = self.extraArgs['prefix']
|
prefix = self.extraArgs['prefix']
|
||||||
home = self.extraArgs['home']
|
home = self.extraArgs['home']
|
||||||
|
siteName = self.extraArgs['siteName']
|
||||||
tempStatusPath = self.extraArgs['tempStatusPath']
|
tempStatusPath = self.extraArgs['tempStatusPath']
|
||||||
self.tempStatusPath = tempStatusPath
|
self.tempStatusPath = tempStatusPath
|
||||||
|
|
||||||
@@ -976,6 +977,9 @@ $parameters = array(
|
|||||||
command = "sed -i 's|$debug = 1|$debug = 0|g' %sconfiguration.php" % (finalPath)
|
command = "sed -i 's|$debug = 1|$debug = 0|g' %sconfiguration.php" % (finalPath)
|
||||||
ProcessUtilities.executioner(command)
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
|
command = "sed -i 's|$sitename = '%s'|$sitename = '%s'|g' %sconfiguration.php" % (dbUser, siteName, finalPath)
|
||||||
|
ProcessUtilities.executioner(command)
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
||||||
from filemanager.filemanager import FileManager
|
from filemanager.filemanager import FileManager
|
||||||
|
|||||||
@@ -1739,6 +1739,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
|
|||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
domain: domain,
|
domain: domain,
|
||||||
|
siteName: $scope.siteName,
|
||||||
home: home,
|
home: home,
|
||||||
path: path,
|
path: path,
|
||||||
password: password,
|
password: password,
|
||||||
|
|||||||
@@ -1739,6 +1739,7 @@ app.controller('websitePages', function ($scope, $http, $timeout, $window) {
|
|||||||
|
|
||||||
var data = {
|
var data = {
|
||||||
domain: domain,
|
domain: domain,
|
||||||
|
siteName: $scope.siteName,
|
||||||
home: home,
|
home: home,
|
||||||
path: path,
|
path: path,
|
||||||
password: password,
|
password: password,
|
||||||
|
|||||||
@@ -24,6 +24,13 @@
|
|||||||
|
|
||||||
<form name="websiteCreationForm" action="/" id="createPackages" class="form-horizontal bordered-row">
|
<form name="websiteCreationForm" action="/" id="createPackages" class="form-horizontal bordered-row">
|
||||||
|
|
||||||
|
<div ng-hide="installationDetailsForm" class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">{% trans "Site Name" %}</label>
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<input type="text" class="form-control" ng-model="siteName">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div ng-hide="installationDetailsForm" class="form-group">
|
<div ng-hide="installationDetailsForm" class="form-group">
|
||||||
<label class="col-sm-3 control-label">{% trans "Login User" %}</label>
|
<label class="col-sm-3 control-label">{% trans "Login User" %}</label>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
|
|||||||
@@ -1931,6 +1931,7 @@ class WebsiteManager:
|
|||||||
extraArgs['prefix'] = data['prefix']
|
extraArgs['prefix'] = data['prefix']
|
||||||
extraArgs['domain'] = data['domain']
|
extraArgs['domain'] = data['domain']
|
||||||
extraArgs['home'] = data['home']
|
extraArgs['home'] = data['home']
|
||||||
|
extraArgs['siteName'] = data['siteName']
|
||||||
extraArgs['tempStatusPath'] = "/home/cyberpanel/" + str(randint(1000, 9999))
|
extraArgs['tempStatusPath'] = "/home/cyberpanel/" + str(randint(1000, 9999))
|
||||||
|
|
||||||
mailUtilities.checkHome()
|
mailUtilities.checkHome()
|
||||||
|
|||||||
Reference in New Issue
Block a user