This commit is contained in:
Jackson Dou 2023-07-28 17:02:19 +08:00
parent 45c38c6da9
commit f2b685d9b1
5 changed files with 7 additions and 7 deletions

View file

@ -48,4 +48,4 @@ if (count($DomainList) > 0) {
$sql = "INSERT INTO `pre_account_domain` (domain_name,domain_account_id) VALUES " . implode(',', $DomainList); $sql = "INSERT INTO `pre_account_domain` (domain_name,domain_account_id) VALUES " . implode(',', $DomainList);
$result = $DB->query($sql); $result = $DB->query($sql);
} }
redirect('admin/accounts', '', array('action' => 'view', 'account_id' => $account_id)); redirect('admin/accounts', '', array('action' => 'details', 'account_id' => $account_id));

View file

@ -9,10 +9,10 @@ $api_key = get('api_key');
if ($api_id > 0) { if ($api_id > 0) {
$data = $DB->find('account_api', '*', array('api_id' => $api_id), null, 1); $data = $DB->find('account_api', '*', array('api_id' => $api_id), null, 1);
$api_callback_url = "{$site_url}/callback/{$data['api_key']}/{$data['api_callback_token']}"; $api_callback_url = "{$site_url}/callback/{$data['api_type']}/{$data['api_key']}/{$data['api_callback_token']}";
} else if (!empty($api_key)) { } else if (!empty($api_key)) {
$data = $DB->find('account_api', '*', array('api_key' => $api_key), null, 1); $data = $DB->find('account_api', '*', array('api_key' => $api_key), null, 1);
$api_callback_url = "{$site_url}/callback/{$data['api_key']}/{$data['api_callback_token']}"; $api_callback_url = "{$site_url}/callback/{$data['api_type']}/{$data['api_key']}/{$data['api_callback_token']}";
} else { } else {
$data = null; $data = null;
} }

View file

@ -21,5 +21,5 @@
</div> </div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
// document.getElementById('account_ogin').submit(); // SUBMIT FORM document.getElementById('account_ogin').submit(); // SUBMIT FORM
</script> </script>

View file

@ -18,7 +18,7 @@ if (!defined('IN_CRONLITE')) {
</div> </div>
<span class="panel-title"><?php echo $PageInfo['title']; ?></span> <span class="panel-title"><?php echo $PageInfo['title']; ?></span>
</div> </div>
<form action="controllers/hosting/add.php" method="post"> <form action="controllers/hosting-provider/add.php" method="post">
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
@ -104,7 +104,7 @@ if (!defined('IN_CRONLITE')) {
<div class="col-md-12"> <div class="col-md-12">
<div class="mb-10 px-10"> <div class="mb-10 px-10">
<label class="form-label">API Callback URL</label> <label class="form-label">API Callback URL</label>
<input type="text" class="form-control" value="<?php echo $site_url ?>/callback/[Hosting Key]/[API Callback Token]" readonly> <input type="text" class="form-control" value="<?php echo $site_url ?>/callback/[Provider Type][Hosting Key]/[API Callback Token]" readonly>
</div> </div>
</div> </div>
</div> </div>

View file

@ -25,7 +25,7 @@ if (!defined('IN_CRONLITE')) {
</div> </div>
<span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span> <span class="panel-title"><?php echo $PageInfo['title']; ?> ID: <?php echo $data['api_id']; ?></span>
</div> </div>
<form action="controllers/hosting/edit.php" method="post"> <form action="controllers/hosting-provider/edit.php" method="post">
<input type="hidden" name="api_id" value="<?php echo $data['api_id']; ?>" style="display:none;"> <input type="hidden" name="api_id" value="<?php echo $data['api_id']; ?>" style="display:none;">
<div class="panel-body"> <div class="panel-body">
<div class="row"> <div class="row">