Ticket #2091: use_prefix.patch
| File use_prefix.patch, 2.1 KB (added by aseques, 2 years ago) |
|---|
-
gui/domain_default_page/index.html
98 98 <div id="center"> 99 99 <div id="content"> 100 100 <p>This is the default page for <b>{DOMAIN_NAME}</b>. This page was generated automatically via ispCP Omega. Please upload your own index.html file.</p> 101 <p>If you are the Administrator of this domain, please login <a href=" http://{BASE_SERVER_VHOST}" class="link">here</a>.</p>101 <p>If you are the Administrator of this domain, please login <a href="{BASE_SERVER_VHOST_PREFIX}{BASE_SERVER_VHOST}" class="link">here</a>.</p> 102 102 <p class="login">Powered by <a class="link" href="http://www.isp-control.net" title="ispCP Omega Homepage">ispCP Omega</a></p> 103 103 </div> 104 104 </div> -
engine/ispcp-dmn-mngr
1652 1652 1653 1653 my ($index_tpl, $err_cfg_dir) = (undef, undef); 1654 1654 my $vhost = $main::cfg{'BASE_SERVER_VHOST'}; 1655 my $prefix = $main::cfg{'BASE_SERVER_VHOST_PREFIX'}; 1655 1656 $err_cfg_dir = "$main::cfg{'GUI_ROOT_DIR'}/domain_default_page"; 1656 1657 ($rs, $index_tpl) = get_tpl($err_cfg_dir, 'index.html'); 1657 1658 return $rs if ($rs != 0); … … 1659 1660 my $decoded_dmn_name = idn_to_unicode($dmn_name, 'utf-8'); 1660 1661 my %tag_hash = ( 1661 1662 '{DOMAIN_NAME}' => $decoded_dmn_name, 1662 '{BASE_SERVER_VHOST}' => $vhost 1663 '{BASE_SERVER_VHOST}' => $vhost, 1664 '{BASE_SERVER_VHOST_PREFIX}' => $prefix 1663 1665 ); 1664 1666 ($rs, $cfg) = prep_tpl(\%tag_hash, $index_tpl); 1665 1667 return $rs if ($rs != 0);
