GithubHelp home page GithubHelp logo

sageth / phparcade Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.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%
arcade arcade-game-script gamemanager hacktoberfest html5-games mysql php

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

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'];
   }

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.

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

Eliminate $config global

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

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.

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 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.

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.

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

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.