Code Monkey home page Code Monkey logo

fivemods.net's People

Contributors

awesomecore1 avatar dependabot[bot] avatar fredneyy avatar idevjoe avatar imsamu avatar mergify[bot] avatar oetkher avatar officialhyn avatar phxl76 avatar

Stargazers

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

Watchers

 avatar  avatar

fivemods.net's Issues

Quality Check: Languages

Please go though the FiveMods pages and search for missing translations / wrong translations (German)

Stop setting millions of session variables

$_SESSION['user_id'] = $userFetch['oauth_uid'];

The line above is an example of the type of thing that needs to be fixed. Storing all of these session variables on login and relying on them to be present will create a handful of unintended bugs down the line. Yes, it is easier to access information, but it will come back to stab you in the back later down the road. Do the proper thing and request what you need from the database when you need it.

Rework Status Page

  • API
  • Implement "Developer Settings" Tab in User with API token (maybe oauth id?) & secret
  • Should be Editable (e. g. GitHub, Discord and Google login should be controlable via ACP (DB)
  • Improve the status page

Upload: Add Price suggestion

Add a Price Suggestion
User that are not part of the Partner Program: up to 5 euros
User that are part of the Partner Program: unlimited

Should be approved seperately in ACP (!)

ACP Improvements

  • Dashboard (Mod uploads, user registrations,
  • User -> See IP, see login provider

Rework / enhance deferral system

Rework / enhance deferral system
(Maybe task for @AwesomeCore1)

Ideas:

  • Connect to DB with list of blocked domains
  • Enhance list of blocked domains
  • Check for inlink urls
  • Maybe add dynamic system with detecting outgoing links

Too many PDO sessions

Please stop creating PDO sessions everywhere. I estimate that there are roughly 15-20 mysql connections/request. You can prepare more than one statement per PDO session. None of these PDOs are closed properly after being used, so all throughout the duration of the request, there's just dangling PDO sessions.

$pdo = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

...

$insertDB = $pdo->prepare("INSERT INTO user (sid, uuid, oauth_uid, oauth_provider, email, picture, locale, description, main_ip) VALUES (:sid, '$v5uuid', :id, 'Discord Inc.', :email, :picture, :locale, :description, :mainip)");
      $insertDB->execute(array('sid' => $sid, 'email' => $email, 'picture' => $fileName, 'description' => "No Description Set.", 'mainip' => $main_ip, 'id' => $uid, 'locale' => "-"));

    	$servernameP = $mysqlPayment['servername'];
      $usernameP = $mysqlPayment['username'];
      $passwordP = $mysqlPayment['password'];
      $dbnameP = $mysqlPayment['dbname'];

      $pdoPayment = new PDO("mysql:host=$servernameP;dbname=$dbnameP", $usernameP, $passwordP);
      $insertUser = $pdoPayment->prepare("INSERT INTO payment_user (oauth_provider, oauth_id, uuid, username, email, country_code) VALUES (:provider, :id, :uuid, :username, :email, :country)");
      $insertUser->execute(array('provider' => "Discord", 'id' => $uid, 'uuid' => $v5uuid, 'username' => $_SESSION['user_username'], 'email' => $email, 'country' => $user->locale));

    	$select = $pdo->prepare("SELECT * FROM user WHERE uuid = :uuid");
      $select->execute(array('uuid' => $v5uuid));

General FiveMods Rework

  • (Remove Deposit / buy mods function)
  • Download button huge when logged in on every fm related page
  • Change username doesnt work
  • API Token logs you out (maybe remove this function?)
  • Delete Account sends you a second mail when you confirm removal (with a remove token, not a confirmation)
  • Income history should show estimate income with every mod
  • Ads
  • Affiliate
  • Language change in footer still not working
  • Only use existing tags in categories (maybe have a list with allowed tags)
  • Rework partner program benefits
  • remove unused code (!!!!)
  • implement status into control panel
  • yeet help center (or change it idk)
  • upload issues

Expand image on click

When clicking on an image in the carousel it should expand and blur the background.

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.