Skip to content

Instantly share code, notes, and snippets.

View Mo45's full-sized avatar
💭
I may be slow to respond.

Kirill Krasin Mo45

💭
I may be slow to respond.
View GitHub Profile
@Mo45
Mo45 / steamauth.php
Last active November 26, 2020 07:01
<?php
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
function logoutbutton() {
echo "<form action='' method='get'><button name='logout' type='submit'>Logout</button></form>"; //logout button
}
function loginbutton($buttonstyle = "square") {
@Mo45
Mo45 / index.html
Created July 7, 2020 10:47
Xbox Live Games Library - Vue.JS Parsing Example
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#0f720f">
<link href="https://unpkg.com/[email protected]/nprogress.css" rel="stylesheet" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<link rel="stylesheet" href="xbox.app.min.css">
@Mo45
Mo45 / top.php
Created August 28, 2019 08:38
Rust-Server-Website-Template — Using image instead of text
<?php if(CONF_BGVID == "ON"){ ?>
<section class="face">
<!-- Specify the path to your video file, because this is video from Facepunch website :) -->
<div class="fullvideo">
<video preload="auto" autoplay="autoplay" muted="muted" loop="loop" playsinline="">
<source type="video/mp4" src="<?php echo SITE_URL; ?>/bg.mp4">
</video>
</div>
<?php ;}else{ ?>
<section class="face" style="background-image: url( '<?php echo SITE_URL; ?>/img/bg_0.jpg' );">
@Mo45
Mo45 / PHPMailer.php
Last active May 27, 2021 04:33
Rust-Server-Website-Template — How to use PHPMailer Example
<?php
/**
* PHPMailer - PHP email creation and transport class.
* PHP Version 5.5.
*
* @see https://github.com/PHPMailer/PHPMailer/ The PHPMailer GitHub project
*
* @author Marcus Bointon (Synchro/coolbru) <[email protected]>
* @author Jim Jagielski (jimjag) <[email protected]>
* @author Andy Prevost (codeworxtech) <[email protected]>
@Mo45
Mo45 / class-search.php
Last active December 28, 2022 17:55 — forked from arsonus/class-search.php
A PHP script to search a MySQL database
<?php
/**
* Performs a search
*
* This class is used to perform search functions in a MySQL database
*
* @version 1.2
* @author John Morris <[email protected]>
* @author Kirill Krasin <[email protected]>
*/
@Mo45
Mo45 / iptv-channels-list.php
Created December 11, 2018 09:15
Fetch and display channels list from IPTV playlist (*.m3u)
<!DOCTYPE html>
<html>
<head>
<title>IPTV Channels</title>
</head>
<body>
<ul>
<?php
$file = './list.m3u'; //IPTV-playlist
@Mo45
Mo45 / cpc-figure-figcaption.markdown
Created June 19, 2018 10:49
CPC: Figure & Figcaption

CPC: Figure & Figcaption

Figure with figcaption for blog post image. Smooth transition and clip path included.

A Pen by Kirill on CodePen.

License.

@Mo45
Mo45 / discord.msg.send.php
Last active September 2, 2024 14:57
PHP - Send message to Discord via Webhook
<?php
//=======================================================================================================
// Create new webhook in your Discord channel settings and copy&paste URL
//=======================================================================================================
$webhookurl = "YOUR_WEBHOOK_URL";
//=======================================================================================================
// Compose message. You can use Markdown
// Message Formatting -- https://discordapp.com/developers/docs/reference#message-formatting
@Mo45
Mo45 / game.js
Last active June 1, 2017 10:41 — forked from seishun/givebadgeplz.js
var fs = require('fs');
var Steam = require('steam');
var bot = new Steam.SteamClient();
bot.logOn({
accountName: 'username', //Username
password: 'password', //Password
authCode: 'code', // Steam Guard
shaSentryfile: fs.readFileSync('sentry')
});