update
This commit is contained in:
parent
517ca3680f
commit
d186d8dc6e
100 changed files with 1235 additions and 499 deletions
|
@ -9,8 +9,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'details', 'goftp', 'login',
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/accounts/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/accounts/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -9,8 +9,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'details', 'login'))) {
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/clients/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/clients/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -22,11 +22,11 @@ $data = array(
|
|||
'extension_value' => $domain,
|
||||
);
|
||||
|
||||
$has = $DB->count('domain_extensions', $data);
|
||||
$has = $DB->count('account_domaintld', $data);
|
||||
if ($has && $has > 0) {
|
||||
setMessage('Extension aleady <b>exsist!</b>', 'danger');
|
||||
} else {
|
||||
$result = $DB->insert('domain_extensions', $data);
|
||||
$result = $DB->insert('account_domaintld', $data);
|
||||
if ($result) {
|
||||
setMessage('Extension added <b>successfully!</b>');
|
||||
} else {
|
||||
|
|
|
@ -22,12 +22,12 @@ $data = array(
|
|||
'extension_value' => $extension,
|
||||
);
|
||||
|
||||
$count = $DB->count('domain_extensions', $data);
|
||||
$count = $DB->count('account_domaintld', $data);
|
||||
|
||||
if (!$count > 0) {
|
||||
setMessage('Extension won' . "'" . 't <b>exsist!</b>', 'danger');
|
||||
} else {
|
||||
$result = $DB->delete('domain_extensions', $data);
|
||||
$result = $DB->delete('account_domaintld', $data);
|
||||
if ($result) {
|
||||
setMessage('Extension deleted <b>successfully!</b>');
|
||||
} else {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
$PageInfo['title'] = 'Domain Extensions';
|
||||
|
||||
$count = $DB->count('domain_extensions');
|
||||
$count = $DB->count('account_domaintld');
|
||||
|
||||
if ($count > 0) {
|
||||
$rows = $DB->findAll('domain_extensions', '*', array(), '`extension_id` ASC');
|
||||
$rows = $DB->findAll('account_domaintld', '*', array(), '`extension_id` ASC');
|
||||
}
|
||||
|
|
37
src/admin/controllers/ssl-provider/add.php
Executable file
37
src/admin/controllers/ssl-provider/add.php
Executable file
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
if (isset($_POST['submit'])) {
|
||||
require '../../application.php';
|
||||
|
||||
if (!post('api_type')) {
|
||||
setMessage('need field: api_type', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
if (!post('username')) {
|
||||
setMessage('need field: username', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
if (!post('password')) {
|
||||
setMessage('need field: password', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
$data = array(
|
||||
'api_type' => post('api_type'),
|
||||
'api_name' => post('api_name', ''),
|
||||
'api_username' => post('username'),
|
||||
'api_password' => post('password'),
|
||||
);
|
||||
|
||||
$result = $DB->insert('ssl_api', $data);
|
||||
|
||||
if ($result) {
|
||||
setMessage('SSL Provider added <b>successfully!</b>');
|
||||
} else {
|
||||
setMessage("Something went's <b>wrong!</b>", 'danger');
|
||||
}
|
||||
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
5
src/admin/controllers/ssl-provider/details.php
Executable file
5
src/admin/controllers/ssl-provider/details.php
Executable file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
$id = get('id');
|
||||
|
||||
$data = $DB->find('ssl_api', '*', array('id' => $id), null, 1);
|
49
src/admin/controllers/ssl-provider/edit.php
Executable file
49
src/admin/controllers/ssl-provider/edit.php
Executable file
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
if (isset($_POST['submit'])) {
|
||||
require '../../application.php';
|
||||
|
||||
if (!post('id')) {
|
||||
setMessage('need field: id', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
if (!post('username')) {
|
||||
setMessage('need field: username', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
if (!post('password')) {
|
||||
setMessage('need field: password', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
|
||||
$data = array(
|
||||
'api_name' => post('api_name', ''),
|
||||
'api_username' => post('username'),
|
||||
'api_password' => post('password'),
|
||||
);
|
||||
$where = array(
|
||||
'id' => post('id'),
|
||||
);
|
||||
|
||||
$result = $DB->update('ssl_api', $data, $where);
|
||||
|
||||
if ($result) {
|
||||
setMessage('SSL API updated <b>successfully!</b>');
|
||||
} else {
|
||||
setMessage("Something went's <b>wrong!</b>", 'danger');
|
||||
}
|
||||
|
||||
redirect('admin/ssl-provider', '', array('action' => 'details', 'id' => post('id')));
|
||||
} else {
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
$id = get('id');
|
||||
if ($id > 0) {
|
||||
$data = $DB->find('ssl_api', '*', array('id' => $id), null, 1);
|
||||
} else {
|
||||
setMessage('need field: id', 'danger');
|
||||
redirect('admin/ssl-provider');
|
||||
}
|
||||
}
|
10
src/admin/controllers/ssl-provider/list.php
Executable file
10
src/admin/controllers/ssl-provider/list.php
Executable file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
$count = $DB->count('ssl_api');
|
||||
if ($count > 0) {
|
||||
$rows = $DB->findAll('ssl_api', '*', array(), "`id` DESC");
|
||||
}
|
|
@ -9,10 +9,4 @@ $PageInfo['title'] = $lang->I18N('SSL Certificates');
|
|||
$count = $DB->count('ssl');
|
||||
if ($count > 0) {
|
||||
$rows = $DB->findAll('ssl', '*', array(), "`ssl_id` DESC");
|
||||
|
||||
require_once ROOT . '/core/handler/SSLHandler.php';
|
||||
require_once ROOT . '/modules/GoGetSSL/GoGetSSLApi.php';
|
||||
|
||||
$apiClient = new GoGetSSLApi();
|
||||
$apiClient->auth($SSLApi['api_username'], $SSLApi['api_password']);
|
||||
}
|
|
@ -1,25 +0,0 @@
|
|||
<?php
|
||||
require_once __DIR__ . '/../../application.php';
|
||||
|
||||
if (!isset($_POST['submit'])) {
|
||||
exit('Method Not Allowed');
|
||||
}
|
||||
|
||||
$data = array(
|
||||
'api_username' => post('username'),
|
||||
'api_password' => post('password'),
|
||||
);
|
||||
|
||||
$where = array(
|
||||
'api_key' => 'FREESSL',
|
||||
);
|
||||
|
||||
$result = $DB->update('ssl_api', $data, $where);
|
||||
|
||||
if ($result) {
|
||||
setMessage('SSL API updated <b>successfully!</b>');
|
||||
} else {
|
||||
setMessage("Something went's <b>wrong!</b>", 'danger');
|
||||
}
|
||||
|
||||
redirect('admin/settings', 'sslapi');
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
$PageInfo['title'] = 'SSL API Settings';
|
||||
|
||||
$where = array(
|
||||
'api_key' => 'FREESSL'
|
||||
);
|
||||
|
||||
$SSLApi = $DB->find('ssl_api', '*', $where, null, 1);
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
|
||||
$ssl_id = get('ssl_id');
|
||||
|
||||
require_once ROOT . '/core/handler/SSLHandler.php';
|
||||
require_once ROOT . '/modules/GoGetSSL/GoGetSSLApi.php';
|
||||
|
||||
$apiClient = new GoGetSSLApi();
|
||||
$token = $apiClient->auth($SSLApi['api_username'], $SSLApi['api_password']);
|
||||
|
||||
$SSLInfo = $apiClient->getOrderStatus($ssl_id);
|
||||
|
||||
if ($SSLInfo['status'] == 'processing') {
|
||||
$Status = '<span class="badge bg-primary">Processing</span>';
|
||||
} elseif ($SSLInfo['status'] == 'active') {
|
||||
$Status = '<span class="badge bg-success">Active</span>';
|
||||
} elseif ($SSLInfo['status'] == 'incomplete') {
|
||||
$Status = '<span class="badge bg-danger">Incomplete</span>';
|
||||
} elseif ($SSLInfo['status'] == 'cancelled') {
|
||||
$Status = '<span class="badge bg-">Cancelled</span>';
|
||||
} elseif ($SSLInfo['status'] == 'expired') {
|
||||
$Status = '<span class="badge bg-danger">Expired</span>';
|
||||
} else {
|
||||
$Status = '';
|
||||
}
|
||||
|
||||
if (empty($SSLInfo['begin_date'])) {
|
||||
$Begin = '-- -- ----';
|
||||
$End = $Begin;
|
||||
} else {
|
||||
$Begin = $SSLInfo['begin_date'];
|
||||
$End = $SSLInfo['end_date'];
|
||||
}
|
|
@ -11,8 +11,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
|
|||
$PageInfo['title'] = 'Domain Provider ' . ucfirst($action);
|
||||
|
||||
require __DIR__ . '/controllers/domain/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/domain/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -10,9 +10,9 @@ if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
|
|||
|
||||
$PageInfo['title'] = 'Hosting Provider ' . ucfirst($action);
|
||||
|
||||
require __DIR__ . '/controllers/hosting/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/controllers/hosting-provider/' . $action . '.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/hosting/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/hosting-provider/' . $action . '.php';
|
||||
require __DIR__ . '/views/footer.php';
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
require_once __DIR__ . '/application.php';
|
||||
require_once __DIR__ . '/controllers/dashboard/view.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
// require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/dashboard/view.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -11,8 +11,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
|
|||
$PageInfo['title'] = 'Knowledgebase ' . ucfirst($action);
|
||||
|
||||
require __DIR__ . '/controllers/knowledgebase/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/knowledgebase/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -9,8 +9,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/news/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/news/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -9,8 +9,8 @@ if (!in_array($action, array('edit', 'view'))) {
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/profile/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/profile/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -14,9 +14,9 @@ if (!in_array($action, array('edit', 'view'))) {
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/' . $section . '/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/settings/menu.php';
|
||||
require __DIR__ . '/views/' . $section . '/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
17
src/admin/ssl-provider.php
Normal file
17
src/admin/ssl-provider.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/application.php';
|
||||
|
||||
$action = get('action', 'list');
|
||||
|
||||
if (!in_array($action, array('list', 'add', 'edit', 'details', 'raw'))) {
|
||||
$action = 'list';
|
||||
}
|
||||
|
||||
$PageInfo['title'] = $lang->I18N('SSL Provider') . $lang->I18N($action);
|
||||
|
||||
require __DIR__ . '/controllers/ssl-provider/' . $action . '.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
require __DIR__ . '/views/ssl-provider/' . $action . '.php';
|
||||
require __DIR__ . '/views/footer.php';
|
15
src/admin/ssl.php
Executable file
15
src/admin/ssl.php
Executable file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/application.php';
|
||||
|
||||
$action = get('action', 'list');
|
||||
|
||||
if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
|
||||
$action = 'list';
|
||||
}
|
||||
|
||||
require __DIR__ . '/controllers/ssl/' . $action . '.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
require __DIR__ . '/views/ssl/' . $action . '.php';
|
||||
require __DIR__ . '/views/footer.php';
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
require_once __DIR__ . '/application.php';
|
||||
|
||||
$action = get('action', 'list');
|
||||
|
||||
if (!in_array($action, array('list', 'add', 'edit', 'view'))) {
|
||||
$action = 'list';
|
||||
}
|
||||
|
||||
require __DIR__ . '/controllers/sslcert/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/sslcert/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
|
@ -12,8 +12,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'details'))) {
|
|||
$PageInfo['title'] = 'Ticket ' . ucfirst($action);
|
||||
|
||||
require __DIR__ . '/controllers/tickets/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
// require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/tickets/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -65,13 +65,13 @@
|
|||
<div class="d-flex justify-content-between align-items-center">
|
||||
<b>Status:</b>
|
||||
<span><?php if ($AccountInfo['account_status'] == '0'): ?>
|
||||
<span class="label label-info">Inactive</span>
|
||||
<span class="label label-info"><?php echo $lang->I18N('Inactive'); ?></span>
|
||||
<?php elseif ($AccountInfo['account_status'] == '1'): ?>
|
||||
<span class="label label-success">Active</span>
|
||||
<span class="label label-success"><?php echo $lang->I18N('Active'); ?></span>
|
||||
<?php elseif ($AccountInfo['account_status'] == '2'): ?>
|
||||
<span class="label label-warning">Suspended</span>
|
||||
<span class="label label-warning"><?php echo $lang->I18N('Suspended'); ?></span>
|
||||
<?php elseif ($AccountInfo['account_status'] == '3'): ?>
|
||||
<span class="label label-danger">Deleted</span>
|
||||
<span class="label label-default"><?php echo $lang->I18N('Deleted'); ?></span>
|
||||
<?php endif; ?></span>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<td><?php echo $row['account_id'];?></td>
|
||||
<td><?php echo $row['account_client_id']; ?></td>
|
||||
<td>
|
||||
<a href="hosting.php?action=details&api_key=<?php echo $row['account_api_key']; ?>">
|
||||
<a href="hosting-provider.php?action=details&api_key=<?php echo $row['account_api_key']; ?>">
|
||||
<?php echo $row['account_api_key']; ?>
|
||||
</a>
|
||||
</td>
|
||||
|
@ -43,13 +43,13 @@
|
|||
<td><?php echo $row['account_domain']; ?></td>
|
||||
<td><?php echo $row['account_date']; ?></td>
|
||||
<td><?php if ($row['account_status'] == '0'): ?>
|
||||
<span class="label label-info">Inactive</span>
|
||||
<span class="label label-info"><?php echo $lang->I18N('Inactive'); ?></span>
|
||||
<?php elseif ($row['account_status'] == '1'): ?>
|
||||
<span class="label label-success">Active</span>
|
||||
<span class="label label-success"><?php echo $lang->I18N('Active'); ?></span>
|
||||
<?php elseif ($row['account_status'] == '2'): ?>
|
||||
<span class="label label-warning">Suspended</span>
|
||||
<span class="label label-warning"><?php echo $lang->I18N('Suspended'); ?></span>
|
||||
<?php elseif ($row['account_status'] == '3'): ?>
|
||||
<span class="label label-danger">Deleted</span>
|
||||
<span class="label label-default"><?php echo $lang->I18N('Deleted'); ?></span>
|
||||
<?php endif; ?></td>
|
||||
<td>
|
||||
<a href="accounts.php?action=edit&account_id=<?php echo $row['account_id']; ?>" class="btn btn-success btn-xs">
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
<input type="hidden" name="language" value="<?php echo $lang->get_language_value(); ?>">
|
||||
<div class="text-center">
|
||||
<a class="btn btn-danger btn-sm" href="accounts.php?action=view&account_id=<?php echo $account_id; ?>">
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('cancel'); ?>
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Cancel'); ?>
|
||||
</a>
|
||||
<input type="submit" name="Submit" value="Click here to Redirect" class="btn btn-primary btn-sm text-white">
|
||||
</div>
|
||||
|
|
|
@ -34,11 +34,11 @@
|
|||
<td><?php echo $value['client_phone']; ?></td>
|
||||
<td><?php echo $value['client_date']; ?></td>
|
||||
<td><?php if ($value['client_status'] == '0'): ?>
|
||||
<span class="label label-warning">Inactive</span>
|
||||
<span class="label label-warning"><?php echo $lang->I18N('Inactive'); ?></span>
|
||||
<?php elseif ($value['client_status'] == '1'): ?>
|
||||
<span class="label label-success">Active</span>
|
||||
<span class="label label-success"><?php echo $lang->I18N('Active'); ?></span>
|
||||
<?php elseif ($value['client_status'] == '2'): ?>
|
||||
<span class="label label-danger">Suspended</span>
|
||||
<span class="label label-default"><?php echo $lang->I18N('Suspended'); ?></span>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
<div class="content-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="card text-center">
|
||||
<h1 class="mb-0">404</h1>
|
||||
<h5 class="mb-0">Not Found</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,9 +0,0 @@
|
|||
<div class="content-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="card text-center">
|
||||
<h1 class="mb-0">503</h1>
|
||||
<h5 class="mb-0">Unathorized Access</h5>
|
||||
<p>You are trying to access a page which is not allowed to be displayed to an unauthorized user.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -29,8 +29,7 @@
|
|||
|
||||
<script src="<?php echo $site_url; ?>/assets/jquery/jquery.min.js"></script>
|
||||
<script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script>
|
||||
<script src="//cdn.staticfile.org/layer/3.1.1/layer.js"></script>
|
||||
|
||||
<script src="<?php echo $site_url; ?>/assets/layer/layer.js"></script>
|
||||
<script src="<?php echo $site_url; ?>/assets/js/common.js"></script>
|
||||
|
||||
<?php if (!empty($load_editor)): ?>
|
|
@ -7,13 +7,13 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="hosting-provider.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('add'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="hosting.php" class="btn btn-primary btn-xs">
|
||||
<a href="hosting-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('Hosting Provider'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -38,13 +38,13 @@ if (!defined('IN_CRONLITE')) {
|
|||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required">MOFH API Username</label>
|
||||
<label class="form-label required">API Username</label>
|
||||
<input type="text" name="api_username" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required">MOFH API Password</label>
|
||||
<label class="form-label required">API Password</label>
|
||||
<input type="text" name="api_password" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
|
@ -7,7 +7,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="hosting-provider.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
@ -16,9 +16,12 @@ if (!defined('IN_CRONLITE')) {
|
|||
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
|
||||
</a>
|
||||
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
|
||||
<a href="hosting-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
<a href="hosting-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span>
|
||||
</div>
|
|
@ -7,7 +7,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="hosting.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="hosting-provider.php"><?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="<?php echo setURL('admin/hosting', '', array('action' => 'details', 'id' => $data['api_id'])); ?>"><?php echo $lang->I18N('details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
|
||||
</ol>
|
||||
|
@ -17,9 +17,12 @@ if (!defined('IN_CRONLITE')) {
|
|||
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'details', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
</a>
|
||||
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
|
||||
<a href="hosting-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
<a href="hosting-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span>
|
||||
</div>
|
|
@ -12,7 +12,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="hosting.php?action=add" class="btn btn-primary btn-xs">
|
||||
<a href="hosting-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -36,8 +36,8 @@ if (!defined('IN_CRONLITE')) {
|
|||
<td><?php echo $value['api_cpanel_url']; ?></td>
|
||||
<td><?php echo $value['api_package']; ?></td>
|
||||
<td>
|
||||
<a href="hosting.php?action=edit&id=<?php echo $value['api_id']; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
|
||||
<a href="hosting.php?action=details&id=<?php echo $value['api_id']; ?>" class="btn btn-primary btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
|
||||
<a href="hosting-provider.php?action=edit&id=<?php echo $value['api_id']; ?>" class="btn btn-success btn-xs"><i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?></a>
|
||||
<a href="hosting-provider.php?action=details&id=<?php echo $value['api_id']; ?>" class="btn btn-primary btn-xs"><i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
|
@ -26,8 +26,7 @@
|
|||
|
||||
<script src="<?php echo $site_url; ?>/assets/jquery/jquery.min.js"></script>
|
||||
<script src="<?php echo $site_url; ?>/assets/bootstrap/js/bootstrap.min.js?_=<?php echo $static_release; ?>"></script>
|
||||
<script src="//cdn.staticfile.org/layer/3.1.1/layer.js"></script>
|
||||
|
||||
<script src="<?php echo $site_url; ?>/assets/layer/layer.js"></script>
|
||||
<script src="<?php echo $site_url; ?>/assets/js/common.js"></script>
|
||||
</body>
|
||||
</html>
|
|
@ -23,19 +23,20 @@
|
|||
<li class="<?php echo checkIfActive('tickets') ?>">
|
||||
<a href="tickets.php"><i class="fa fa-ticket-alt" aria-hidden="true"></i> <?php echo $lang->I18N('Tickets List'); ?></a>
|
||||
</li>
|
||||
<li class="<?php echo checkIfActive('sslcert') ?>">
|
||||
<a href="sslcert.php"><i class="fa fa-shield-alt" aria-hidden="true"></i> <?php echo $lang->I18N('SSL Certificates'); ?></a>
|
||||
<li class="<?php echo checkIfActive('ssl') ?>">
|
||||
<a href="ssl.php"><i class="fa fa-shield-alt" aria-hidden="true"></i> <?php echo $lang->I18N('SSL Certificates'); ?></a>
|
||||
</li>
|
||||
<li class="<?php echo checkIfActive('settings'); ?>">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<i class="fa fa-cog fa-fw"></i> <?php echo $lang->I18N('System Settings'); ?> <b class="caret"></b>
|
||||
<i class="fa fa-cog fa-fw"></i> <?php echo $lang->I18N('Settings'); ?> <b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="knowledgebase.php"><i class="fa fa-book fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Knowledgebase'); ?></a></li>
|
||||
<li><a href="news.php"><i class="fa fa-newspaper fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('News List'); ?></a></li>
|
||||
<li><a href="hosting.php"><i class="fa fa-server fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="hosting-provider.php"><i class="fa fa-server fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Hosting Provider'); ?></a></li>
|
||||
<li><a href="ssl-provider.php"><i class="fa fa-server fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('SSL Provider'); ?></a></li>
|
||||
<li><a href="domain.php"><i class="fa fa-globe fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Domain Provider'); ?></a></li>
|
||||
<li><a href="settings.php"><i class="fa fa-cog fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('Settings'); ?></a></li>
|
||||
<li><a href="settings.php"><i class="fa fa-cog fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('System Settings'); ?></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="<?php echo checkIfActive('profile'); ?>">
|
|
@ -14,7 +14,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="news.php?action=add" class="btn btn-success btn-xs">
|
||||
<a href="news.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
@ -26,7 +26,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<th width="100">ID</th>
|
||||
<th><?php echo $lang->I18N('Title'); ?></th>
|
||||
<th><?php echo $lang->I18N('Status'); ?></th>
|
||||
<th style="width: 150px;"><?php echo $lang->I18N('Date'); ?></th>
|
||||
<th style="width: 160px;"><?php echo $lang->I18N('Date'); ?></th>
|
||||
<th><?php echo $lang->I18N('Action'); ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
|
@ -29,7 +29,7 @@ $avatar_path = $AdminInfo['admin_email'] ? md5($AdminInfo['admin_email']) : 'def
|
|||
<span class="sidebar-icon bg-transparent"><i class="fa fa-ticket-alt" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('Tickets List'); ?>
|
||||
</a>
|
||||
<a href="sslcert.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<a href="ssl.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-shield-alt" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('SSL Certificates'); ?>
|
||||
</a>
|
||||
|
@ -45,7 +45,7 @@ $avatar_path = $AdminInfo['admin_email'] ? md5($AdminInfo['admin_email']) : 'def
|
|||
<span class="sidebar-icon bg-transparent"><i class="fa fa-newspaper" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('News List'); ?>
|
||||
</a>
|
||||
<a href="hosting.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<a href="hosting-provider.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-server" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('Hosting Provider'); ?>
|
||||
</a>
|
61
src/admin/views/ssl-provider/add.php
Executable file
61
src/admin/views/ssl-provider/add.php
Executable file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="ssl-provider.php"><?php echo $lang->I18N('SSL Provider'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('add'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="ssl-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
|
||||
</div>
|
||||
<form action="controllers/ssl-provider/add.php" method="post">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('Provider Type'); ?></label>
|
||||
<select name="api_type" class="form-control" required>
|
||||
<option value="gogetssl" selected>GoGetSSL</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label"><?php echo $lang->I18N('API Name'); ?></label>
|
||||
<input type="text" name="api_name" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Username'); ?></label>
|
||||
<input type="text" name="username" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Password'); ?></label>
|
||||
<input type="text" name="password" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button name="submit" class="btn btn-primary btn-xs"><?php echo $lang->I18N('Save'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
67
src/admin/views/ssl-provider/details.php
Executable file
67
src/admin/views/ssl-provider/details.php
Executable file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="ssl-provider.php"><?php echo $lang->I18N('SSL Provider'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo setURL('admin/ssl-provider', '', array('action' => 'edit', 'id' => $data['id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
|
||||
</a>
|
||||
<a href="ssl-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
<a href="ssl-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['id']; ?></span>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label"><?php echo $lang->I18N('Provider Type'); ?></label>
|
||||
<select name="api_type" class="form-control" value="<?php echo $data['api_type']; ?>" readonly>
|
||||
<option value="gogetssl" selected>GoGetSSL</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label"><?php echo $lang->I18N('API Name'); ?></label>
|
||||
<input type="text" name="api_name" value="<?php echo $data['api_name']; ?>" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Username'); ?></label>
|
||||
<input type="text" value="<?php echo $data['api_username']; ?>" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Password'); ?></label>
|
||||
<input type="text" value="<?php echo $data['api_password']; ?>" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<a href="<?php echo setURL('admin/ssl-provider', '', array('action' => 'edit', 'id' => $data['id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
67
src/admin/views/ssl-provider/edit.php
Executable file
67
src/admin/views/ssl-provider/edit.php
Executable file
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="ssl-provider.php"><?php echo $lang->I18N('SSL Provider'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo setURL('admin/ssl-provider', '', array('action' => 'details', 'id' => $data['id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
</a>
|
||||
<a href="ssl-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
<a href="ssl-provider.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('list'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['id']; ?></span>
|
||||
</div>
|
||||
<form action="controllers/ssl-provider/edit.php" method="post">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label"><?php echo $lang->I18N('Provider Type'); ?></label>
|
||||
<select name="api_type" class="form-control" value="<?php echo $data['api_type']; ?>" required>
|
||||
<option value="gogetssl" selected>GoGetSSL</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label"><?php echo $lang->I18N('API Name'); ?></label>
|
||||
<input type="text" name="api_name" value="<?php echo $data['api_name']; ?>" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Username'); ?></label>
|
||||
<input type="text" name="username" value="<?php echo $data['api_username']; ?>" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required"><?php echo $lang->I18N('API Password'); ?></label>
|
||||
<input type="text" name="password" value="<?php echo $data['api_password']; ?>" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<button name="submit" class="btn btn-primary"><?php echo $lang->I18N('Save'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
63
src/admin/views/ssl-provider/list.php
Executable file
63
src/admin/views/ssl-provider/list.php
Executable file
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('SSL Provider'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="ssl-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-stripped table-bordered table-hover">
|
||||
<thead>
|
||||
<th width="100">ID</th>
|
||||
<th width="100"><?php echo $lang->I18N('Type'); ?></th>
|
||||
<th width="100">Name</th>
|
||||
<th><?php echo $lang->I18N('API Username'); ?></th>
|
||||
<th><?php echo $lang->I18N('API Password'); ?></th>
|
||||
<th width="100"><?php echo $lang->I18N('Status'); ?></th>
|
||||
<th width="150"><?php echo $lang->I18N('Action'); ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($count > 0): ?>
|
||||
<?php foreach ($rows as $row): ?>
|
||||
<tr>
|
||||
<td><?php echo $row['id']; ?></td>
|
||||
<td><?php echo $row['api_type']; ?></td>
|
||||
<td><?php echo $row['api_name']; ?></td>
|
||||
<td><?php echo $row['api_username']; ?></td>
|
||||
<td><?php echo $row['api_password']; ?></td>
|
||||
<td>Status</td>
|
||||
<td>
|
||||
<a href="<?php echo setRouter('ssl-provider', '', array('action' => 'edit', 'id' => $row['id'])); ?>" class="btn btn-success btn-xs">
|
||||
<i class="fa fa-edit"></i> <?php echo $lang->I18N('edit'); ?>
|
||||
</a>
|
||||
<a href="<?php echo setRouter('ssl-provider', '', array('action' => 'details', 'id' => $row['id'])); ?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="6" class="text-center">Nothing found</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer"><?php echo $count; ?> Records Founds.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
72
src/admin/views/ssl/list.php
Executable file
72
src/admin/views/ssl/list.php
Executable file
|
@ -0,0 +1,72 @@
|
|||
<?php
|
||||
if (!defined('IN_CRONLITE')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
?>
|
||||
<div class="content-wrapper">
|
||||
<div class="container">
|
||||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('SSL Certificates'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="ssl.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-stripped table-bordered table-hover">
|
||||
<thead>
|
||||
<th width="100">ID</th>
|
||||
<th width="100"><?php echo $lang->I18N('Third ID'); ?></th>
|
||||
<th><?php echo $lang->I18N('Domain Name'); ?></th>
|
||||
<th width="100"><?php echo $lang->I18N('Method'); ?></th>
|
||||
<th width="100"><?php echo $lang->I18N('Status'); ?></th>
|
||||
<th width="150"><?php echo $lang->I18N('Action'); ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($count > 0): ?>
|
||||
<?php foreach ($rows as $row): ?>
|
||||
<tr>
|
||||
<td><?php echo $row['ssl_id']; ?></td>
|
||||
<td><?php echo $row['ssl_third_id']; ?></td>
|
||||
<td><?php echo $row['ssl_domain']; ?></td>
|
||||
<td><?php echo $row['ssl_dcv_method']; ?></td>
|
||||
<td><?php
|
||||
if ($row['ssl_status'] == 'processing') {
|
||||
$btn = ['primary', 'cog'];
|
||||
echo '<span class="badge bg-primary badge-pill">Processing</span>';
|
||||
} elseif ($row['ssl_status'] == 'active') {
|
||||
$btn = ['success', 'globe'];
|
||||
echo '<span class="badge bg-success badge-pill">Active</span>';
|
||||
} elseif ($row['ssl_status'] == 'cancelled') {
|
||||
$btn = ['danger', 'lock'];
|
||||
echo '<span class="badge bg-danger badge-pill">Cancelled</span>';
|
||||
} elseif ($row['ssl_status'] == 'expired') {
|
||||
$btn = ['danger', 'lock'];
|
||||
echo '<span class="badge bg-danger badge-pill">Expired</span>';
|
||||
}
|
||||
?></td>
|
||||
<td>
|
||||
<a href="<?php echo setRouter('ssl', '', array('action' => 'details', 'ssl_id' => $row['ssl_id'])); ?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="6" class="text-center">Nothing found</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer"><?php echo $count; ?> Records Founds.</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,32 +0,0 @@
|
|||
|
||||
<div class="container-fluid">
|
||||
<div class="card">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h3 class="m-0"><?php echo $PageInfo['title']; ?></h3>
|
||||
<a href="index.php" class="btn btn-danger btn-sm">
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<hr />
|
||||
<form class="card-body" action="controllers/sslapi/edit.php" method="post">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required">SSL API Username</label>
|
||||
<input type="text" name="username" value="<?php echo $SSLApi['api_username']; ?>" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
<label class="form-label required">SSL API Password</label>
|
||||
<input type="text" name="password" value="<?php echo $SSLApi['api_password']; ?>" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-12">
|
||||
<hr />
|
||||
<button name="submit" class="btn btn-primary"><?php echo $lang->I18N('Save'); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
|
@ -1,65 +0,0 @@
|
|||
|
||||
<div class="content-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="card py-0">
|
||||
<div class="d-flex justify-content-between align-items-center pt-15">
|
||||
<h5 class="m-0"><?php echo $PageInfo['title']; ?></h5>
|
||||
<a href="index.php" class="btn text-white btn-danger btn-sm">
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-stripped table-bordered table-hover">
|
||||
<thead>
|
||||
<th width="5%">ID</th>
|
||||
<th width="5%">Order ID</th>
|
||||
<th width="65%">Domain Name</th>
|
||||
<th width="5%">Method</th>
|
||||
<th width="5%">Status</th>
|
||||
<th width="5%">Action</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($count > 0): ?>
|
||||
<?php foreach ($rows as $row):
|
||||
$SSLInfo = $apiClient->getOrderStatus($row['ssl_key']);
|
||||
?>
|
||||
<tr>
|
||||
<td>#<?php echo $row['ssl_id']; ?></td>
|
||||
<td><?php echo $SSLInfo['order_id']; ?></td>
|
||||
<td><?php echo $SSLInfo['domain']; ?></td>
|
||||
<td>DNS</td>
|
||||
<td><?php
|
||||
if ($SSLInfo['status'] == 'processing') {
|
||||
$btn = ['primary', 'cog'];
|
||||
echo '<span class="badge bg-primary badge-pill">Processing</span>';
|
||||
} elseif ($SSLInfo['status'] == 'active') {
|
||||
$btn = ['success', 'globe'];
|
||||
echo '<span class="badge bg-success badge-pill">Active</span>';
|
||||
} elseif ($SSLInfo['status'] == 'cancelled') {
|
||||
$btn = ['danger', 'lock'];
|
||||
echo '<span class="badge bg-danger badge-pill">Cancelled</span>';
|
||||
} elseif ($SSLInfo['status'] == 'expired') {
|
||||
$btn = ['danger', 'lock'];
|
||||
echo '<span class="badge bg-danger badge-pill">Expired</span>';
|
||||
}
|
||||
?></td>
|
||||
<td>
|
||||
<a href="<?php echo setRouter('sslcert', '', array('action' => 'view', 'ssl_id' => $SSLInfo['order_id'])); ?>" class="btn btn-rounded btn-sm btn-<?php echo $btn[0] ?>">
|
||||
<i class="fa fa-<?php echo $btn[1] ?>"></i>Manage
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach;?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="6" class="text-center">Nothing found</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<p class="pb-10"><?php echo $count; ?> Records Founds</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,97 +0,0 @@
|
|||
|
||||
<div class="content-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="card py-0">
|
||||
<div class="d-flex justify-content-between align-items-center pt-15">
|
||||
<h5 class="m-0">Viewing SSL #<?php echo htmlspecialchars($_GET['ssl_id']) ?></h5>
|
||||
<a href="sslcert.php" class="btn btn-sm btn-danger">
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="row mb-20">
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
|
||||
<b>Status:</b>
|
||||
<span><?php echo $Status;?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
|
||||
<b>Domain Name:</b>
|
||||
<span><?php echo $SSLInfo['domain'];?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
|
||||
<b>Start Date:</b>
|
||||
<span><?php echo $Begin;?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
|
||||
<b>End Date:</b>
|
||||
<span><?php echo $End;?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center mx-10 my-5">
|
||||
<b>Method:</b>
|
||||
<span>DNS</span>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($SSLInfo['status']=='processing'){
|
||||
$Record = explode(' ',$SSLInfo['approver_method']['dns']['record']);
|
||||
?>
|
||||
<div class="col-md-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>CSR Code:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly><?php echo $SSLInfo['csr_code'];?></textarea></pre>
|
||||
</div>
|
||||
<div class="my-10 mx-10">
|
||||
<b>CNAME Record:</b>
|
||||
<pre class="my-0"><input type="text" class="form-control" value="<?php echo $Record['0'];?>" readonly></pre>
|
||||
</div>
|
||||
<div class="my-10 mx-10">
|
||||
<b>Record Content:</b>
|
||||
<pre class="my-0"><input type="text" class="form-control" value="<?php echo $Record['2'];?>" readonly></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif($SSLInfo['status']=='active'){ ?>
|
||||
<div class="col-lg-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>Certificate Code:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly><?php echo $SSLInfo['crt_code'];?></textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>CA Bundle:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly><?php echo $SSLInfo['ca_code'];?></textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif($SSLInfo['status']=='cancelled'){ ?>
|
||||
<div class="col-lg-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>CSR Code:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly><?php echo $SSLInfo['csr_code'];?></textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif($SSLInfo['status']=='expired'){ ?>
|
||||
<div class="col-lg-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>Certificate Code:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly>-----</textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-12">
|
||||
<div class="my-5 mx-10">
|
||||
<b>CA Bundle:</b>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly>-----</textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -8,7 +8,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<ol class="breadcrumb page-breadcrumb">
|
||||
<li><a href="index.php"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="tickets.php"><?php echo $lang->I18N('Tickets List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Tickets Details'); ?></li>
|
||||
<li class="active"><?php echo $lang->I18N('Ticket Details'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-info">
|
||||
<div class="panel-heading">
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<!-- <a href="<?php echo setURL('admin/clients', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
|
||||
<a href="<?php echo setURL('admin/tickets', '', array('action' => 'add')); ?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a> -->
|
||||
|
||||
</a>
|
||||
</div>
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
|
||||
</div>
|
||||
|
@ -18,36 +19,28 @@
|
|||
<table class="table table-stripped table-bordered table-hover">
|
||||
<thead>
|
||||
<th>ID</th>
|
||||
<th>Subject</th>
|
||||
<th>Department</th>
|
||||
<th>Client Email</th>
|
||||
<th>Date</th>
|
||||
<th>Status</th>
|
||||
<th>Action</th>
|
||||
<th><?php echo $lang->I18N('Subject'); ?></th>
|
||||
<th><?php echo $lang->I18N('Department'); ?></th>
|
||||
<th><?php echo $lang->I18N('Client Email'); ?></th>
|
||||
<th><?php echo $lang->I18N('Date'); ?></th>
|
||||
<th><?php echo $lang->I18N('Status'); ?></th>
|
||||
<th><?php echo $lang->I18N('Action'); ?></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if ($count > 0): ?>
|
||||
<?php foreach ($rows as $value): ?>
|
||||
|
||||
<tr>
|
||||
<td><?php echo $value['ticket_id']; ?></td>
|
||||
<td><?php echo $value['ticket_subject']; ?></td>
|
||||
<td><?php echo get_ticket_department($value['ticket_department']); ?></td>
|
||||
<td><?php echo $value['ticket_email']; ?></td>
|
||||
<td><?php echo $value['ticket_date']; ?></td>
|
||||
<td><?php echo get_ticket_status_span($value['ticket_status']);
|
||||
if ($value['ticket_status'] == '0') {
|
||||
$btn = ['secondary', 'clock'];
|
||||
} elseif ($value['ticket_status'] == '1') {
|
||||
$btn = ['success', 'comment'];
|
||||
} elseif ($value['ticket_status'] == '2') {
|
||||
$btn = ['primary', 'comment'];
|
||||
} elseif ($value['ticket_status'] == '3') {
|
||||
$btn = ['danger', 'lock'];
|
||||
}
|
||||
?></td>
|
||||
<td><?php echo get_ticket_status_span($value['ticket_status']); ?></td>
|
||||
<td>
|
||||
<a href="tickets.php?action=details&ticket_id=<?php echo $value['ticket_id']; ?>#reply" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -57,11 +50,12 @@ $btn = ['danger', 'lock'];
|
|||
<td colspan="5" class="text-center">Nothing found</td>
|
||||
</tr>
|
||||
<?php endif;?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="panel-footer">
|
||||
<p class="pb-10"><?php echo $count; ?> Records Founds</p>
|
||||
<span><?php echo $count; ?> Records Founds</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
2
src/assets/layer/layer.js
Normal file
2
src/assets/layer/layer.js
Normal file
File diff suppressed because one or more lines are too long
BIN
src/assets/layer/theme/default/icon.png
Normal file
BIN
src/assets/layer/theme/default/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
1
src/assets/layer/theme/default/layer.css
Normal file
1
src/assets/layer/theme/default/layer.css
Normal file
File diff suppressed because one or more lines are too long
|
@ -9,8 +9,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'view', 'goftp', 'login')))
|
|||
}
|
||||
|
||||
require __DIR__ . '/controllers/accounts/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/header.php';
|
||||
require __DIR__ . '/views/common/navbar.php';
|
||||
require __DIR__ . '/views/header.php';
|
||||
require __DIR__ . '/views/navbar.php';
|
||||
require __DIR__ . '/views/common/sidebar.php';
|
||||
require __DIR__ . '/views/accounts/' . $action . '.php';
|
||||
require __DIR__ . '/views/common/footer.php';
|
||||
require __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -110,7 +110,7 @@ if (isset($_POST['submit'])) {
|
|||
setMessage('api_key cannot be <b>empty</b> !', 'danger');
|
||||
redirect('clientarea/accounts');
|
||||
}
|
||||
$ExtensionInfo = $DB->findAll('domain_extensions', '*', array(), 'extension_id');
|
||||
$ExtensionInfo = $DB->findAll('account_domaintld', '*', array(), 'extension_id');
|
||||
$AccountApi = $DB->find('account_api', '*', array('api_key' => get('api_key')), null, 1);
|
||||
$AccountApiConfig = array(
|
||||
'apiUsername' => $AccountApi['api_username'],
|
||||
|
|
|
@ -8,7 +8,7 @@ if (isset($_POST['submit'])) {
|
|||
$FormData = array(
|
||||
'csr' => post('csr'),
|
||||
);
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'FREESSL'), null, 1);
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'GOGETSSL'), null, 1);
|
||||
|
||||
require ROOT . '/modules/GoGetSSL/GoGetSSLApi.php';
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ require __DIR__ . '/../../application.php';
|
|||
$PageInfo = ['title' => 'New CSR', 'rel' => ''];
|
||||
|
||||
if (isset($_POST['submit'])) {
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'FREESSL'), null, 1);
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'GOGETSSL'), null, 1);
|
||||
$FormData = array(
|
||||
'csr_commonname' => strtolower(post('domain')),
|
||||
'csr_organization' => post('company'),
|
||||
|
|
|
@ -67,7 +67,7 @@ $FormData = array(
|
|||
echo '<pre>';
|
||||
print_r($FormData);
|
||||
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'FREESSL'), null, 1);
|
||||
$SSLApi = $DB->find('ssl_api', '*', array('api_key' => 'GOGETSSL'), null, 1);
|
||||
|
||||
require_once ROOT . '/modules/GoGetSSL/GoGetSSLApi.php';
|
||||
|
||||
|
@ -77,7 +77,7 @@ $result = $apiClient->addSSLOrder($FormData);
|
|||
|
||||
if (count($result) > 4) {
|
||||
$data = array(
|
||||
'ssl_key' => $result['order_id'],
|
||||
'ssl_third_id' => $result['order_id'],
|
||||
'ssl_client_id' => $ClientInfo['client_id'],
|
||||
);
|
||||
$res = $DB->insert('ssl', $data);
|
||||
|
|
|
@ -9,8 +9,8 @@ if (!in_array($action, array('new', 'decode'))) {
|
|||
}
|
||||
|
||||
require_once __DIR__ . '/controllers/csr/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/csr/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
require_once __DIR__ . '/application.php';
|
||||
require_once __DIR__ . '/controllers/tools/dnslookup.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/tools/dnslookup.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
require_once __DIR__ . '/../core/application.php';
|
||||
require_once __DIR__ . '/controllers/clients/forgetpassword.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/forgetpassword.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
require_once __DIR__ . '/application.php';
|
||||
require_once __DIR__ . '/controllers/dashboard/view.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/dashboard/view.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -10,8 +10,8 @@ if (!in_array($action, array('list', 'view'))) {
|
|||
|
||||
require_once __DIR__ . '/controllers/knowledgebase/' . $action . '.php';
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/knowledgebase/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -3,6 +3,6 @@
|
|||
require_once __DIR__ . '/../core/application.php';
|
||||
|
||||
require_once __DIR__ . '/controllers/clients/login.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/login.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -11,6 +11,6 @@ if ($SiteConfig['site_status'] != 0) {
|
|||
$PageInfo['title'] = 'Maintaince';
|
||||
$PageInfo['rel'] = '<link href="' . $site_url . '/assets/css/login.css" rel="stylesheet" />';
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/maintaince.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -9,8 +9,8 @@ if (!in_array($action, array('list', 'add', 'view'))) {
|
|||
}
|
||||
|
||||
require_once __DIR__ . '/controllers/myssl/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/myssl/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
require_once __DIR__ . '/application.php';
|
||||
|
||||
require_once __DIR__ . '/controllers/clients/profile.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/clients/profile.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
|
||||
require_once __DIR__ . '/../core/application.php';
|
||||
require_once __DIR__ . '/controllers/clients/resetpassword.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/resetpassword.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -6,8 +6,8 @@ require_once ROOT . '/core/library/countries.php';
|
|||
|
||||
$PageInfo['title'] = $lang->I18N('Profile Settings');
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/settings.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
require_once __DIR__ . '/../core/application.php';
|
||||
|
||||
require_once __DIR__ . '/controllers/clients/signup.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/signup.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -6,6 +6,6 @@ require_once __DIR__ . '/application.php';
|
|||
|
||||
$PageInfo = ['title' => 'Suspended Account', 'rel' => ''];
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/suspended.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -11,8 +11,8 @@ if (!in_array($action, array('list', 'view', 'add'))) {
|
|||
require_once ROOT . '/core/library/tickets.php';
|
||||
|
||||
require_once __DIR__ . '/controllers/tickets/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/tickets/' . $action . '.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -4,8 +4,8 @@ require_once __DIR__ . '/application.php';
|
|||
|
||||
$PageInfo['title'] = $lang->I18N('Additional Tools');
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/tools/tools.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -5,6 +5,6 @@ $current_route = 'clientarea/validate'; // TODO: make it automation
|
|||
require_once __DIR__ . '/application.php';
|
||||
|
||||
require_once __DIR__ . '/controllers/clients/validate.php';
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/clients/validate.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
<div class="container-fluid">
|
||||
<div class="card text-center">
|
||||
<h1 class="mb-0">503</h1>
|
||||
<h5 class="mb-0">Unathorized Access</h5>
|
||||
<p>You are trying to access a page which is not allowed to be displayed to an unauthorized user.</p>
|
||||
</div>
|
||||
</div>
|
|
@ -54,7 +54,7 @@
|
|||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="d-flex justify-content-between align-items-center m-5">
|
||||
<b>Status:</b>
|
||||
<b><?php echo $lang->I18N('Status'); ?>:</b>
|
||||
<span>
|
||||
<?php if ($data['account_status'] == '0') {
|
||||
echo '<span class="badge bg-secondary">Inactive</span>';
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
<tbody>
|
||||
<?php if ($count > 0): ?>
|
||||
<?php foreach ($rows as $row):
|
||||
$SSLInfo = $apiClient->getOrderStatus($row['ssl_key']);
|
||||
$SSLInfo = $apiClient->getOrderStatus($row['ssl_third_id']);
|
||||
?>
|
||||
<tr>
|
||||
<td># <?php echo $row['ssl_id']; ?></td>
|
||||
|
|
|
@ -33,11 +33,12 @@
|
|||
<label class="form-label required">Ticket Department</label>
|
||||
<select name="department" class="form-control" required>
|
||||
<option value="" selected="selected" disabled="disabled">Select Department</option>
|
||||
<option value="hosting">Hosting Issue</option>
|
||||
<option value="domain">Domain Issue</option>
|
||||
<option value="ssl">SSL Issue</option>
|
||||
<option value="tech">Technical Issue</option>
|
||||
<option value="client">Customer Issue</option>
|
||||
<option value="order"><?php echo $lang->I18N('Order Issue'); ?></option>
|
||||
<option value="hosting"><?php echo $lang->I18N('Hosting Issue'); ?></option>
|
||||
<option value="domain"><?php echo $lang->I18N('Domain Issue'); ?></option>
|
||||
<option value="ssl"><?php echo $lang->I18N('SSL Issue'); ?></option>
|
||||
<option value="tech"><?php echo $lang->I18N('Technical Issue'); ?></option>
|
||||
<option value="client"><?php echo $lang->I18N('Customer Issue'); ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div class="container-fluid">
|
||||
<div class="card m-20 py-10">
|
||||
<div class="d-flex justify-content-between align-items-center pt-15">
|
||||
<h5 class="m-0"><?php echo $lang->I18N('Tickets Details'); ?> #<?php echo $ticket_id; ?></h5>
|
||||
<h5 class="m-0"><?php echo $lang->I18N('Ticket Details'); ?> #<?php echo $ticket_id; ?></h5>
|
||||
<a href="tickets.php" class="btn btn-sm btn-danger">
|
||||
<i class="fa fa-backward"></i> <?php echo $lang->I18N('Return'); ?>
|
||||
</a>
|
||||
|
|
|
@ -4,8 +4,8 @@ require_once __DIR__ . '/application.php';
|
|||
|
||||
$PageInfo['title'] = 'WHOIS Lookup';
|
||||
|
||||
require_once __DIR__ . '/views/common/header.php';
|
||||
require_once __DIR__ . '/views/common/navbar.php';
|
||||
require_once __DIR__ . '/views/header.php';
|
||||
require_once __DIR__ . '/views/navbar.php';
|
||||
require_once __DIR__ . '/views/common/sidebar.php';
|
||||
require_once __DIR__ . '/views/tools/whois.php';
|
||||
require_once __DIR__ . '/views/common/footer.php';
|
||||
require_once __DIR__ . '/views/footer.php';
|
||||
|
|
|
@ -78,7 +78,7 @@ return array(
|
|||
'Tickets' => 'Tickets',
|
||||
'Tickets List' => 'Tickets',
|
||||
'My Tickets' => 'My Tickets',
|
||||
'Tickets Details' => 'Tickets Details',
|
||||
'Ticket Details' => 'Ticket Details',
|
||||
'member' => 'Member',
|
||||
'members' => 'Members',
|
||||
'reg_date' => 'Registration date'
|
||||
|
|
|
@ -73,7 +73,7 @@ return array(
|
|||
'delete' => '삭제',
|
||||
'details' => '세부 정보',
|
||||
'Tickets' => '작업 지시서',
|
||||
'Tickets Details' => '작업 지시 세부 정보',
|
||||
'Ticket Details' => '작업 지시 세부 정보',
|
||||
'member' => '고객',
|
||||
'members' => '고객',
|
||||
'reg_date' => '등록 날짜'
|
||||
|
|
|
@ -22,6 +22,7 @@ return array(
|
|||
"password" => "密码",
|
||||
'Password' => "密码",
|
||||
'Confirm Password' => "确认密码",
|
||||
'Input Confirm Password' => "请输入确认密码",
|
||||
"input_password" => "请输入密码",
|
||||
"password_lost" => "忘记密码了?",
|
||||
"password_reset" => "重置密码",
|
||||
|
@ -81,27 +82,49 @@ return array(
|
|||
'edit' => '编辑',
|
||||
'list' => '列表',
|
||||
'close' => '关闭',
|
||||
'open' => '打开',
|
||||
'managearea' => '管理中心',
|
||||
'delete' => '删除',
|
||||
'Deleted' => '已删除',
|
||||
'Inactive' => '未激活',
|
||||
'Active' => '已激活',
|
||||
'Suspended' => '已停用',
|
||||
'details' => '详情',
|
||||
'View details' => '查看详情',
|
||||
'Tickets' => '工单',
|
||||
'Tickets List' => '工单管理',
|
||||
'Ticket List' => '工单列表',
|
||||
'My Tickets' => '我的工单',
|
||||
'Tickets Details' => '工单详情',
|
||||
'Ticket Details' => '工单详情',
|
||||
'Ticket Details' => '工单详情',
|
||||
'Hosting Issue' => '主机问题',
|
||||
'Order Issue' => '订单问题',
|
||||
'SSL Issue' => 'SSL证书问题',
|
||||
'Domain Issue' => '域名问题',
|
||||
'Technical Issue' => '技术问题',
|
||||
'Customer Issue' => '客户问题',
|
||||
'member' => '客户',
|
||||
'members' => '客户',
|
||||
'reg_date' => '注册日期',
|
||||
'cancel' => '取消',
|
||||
'Cancel' => '取消',
|
||||
'Settings' => '设置',
|
||||
'Return' => '返回',
|
||||
'Save' => '保存',
|
||||
'Closed' => '已关闭',
|
||||
'Opened' => '已打开',
|
||||
'Subject' => '主题',
|
||||
'Department' => '部门',
|
||||
'Date' => '日期',
|
||||
'Status' => '状态',
|
||||
'Action' => '操作',
|
||||
'Clients' => '客户',
|
||||
'Clients List' => '客户管理',
|
||||
'Client List' => '客户列表',
|
||||
'Client List' => '客户名单',
|
||||
'Client Details' => '客户详情',
|
||||
'Client Email' => '客户邮箱',
|
||||
'Hosting Accounts' => '托管帐户',
|
||||
'Account' => '账户',
|
||||
'Accounts' => '账户',
|
||||
'Account List' => '账户列表',
|
||||
'Account Details' => '账户详情',
|
||||
'Account Settings' => '账户配置',
|
||||
|
@ -135,6 +158,7 @@ return array(
|
|||
'Send Email' => '发送邮件',
|
||||
'Send Test Email' => '发送测试邮件',
|
||||
'This test email indicates that SMTP has been configured correctly.' => '收到这个测试邮件,说明SMTP已配置正确。',
|
||||
'SSL Provider' => 'SSL证书提供商',
|
||||
'SSL Certificates' => 'SSL证书',
|
||||
'Site Name' => '网站名称',
|
||||
'Site Status' => '网站状态',
|
||||
|
|
|
@ -76,7 +76,8 @@ return array(
|
|||
'details' => '詳情',
|
||||
'Tickets' => '工單',
|
||||
'Tickets List' => '工單管理',
|
||||
'Tickets Details' => '工單詳情',
|
||||
'Ticket List' => '工單列表',
|
||||
'Ticket Details' => '工單詳情',
|
||||
'member' => '客戶',
|
||||
'members' => '客戶',
|
||||
'reg_date' => '註冊日期'
|
||||
|
|
|
@ -96,7 +96,7 @@ $countries = array(
|
|||
array("name" => "Guam", "code" => "GU"),
|
||||
array("name" => "Guinea-Bissau", "code" => "GW"),
|
||||
array("name" => "Guyana", "code" => "GY"),
|
||||
array("name" => "Hong Kong", "code" => "HK"),
|
||||
array("name" => "Hong Kong of China", "code" => "HK"),
|
||||
array("name" => "Heard Island and McDonald Islands", "code" => "HM"),
|
||||
array("name" => "Honduras", "code" => "HN"),
|
||||
array("name" => "Croatia", "code" => "HR"),
|
||||
|
@ -148,7 +148,7 @@ $countries = array(
|
|||
array("name" => "Mali", "code" => "ML"),
|
||||
array("name" => "Myanmar", "code" => "MM"),
|
||||
array("name" => "Mongolia", "code" => "MN"),
|
||||
array("name" => "Macao", "code" => "MO"),
|
||||
array("name" => "Macao of China", "code" => "MO"),
|
||||
array("name" => "Northern Mariana Islands", "code" => "MP"),
|
||||
array("name" => "Martinique", "code" => "MQ"),
|
||||
array("name" => "Mauritania", "code" => "MR"),
|
||||
|
@ -226,7 +226,7 @@ $countries = array(
|
|||
array("name" => "Turkey", "code" => "TR"),
|
||||
array("name" => "Trinidad and Tobago", "code" => "TT"),
|
||||
array("name" => "Tuvalu", "code" => "TV"),
|
||||
array("name" => "Taiwan", "code" => "TW"),
|
||||
array("name" => "Taiwan of China", "code" => "TW"),
|
||||
array("name" => "Tanzania", "code" => "TZ"),
|
||||
array("name" => "Ukraine", "code" => "UA"),
|
||||
array("name" => "Uganda", "code" => "UG"),
|
||||
|
|
536
src/core/library/third/GoGetSSLApi.class.php
Normal file
536
src/core/library/third/GoGetSSLApi.class.php
Normal file
|
@ -0,0 +1,536 @@
|
|||
<?php
|
||||
namespace third;
|
||||
|
||||
class GoGetSSLApi
|
||||
{
|
||||
protected $key;
|
||||
protected $lastError;
|
||||
protected $lastStatus;
|
||||
protected $lastResponse;
|
||||
protected $apiUrl = 'https://my.gogetssl.com/api';
|
||||
|
||||
public function __construct($key = null)
|
||||
{
|
||||
if (isset($key)) {
|
||||
$this->setKey($key);
|
||||
}
|
||||
}
|
||||
|
||||
public function auth($user, $pass)
|
||||
{
|
||||
$response = $this->call('/auth/', [], [
|
||||
'user' => $user,
|
||||
'pass' => $pass
|
||||
]);
|
||||
|
||||
if (isset($response ['key'])) {
|
||||
$this->setKey($response ['key']);
|
||||
return $response;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public function addSslSan($orderId, $count)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call(
|
||||
'/orders/add_ssl_san_order/',
|
||||
['auth_key' => $this->key],
|
||||
['order_id' => $orderId, 'count' => $count]
|
||||
);
|
||||
}
|
||||
|
||||
public function cancelSSLOrder($orderId, $reason)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call(
|
||||
'/orders/cancel_ssl_order/',
|
||||
['auth_key' => $this->key],
|
||||
['order_id' => $orderId, 'reason' => $reason]);
|
||||
}
|
||||
|
||||
public function changeDcv($orderId, $data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/change_dcv/{$orderId}",
|
||||
['auth_key' => $this->key],
|
||||
$data);
|
||||
}
|
||||
|
||||
public function changeValidationEmail($orderId, $data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/change_validation_email/{$orderId}",
|
||||
['auth_key' => $this->key],
|
||||
$data);
|
||||
}
|
||||
|
||||
public function decodeCSR($csr, $brand = 1, $wildcard = 0)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/csr/decode/',
|
||||
['auth_key' => $this->key],
|
||||
['csr' => $csr, 'brand' => $brand, 'wildcard' => $wildcard]);
|
||||
}
|
||||
|
||||
/*
|
||||
* Get Domain Emails List
|
||||
*/
|
||||
|
||||
public function getWebServers($type)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/tools/webservers/{$type}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getDomainAlternative($csr)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/domain/alternative/',
|
||||
['auth_key' => $this->key],
|
||||
['csr' => trim($csr)]);
|
||||
}
|
||||
|
||||
/*
|
||||
* Get Domain Emails List
|
||||
*/
|
||||
|
||||
public function getDomainEmails($domain)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/domain/emails/',
|
||||
['auth_key' => $this->key],
|
||||
['domain' => $domain]);
|
||||
}
|
||||
|
||||
public function getDomainEmailsForGeotrust($domain)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/domain/emails/geotrust',
|
||||
['auth_key' => $this->key],
|
||||
['domain' => $domain]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @return mixed
|
||||
* @throws GoGetSSLAuthException
|
||||
*/
|
||||
public function getAllProductPrices()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/products/all_prices/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @return mixed
|
||||
* @throws GoGetSSLAuthException
|
||||
*/
|
||||
public function getAllProducts()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/products/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getProduct($productId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/products/ssl/{$productId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getProducts()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/products/ssl/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param int $productId
|
||||
* @return array
|
||||
* @throws GoGetSSLAuthException
|
||||
*/
|
||||
public function getProductDetails($productId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/products/details/{$productId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* @param int $productId
|
||||
* @return array
|
||||
* @throws GoGetSSLAuthException
|
||||
*/
|
||||
public function getProductPrice($productId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/products/price/{$productId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getUserAgreement($productId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/products/agreement/{$productId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getAccountBalance()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/account/balance/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getAccountDetails()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthExceptio();
|
||||
}
|
||||
|
||||
return $this->call('/account/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getTotalOrders()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/account/total_orders/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getAllInvoices()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/account/invoices/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getUnpaidInvoices()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException ();
|
||||
}
|
||||
|
||||
return $this->call('/account/invoices/unpaid/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getTotalTransactions()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/account/total_transactions/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function addSSLOrder($data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/orders/add_ssl_order/', ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
public function addSSLRenewOrder($data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/orders/add_ssl_renew_order/', ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
public function reIssueOrder($orderId, $data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/reissue/{$orderId}", ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
public function addSandboxAccount($data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/accounts/sandbox/add/', ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* order_id - unique order ID
|
||||
* partner_order_id - unique ID returned from vendor
|
||||
* internal_id
|
||||
* status - order status (active, cancelled, expired, incomplete, new_order, unpaid, pending, processing, reissue, rejected,)
|
||||
* status_description
|
||||
* dcv_status - 0/1 for not validated domains, 2 for validated
|
||||
* product_id - product ID
|
||||
* domain - FQDN from CSR
|
||||
* total_domains - total domains count
|
||||
* base_domain_count
|
||||
* single_san_count
|
||||
* wildcard_san_count
|
||||
* validity_period - order validity period in months
|
||||
* valid_from
|
||||
* valid_till
|
||||
* begin_date - subscription start date
|
||||
* end_date - subscription end date
|
||||
* csr_code - CSR code of certificate returned if status “active”
|
||||
* ca_code - CA code of certificate id status “active”
|
||||
* crt_code - Certificate code is status “active”
|
||||
* server_count
|
||||
* reissue - is certificate reissued (0/1)
|
||||
* reissue_now - is certificate in reissue processing (0/1)
|
||||
* renew - is certificate renewed (0/1)
|
||||
* webserver_type
|
||||
* upgrade
|
||||
* approver_emails
|
||||
* dcv_method - (http, https, dns, email)
|
||||
* admin_addressline1
|
||||
* admin_addressline2
|
||||
* admin_city
|
||||
* admin_country
|
||||
* org_addressline3
|
||||
* org_city
|
||||
* org_country
|
||||
* admin_fax
|
||||
* admin_phone
|
||||
* admin_postalcode
|
||||
* admin_region
|
||||
* admin_email
|
||||
* admin_firstname
|
||||
* admin_lastname
|
||||
* admin_organization
|
||||
* admin_title
|
||||
* org_addressline3
|
||||
* org_city
|
||||
* org_country
|
||||
* org_fax
|
||||
* org_phone
|
||||
* org_postalcode
|
||||
* org_region
|
||||
* org_lei
|
||||
* tech_organization
|
||||
* tech_addressline1
|
||||
* tech_addressline2
|
||||
* tech_addressline3
|
||||
* tech_city
|
||||
* tech_country
|
||||
* tech_fax
|
||||
* tech_phone
|
||||
* tech_postalcode
|
||||
* tech_region
|
||||
* tech_email
|
||||
* tech_firstname
|
||||
* tech_lastname
|
||||
* tech_title
|
||||
* ssl_price
|
||||
* ssl_period
|
||||
* admin_msg
|
||||
* free_ev_upgrade
|
||||
* codesigning_inviteurl
|
||||
* validation_description
|
||||
* manual_check: 0; if 1, order is under brand validation
|
||||
* pre_signing: 0; if 1, Comodo has too many orders and issuance of SSL delayed
|
||||
* approver_method
|
||||
* san - array of SAN items
|
||||
* san_name
|
||||
* validation_method -(http, https, dns, email)
|
||||
* status - domain validation status (0 / 1 / 2)
|
||||
* status_description description of domain validation status (not set for 0, processing for 1, validated for 2)
|
||||
* success - success value (true)
|
||||
* time_stamp
|
||||
*/
|
||||
public function getOrderStatus($orderId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/status/{$orderId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function comodoClaimFreeEV($orderId, $data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/comodo_claim_free_ev/{$orderId}" , ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
public function getOrderInvoice($orderId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/invoice/{$orderId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getUnpaidOrders()
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/orders/list/unpaid/', ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function resendEmail($orderId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/resend_validation_email/{$orderId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function resendValidationEmail($orderId)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call("/orders/ssl/resend_validation_email/{$orderId}", ['auth_key' => $this->key]);
|
||||
}
|
||||
|
||||
public function getCSR($data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/csr/get/', ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
public function generateCSR($data)
|
||||
{
|
||||
if (!$this->key) {
|
||||
throw new GoGetSSLAuthException();
|
||||
}
|
||||
|
||||
return $this->call('/tools/csr/generate/', ['auth_key' => $this->key], $data);
|
||||
}
|
||||
|
||||
protected function call($uri, $getData = [], $postData = [])
|
||||
{
|
||||
$curl = curl_init();
|
||||
|
||||
$endpoint = count($getData)
|
||||
? "{$this->apiUrl}{$uri}?" . http_build_query($getData)
|
||||
: "{$this->apiUrl}{$uri}";
|
||||
|
||||
$options = [
|
||||
CURLOPT_URL => $endpoint,
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_ENCODING => "",
|
||||
CURLOPT_MAXREDIRS => 10,
|
||||
CURLOPT_TIMEOUT => 30,
|
||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||
CURLOPT_SSL_VERIFYPEER => false,
|
||||
];
|
||||
|
||||
if (count($postData)) {
|
||||
$options[CURLOPT_CUSTOMREQUEST] = "POST";
|
||||
$options[CURLOPT_POSTFIELDS] = http_build_query($postData);
|
||||
$options[CURLOPT_HTTPHEADER] = ["Content-Type: application/x-www-form-urlencoded"];
|
||||
}
|
||||
|
||||
curl_setopt_array($curl, $options);
|
||||
$response = curl_exec($curl);
|
||||
$this->lastError = curl_error($curl);
|
||||
$this->lastStatus = curl_getinfo($curl, CURLINFO_HTTP_CODE);
|
||||
$this->lastResponse = json_decode($response, true);
|
||||
curl_close($curl);
|
||||
|
||||
return $this->lastResponse;
|
||||
}
|
||||
|
||||
public function setKey($key)
|
||||
{
|
||||
$this->key = $key;
|
||||
}
|
||||
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->apiUrl = $url;
|
||||
}
|
||||
|
||||
public function getLastStatus()
|
||||
{
|
||||
return $this->lastStatus;
|
||||
}
|
||||
|
||||
public function getLastResponse()
|
||||
{
|
||||
return $this->lastResponse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class GoGetSSLAuthException extends \Exception
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct('Please authorize first');
|
||||
}
|
||||
}
|
|
@ -1,10 +1,10 @@
|
|||
<?php
|
||||
namespace lib;
|
||||
namespace third;
|
||||
|
||||
/**
|
||||
* mofh-whm-api-client
|
||||
*/
|
||||
class MOFHAPI
|
||||
class MOFHApi
|
||||
{
|
||||
|
||||
public $message = [];
|
|
@ -2,26 +2,29 @@
|
|||
|
||||
function get_ticket_department($key = '')
|
||||
{
|
||||
global $lang;
|
||||
$ticket_types = array(
|
||||
'hosting' => 'Hosting Issue',
|
||||
'ssl' => 'SSL Issue',
|
||||
'domain' => 'Domain Issue',
|
||||
'tech' => 'Technical Issue',
|
||||
'client' => 'Customer Issue',
|
||||
'order' => $lang->I18N('Order Issue'),
|
||||
'hosting' => $lang->I18N('Hosting Issue'),
|
||||
'ssl' => $lang->I18N('SSL Issue'),
|
||||
'domain' => $lang->I18N('Domain Issue'),
|
||||
'tech' => $lang->I18N('Technical Issue'),
|
||||
'client' => $lang->I18N('Customer Issue'),
|
||||
);
|
||||
return isset($ticket_types[$key]) ? $ticket_types[$key] : '';
|
||||
}
|
||||
|
||||
function get_ticket_status_span($status)
|
||||
{
|
||||
global $lang;
|
||||
if ($status == '0') {
|
||||
return '<span class="badge bg-success">Open</span>';
|
||||
return '<span class="label label-primary">' . $lang->I18N('Opened') . '</span>';
|
||||
} elseif ($status == '1') {
|
||||
return '<span class="badge bg-success text-white">Support Reply</span>';
|
||||
return '<span class="label label-success">' . $lang->I18N('Support Reply') . '</span>';
|
||||
} elseif ($status == '2') {
|
||||
return '<span class="badge bg-success">Customer Reply</span>';
|
||||
return '<span class="label label-info">' . $lang->I18N('Customer Reply') . '</span>';
|
||||
} elseif ($status == '3') {
|
||||
return '<span class="badge bg-danger">Closed</span>';
|
||||
return '<span class="label label-default">' . $lang->I18N('Closed') . '</span>';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ $sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_account` (
|
|||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_account_api` (
|
||||
`api_id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`api_type` varchar(30) NOT NULL,
|
||||
`api_key` varchar(30) NOT NULL,
|
||||
`api_key` varchar(20) NOT NULL,
|
||||
`api_username` varchar(256) NOT NULL,
|
||||
`api_password` varchar(256) NOT NULL,
|
||||
`api_cpanel_url` varchar(100) NOT NULL,
|
||||
|
@ -98,7 +98,7 @@ $sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_clients` (
|
|||
PRIMARY KEY (`client_id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4;');
|
||||
|
||||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_domain_extensions` (
|
||||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_account_domaintld` (
|
||||
`extension_id` INT(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`extension_value` VARCHAR(70) NOT NULL,
|
||||
PRIMARY KEY (`extension_id`)
|
||||
|
@ -117,14 +117,29 @@ $sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_smtp` (
|
|||
|
||||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_ssl` (
|
||||
`ssl_id` INT(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`ssl_api_id` INT(11) NOT NULL COMMENT "所属客户ID",
|
||||
`ssl_client_id` INT(11) NOT NULL COMMENT "所属客户ID",
|
||||
`ssl_key` INT(12) NOT NULL,
|
||||
PRIMARY KEY (`ssl_id`)
|
||||
`ssl_third_id` INT(12) NOT NULL COMMENT "第三方标识ID",
|
||||
`ssl_status` VARCHAR(20) DEFAULT NULL COMMENT "状态",
|
||||
`ssl_domain` VARCHAR(255) DEFAULT NULL COMMENT "主域名",
|
||||
`ssl_dcv_method` VARCHAR(20) DEFAULT NULL COMMENT "验证方式",
|
||||
`ssl_admin_email` VARCHAR(255) DEFAULT NULL COMMENT "管理员邮箱",
|
||||
`ssl_begin_date` VARCHAR(30) DEFAULT NULL COMMENT "有效期开始日期",
|
||||
`ssl_end_date` VARCHAR(30) DEFAULT NULL COMMENT "有效期结束日期",
|
||||
`ssl_ca_code` VARCHAR(5000) DEFAULT NULL COMMENT "CA证书",
|
||||
`ssl_crt_code` VARCHAR(5000) DEFAULT NULL COMMENT "证书内容",
|
||||
`ssl_csr_code` VARCHAR(5000) DEFAULT NULL COMMENT "证书请求信息",
|
||||
`ssl_raw` TEXT COMMENT "第三方完整数据",
|
||||
PRIMARY KEY (`ssl_id`),
|
||||
KEY `ssl_api_id` (`ssl_api_id`),
|
||||
KEY `ssl_client_id` (`ssl_client_id`),
|
||||
KEY `ssl_third_id` (`ssl_third_id`),
|
||||
KEY `ssl_status` (`ssl_status`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4;');
|
||||
|
||||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_ssl_api` (
|
||||
`id` INT(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`api_key` VARCHAR(7) NOT NULL,
|
||||
`api_key` VARCHAR(20) NOT NULL,
|
||||
`api_username` VARCHAR(256) NOT NULL,
|
||||
`api_password` VARCHAR(256) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
|
@ -173,11 +188,11 @@ $sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_knowledgebase`
|
|||
PRIMARY KEY (`knowledgebase_id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8mb4;');
|
||||
|
||||
$sql = mysqli_query($connect, "INSERT INTO `uiisc_ssl_api`(`api_key`, `api_username`, `api_password`) VALUES ('FREESSL','example@gmail.com','SSL API Password')");
|
||||
$sql = mysqli_query($connect, "INSERT INTO `uiisc_ssl_api`(`api_key`, `api_username`, `api_password`) VALUES ('GOGETSSL','example@gmail.com','SSL API Password')");
|
||||
|
||||
$sql = mysqli_query($connect, "INSERT INTO `uiisc_builder_api`(`builder_id`, `builder_username`, `builder_password`) VALUES ('SITEPRO','apikey0','API Password')");
|
||||
|
||||
$sql = mysqli_query($connect, "INSERT INTO `uiisc_domain_extensions`(`extension_value`) VALUES ('.example.com')");
|
||||
$sql = mysqli_query($connect, "INSERT INTO `uiisc_account_domaintld`(`extension_value`) VALUES ('.example.com')");
|
||||
|
||||
$sql = mysqli_query($connect, 'CREATE TABLE IF NOT EXISTS `uiisc_news`(
|
||||
`news_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
|
|
|
@ -16,8 +16,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
|
||||
<link rel="icon" href="../assets/image/favicon.ico">
|
||||
<title><?php echo $PageInfo['title']; ?> - UIISC Installation</title>
|
||||
<link href="../assets/css/halfmoon.min.css" rel="stylesheet" />
|
||||
<link href="../assets/css/all.min.css" rel="stylesheet" />
|
||||
<link href="../assets/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link href="../assets/css/style.css" rel="stylesheet" />
|
||||
<link href="../assets/css/login.css" rel="stylesheet" />
|
||||
</head>
|
||||
|
|
|
@ -22,7 +22,7 @@ $status_types = array(
|
|||
|
||||
$page_title = $page_title . ' - ' . $lang->I18N('News List');
|
||||
|
||||
require ROOT . '/public/views/common/header.php';
|
||||
require ROOT . '/public/views/common/navbar.php';
|
||||
require ROOT . '/public/views/header.php';
|
||||
require ROOT . '/public/views/navbar.php';
|
||||
require ROOT . '/public/views/news/list.php';
|
||||
require ROOT . '/public/views/common/footer.php';
|
||||
require ROOT . '/public/views/footer.php';
|
||||
|
|
|
@ -22,7 +22,7 @@ if ($id > 0) {
|
|||
|
||||
$page_title = $page_title . ' - ' . $lang->I18N('News Details');
|
||||
|
||||
require ROOT . '/public/views/common/header.php';
|
||||
require ROOT . '/public/views/common/navbar.php';
|
||||
require ROOT . '/public/views/header.php';
|
||||
require ROOT . '/public/views/navbar.php';
|
||||
require ROOT . '/public/views/news/view.php';
|
||||
require ROOT . '/public/views/common/footer.php';
|
||||
require ROOT . '/public/views/footer.php';
|
||||
|
|
Loading…
Reference in a new issue