Giter Site home page Giter Site logo

subrocks-2012's Introduction

subrocks-2012

a 2012 rewrite for subrocks

THE SITE IS CURRENTLY ON HIATUS BECAUSE OF SCHOOL, CODE REWRITE WILL BE WITHIN 1 WEEK

Scrutinizer Code Quality Build Status

SubRocks is a faithful recreation & reverse engineering effort for 2012 YouTube. You can visit the site at https://subrock.rocks.

SubRocks 2012 Homepage

Requirements

  • Docker
  • Linux (Recommended)
  • A functioning brain
  • Blood vessels

How to setup

Run docker-compose up -d inside the root of this repository.

Wait for it to compile everything, then go to http://localhost:8080.

The default username & password is root. Host is mysql.

Import the SQL file in sql_setup and you are basically finished with the setup.

Important Information

  • Web server: localhost:8000
  • PHPMyAdmin: localhost:8080
    • username: root
    • password: root
    • host: (none, or you can put mysql)

Things that you should expect soon:

  • Dockerized
  • Templating
  • Router
  • Translations

subrocks-2012's People

Contributors

biggerbraintime avatar genosmrpg7899 avatar markmrgamer avatar pixdoet avatar the-real-sumsome avatar travy-patty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

subrocks-2012's Issues

License

it would be nice if you could pick a license, chief
especially if you start """c&ding""" forks

Video uploads stuck at 100%

The title is pretty much it.
I don't have much idea about what could be the issue, it just doesn't work (see print below for the funni log)
See this issue at: https://fuzzy-fish-2.loca.lt
Which is literally my web server

Please ignore the ERR_BLOCKED_BY_CLIENT, that's an extension.

image

PDOException when hosting, can't connect to PHPMyAdmin

Whenever I host an instance of subrocks this happens:
PDOException: SQLSTATE[HY000] [2002] No such file or directory in /var/www/html/public/s/classes/config.inc.php:37 Stack trace: #0 /var/www/html/public/s/classes/config.inc.php(37): PDO->__construct('mysql:host=loca...', 'root', 'root', Array) #1 /var/www/html/public/index.php(78): require_once('/var/www/html/p...') #2 {main}
I have tried changing the host to localhost, 127.0.0.1 and etc. None of them worked.
Also I can't connect to PHPMyAdmin as well.

Video upload stuck at 100% Fr help

<br /> <b>Warning</b>: move_uploaded_file(../dynamic/temp/I-1suuT9SPE.mp4): Failed to open stream: Permission denied in <b>/var/www/html/public/d/upload.php</b> on line <b>50</b><br /> <br /> <b>Warning</b>: move_uploaded_file(): Unable to move &quot;/tmp/phpKf2OVf&quot; to &quot;../dynamic/temp/I-1suuT9SPE.mp4&quot; in <b>/var/www/html/public/d/upload.php</b> on line <b>50</b><br /> Failed to move temp file to dynamic folder. Pottential IO/permission problem.0

Any clue on how to fix this?

Alt account detection blocks signups when attempted on a localhost server

When I attempt to make an account on a localhost setup, it fails and throws this error:
Fatal error: Uncaught PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'ip' in 'where clause' in /var/www/html/public/d/signup.php:55 Stack trace: #0 /var/www/html/public/d/signup.php(55): PDO->prepare('SELECT * FROM u...') #1 {main} thrown in /var/www/html/public/d/signup.php on line 55

Empty Response

Soooooo

Everytime I try accessing the website chrome gives me ERR-EMPTEY_RESPONE
i Setup the sql and still doesnt work i'm not sure why

Update: forgot to add ss
**
image
**

The video player

The video player just says "This video is currently unavailable".

Video uploading stuck at 100%. PHP Error log appears in Network tab.

I just set up a Docker instance with a NGINX Reverse proxy making it available on Port 443.
When I upload a Video, It will get stuck at 100% and the Network tab will produce a log with this.
<br /> <b>Warning</b>: move_uploaded_file(../dynamic/temp/DQ6U7JeLiDU.mp4): Failed to open stream: Permission denied in <b>/var/www/html/public/d/upload.php</b> on line <b>50</b><br /> <br /> <b>Warning</b>: move_uploaded_file(): Unable to move &quot;/tmp/phpTk0hrS&quot; to &quot;../dynamic/temp/DQ6U7JeLiDU.mp4&quot; in <b>/var/www/html/public/d/upload.php</b> on line <b>50</b><br /> Failed to move temp file to dynamic folder. Pottential IO/permission problem.0

It may be a Permission issue but I don't know the solution, I'm not too great at Docker. If anyone could help I would be really thankful.

-LushPineapple29

USE PDO

MYSQLI IS FUCKING DISGUSTING

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.