Compare commits

...

6 Commits

Author SHA1 Message Date
608dd188dd Merge pull request #148 from 011248163264/patch-2
Update common.php
2026-02-24 19:45:08 +01:00
f8916e1919 Merge pull request #150 from 011248163264/patch-4
Update index.php
2026-02-24 19:44:57 +01:00
094ddf9b07 Merge pull request #149 from 011248163264/patch-3
Update index.php
2026-02-24 19:44:45 +01:00
Lin
ab68082f18 Update index.php
When a sitename is changed in common.php the site name on index.php is now also changed
2026-02-24 19:24:44 +01:00
Lin
1fbbaa92c7 Update index.php
added const copyright and disclaimer
2026-02-24 18:49:17 +01:00
Lin
73cd0c1c1f Update common.php
added copyright and disclaimerm for index.php, is only visible when not null
2026-02-24 18:48:10 +01:00
2 changed files with 16 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ const SERVERS=[ //servers and ports we are running on
'dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion'=>['sftp'=>22, 'pop3'=>'110', 'imap'=>'143', 'smtp'=>'25'],
'hosting.danwin1210.me'=>['sftp'=>22, 'pop3'=>'995', 'imap'=>'993', 'smtp'=>'465']
];
const COPYRIGHT='';
const DISCLAIMER='';
const EMAIL_TO=''; //Send email notifications about new registrations to this address
const INDEX_MD5S=[ //MD5 sums of index.hosting.html files that should be considered as unchanged for deletion
'd41d8cd98f00b204e9800998ecf8427e', //empty file

View File

@@ -3,7 +3,7 @@ require('../common.php');
header('Content-Type: text/html; charset=UTF-8');
print_header(_('Info'));
?>
<h1><?php echo _('Hosting - Info'); ?></h1>
<h1><?php echo _(SITE_NAME); ?> - Info</h1>
<?php main_menu('index.php'); ?>
<p><?php echo _('Here you can get yourself a free web hosting account on my server.'); ?></p>
<h2><?php echo _('What you get:'); ?></h2>
@@ -27,6 +27,19 @@ print_header(_('Info'));
<li><?php printf(_('There is a missing feature, or you need a special configuration? Just <a href="%s">contact me</a> and I\'ll see what I can do.'), CONTACT_URL); ?></li>
<li><?php echo _('More to come…'); ?></li>
</ul>
<?php if (defined('COPYRIGHT') && COPYRIGHT !== ''): ?>
<h2><?php echo _('Copyright'); ?></h2>
<ul>
<li><?php echo _(COPYRIGHT); ?></li>
</ul>
<?php endif; ?>
<?php if (defined('DISCLAIMER') && DISCLAIMER !== ''): ?>
<h2><?php echo _('Disclaimer'); ?></h2>
<ul>
<li><?php echo _(DISCLAIMER); ?></li>
</ul>
<?php endif; ?>
<h2><?php echo _('Rules'); ?></h2>
<ul>
<li><?php echo _('No child pornography!'); ?></li>