/TSSSaver

An online interface for TSSChecker.

Primary LanguagePHPMIT LicenseMIT

TSSSaver

An online interface/frontend for TSSChecker.
Pretty crappy code as of now

Licensed under MIT License. Yes, yes, it is licensed under MIT License.
Exceptions in the licensing:
@jakeajames (twitter) or "Arshia Shojaian" is not allowed to use any of the code here.

Preview: https://tsssaver.1conan.com

Features

  • Automated
  • Download to ZIP
  • Save to Google Drive
  • Save to Dropbox
  • Instant blob saving (For new submissions)
  • Google Recaptcha
  • No web frameworks for speedy loading
  • Two themes (by /u/MareddySaiKiran)

Requirements

  • MySQL/MariaDB
  • PHP 5.5+ (7+ Recommended)
  • PHP-MySQLi
  • shell_exec() and exec()
  • TSSChecker
  • Linux (Debian or debian derivatives)
  • Cron (Optional)

Installation

  1. Download all the files in your web root.
  2. Import devices.sql to MySQL/MariaDB. (phpMyAdmin or CLI)
  3. Modify inc/config.sample.php to your preferences
  4. Rename inc/config.sample.php to inc/config.php
  5. Modify index/footer.html according to your preferences.
  6. Make bin/ directory.
  7. Download https://git.io/v1bM2 and uncompress to bin/ directory.
  8. Download img4tool and uncompress. (http://api.tihmstar.net/builds/img4tool/img4tool-latest.zip)
  9. Rename img4tool_linux to img4tool then move to bin/
  10. Done :)


(optional)
Set cron to run cron.php on your preferred interval.
For every 12am ``` 0 0 * * * cd /path/to/your/web/root && php cron.php ```
(optional)
Change theme:
1. Remove rename style.css to style-white.css
2. Rename style-black.css to style.css

(optional)
Save to dropbox
1. Get an APP Key from dropbox.
2. Replace "YOUR_APP_KEY" in /index/footer.html with your key

How to get the auto index stuff

I used nginx with fancyindex module for that. Here is the config for it.

location /shsh {
	index index.php;
	fancyindex on;
	fancyindex_exact_size off;
	fancyindex_header "/index/header.html";
	fancyindex_footer "/index/footer.html";
	fancyindex_localtime on;

}

License

MIT License

Copyright (c) Andre Bongon 2016

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.