Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
Game source /
core /
app /
Games /
Delete
Unzip
Name
Size
Permission
Date
Action
AndarBahar.php
3.99
KB
-rw-r--r--
2025-06-21 12:57
BlackJack.php
6.12
KB
-rw-r--r--
2025-03-04 12:16
CardFinding.php
859
B
-rw-r--r--
2025-06-22 07:28
CasinoDice.php
1.45
KB
-rw-r--r--
2025-02-23 11:39
ColorPrediction.php
2.5
KB
-rw-r--r--
2025-06-21 14:16
CrazyTimes.php
2.75
KB
-rw-r--r--
2025-06-21 13:49
DiceRolling.php
1
KB
-rw-r--r--
2025-06-22 07:31
DreamCatcher.php
9.78
KB
-rw-r--r--
2025-06-22 08:55
Game.php
12.61
KB
-rw-r--r--
2025-07-09 08:56
GamePlayer.php
2.45
KB
-rw-r--r--
2025-06-21 11:15
HeadTail.php
823
B
-rw-r--r--
2025-06-22 07:41
Keno.php
2.6
KB
-rw-r--r--
2025-06-22 07:45
Mines.php
4.3
KB
-rw-r--r--
2025-06-22 07:47
NumberGuess.php
2.7
KB
-rw-r--r--
2025-06-21 15:16
NumberSlot.php
3.79
KB
-rw-r--r--
2025-04-21 12:05
Poker.php
14.58
KB
-rw-r--r--
2025-06-21 14:21
PoolNumber.php
1.04
KB
-rw-r--r--
2025-06-21 15:20
RockPaperScissors.php
1.33
KB
-rw-r--r--
2025-06-22 07:38
Roulette.php
2.51
KB
-rw-r--r--
2025-03-18 14:08
SpinWheel.php
1.11
KB
-rw-r--r--
2025-06-22 07:35
Save
Rename
<?php namespace App\Games; use App\Constants\Status; class AndarBahar extends Game { protected $alias = 'andar_bahar'; protected $extraValidationRule = [ 'choose' => 'required|in:andar,bahar' ]; protected function deck() { $suits = ['H', 'D', 'C', 'S']; $ranks = range(2, 10); $faceCards = ['J', 'Q', 'K', 'A']; $deck = []; foreach ($suits as $suit) { foreach ($ranks as $rank) { $deck[] = "{$rank}-{$suit}"; } foreach ($faceCards as $face) { $deck[] = "{$face}-{$suit}"; } } return $deck; } protected function winLoss() { $probableWin = $this->demoPlay ? $this->game->probable_win_demo : $this->game->probable_win; $random = mt_rand(0, 100); if ($random <= $probableWin) { $winLossData['win_status'] = Status::WIN; $winLossData['result'] = $this->request->choose; } else { $winLossData['win_status'] = Status::LOSS; $winLossData['result'] = $this->request->choose == 'andar' ? 'bahar' : 'andar'; } return $winLossData; } protected function sendTempResultCard($card, $deck, $randomCard) { if ($card[0] != $randomCard[0]) { return $card; } return $this->sendTempResultCard(array_pop($deck), $deck, $randomCard); } protected function gameResult() { $deck = $this->deck(); shuffle($deck); $randomCard = array_pop($deck); $andarCards = []; $baharCards = []; $turn = 'andar'; $winLossData = $this->winLoss(); $maxIterations = 50; $iteration = 0; while (!empty($deck) && $iteration < $maxIterations) { $iteration++; $drawnCard = array_pop($deck); if ($turn === 'andar') { $andarCards[] = $drawnCard; if ($drawnCard[0] == $randomCard[0]) { if ($winLossData['win_status'] == Status::WIN && $this->request->choose == 'andar') { break; } else { if ($this->request->choose == 'bahar' && $winLossData['win_status'] == Status::LOSS) { break; } else { $tempResultCard = array_pop($andarCards); $newCard = $this->sendTempResultCard(array_pop($deck), $deck, $randomCard); if ($newCard !== null) { $andarCards[] = $newCard; $deck[] = $tempResultCard; } } } } $turn = 'bahar'; } else { $baharCards[] = $drawnCard; if ($drawnCard[0] == $randomCard[0]) { if ($winLossData['win_status'] == Status::WIN && $this->request->choose == 'bahar') { break; } else { if ($this->request->choose == 'andar' && $winLossData['win_status'] == Status::LOSS) { break; } else { $tempResultCard = array_pop($baharCards); $newCard = $this->sendTempResultCard(array_pop($deck), $deck, $randomCard); if ($newCard !== null) { $baharCards[] = $newCard; $deck[] = $tempResultCard; } } } } $turn = 'andar'; } } $this->extraResponseOnStart = array_merge($this->extraResponseOnStart, [ 'randomCard' => $randomCard, 'andarCards' => $andarCards, 'baharCards' => $baharCards ]); return $winLossData; } }