Jump to content
MakeWebGames

m1ll1k3n

Members
  • Posts

    34
  • Joined

  • Last visited

Recent Profile Visitors

1,465 profile views

m1ll1k3n's Achievements

Contributor

Contributor (5/14)

  • Reacting Well Rare
  • Dedicated Rare
  • Conversation Starter Rare
  • First Post Rare
  • Collaborator Rare

Recent Badges

10

Reputation

  1. could you not do it much cleaner , personally i would do something more like this , much safer , and cleaner <?php // 1. Allowed 'view' values $allowedViews = ['videoID', 'uid', 'artist', 'tracktitle', 'genre', 'videourl', 'thumbs', 'playerswflink', 'switch', 'allowaccess', 'width', 'height', 'autostart']; $view = (isset($_GET['view']) && in_array($_GET['view'], $allowedViews, true)) ? $_GET['view'] : 'videoID'; // 2. Require valid user and video if (!empty($_GET['id']) && isset($User->id)) { $videoID = (int) $_GET['id']; // cast to int for safety $userId = (int) $User->id; try { // 3. Insert view if not already viewed $stmt = $DBO->prepare(" INSERT INTO video_views (user_id, video_id) VALUES (:user_id, :video_id) ON DUPLICATE KEY UPDATE user_id = user_id "); $stmt->execute(['user_id' => $userId, 'video_id' => $videoID]); // 4. If a new row was inserted, increment views if ($stmt->rowCount() > 0) { $updateStmt = $DBO->prepare(" UPDATE user_videos SET views = views + 1 WHERE videoID = :video_id "); $updateStmt->execute(['video_id' => $videoID]); } } catch (PDOException $e) { error_log("DB error: " . $e->getMessage()); and then just add a simple table to the existing db? eg CREATE TABLE video_views ( user_id INT NOT NULL, video_id INT NOT NULL, PRIMARY KEY (user_id, video_id) you could even take it further and make it ip specific though which could also be advantageous
  2. sorry , must have been trying to view when i was in the middle of something , shouldn't be a problem now
  3. much closer to the finished product now but still need some feedback from anyone willing
  4. with the help of @Uridium I've got so much done over the last couple of days game is getting there and the code is clean and responsive still looking for feedback from multiple people so please anyone and everyone let me know good/bad new module ideas/improvements and bugs/exploits really looking to make this one of the easiest and newest engines around on the newest php/database versions so longevity is still ensured once again thanks for the help
  5. ill jump right on it thanks again man - this is why i need some active testers to actually bug / exploit search the game for me , im doing my best but there is always things ill miss
  6. REALLY appreciate the feedback man- after not coding properly for around 5-10 years it was a bit hard getting back into the new way of doing things so has taken me long and still learning some new things, this has been a passion of mine since i was 9 years old ( now 31 ) and to finally start big steps on something i have worked hard on is great PLEASE .... what else would you like to see ??? feature wise .. what do you think people will want / need?
  7. so for the last 3 weeks ive been tirelessly grafting to complete and old project of mine i started way back anyway ive coded every single line and table from the ground up and this is still only the start but ide like some constructive criticism https://meltdown-mafia.co.uk/ fire away game stats casinos ( slots , blackjack , roulette ) profile viewing system points system full secure hashed password system all backend admin controls for easy access to change all packages for points , and all user management features topic updated 07/07/25 08/07/25 added points ( double xp ) 2 ownable casinos ( blackjack and slots ) full property management system gang system including gang only crimes and drug production and travel system which is player ownable
  8. not enough interest/no active playerbase still working on it offline to hopfully release again one day or maybe sell on as a package
  9. look into vma , sure thats what its called , easily adapt full sites to mobile friendly apps suggest @ags_cs4 highly , amazing work , great prices , and will get done exactly what you after
  10. small world , i live round the corner from you , let me know if you need anthing bro
  11. i play mainly werewolf servers , i usualy play in a trio but should drop me a message sometimes ill show you the ropes
  12. 4000hours in rust ..,,,, im not addicted ... just like the taste of it lol 😆
  13. thanks mate ,just wanted to revert back to the old days of timers and endless wipes rather than a round based thing appreciate the feedback thanks mate
×
×
  • Create New...