forked from GithubBackups/tinyib
Migrate to code.rocket9labs.com
Run the following command to ensure continued updates: git remote set-url origin https://code.rocket9labs.com/tslocum/tinyib.git
This commit is contained in:
parent
5f42b82cc0
commit
2aa8a8efa0
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 Trevor Slocum <trevor@rocketnine.space>
|
Copyright (c) 2023 Trevor Slocum <trevor@rocket9labs.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
22
README.md
22
README.md
@ -1,9 +1,9 @@
|
|||||||
# TinyIB - Lightweight and efficient [imageboard](https://en.wikipedia.org/wiki/Imageboard)
|
# TinyIB - Lightweight and efficient [imageboard](https://en.wikipedia.org/wiki/Imageboard)
|
||||||
[](https://hosted.weblate.org/projects/tinyib/tinyib/)
|
[](https://hosted.weblate.org/projects/tinyib/tinyib/)
|
||||||
[](https://liberapay.com/rocketnine.space)
|
[](https://liberapay.com/rocket9labs.com)
|
||||||
[](https://www.patreon.com/rocketnine)
|
[](https://www.patreon.com/rocketnine)
|
||||||
|
|
||||||
A [**read-only demo**](https://tinyib.rocketnine.space) is available.
|
A [**read-only demo**](https://tinyib.rocket9labs.com) is available.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@ -40,11 +40,11 @@ A [**read-only demo**](https://tinyib.rocketnine.space) is available.
|
|||||||
Please consider supporting the continued development of TinyIB.
|
Please consider supporting the continued development of TinyIB.
|
||||||
|
|
||||||
If you make a donation and there is a certain feature you'd like to see added to
|
If you make a donation and there is a certain feature you'd like to see added to
|
||||||
TinyIB, <a href="mailto:trevor@rocketnine.space">send me an email</a>. I can't
|
TinyIB, <a href="mailto:trevor@rocket9labs.com">send me an email</a>. I can't
|
||||||
promise that I will implement the feature right away, however I will keep your
|
promise that I will implement the feature right away, however I will keep your
|
||||||
support in mind.
|
support in mind.
|
||||||
|
|
||||||
- [LiberaPay](https://liberapay.com/rocketnine.space) (anonymous, no added fees)
|
- [LiberaPay](https://liberapay.com/rocket9labs.com) (anonymous, no added fees)
|
||||||
- [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TEP9HT98XK7QA)
|
- [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TEP9HT98XK7QA)
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
@ -58,7 +58,7 @@ support in mind.
|
|||||||
- This is recommended, but is not strictly required except when `TINYIB_CAPTCHA` is set to `hcaptcha` or `recaptcha`.
|
- This is recommended, but is not strictly required except when `TINYIB_CAPTCHA` is set to `hcaptcha` or `recaptcha`.
|
||||||
2. CD to the directory you wish to install TinyIB.
|
2. CD to the directory you wish to install TinyIB.
|
||||||
3. Run the command:
|
3. Run the command:
|
||||||
- `git clone https://code.rocketnine.space/tslocum/tinyib.git ./`
|
- `git clone https://code.rocket9labs.com/tslocum/tinyib.git ./`
|
||||||
4. Copy **settings.default.php** to **settings.php**
|
4. Copy **settings.default.php** to **settings.php**
|
||||||
5. Configure **settings.php**
|
5. Configure **settings.php**
|
||||||
- When setting ``TINYIB_DBMODE`` to ``flatfile``, note that all post, report and ban data are exposed as the database is composed of standard text files. Access to ./inc/database/flatfile/ should be denied.
|
- When setting ``TINYIB_DBMODE`` to ``flatfile``, note that all post, report and ban data are exposed as the database is composed of standard text files. Access to ./inc/database/flatfile/ should be denied.
|
||||||
@ -107,12 +107,12 @@ support in mind.
|
|||||||
1. Obtain the latest release.
|
1. Obtain the latest release.
|
||||||
- If you installed via Git, run the following command in TinyIB's directory:
|
- If you installed via Git, run the following command in TinyIB's directory:
|
||||||
- `git pull`
|
- `git pull`
|
||||||
- Otherwise, [download](https://code.rocketnine.space/tslocum/tinyib/archive/master.zip) and extract a zipped archive.
|
- Otherwise, [download](https://code.rocket9labs.com/tslocum/tinyib/archive/master.zip) and extract a zipped archive.
|
||||||
2. Note which files were modified.
|
2. Note which files were modified.
|
||||||
- If **settings.default.php** was updated, migrate the changes to **settings.php**
|
- If **settings.default.php** was updated, migrate the changes to **settings.php**
|
||||||
- Take care to not change the value of `TINYIB_TRIPSEED`, as it is used to generate secure tripcodes, hash passwords and hash IP addresses.
|
- Take care to not change the value of `TINYIB_TRIPSEED`, as it is used to generate secure tripcodes, hash passwords and hash IP addresses.
|
||||||
- If other files were updated, and you have made changes yourself:
|
- If other files were updated, and you have made changes yourself:
|
||||||
- Visit [code.rocketnine.space](https://code.rocketnine.space/tslocum/tinyib) and review the changes made in the update.
|
- Visit [code.rocket9labs.com](https://code.rocket9labs.com/tslocum/tinyib) and review the changes made in the update.
|
||||||
- Ensure the update does not interfere with your changes.
|
- Ensure the update does not interfere with your changes.
|
||||||
|
|
||||||
## Migrate
|
## Migrate
|
||||||
@ -136,8 +136,8 @@ While the migration is in progress, visitors will not be able to create or delet
|
|||||||
## Support
|
## Support
|
||||||
|
|
||||||
1. Ensure you are running the latest version of TinyIB.
|
1. Ensure you are running the latest version of TinyIB.
|
||||||
2. Review the [open issues](https://code.rocketnine.space/tslocum/tinyib/issues).
|
2. Review the [open issues](https://code.rocket9labs.com/tslocum/tinyib/issues).
|
||||||
3. Open a [new issue](https://code.rocketnine.space/tslocum/tinyib/issues/new).
|
3. Open a [new issue](https://code.rocket9labs.com/tslocum/tinyib/issues/new).
|
||||||
|
|
||||||
## Translate
|
## Translate
|
||||||
|
|
||||||
@ -147,6 +147,6 @@ Translation is handled [online](https://hosted.weblate.org/projects/tinyib/tinyi
|
|||||||
|
|
||||||
**Note:** Please do not submit translations via pull requests. See above.
|
**Note:** Please do not submit translations via pull requests. See above.
|
||||||
|
|
||||||
1. [Fork TinyIB.](https://code.rocketnine.space/repo/fork/6)
|
1. [Fork TinyIB.](https://code.rocket9labs.com/repo/fork/6)
|
||||||
2. Commit code changes to your forked repository.
|
2. Commit code changes to your forked repository.
|
||||||
3. [Submit a pull request.](https://code.rocketnine.space/tslocum/tinyib/pulls)
|
3. [Submit a pull request.](https://code.rocket9labs.com/tslocum/tinyib/pulls)
|
||||||
|
12
imgboard.php
12
imgboard.php
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
TinyIB
|
TinyIB
|
||||||
https://code.rocketnine.space/tslocum/tinyib
|
https://code.rocket9labs.com/tslocum/tinyib
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2020 Trevor Slocum <trevor@rocketnine.space>
|
Copyright (c) 2020 Trevor Slocum <trevor@rocket9labs.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -968,12 +968,12 @@ EOF;
|
|||||||
$text .= '<blockquote class="reply" style="padding: 7px;font-size: 1.25em;">
|
$text .= '<blockquote class="reply" style="padding: 7px;font-size: 1.25em;">
|
||||||
<pre style="margin: 0;padding: 0;">Attempting update...' . "\n\n" . $git_output . '</pre>
|
<pre style="margin: 0;padding: 0;">Attempting update...' . "\n\n" . $git_output . '</pre>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://code.rocketnine.space/tslocum/tinyib/commits/master" target="_blank">review the changes</a> which have been merged into your installation.
|
<p><b>Note:</b> If TinyIB updates and you have made custom modifications, <a href="https://code.rocket9labs.com/tslocum/tinyib/commits/master" target="_blank">review the changes</a> which have been merged into your installation.
|
||||||
Ensure that your modifications do not interfere with any new/modified files.
|
Ensure that your modifications do not interfere with any new/modified files.
|
||||||
See the <a href="https://code.rocketnine.space/tslocum/tinyib/src/branch/master/README.md">README</a> <small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</p>';
|
See the <a href="https://code.rocket9labs.com/tslocum/tinyib/src/branch/master/README.md">README</a> <small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</p>';
|
||||||
} else {
|
} else {
|
||||||
$text .= '<p><b>TinyIB was not installed via Git.</b></p>
|
$text .= '<p><b>TinyIB was not installed via Git.</b></p>
|
||||||
<p>If you installed TinyIB without Git, you must <a href="https://code.rocketnine.space/tslocum/tinyib">update manually</a>. If you did install with Git, ensure the script has read and write access to the <b>.git</b> folder.</p>';
|
<p>If you installed TinyIB without Git, you must <a href="https://code.rocket9labs.com/tslocum/tinyib">update manually</a>. If you did install with Git, ensure the script has read and write access to the <b>.git</b> folder.</p>';
|
||||||
}
|
}
|
||||||
} elseif (isset($_GET['dbmigrate'])) {
|
} elseif (isset($_GET['dbmigrate'])) {
|
||||||
if (TINYIB_DBMIGRATE !== '' && TINYIB_DBMIGRATE !== false && TINYIB_DBMODE != TINYIB_DBMIGRATE) {
|
if (TINYIB_DBMIGRATE !== '' && TINYIB_DBMIGRATE !== false && TINYIB_DBMODE != TINYIB_DBMIGRATE) {
|
||||||
@ -1035,7 +1035,7 @@ EOF;
|
|||||||
|
|
||||||
echo '<p><b>Database migration complete</b>. Set TINYIB_DBMODE to the new database mode and TINYIB_DBMIGRATE to false, then click <b>Rebuild All</b> above and ensure everything looks and works as it should.</p>';
|
echo '<p><b>Database migration complete</b>. Set TINYIB_DBMODE to the new database mode and TINYIB_DBMIGRATE to false, then click <b>Rebuild All</b> above and ensure everything looks and works as it should.</p>';
|
||||||
} else {
|
} else {
|
||||||
$text .= '<p>Your original database will not be deleted. If the migration fails, disable the tool and your board will be unaffected. See the <a href="https://code.rocketnine.space/tslocum/tinyib/src/branch/master/README.md" target="_blank">README</a> <small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</a><br><br><a href="?manage&dbmigrate&go"><b>Start the migration</b></a></p>';
|
$text .= '<p>Your original database will not be deleted. If the migration fails, disable the tool and your board will be unaffected. See the <a href="https://code.rocket9labs.com/tslocum/tinyib/src/branch/master/README.md" target="_blank">README</a> <small>(<a href="README.md" target="_blank">alternate link</a>)</small> for instructions.</a><br><br><a href="?manage&dbmigrate&go"><b>Start the migration</b></a></p>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fancyDie('Set TINYIB_DBMIGRATE to the desired TINYIB_DBMODE and enter in any database related settings in settings.php before migrating.');
|
fancyDie('Set TINYIB_DBMIGRATE to the desired TINYIB_DBMODE and enter in any database related settings in settings.php before migrating.');
|
||||||
|
@ -70,7 +70,7 @@ function pageFooter() {
|
|||||||
|
|
||||||
return <<<EOF
|
return <<<EOF
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
- <a href="http://www.2chan.net" target="_blank">futaba</a> + <a href="http://www.1chan.net" target="_blank">futallaby</a> + <a href="https://code.rocketnine.space/tslocum/tinyib" target="_blank">tinyib</a> -
|
- <a href="http://www.2chan.net" target="_blank">futaba</a> + <a href="http://www.1chan.net" target="_blank">futallaby</a> + <a href="https://code.rocket9labs.com/tslocum/tinyib" target="_blank">tinyib</a> -
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
TinyIB
|
TinyIB
|
||||||
https://code.rocketnine.space/tslocum/tinyib
|
https://code.rocket9labs.com/tslocum/tinyib
|
||||||
|
|
||||||
Support:
|
Support:
|
||||||
https://code.rocketnine.space/tslocum/tinyib/issues
|
https://code.rocket9labs.com/tslocum/tinyib/issues
|
||||||
|
|
||||||
See README for instructions on configuring, moderating and upgrading your board.
|
See README for instructions on configuring, moderating and upgrading your board.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user