diff --git a/src/admin/controllers/hosting-provider/add.php b/src/admin/controllers/hosting-provider/add.php index 2c74b84..3cdfa0d 100755 --- a/src/admin/controllers/hosting-provider/add.php +++ b/src/admin/controllers/hosting-provider/add.php @@ -5,67 +5,67 @@ if (isset($_POST['submit'])) { if (!post('api_type')) { setMessage('need field: api_type', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_key')) { setMessage('need field: api_key', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_username')) { setMessage('need field: api_username', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_password')) { setMessage('need field: api_password', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_server_domain')) { setMessage('need field: api_server_domain', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_cpanel_url')) { setMessage('need field: api_cpanel_url', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_server_ip')) { setMessage('need field: api_server_ip', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_server_ftp_domain')) { setMessage('need field: api_server_ftp_domain', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_server_sql_domain')) { setMessage('need field: api_server_sql_domain', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_ns_1')) { setMessage('need field: api_ns_1', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_ns_2')) { setMessage('need field: api_ns_2', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_package')) { setMessage('need field: api_package', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_callback_token')) { setMessage('need field: api_callback_token', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } @@ -93,5 +93,5 @@ if (isset($_POST['submit'])) { setMessage("Something went's wrong !", 'danger'); } - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } diff --git a/src/admin/controllers/hosting-provider/edit.php b/src/admin/controllers/hosting-provider/edit.php index d7e80c2..0ac9000 100755 --- a/src/admin/controllers/hosting-provider/edit.php +++ b/src/admin/controllers/hosting-provider/edit.php @@ -5,72 +5,72 @@ if (isset($_POST['submit'])) { $api_id = post('api_id'); if (!$api_id) { setMessage('need field: api_id', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } if (!post('api_type')) { setMessage('need field: api_type', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_key')) { setMessage('need field: api_key', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_username')) { setMessage('need field: api_username', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_password')) { setMessage('need field: api_password', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_server_domain')) { setMessage('need field: api_server_domain', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_cpanel_url')) { setMessage('need field: api_cpanel_url', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_server_ip')) { setMessage('need field: api_server_ip', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_server_ftp_domain')) { setMessage('need field: api_server_ftp_domain', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_server_sql_domain')) { setMessage('need field: api_server_sql_domain', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_ns_1')) { setMessage('need field: api_ns_1', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_ns_2')) { setMessage('need field: api_ns_2', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_package')) { setMessage('need field: api_package', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } if (!post('api_callback_token')) { setMessage('need field: api_callback_token', 'danger'); - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } $data = array( @@ -97,7 +97,7 @@ if (isset($_POST['submit'])) { setMessage("Something went's wrong !", 'danger'); } - redirect('admin/hosting', '', ['action' => 'edit', 'id' => $api_id]); + redirect('admin/hosting-provider', '', ['action' => 'edit', 'id' => $api_id]); } else { if (!defined('IN_CRONLITE')) { exit('Access Denied'); @@ -107,6 +107,6 @@ if (isset($_POST['submit'])) { $data = $DB->find('account_api', '*', array('api_id' => $id), null, 1); } else { setMessage('need field: id', 'danger'); - redirect('admin/hosting'); + redirect('admin/hosting-provider'); } } diff --git a/src/admin/controllers/ssl/details.php b/src/admin/controllers/ssl/details.php new file mode 100755 index 0000000..c150c8f --- /dev/null +++ b/src/admin/controllers/ssl/details.php @@ -0,0 +1,22 @@ +find('ssl', '*', array('ssl_id' => $ssl_id), null, 1); +if (!$SSLInfo) { + redirect('ssl'); +} + +if ($SSLInfo['ssl_status'] == 'processing') { + $Status = 'Processing'; +} elseif ($SSLInfo['ssl_status'] == 'active') { + $Status = 'Active'; +} elseif ($SSLInfo['ssl_status'] == 'incomplete') { + $Status = 'Incomplete'; +} elseif ($SSLInfo['ssl_status'] == 'cancelled') { + $Status = 'Cancelled'; +} elseif ($SSLInfo['ssl_status'] == 'expired') { + $Status = 'Expired'; +} else { + $Status = ''; +} diff --git a/src/admin/settings.php b/src/admin/settings.php index 09444b4..2430f63 100755 --- a/src/admin/settings.php +++ b/src/admin/settings.php @@ -17,6 +17,6 @@ require __DIR__ . '/controllers/' . $section . '/' . $action . '.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/footer.php'; diff --git a/src/admin/ssl.php b/src/admin/ssl.php index af4d706..1d4a9ca 100755 --- a/src/admin/ssl.php +++ b/src/admin/ssl.php @@ -8,6 +8,8 @@ if (!in_array($action, array('list', 'add', 'edit', 'details'))) { $action = 'list'; } +$PageInfo['title'] = 'SSL ' . $lang->I18N($action); + require __DIR__ . '/controllers/ssl/' . $action . '.php'; require __DIR__ . '/views/header.php'; require __DIR__ . '/views/navbar.php'; diff --git a/src/admin/views/accounts/details.php b/src/admin/views/accounts/details.php index c28a77f..44deb32 100755 --- a/src/admin/views/accounts/details.php +++ b/src/admin/views/accounts/details.php @@ -2,7 +2,7 @@