Code Monkey home page Code Monkey logo

sageth / phparcade Goto Github PK

View Code? Open in Web Editor NEW
12.0 5.0 15.0 868 KB

PHP/MySQL Arcade site based on the old GameSiteScript 4.0 (by permission). Site contains significant code updates and features, including Responsive Design and the ability to play and publish HTML5 games. Please see below for more details.

License: GNU General Public License v3.0

PHP 97.46% CSS 1.87% JavaScript 0.67%
mysql html5-games php gamemanager arcade-game-script arcade hacktoberfest

phparcade's Introduction

Build Status PHP from Travis config GitHub Twitter Follow Uptime Robot status Website

Description

This is a Responsive arcade script written in PHP that is -- in spirit -- based on the old (no longer supported or maintained) version of GameSiteScript 4. Nearly all of the code has been rewritten for better adherence to new coding standards.

Features (screenshots below)

  • Add/edit pages via GUI
  • Add/edit games manually
  • Custom languages possible via .PO files, English default
  • Customizable theme modules and uploading
  • Database-driven design, including stored procedures and indexed queries
  • External email support (e.g. Google Apps for Work, Gmail)
  • HTML5 games and other custom code implementations
  • Internal high score system for some game types, primarily ibPro v2
  • Bootstrap 3 and Bootstrap 4-based themes
  • RSS Feeds
  • Supports PHP7!
  • User administration and profiles

Additional Notes

  • The examples provided in the Wiki are for CentOS 6 using non-default repositories. This code has not been tested on Apache. It may work with some basic .htaccess conversions.
  • This code can be found on GitHub and on GitLab.

Supported/Tested Platforms:

  • Please review the .travis.yml file in the master branch.
  • Please note that MySQL is not tested and is not officially supported, however, it probably works with MySQL 5.7+

Support Information

Installation

Credits

Developers:

  • Sage Russell - Project maintainer, developer.

Contributors

  • Thank you to BennyJake for your contributions.

Screenshots

Admin Dashboard Admin Social Game Management

phparcade's People

Contributors

bennyjake avatar dependabot-preview[bot] avatar dependabot[bot] avatar imgbotapp avatar mend-bolt-for-github[bot] avatar mslepko avatar sageth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phparcade's Issues

Build GUI installer

Installation should include SQL script in /installation and assist in configuration of the ini file. Additionally, installation script should not be able to be run multiple times in order to maintain security of the site.

Please provide more clear install details

Hello thanks for sharing your work, Can't wait to see the script in action.
I am trying to install it via cpanel : extracting all main folder to the www however nothing happens, what file or folder do I need to call?

Using Apache , php7 ..

Maybe you can list the required extensions ? Any guide will help :)

Thanks in advance

Fix create_database.sql scripts #1

I'm looking at helping modernize your application, but am having difficulty getting it up and running per your instructions. I've made headway, but have noticed a few problems with your create_database.sql script. I believe I have fixes in place for it, ready to merge in. @Sageth

Update Google Tag Manager code

Google Tag Manager has updated their code and now require it in two places. Update the code from their site, using the user tags in the admin portion.

Linux-Specific Function

The getProcessUser function in the Administrations class has a posix_getpwuid() and a posix_geteuid() function. These are linux-specific functions. To help others contribute to phparcade, Windows-centric/other OS alternatives should be provided.

Build proper URL routing

Build routing class for games, users, and pages which allow for full removal of global variables ($links_arr) as seen in the loadLinks() function.

Add location parameter to stored procedure

Specific function below

public static function showAds($location)
    {
        /* Displays ad on the front-end webpage */
        /* TODO: Add location to stored procedure */
        $stmt = mySQL::getConnection()->prepare('CALL sp_Ads_GetAll_Random();');
        $stmt->execute();
        $ad = $stmt->fetch();
        return $ad['code'];
   }

Modify plugin admin pages to not use foreach loop

Inside phparcade/Zdmin/index.php

include INST_DIR . 'includes/first.php';
foreach ($arr as $plugin) {
    if (file_exists('../plugins/' . $plugin . '/admin.php')) {
        /** @noinspection PhpIncludeInspection */
        require_once '../plugins/' . $plugin . '/admin.php';
        $func = $plugin . '_links';
        $func();
    }
}

This is outdated and should be rewritten to better load the functionality without requiring multiple single files.

Eliminate $config global

Eliminate the $config global and allow both the front-end and admin codebases to function properly.

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.