An online interface for TSSChecker.
PHP CSS HTML
Latest commit 78fd2c3 Feb 13, 2017 @1Conan committed on GitHub Update cron.php
Permalink
Failed to load latest commit information.
inc Add blob checker Dec 23, 2016
index Remove some text. Dec 23, 2016
json Add model chooser Dec 20, 2016
shsh Update shsh/index.php Dec 23, 2016
LICENSE Update LICENSE Dec 20, 2016
README.md Update README.md Dec 24, 2016
check.php Add blob checker Dec 23, 2016
conv.php Upload the damn whole thing! Dec 20, 2016
cron.php Update cron.php Feb 13, 2017
devices.sql Upload the damn whole thing! Dec 20, 2016
index.php Update index.php Jan 2, 2017
style-black.css Add model chooser Dec 20, 2016
style.css Add model chooser Dec 20, 2016

README.md

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.

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.