- Decode a CS:GO match sharing code with PHP
- Различные скрипты PHP
- UNI GameCMS
- Скрипт рандом продажи вещей CS:GO (копия csgo.ms)
- Ппеределка MONENGINE by RoMaN**Skole
- Новый измененный Sitemap для MONENGINE
- Скрипт онлайн продажи [Steam] магазин 2015
- Движок сайта [Last ver. / офф.слив] by mirror v 1.4
- Модуль Регистрация+авторизация для MonEngine
- Saved searches
- Use saved searches to filter your results more quickly
- aserty/Counter-Strike-1.6-Panel-php
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- OskarStark/php-cs-fixer-ga
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- Saved searches
- Use saved searches to filter your results more quickly
- OskarStark/php-cs-fixer-ga
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
Decode a CS:GO match sharing code with PHP
I am trying to build a function which decodes a CS:GO match sharing code. I have seen enough examples but everyhting is in JS or C# but nothing in PHP. I took the akiver demo manager as an example and i tried to replicate it in PHP. I am going bit blind because i have no idea what is the output on a certain points so i can only hope that the result will be what i expect it to be. I think i am on the right path, the problem comes when the bytes have to be created/interpeted/converted to the desire outcome. The code that should be decoded is the following: ‘CSGO-oPRbA-uTQuR-UFkiC-hYWMB-syBcO’ ( $getNextGame variable) The result should be 3418217537907720662 My code so far:
/** * @param $getNextGame * @return array */ public function decodeDemoCode(string $getNextGame): array < $shareCodePattern = "/CSGO(-?[\w])$/"; if (preg_match($shareCodePattern, $getNextGame) === 1) < $result = []; $bigNumber = 0; $matchIdBytes = $outcomeIdBytes = $tvPortIdBytes = []; $dictionary = "ABCDEFGHJKLMNOPQRSTUVWXYZabcdefhijkmnopqrstuvwxyz23456789"; $dictionaryLength = strlen($dictionary); $changedNextGame = str_replace(array("CSGO", "-"), "", $getNextGame); $chars = array_reverse(str_split($changedNextGame)); foreach ($chars as $char) < $bigNumber = ($bigNumber * $dictionaryLength) + strpos($dictionary, $char); >> >
$packed = unpack("C*", $bigNumber); $reversedPacked = array_reverse($packed);
array(17 items) 0 => 51 (integer) 1 => 52 (integer) 2 => 43 (integer) 3 => 69 (integer) 4 => 50 (integer) 5 => 48 (integer) 6 => 52 (integer) 7 => 49 (integer) 8 => 48 (integer) 9 => 55 (integer) 10 => 51 (integer) 11 => 50 (integer) 12 => 52 (integer) 13 => 54 (integer) 14 => 56 (integer) 15 => 46 (integer) 16 => 49 (integer)
Now here i am not really sure what to do because i do not completely understand C# and i have never worked with bytes in PHP before. Generally the return type should be an array and would look something like that:
$result = [ matchId => 3418217537907720662, reservationId => 3418217537907720662, tvPort => 55788 ];
Различные скрипты PHP
Различные скрипты PHP — тут можно найти всяческие скриптики которые как то связаны с cs 1.6 , дополнения и модули которые могут пригодится вам в повседневном использование , описывать какие скрипты нет смысла , потому что их много и они разные.
UNI GameCMS
Всегда мечтали открыть свой игровой сервер? А может Вы уже его открыли и не знаете, как сделать онлайн продажу привилегий.
Скрипт рандом продажи вещей CS:GO (копия csgo.ms)
Скрипт рандомной продажи вещей из CS:GO , наверное каждый игрок в csgo видел сайты которые продают вещи из CS:GO , такие сайты частенько рекламирую на youtube , а админы таких сайтов гребут бабло лопатой , не смотря на то , что большая часть магазинов , пустышки! Сейчас таких магазинов расплодилось очень много и многие хотели бы себе такой скрипт , но не у всех была.
Ппеределка MONENGINE by RoMaN**Skole
Новый измененный Sitemap для MONENGINE
На сайте cscontrol присутствует этот скрипт но тот скрипт был простоватенький выложил свою версию новую изменений вид. Подробней установку и настройку читать в описаний.
Скрипт онлайн продажи [Steam] магазин 2015
Всем привет дорогие друзья не давно я выложил скрипт «Движок Boost [cs 1.6] с новым дизайном 2015» и решил на этом не останавливаться! Вот вам новый скрипт «Steam магазин 2015» а сейчас чуть-чуть о скрипте.
Движок сайта [Last ver. / офф.слив] by mirror v 1.4
Отличный движок сайта для CS 1.6 , самописная версия от miRror , большинство уже видела данный движок , а некоторые даже купили , но всему есть свое время и mirror сам слил свой движок в публичный доступ , не знаю что его на это подтолкнуло , но большинство клиентов который покупали (напомню цену : 3000 руб.) были в разочарование. До этого тоже были сливы движка от его.
Модуль Регистрация+авторизация для MonEngine
Модуль регистрации и авторизации для движка мониторинга MonEngine , естественно присутствует личный кабинет , те кто давно пользуется этим движком , думаю будут рады вот таким небольшим обновлением.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
Counter Strike 1.6 Panel php
aserty/Counter-Strike-1.6-Panel-php
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
Counter Stirke 1.6 Panel Online (php)
Counter Stirke 1.6 Panel Online — Beta. Este script es un panel creado en PHP capaz de controlar un servidor de Counter Strike atraves de su pass RCON.
Dentro de la carpeta advanced/ se encuentra el panel con un estilo precargado (css y html) utilizando Smarty, pero a este le faltan funciones. Se debe configurar en system/config.php algunos datos. Esta versión «completa» se encuentra en español y ingles usando los sitemas de traducción de Smarty php.
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
GithubAction for PHP-CS-Fixer
OskarStark/php-cs-fixer-ga
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub Action with your project
Add this Action to an existing workflow or create a new one.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
GitHub Action for PHP-CS-Fixer
NOTE: If you didn’t create a .php-cs-fixer.dist.php file, do that first before adding this workflow. An example of this file created by the creators of PHP-CS-Fixer can be found here.
You can use it as a GitHub Action like this:
# .github/workflows/lint.yml on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga
To use a custom config, e.g. —diff and —dry-run options:
# .github/workflows/lint.yml on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga + with: + args: --config=.project.php_cs --diff --dry-run
Add .php-cs-fixer.cache to .gitignore , then:
on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 with: path: .php-cs-fixer.cache key: $>-$>-phpcsfixer-$> restore-keys: | $>-$>-phpcsfixer- - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga
You can copy/paste the .github/ folder (under examples/ ) to your project and that’s all!
A Docker image is built automatically and located here: https://hub.docker.com/r/oskarstark/php-cs-fixer-ga
You can run it in any given directory like this:
docker run --rm -it -w=/app -v $ :/app oskarstark/php-cs-fixer-ga:latest
A picture is worth a thousand words
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
GithubAction for PHP-CS-Fixer
OskarStark/php-cs-fixer-ga
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub Action with your project
Add this Action to an existing workflow or create a new one.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
GitHub Action for PHP-CS-Fixer
NOTE: If you didn’t create a .php-cs-fixer.dist.php file, do that first before adding this workflow. An example of this file created by the creators of PHP-CS-Fixer can be found here.
You can use it as a GitHub Action like this:
# .github/workflows/lint.yml on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga
To use a custom config, e.g. —diff and —dry-run options:
# .github/workflows/lint.yml on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga + with: + args: --config=.project.php_cs --diff --dry-run
Add .php-cs-fixer.cache to .gitignore , then:
on: [push, pull_request] name: Main jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: actions/cache@v3 with: path: .php-cs-fixer.cache key: $>-$>-phpcsfixer-$> restore-keys: | $>-$>-phpcsfixer- - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga
You can copy/paste the .github/ folder (under examples/ ) to your project and that’s all!
A Docker image is built automatically and located here: https://hub.docker.com/r/oskarstark/php-cs-fixer-ga
You can run it in any given directory like this:
docker run --rm -it -w=/app -v $ :/app oskarstark/php-cs-fixer-ga:latest
A picture is worth a thousand words