update:
1. 新增黑色主题和模式的自动和手动切换 2. SSL管理支持多个
This commit is contained in:
parent
d186d8dc6e
commit
a269eb6cf5
48 changed files with 443 additions and 117 deletions
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
22
src/admin/controllers/ssl/details.php
Executable file
22
src/admin/controllers/ssl/details.php
Executable file
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
$ssl_id = get('id');
|
||||
|
||||
$SSLInfo = $DB->find('ssl', '*', array('ssl_id' => $ssl_id), null, 1);
|
||||
if (!$SSLInfo) {
|
||||
redirect('ssl');
|
||||
}
|
||||
|
||||
if ($SSLInfo['ssl_status'] == 'processing') {
|
||||
$Status = '<span class="badge bg-primary">Processing</span>';
|
||||
} elseif ($SSLInfo['ssl_status'] == 'active') {
|
||||
$Status = '<span class="badge bg-success">Active</span>';
|
||||
} elseif ($SSLInfo['ssl_status'] == 'incomplete') {
|
||||
$Status = '<span class="badge bg-danger">Incomplete</span>';
|
||||
} elseif ($SSLInfo['ssl_status'] == 'cancelled') {
|
||||
$Status = '<span class="badge bg-">Cancelled</span>';
|
||||
} elseif ($SSLInfo['ssl_status'] == 'expired') {
|
||||
$Status = '<span class="badge bg-danger">Expired</span>';
|
||||
} else {
|
||||
$Status = '';
|
||||
}
|
|
@ -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';
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="accounts.php"><?php echo $lang->I18N('Account List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Account Details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="accounts.php"><?php echo $lang->I18N('Account List'); ?></a></li>
|
||||
<li><a href="accounts.php?action=details&account_id=<?php echo $account_id; ?>"><?php echo $lang->I18N('Account Details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Account Settings'); ?></li>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Hosting Accounts'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="clients.php"><?php echo $lang->I18N('Client List'); ?></a></li>
|
||||
<li><a href="<?php echo setURL('admin/clients', '', array('action' => 'details', 'id' => $ClientInfo['client_id'])); ?>"><?php echo $lang->I18N('details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Clients List'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
<li>
|
||||
<span class="co">© 2013-<?php echo date("Y"); ?> <a href="<?php echo $site_url; ?>" target="_blank"><?php echo $SiteConfig['site_brand']; ?></a> </span>
|
||||
<span class="co"> Powered by <a href="https://crogram.org" target="_blank">Crogram</a> </span>
|
||||
<span class="co"> Partnered with <a href="https://ifastnet.com/" name="jump-ifastnet" target="_blank">iFastNet</a> </span>
|
||||
<span>time: <?php echo get_execution_time();?>s</span>
|
||||
<span class="co hidden-xs"> Partnered with <a href="https://ifastnet.com/" name="jump-ifastnet" target="_blank">iFastNet</a> </span>
|
||||
<span class="hidden-xs">time: <?php echo get_execution_time();?>s</span>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="legal navbar-right list-inline text-center">
|
||||
|
@ -18,9 +18,9 @@
|
|||
</div>
|
||||
<ul class="dropdown-menu language-change"><?php echo $lang->get_languages_tags(); ?></ul>
|
||||
</li>
|
||||
<li><a href="<?php echo $site_url; ?>/about.php" target="_blank"><?php echo $lang->I18N('about'); ?></a></li>
|
||||
<li><a href="<?php echo $site_url; ?>/contact.php" target="_blank"><?php echo $lang->I18N('contact'); ?></a></li>
|
||||
<li><a href="<?php echo $site_url; ?>/news.php" target="_blank"><?php echo $lang->I18N('News'); ?></a></li>
|
||||
<li><a href="<?php echo $site_url; ?>" target="_blank"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li class="hidden-xs"><a href="<?php echo $site_url; ?>/contact.php" target="_blank"><?php echo $lang->I18N('contact'); ?></a></li>
|
||||
<li class="hidden-xs"><a href="<?php echo $site_url; ?>/news.php" target="_blank"><?php echo $lang->I18N('News'); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
<link href="<?php echo $site_url; ?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/theme.switcher/css/auto.css" id="theme" type="text/css" rel="stylesheet" media="screen,projection" />
|
||||
<link href="<?php echo $site_url; ?>/assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/css/admin.css" rel="stylesheet" />
|
||||
<script type="text/javascript">
|
||||
|
@ -28,6 +29,8 @@
|
|||
var ifastnet_aff = "<?php echo $ifastnet_aff; ?>";
|
||||
</script>
|
||||
<?php echo $PageInfo['rel']; ?>
|
||||
|
||||
<script src="<?php echo $site_url; ?>/assets/theme.switcher/theme.switcher.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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>
|
||||
|
|
|
@ -6,14 +6,14 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'edit', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
|
||||
<a href="<?php echo setURL('admin/hosting-provider', '', 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-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
|
@ -117,7 +117,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="mb-20 px-10">
|
||||
<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="<?php echo setURL('admin/hosting-provider', '', 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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -6,15 +6,15 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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><a href="<?php echo setURL('admin/hosting-provider', '', array('action' => 'details', 'id' => $data['api_id'])); ?>"><?php echo $lang->I18N('details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="<?php echo setURL('admin/hosting', '', array('action' => 'details', 'id' => $data['api_id'])); ?>" class="btn btn-success btn-xs">
|
||||
<a href="<?php echo setURL('admin/hosting-provider', '', 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-provider.php?action=add" class="btn btn-primary btn-xs">
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Hosting Provider'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('add'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="knowledgebase.php"><?php echo $lang->I18N('Knowledgebase'); ?></a></li>
|
||||
<li><a href="knowledgebase.php?action=details&id=<?php echo $id; ?>"><?php echo $lang->I18N('details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Knowledgebase'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
|
@ -11,6 +11,14 @@
|
|||
<ul class="legal navbar-right list-inline text-center">
|
||||
<li><a href="<?php echo $site_url; ?>" target="_blank"><?php echo $lang->I18N('home'); ?></a></li>
|
||||
<li><a href="<?php echo $site_url; ?>/about.php" target="_blank"><?php echo $lang->I18N('about'); ?></a></li>
|
||||
<li>
|
||||
<a href="#" aria-hidden="true"><i id="theme-selector"></i></a>
|
||||
<script type="text/javascript">
|
||||
var sel = document.getElementById('theme-selector');
|
||||
sel.className = getThemeClasses(getTheme());
|
||||
sel.onclick = themeSelectorClicked;
|
||||
</script>
|
||||
</li>
|
||||
<li class="dropup">
|
||||
<div class="dropdown-toggle" id="changelanguage" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="fa fa-language"></span>
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
<link href="<?php echo $site_url; ?>/assets/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/theme.switcher/css/auto.css" id="theme" type="text/css" rel="stylesheet" media="screen,projection" />
|
||||
<link href="<?php echo $site_url; ?>/assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
|
||||
<!-- <link href="<?php echo $site_url; ?>/assets/css/admin.css" rel="stylesheet" /> -->
|
||||
<script type="text/javascript">
|
||||
|
@ -28,6 +29,8 @@
|
|||
var ifastnet_aff = "<?php echo $ifastnet_aff; ?>";
|
||||
</script>
|
||||
<?php echo $PageInfo['rel']; ?>
|
||||
|
||||
<script src="<?php echo $site_url; ?>/assets/theme.switcher/theme.switcher.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<div id="navbar" class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<li class="<?php echo checkIfActive('index,') ?>">
|
||||
<a href="./"><i class="fa fa-home" aria-hidden="true"></i> <?php echo $lang->I18N('home'); ?></a>
|
||||
<a href="./"><i class="fa fa-tachometer-alt" aria-hidden="true"></i> <?php echo $lang->I18N('Dashboard'); ?></a>
|
||||
</li>
|
||||
<li class="<?php echo checkIfActive('clients') ?>">
|
||||
<a href="clients.php"><i class="fa fa-users fa-fw"></i> <?php echo $lang->I18N('Clients List'); ?></a>
|
||||
|
@ -61,6 +61,14 @@
|
|||
<li><a href="#" onclick="return logout();"><i class="fa fa-sign-out-alt fa-fw" aria-hidden="true"></i> <?php echo $lang->I18N('logout'); ?></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" aria-hidden="true"><i id="theme-selector"></i></a>
|
||||
<script type="text/javascript">
|
||||
var sel = document.getElementById('theme-selector');
|
||||
sel.className = getThemeClasses(getTheme());
|
||||
sel.onclick = themeSelectorClicked;
|
||||
</script>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('add'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -7,7 +7,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
|
||||
<li><a href="<?php echo setURL('admin/news', '', array('action' => 'view', 'id' => $id)); ?>"><?php echo $lang->I18N('details'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('edit'); ?></li>
|
||||
|
|
|
@ -7,7 +7,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('News List'); ?></li>
|
||||
</ol>
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="news.php"><?php echo $lang->I18N('News List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -1,21 +1,11 @@
|
|||
|
||||
<div class="content-wrapper">
|
||||
<div class="container-fluid">
|
||||
<div class="px-10 m-20">
|
||||
<a href="<?php echo setRouter('settings');?>" class="btn<?php if ($section == 'settings') echo ' btn-primary'; ?>">
|
||||
<a href="<?php echo setRouter('settings'); ?>" class="btn<?php if ($section == 'settings') echo ' btn-primary'; ?>">
|
||||
<i class="fa fa-cog"></i> <?php echo $lang->I18N('System Settings'); ?>
|
||||
</a>
|
||||
<a href="<?php echo setRouter('settings', 'smtp');?>" class="btn<?php if ($section == 'smtp') echo ' btn-primary'; ?>">
|
||||
</a>
|
||||
<a href="<?php echo setRouter('settings', 'smtp'); ?>" class="btn<?php if ($section == 'smtp') echo ' btn-primary'; ?>">
|
||||
<i class="fa fa-inbox"></i></span>
|
||||
<?php echo $lang->I18N('SMTP Settings'); ?>
|
||||
</a>
|
||||
<a href="<?php echo setRouter('settings', 'sslapi');?>" class="btn<?php if ($section == 'sslapi') echo ' btn-primary'; ?>">
|
||||
<i class="fa fa-lock"></i></span>
|
||||
<?php echo $lang->I18N('SSL API Settings'); ?>
|
||||
</a>
|
||||
<a href="<?php echo setRouter('settings', 'sitepro');?>" class="btn<?php if ($section == 'sitepro') echo ' btn-primary'; ?>">
|
||||
</a>
|
||||
<a href="<?php echo setRouter('settings', 'sitepro'); ?>" class="btn<?php if ($section == 'sitepro') echo ' btn-primary'; ?>">
|
||||
<i class="fa fa-tools"></i></span>
|
||||
<?php echo $lang->I18N('SitePro Settings'); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
|
|
@ -19,7 +19,7 @@ $avatar_path = $AdminInfo['admin_email'] ? md5($AdminInfo['admin_email']) : 'def
|
|||
<div class="sidebar-divider"></div>
|
||||
<a href="./" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-home" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('home'); ?>
|
||||
<?php echo $lang->I18N('Dashboard'); ?>
|
||||
</a>
|
||||
<a href="clients.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-users" aria-hidden="true"></i></span>
|
||||
|
|
|
@ -1,14 +1,31 @@
|
|||
|
||||
<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'); ?>
|
||||
<?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('Dashboard'); ?></a></li>
|
||||
<li><a href="settings.php"><?php echo $lang->I18N('System Settings'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('SitePro'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<?php require __DIR__ . '/menu.php'; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<div class="pull-right">
|
||||
<a href="settings.php" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-list"></i> <?php echo $lang->I18N('Return'); ?>
|
||||
</a>
|
||||
</div>
|
||||
<hr />
|
||||
<span class="panel-title"><?php echo $PageInfo['title']; ?></span>
|
||||
</div>
|
||||
<form class="card-body" action="controllers/sitepro/edit.php" method="post">
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="mb-10 px-10">
|
||||
|
@ -22,11 +39,12 @@
|
|||
<input type="text" name="password" value="<?php echo $SitePro['builder_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>
|
||||
<div class="panel-footer">
|
||||
<button name="submit" class="btn btn-primary"><?php echo $lang->I18N('Save'); ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></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>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('SSL Provider'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
98
src/admin/views/ssl/details.php
Executable file
98
src/admin/views/ssl/details.php
Executable file
|
@ -0,0 +1,98 @@
|
|||
<?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('Dashboard'); ?></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.php?action=add" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-plus"></i> <?php echo $lang->I18N('add'); ?>
|
||||
</a>
|
||||
<a href="ssl.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 $SSLInfo['ssl_id']; ?></span>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<div class="row mb-10">
|
||||
<div class="col-md-6"><b><?php echo $lang->I18N('Status'); ?> : </b><?php echo $Status;?></div>
|
||||
<div class="col-md-6"><b><?php echo $lang->I18N('Domain Name'); ?> : </b><?php echo $SSLInfo['ssl_domain'];?></div>
|
||||
</div>
|
||||
<div class="row mb-10">
|
||||
<div class="col-md-6"><b><?php echo $lang->I18N('Start Date'); ?></b> : <?php echo $SSLInfo['ssl_begin_date'];?></span></div>
|
||||
<div class="col-md-6"><b><?php echo $lang->I18N('End Date'); ?></b> : <span><?php echo $SSLInfo['ssl_end_date'];?></span></div>
|
||||
</div>
|
||||
<div class="row mb-10">
|
||||
<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>
|
||||
</div>
|
||||
<div class="row mb-10">
|
||||
<?php if($SSLInfo['ssl_status']=='processing') {
|
||||
// 处理中
|
||||
$Record = explode(' ',$SSLInfo['approver_method']['dns']['record']);
|
||||
?>
|
||||
<div class="col-md-12 mb-10">
|
||||
<div class="my-5 mx-10">
|
||||
<b>CSR Code:</b>
|
||||
<pre class="my-0"><?php echo htmlspecialchars_decode($SSLInfo['ssl_csr_code']); ?></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"><?php echo $Record['2'];?></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif($SSLInfo['ssl_status']=='active') { ?>
|
||||
<div class="col-lg-12 mb-10">
|
||||
<div class="my-5 mx-10">
|
||||
<p><b>Certificate Code:</b></p>
|
||||
<pre class="my-0"><textarea class="form-control" style="height: 250px" readonly><?php echo $SSLInfo['ssl_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['ssl_ca_code'];?></textarea></pre>
|
||||
</div>
|
||||
</div>
|
||||
<?php } elseif($SSLInfo['ssl_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['ssl_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>
|
||||
</div>
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('SSL Certificates'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
@ -52,7 +52,7 @@ if ($row['ssl_status'] == 'processing') {
|
|||
}
|
||||
?></td>
|
||||
<td>
|
||||
<a href="<?php echo setRouter('ssl', '', array('action' => 'details', 'ssl_id' => $row['ssl_id'])); ?>" class="btn btn-primary btn-xs">
|
||||
<a href="<?php echo setRouter('ssl', '', array('action' => 'details', 'id' => $row['ssl_id'])); ?>" class="btn btn-primary btn-xs">
|
||||
<i class="fa fa-info-circle"></i> <?php echo $lang->I18N('details'); ?>
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
@ -6,7 +6,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li><a href="tickets.php"><?php echo $lang->I18N('Tickets List'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Ticket Details'); ?></li>
|
||||
</ol>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<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="index.php"><?php echo $lang->I18N('Dashboard'); ?></a></li>
|
||||
<li class="active"><?php echo $lang->I18N('Tickets List'); ?></li>
|
||||
</ol>
|
||||
<div class="panel panel-default">
|
||||
|
|
1
src/assets/theme.switcher/css/auto.css
Normal file
1
src/assets/theme.switcher/css/auto.css
Normal file
|
@ -0,0 +1 @@
|
|||
@import url("./dark.css") (prefers-color-scheme: dark);
|
100
src/assets/theme.switcher/css/dark.css
Normal file
100
src/assets/theme.switcher/css/dark.css
Normal file
|
@ -0,0 +1,100 @@
|
|||
html,
|
||||
body,
|
||||
.form-control,
|
||||
.dropdown-menu {
|
||||
background-color: #1a1a1a !important;
|
||||
color: #e6e6e6;
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
border-color: #ccc;
|
||||
}
|
||||
|
||||
.form-control[disabled],
|
||||
.form-control[readonly],
|
||||
fieldset[disabled] .form-control {
|
||||
background-color: #2b2b2b !important;
|
||||
}
|
||||
|
||||
.navbar,
|
||||
.breadcrumb,
|
||||
.panel-default,
|
||||
.panel-default > .panel-heading,
|
||||
.panel-footer,
|
||||
.table,
|
||||
.list-group-item {
|
||||
background-color: #2b2b2b !important;
|
||||
}
|
||||
|
||||
.table-hover > tbody > tr:hover {
|
||||
background-color: #585858 !important;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav > .active > a,
|
||||
.navbar-default .navbar-nav > .active > a:hover,
|
||||
.navbar-default .navbar-nav > .active > a:focus,
|
||||
.navbar-default .navbar-nav > .open > a,
|
||||
.navbar-default .navbar-nav > .open > a:focus,
|
||||
.navbar-default .navbar-nav > .open > a:hover {
|
||||
color: #ffffff;
|
||||
background-color: #585858;
|
||||
}
|
||||
|
||||
.navbar-default .navbar-nav > li > a:focus,
|
||||
.navbar-default .navbar-nav > li > a:hover {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.form-control:focus {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
span,
|
||||
.breadcrumb > .active,
|
||||
.dropdown-menu > li > a,
|
||||
.panel-title,
|
||||
.navbar-default .navbar-nav>li>a,
|
||||
.panel-footer {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
hr {
|
||||
border-color: #808080;
|
||||
}
|
||||
|
||||
/* nav .navbar-brand #logo-img {
|
||||
background-image: url(../img/logo-light.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-size: contain;
|
||||
} */
|
||||
|
||||
nav .nav-item {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
.nav-navbar .nav-item.nav-link.active {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.navbar-toggler {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
a {
|
||||
color: rgb(0, 183, 255);
|
||||
}
|
||||
|
||||
.jumbotron {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
.jumbotron h1 {
|
||||
text-shadow: #000 0px 0px 10px;
|
||||
}
|
||||
|
||||
.border {
|
||||
border: 1px solid #404040 !important;
|
||||
}
|
62
src/assets/theme.switcher/theme.switcher.js
Normal file
62
src/assets/theme.switcher/theme.switcher.js
Normal file
|
@ -0,0 +1,62 @@
|
|||
// theme Selector Switcher
|
||||
linkLoader(getTheme());
|
||||
|
||||
function themeSelectorClicked() {
|
||||
var next = nextTheme(getTheme());
|
||||
linkLoader(next);
|
||||
saveTheme(next);
|
||||
this.className = getThemeClasses(next);
|
||||
}
|
||||
|
||||
// This function loads a css file according to the value of its parameter
|
||||
function linkLoader(param) {
|
||||
var link = document.getElementById('theme');
|
||||
if (param == 'light') {
|
||||
link.removeAttribute('href');
|
||||
} else if (param == 'dark') {
|
||||
link.setAttribute('href', location.origin + '/assets/theme.switcher/css/dark.css');
|
||||
} else {
|
||||
link.setAttribute('href', location.origin + '/assets/theme.switcher/css/auto.css');
|
||||
}
|
||||
document.getElementsByTagName("head")[0].appendChild(link);
|
||||
}
|
||||
|
||||
function getTheme() {
|
||||
try {
|
||||
var theme = localStorage.getItem('theme');
|
||||
if (!theme) {
|
||||
return 'auto';
|
||||
}
|
||||
return theme;
|
||||
} catch {
|
||||
return 'auto';
|
||||
}
|
||||
}
|
||||
|
||||
function getThemeClasses(theme) {
|
||||
if (theme == 'light') {
|
||||
return 'fa fa-sun fa-fw"';
|
||||
} else if (theme == 'dark') {
|
||||
return 'fa fa-moon fa-fw';
|
||||
} else {
|
||||
return 'fa fa-adjust fa-fw';
|
||||
}
|
||||
}
|
||||
|
||||
function nextTheme(current) {
|
||||
if (current == 'light') {
|
||||
return 'dark';
|
||||
} else if (current == 'dark') {
|
||||
return 'auto';
|
||||
} else {
|
||||
return 'light';
|
||||
}
|
||||
}
|
||||
|
||||
function saveTheme(theme) {
|
||||
try {
|
||||
localStorage.setItem('theme', theme);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
|
@ -100,7 +100,7 @@ if (count($result) > 4) {
|
|||
'message' => email_build_body('New SSL',
|
||||
'Administrator',
|
||||
'<p>You have successfully created a new ssl and you need to verify your domain using dns record in order to issue an ssl certificate.</p>',
|
||||
'<a href="' . setURL('admin/sslcert', '', array('action' => 'view', 'ssl_id' => $result['order_id'])) . '" target="_blank">View SSL</a>'
|
||||
'<a href="' . setURL('admin/ssl', '', array('action' => 'view', 'ssl_id' => $result['order_id'])) . '" target="_blank">View SSL</a>'
|
||||
),
|
||||
'subject' => 'New SSL #' . $FormData['order_id'],
|
||||
));
|
||||
|
|
|
@ -21,7 +21,7 @@ $avatar_path = $ClientInfo['client_email'] ? md5($ClientInfo['client_email']) :
|
|||
<div class="sidebar-divider"></div>
|
||||
<a href="index.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-home" aria-hidden="true"></i></span>
|
||||
<?php echo $lang->I18N('home'); ?>
|
||||
<?php echo $lang->I18N('Dashboard'); ?>
|
||||
</a>
|
||||
<a href="accounts.php" class="sidebar-link sidebar-link-with-icon">
|
||||
<span class="sidebar-icon bg-transparent"><i class="fa fa-server" aria-hidden="true"></i></span>
|
||||
|
|
|
@ -83,6 +83,7 @@ return array(
|
|||
'list' => '列表',
|
||||
'close' => '关闭',
|
||||
'open' => '打开',
|
||||
'Dashboard' => '仪表盘',
|
||||
'managearea' => '管理中心',
|
||||
'delete' => '删除',
|
||||
'Deleted' => '已删除',
|
||||
|
|
|
@ -26,6 +26,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
<link href="assets/image/favicon.ico?_=<?php echo $static_release; ?>" rel="icon" />
|
||||
<link href="assets/bootstrap/css/bootstrap.min.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
|
||||
<link href="assets/css/font-awesome.min.css" rel="stylesheet" />
|
||||
<link href="<?php echo $site_url; ?>/assets/theme.switcher/css/auto.css" id="theme" type="text/css" rel="stylesheet" media="screen,projection" />
|
||||
<link href="assets/css/common.css?_=<?php echo $static_release; ?>" rel="stylesheet" />
|
||||
<!--[if lt IE 9]>
|
||||
<script src="assets/html5shiv/html5shiv.min.js?_=<?php echo $static_release; ?>"></script>
|
||||
|
@ -36,6 +37,7 @@ if (!defined('IN_CRONLITE')) {
|
|||
var cur_lang = "<?php echo $lang->language_current; ?>";
|
||||
var ifastnet_aff = <?php echo $ifastnet_aff; ?>;
|
||||
</script>
|
||||
<script src="<?php echo $site_url; ?>/assets/theme.switcher/theme.switcher.js" type="text/javascript"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
|
@ -43,6 +43,14 @@ if (!defined('IN_CRONLITE')) {
|
|||
<li><a href="<?php echo setRouter('login');?>"><?php echo $lang->I18N('login'); ?></a></li>
|
||||
<li><a href="<?php echo setRouter('register');?>"><?php echo $lang->I18N('register'); ?></a></li>
|
||||
<li><a href="clientarea/index.php"><?php echo $lang->I18N('clientarea'); ?></a></li>
|
||||
<li>
|
||||
<a href="#" aria-hidden="true"><i id="theme-selector"></i></a>
|
||||
<script type="text/javascript">
|
||||
var sel = document.getElementById('theme-selector');
|
||||
sel.className = getThemeClasses(getTheme());
|
||||
sel.onclick = themeSelectorClicked;
|
||||
</script>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue