This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ProductName": "ThermalTake SWAFAN EX", | |
"DisplayName": "SWAFAN EX - 20 LED", | |
"Brand": "ThermalTake", | |
"Type": "FAN", | |
"LedCount": 20, | |
"Width": 15, | |
"Height": 15, | |
"LedMapping": [ | |
7, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |