removed hostname wildcard #116

This commit is contained in:
Rodolfo Berrios 2021-10-19 11:07:12 -03:00
parent d50b942f58
commit f6a1e69f72
No known key found for this signature in database
GPG key ID: D3AAC2481DBDD9FE
2 changed files with 0 additions and 13 deletions

View file

@ -110,10 +110,6 @@ define('CHV_PATH_CONTENT_IMAGES_SYSTEM', CHV_PATH_CONTENT . 'images/system/');
define('CHV_PATH_CONTENT_IMAGES_USERS', CHV_PATH_CONTENT . 'images/users/');
define('CHV_PATH_CONTENT_PAGES', CHV_PATH_CONTENT . 'pages/');
define('CHV_PATH_PEAFOWL', G_ROOT_LIB_PATH . 'Peafowl/');
// subdomain wildcards here
$hostnameSetting = G\get_app_setting('hostname') ?: Settings::get('hostname') ?: G\get_domain(G_HTTP_HOST);
define('CHV_ROOT_URL', G_ROOT_URL);
define('CHV_HTTP_HOST', G_HTTP_HOST);
define('CHV_ROOT_URL_STATIC', defined('CHV_ROOT_CDN_URL') ? CHV_ROOT_CDN_URL : G_ROOT_URL);

View file

@ -2382,15 +2382,6 @@ function free_version_warning($wrap=true)
<div class="input-below input-warning red-warning"><?php echo get_input_errors()['route_album']; ?></div>
<div class="input-below"><?php _se('Routing for %s', G\get_base_url('album/&lt;id&gt;')); ?></div>
</div>
<hr class="line-separator">
<div class="input-label">
<label for="hostname"><?php _se('Hostname'); ?></label>
<div class="c9 phablet-c1">
<input type="text" name="hostname" id="hostname" class="text-input" value="<?php echo CHV\Settings::get('hostname', true); ?>" pattern="^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$" placeholder="<?php echo G\get_domain(G_HTTP_HOST); ?>">
</div>
<div class="input-below input-warning red-warning"><?php echo get_input_errors()['hostname']; ?></div>
<div class="input-below"><?php _se('Hostname on which sub-domain wildcards will be added.'); ?> <?php _se('This setting may be overridden by %s.', '<code>app/settings.php</code>'); ?></div>
</div>
<?php
} ?>