-
Posts
2,130 -
Joined
-
Last visited
-
Days Won
145
Content Type
Profiles
Forums
Events
Everything posted by Magictallguy
-
Not quite what he was asking. He's after the brain bit behind it (the bit on your site)
-
Are you wanting to work with someone, or are they working for you?
-
The original image is an SVG. PHP doesn't have any native image handling libraries and GD (usually compiled with PHP by default these days) can't support the SVG format. If you've got Imagick installed, then you're good to go. If not, then I recommend a 3rd party service such as CloudConvert, they have an API exposed (in a format you're more accustomed to, Sim) that allows you to convert on-demand from within your own site.
-
This is also not a bug. In most casinos that support the 5-card trick, the dealer can't benefit from it. I have little-to-no experience with GL, so I can't direct you to the exact line. I theorise that it may simply be the order of processing - if the dealer's hand is checked before the player's hand, for example
-
Your Marketplace listing has been restored 🙂
-
Example implementation: 2020-08-27_09-25-22.mp4
-
I think it needs to not be using real-world bank names
-
Your 'tradelogs' case in staff_logs.php is missing a colon. Simply add the missing colon. The missing column (trMONEY) doesn't exist in trades_logs. The equivalent appears to be trGOLD. Based on the implementation, I recommend you change the table structure to match. ALTER TABLE trades_logs CHANGE trGOLD trMONEY BIGINT NOT NULL DEFAULT 0;
-
Check your error log. A 500 can be thrown for a variety of reasons - your first port of call should always be your error log
-
Uh, no. You're compounding it here. The site is the API. The API doesn't support what you're after. I scraped the form to make using the API easier for you.
-
Their API doesn't support that. A quick scrape of their form, however, would suit your needs. Here, I'll even build the array for you All options that were available at the time of writing: $avatarConf = [ 'top' => [ 'NoHair', 'Eyepatch', 'Hat', 'Hijab', 'Turban', 'WinterHat1', 'WinterHat2', 'WinterHat3', 'WinterHat4', 'LongHairBigHair', 'LongHairBob', 'LongHairBun', 'LongHairCurly', 'LongHairCurvy', 'LongHairDreads', 'LongHairFrida', 'LongHairFro', 'LongHairFroBand', 'LongHairNotTooLong', 'LongHairShavedSides', 'LongHairMiaWallace', 'LongHairStraight', 'LongHairStraight2', 'LongHairStraightStrand', 'ShortHairDreads01', 'ShortHairDreads02', 'ShortHairFrizzle', 'ShortHairShaggyMullet', 'ShortHairShortCurly', 'ShortHairShortFlat', 'ShortHairShortRound', 'ShortHairShortWaved', 'ShortHairSides', 'ShortHairTheCaesar', 'ShortHairTheCaesarSidePart', ], 'accessories' => [ 'Blank', 'Kurt', 'Prescription01', 'Prescription02', 'Round', 'Sunglasses', 'Wayfarers', ], 'hair-colours' => [ 'Auburn', 'Black', 'Blonde', 'BlondeGolden', 'Brown', 'BrownDark', 'PastelPink', 'Platinum', 'Red', 'SilverGray', ], 'facial-hair' => [ 'Blank', 'BeardMedium', 'BeardLight', 'BeardMagestic', 'MoustacheFancy', 'MoustacheMagnum', ], 'clothes' => [ 'BlazerShirt', 'BlazerSweater', 'CollarSweater', 'GraphicShirt', 'Hoodie', 'Overall', 'ShirtCrewNeck', 'ShirtScoopNeck', 'ShirtVNeck', ], 'eyes' => [ 'Close', 'Cry', 'Default', 'Dizzy', 'EyeRoll', 'Happy', 'Hearts', 'Side', 'Squint', 'Surprised', 'Wink', 'WinkWacky', ], 'eyebrow' => [ 'Angry', 'AngryNatural', 'Default', 'DefaultNatural', 'FlatNatural', 'RaisedExcited', 'RaisedExcitedNatural', 'SadConcerned', 'SadConcernedNatural', 'UnibrowNatural', 'UpDown', 'UpDownNatural', ], 'mouth' => [ 'Concerned', 'Default', 'Disbelief', 'Eating', 'Grimace', 'Sad', 'ScreamOpen', 'Serious', 'Smile', 'Tongue', 'Twinkle', 'Vomit', ], 'skin' => [ 'Tanned', 'Yellow', 'Pale', 'Light', 'Brown', 'DarkBrown', 'Black', ], ];
-
That site is the API. Send a GET request to it in order to receive data. API, done.
-
-
I agree - for the expected use of it; might not mean much to a user specifically searching for weakness.
-
Perhaps you have suggestions on how to improve it?
-
Line 209: if($_POST['crys'] || $_POST['cash'] || $_POST['item'] || $_POST['rcrys'] || $_POST['rcash'] || $_POST['ritem']) { Your POST data hasn't been verified (or sanitised!). For your immediate fix: Ensure each key exists in the POST array Further processing: Recommend you check what's actually coming in - content types (at a guess, looks like all types are supposed to be int), content values (if int, then positive whole numbers), whether the referenced POST data exists (if $_POST['item'] equates something in your items table, for example.) Personally, here, I'd cheat a little.. $nums = ['crys', 'cash', 'item', 'rcrys', 'rcash', 'ritem']; foreach ($nums as $num) { $_POST[$num] = array_key_exists($num, $_POST) && is_numeric($_POST[$num]) && $_POST[$num] > 0 ? (int)$_POST[$num] : null; }
-
Depends on what's running before it, this snippet might result in an undefined index warning on lang. Simply verify its existence. if(array_key_exists('lang', $_GET) && in_array($_GET['lang'], $available_langs)) { $_SESSION['lang'] = $_GET['lang']; // Set session }
-
Cloudflare's having problems
-
Ya know what could solve that? Visiting Gravatar Gravatar is not an image editing service. It's a "match avatar to email if we can" service. So no, you can't edit images on Gravatar. You can, however, upload them directly
-
Strictly speaking, that line of code is fine. Whatever is being passed into the `parsings` array is the issue
-
How to integrate SMF into any McCodes Package
Magictallguy replied to sniko's topic in Free Modifications
MCCv2 is still supported, yes. This implementation, however, was written in v1 style with hardcoded calls to mysql_*() functions. I'm aware that @PHPStudent is running on PHP7.4.8 (support request). It's not the engines at fault, but the date of the snippets release - it's too old (as-is) to run on PHPStudent's system. -
How to integrate SMF into any McCodes Package
Magictallguy replied to sniko's topic in Free Modifications
This topic was originally created in 2012. SMF has been updated countless times since - as has PHP. In PHP7.4.8 (what you're using), mysql_*() functions have been completely removed. Long story short, this snippet will no longer work -
That's not a bug. Dealer shows the higher-value hand as achieved blackjack in less cards. In some casinos, a 5-card trick can override this.
-
mccode-v2 CSS Administration System [$10]
Magictallguy replied to Magictallguy's topic in Paid Modifications
I'm glad you do, because I don't! 😄