forked from GithubBackups/tinyib
Migrate to codeberg.org
This commit is contained in:
parent
17873befbd
commit
90b1bcea8a
14
README.md
14
README.md
@ -57,7 +57,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.rocket9labs.com/tslocum/tinyib.git ./`
|
- `git clone https://codeberg.org/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.
|
||||||
@ -106,12 +106,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.rocket9labs.com/tslocum/tinyib/archive/master.zip) and extract a zipped archive.
|
- Otherwise, [download](https://codeberg.org/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.rocket9labs.com](https://code.rocket9labs.com/tslocum/tinyib) and review the changes made in the update.
|
- Visit [codeberg.org](https://codeberg.org/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
|
||||||
@ -135,8 +135,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.rocket9labs.com/tslocum/tinyib/issues).
|
2. Review the [open issues](https://codeberg.org/tslocum/tinyib/issues).
|
||||||
3. Open a [new issue](https://code.rocket9labs.com/tslocum/tinyib/issues/new).
|
3. Open a [new issue](https://codeberg.org/tslocum/tinyib/issues/new).
|
||||||
|
|
||||||
## Translate
|
## Translate
|
||||||
|
|
||||||
@ -146,6 +146,6 @@ Translation is handled [online](https://translate.codeberg.org/projects/tinyib/t
|
|||||||
|
|
||||||
**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.rocket9labs.com/repo/fork/6)
|
1. [Fork TinyIB.](https://codeberg.org/tslocum/tinyib/fork)
|
||||||
2. Commit code changes to your forked repository.
|
2. Commit code changes to your forked repository.
|
||||||
3. [Submit a pull request.](https://code.rocket9labs.com/tslocum/tinyib/pulls)
|
3. [Submit a pull request.](https://codeberg.org/tslocum/tinyib/pulls)
|
||||||
|
10
imgboard.php
10
imgboard.php
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
TinyIB
|
TinyIB
|
||||||
https://code.rocket9labs.com/tslocum/tinyib
|
https://codeberg.org/tslocum/tinyib
|
||||||
|
|
||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
@ -970,12 +970,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.rocket9labs.com/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://codeberg.org/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.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>';
|
See the <a href="https://codeberg.org/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.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>';
|
<p>If you installed TinyIB without Git, you must <a href="https://codeberg.org/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) {
|
||||||
@ -1037,7 +1037,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.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>';
|
$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://codeberg.org/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.rocket9labs.com/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://codeberg.org/tslocum/tinyib" target="_blank">tinyib</a> -
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
TinyIB
|
TinyIB
|
||||||
https://code.rocket9labs.com/tslocum/tinyib
|
https://codeberg.org/tslocum/tinyib
|
||||||
|
|
||||||
Support:
|
Support:
|
||||||
https://code.rocket9labs.com/tslocum/tinyib/issues
|
https://codeberg.org/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