Add GitLab migration notice

This commit is contained in:
Trevor Slocum 2018-06-07 22:01:25 -07:00
parent 86372127f1
commit e1c91c896c
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,10 @@
!!! TinyIB has moved to GitLab !!!
====
Please visit https://gitlab.com/tslocum/tinyib
------------
TinyIB - A Lightweight and Efficient [Image Board](https://en.wikipedia.org/wiki/Imageboard) Script
====

View File

@ -771,6 +771,15 @@ function manageStatus() {
$info = $threads . ' ' . plural('thread', $threads) . ', ' . $bans . ' ' . plural('ban', $bans);
$output = '';
if ($isadmin) {
$output .= <<<EOF
<fieldset>
<legend>Notice</legend>
<p>TinyIB has <a href="https://gitlab.com/tslocum/tinyib" target="_blank">moved to GitLab</a>. If you installed via git, please run <pre>git remote set-url origin https://gitlab.com/tslocum/tinyib.git</pre> to continue receiving updates.</p>
</fieldset>
EOF;
}
if ($isadmin && TINYIB_DBMODE == 'mysql' && function_exists('mysqli_connect')) { // Recommend MySQLi
$output .= <<<EOF
<fieldset>