Coder Social home page Coder Social logo

pf2m / grape-old Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 993 KB

Miiverse clone by Arian Kordi. Newer version at /ariankordi/grape

Home Page: https://ariankordi.net/

PHP 100.00%
miiverse herpes nintendo openverse baku-baku-nya-nya super-herpes

grape-old's Introduction

I don't know how to use Git.

grape

A Miiverse clone, named which due to Miiverse's original codename being 'olive'. Heavy work in progress. There is a lot of naive programming in here, I'm new to PHP and it'll get better soon.

grp_portal

This is portal, or the Wii U mode.

grp_offdevice

The offdevice version. This was written when I knew more PHP then when I had written portal. It's way better written, and I'm trying to rewrite portal now.

grplib

This will be a shared library to be used between 3DS and off-device.

How to install???

First, use nginx, since that's the best web server software. I'm kidding, but it's really good. Set up however many servers you want. You must have separate servers for each realm and cannot have them in directories of your site. If you want to set up portal, make its root grp_portal-php, and the same for offdevice. Make a database in MySQL, then make a new config.php from the template and connect to your DB. Run db_create.sql in whatever you use as an interface to MySQL, and it'll work.

Rewrites (nginx)

These are required, you cannot use the .php files directly or you might get a 404 and JS won't work.

Portal:

rewrite ^/titles/([A-Za-z0-9]+)$ /titles.php?title_id=$1;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /titles.php?title_id=$1&community_id=$2;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/new$ /titles.php?title_id=$1&community_id=$2;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /titles.php?title_id=$1&community_id=$2&mode=$3;
rewrite ^/theme-set$ /theme-set.php last;
rewrite ^/settings/played_title_ids$ /my/played.php last;
rewrite ^/$ /root.php last;
rewrite ^/my/latest_following_related_profile_posts$ /my/follow-rel-posts.php last;
rewrite ^/settings/profile_post.unset.json$ /profile-post-unset.php last;
rewrite ^/check_update.json$ /check_update.php last;
rewrite ^/settings/tutorial_post$ /tutorial_post.php last;
rewrite ^/friend_messages$ /messages.php last;
rewrite ^/friend_messages/([A-Za-z0-9_-]+)$ /messages.php?user_id=$1 last;
rewrite ^/news/my_news$ /news.php last;
rewrite ^/news/friend_requests$ /friendrequests.php last;
rewrite ^/users/friend_request.accept.json$ /friend_request.php last;
rewrite ^/users/friend_request.cancel.json$ /friend_request.php?cancel last;
rewrite ^/users/friend_request.delete.json$ /friend_request.php?delete last;
rewrite ^/users/breakup.json$ /friend_request.php?breakup last;
rewrite ^/users$ /user-search.php last;
rewrite ^/users/show$ /user-show.php last;
rewrite ^/warning/deleted_account$ /content/warnings/act_deleted.php last;
rewrite ^/warning/readonly$ /content/warnings/readonly.php last;
rewrite ^/communities$ /communities.php last;
rewrite ^/communities/favorites$ /communities-showfavorites.php last;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/favorite.json$ /communities-createfavorite.php?olive_community_id=$2 last;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/unfavorite.json$ /communities-createfavorite.php?olive_community_id=$2&delete last;
rewrite ^/identified_user_posts$ /identified_user_posts.php last;
rewrite ^/guest_menu$ /guest_menu.php last;
rewrite ^/my_menu$ /my_menu.php last;
rewrite ^/act/create$ /act_create-form.php last;
rewrite ^/act/login$ /act_login.php last;
rewrite ^/act/logout$ /act_logout.php last;
rewrite ^/admin/titles_create$ /create_title.php last;
rewrite ^/admin/communities_create$ /create_community.php last;
rewrite ^/settings/profile /profile_settings.php last;
rewrite ^/login$ /login.php last;
rewrite ^/people$ /people.php last;
rewrite ^/profiles$ /profile_create.php last;
rewrite ^/posts$ /post-create.php last;
rewrite ^/posts/([A-Za-z0-9_-]+)$ /posts.php?id=$1 last;
rewrite ^/posts/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /posts.php?id=$1&mode=$2 last;
rewrite ^/replies/([A-Za-z0-9_-]+)$ /replies.php?id=$1 last;
rewrite ^/replies/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /replies.php?id=$1&mode=$2 last;
rewrite ^/users/([A-Za-z0-9_-]+)$ /users.php?user_id=$1 last;
rewrite ^/users/([A-Za-z0-9_-]+)/([A-Za-z0-9]+)$ /users.php?user_id=$1&mode=$2 last;
rewrite ^/users/@me$ /profile-me.php last;
rewrite ^/users/([A-Za-z0-9_-]+)/friend_request.create.json$ /friend_request.php?create&user_id=$1 last;
rewrite ^/help_and_guide$ /help_and_guide.php last;
rewrite ^/special/redesign_announcement$ /content/special/redesign.php last;
rewrite ^/help* /content/help* last;
rewrite ^/faq* /content/help* last;

Offdevice:

rewrite ^/communities$ /communities.php last;
rewrite ^/$ /communities.php last;
rewrite ^(/titles/[^/]*\.php)5 $1 permanent;
rewrite ^(/titles/[^/]*\/[^/]*\.php)5 $2 permanent;
rewrite ^/titles/([A-Za-z0-9]+)$ /titles.php?title_id=$1;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /titles.php?title_id=$1&community_id=$2;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/new$ /titles.php?title_id=$1&community_id=$2;
rewrite ^/titles/([A-Za-z0-9]+)/([A-Za-z0-9]+)/([A-Za-z0-9]+)$ /titles.php?title_id=$1&community_id=$2&mode=$3;
rewrite ^/posts$ /post-create.php last;
rewrite ^/posts/([A-Za-z0-9_-]+)$ /posts.php?id=$1 last;
rewrite ^/posts/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /posts.php?id=$1&mode=$2 last;
rewrite ^/posts/([A-Za-z0-9_-]+).([A-Za-z0-9_-]+)$ /posts.php?id=$1&mode=$2 last;
rewrite ^/posts/([A-Za-z0-9_-]+)/screenshot.set_profile_post$ /posts.php?id=$1&mode=screenshot.set_profile_post last;
rewrite ^/posts/([A-Za-z0-9_-]+)/empathies.delete$ /posts.php?id=$1&mode=empathies last;
rewrite ^/replies/([A-Za-z0-9_-]+)$ /replies.php?id=$1 last;
rewrite ^/replies/([A-Za-z0-9_-]+)/([A-Za-z0-9_-]+)$ /replies.php?id=$1&mode=$2 last;
rewrite ^/replies/([A-Za-z0-9_-]+).([A-Za-z0-9_-]+)$ /replies.php?id=$1&mode=$2 last;
rewrite ^/replies/([A-Za-z0-9_-]+)/empathies.delete$ /replies.php?id=$1&mode=empathies last;
rewrite ^/users/([A-Za-z0-9_-]+)$ /users.php?user_id=$1 last;
rewrite ^/users/([A-Za-z0-9_-]+)/([A-Za-z0-9]+)$ /users.php?user_id=$1&mode=$2 last;
rewrite ^/users/([A-Za-z0-9_-]+).([A-Za-z0-9]+).json$ /users.php?user_id=$1&mode=$2 last;
rewrite ^/users/@me$ /profile-me.php last;
rewrite ^/act/login$ /act_login.php last;
rewrite ^/act/logout$ /act_logout.php last;
rewrite ^/login$ /login.php last;
rewrite ^/check_update.json$ /check_update.php last;
rewrite ^/news/my_news$ /news.php last;
rewrite ^/activity$ /activity.php last;
rewrite ^/identified_user_posts$ /identified_user_posts.php last;
rewrite ^/settings/profile_post.unset.json$ /profile-post-unset.php last;
rewrite ^/settings/profile$ /profile_settings.php last;

Anything else?

Not much yet, thanks for asking.

grape-old's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.