Skip to content

Instantly share code, notes, and snippets.

View HellBz's full-sized avatar
🏠
Working from home

HellBz HellBz

🏠
Working from home
View GitHub Profile
@HellBz
HellBz / Scum.php
Created June 22, 2023 22:25
This is a GameQ-Class for SCUM, that send a Query to Master-Server from SCUM
<?php
/**
* This file is part of GameQ.
*
* GameQ is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
@HellBz
HellBz / Scum.php
Created June 17, 2023 11:13
This is a GameQ-Class for SCUM, that send a Query to Master-Server from SCUM
<?php
/**
* This file is part of GameQ.
*
* GameQ is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GameQ is distributed in the hope that it will be useful,
@HellBz
HellBz / Scumapi.php
Created April 2, 2020 22:56
This is a Protocoll fur Query SCUM-Server via API of api.hellbz.de
<?php
/**
* This file is part of GameQ.
*
* GameQ is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GameQ is distributed in the hope that it will be useful,
@HellBz
HellBz / example-wp-list-table.php
Created June 21, 2019 11:37 — forked from paulund/example-wp-list-table.php
An example code of using the WP_List_Table class. With Pagination.
<?php
/*
* Plugin Name: Paulund WP List Table Example
* Description: An example of how to use the WP_List_Table class to display data in your WordPress Admin area
* Plugin URI: http://www.paulund.co.uk
* Author: Paul Underwood
* Author URI: http://www.paulund.co.uk
* Version: 1.0
* License: GPL2
*/
@HellBz
HellBz / ts3clock.php
Last active May 7, 2017 18:22
This File Sets 4 Channels to Time (Now) [Require ts3admin.class.php]
<?php
/*
* ts3clock.php
*
* @category Teamspeak 3 Clock
* @author HellBz
* @copyright 2015 HellBz
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link https://gist.github.com/HellBz/2414f4aebbbf28b59e06#file-ts3clock-php
*/
@HellBz
HellBz / antispam.php
Created July 3, 2014 22:04
DZCP-DICE-CAPTCHA - antispam.php
<?php
ob_start();
// Start session if no headers were sent
if(!headers_sent())
{
@session_start();
# Patch by David Vieira-Kurz of majorsecurity.de
#@session_regenerate_id();
if(!isset($_SESSION['PHPSESSID']) || !isset($_COOKIE['PHPSESSID']))
<?php
function db_add_column($database, $column, $column_attr = "VARCHAR( 255 ) NULL" ){
global $db;
$exists = false;
$columns = db("show columns from ".$database);
while($c = _fetch($columns)){
if($c['Field'] == $column){
$exists = true;