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
global $wp_filter; | |
echo '<pre>'; | |
print_r( $wp_filter['wp_title'] ); | |
echo '</pre>'; |
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
00100010 01000001 01101000 00101100 | |
00100000 01101101 01111001 00100000 | |
01101100 01101001 01110100 01110100 | |
01101100 01100101 00100000 01110111 | |
01100001 01110010 01110010 01101001 | |
01101111 01110010 00100001 00100000 | |
01000001 01101110 01100100 00100000 | |
01101000 01101111 01110111 00100000 | |
01100001 01110010 01100101 00100000 | |
01111001 01101111 01110101 00100000 |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
/** MS SQL */ | |
SELECT | |
t.NAME AS TableName, | |
p.[Rows] AS NumRows | |
FROM | |
sys.tables t | |
INNER JOIN | |
sys.indexes i ON t.OBJECT_ID = i.object_id | |
INNER JOIN | |
sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id |
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 | |
// http://wogan.me/2016/02/21/get-system-information-in-laravel-5-1/ | |
$linfo = new \Linfo\Linfo; | |
$parser = $linfo->getParser(); | |
$everything = [ | |
'os' => $parser->getOS(), | |
'cpu' => $parser->getCPU(), |
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 | |
namespace app\controllers; | |
use Yii; | |
use yii\filters\AccessControl; | |
use yii\web\Controller; | |
use yii\filters\VerbFilter; | |
use app\models\LoginForm; | |
use app\models\ContactForm; |
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 | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Foundation\Inspiring; | |
class Inspire extends Command | |
{ | |
/** |
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 | |
$api_url = "https://my.flarum.url/api/users/" . $userid; // See: https://gist.github.com/woganmay/4c15a0f7c16e41ab3a3ea1a73c595bf9 | |
$token = $session->token; // See: https://gist.github.com/woganmay/88f15e96fc019657a0e594366403b5cf | |
// This must be a token for a user with Administrator access | |
$ch = curl_init($api_url); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); |
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 | |
if (isset($_COOKIE['flarum_remember'])) | |
{ | |
$mysql = new mysqli("localhost", "flarum_sql_user", "flarum_sql_pass", "flarum_database"); | |
$result = $mysql->query("SELECT * FROM access_tokens WHERE id = '". $mysql->real_escape_string($_COOKIE['flarum_remember']) ."'"); | |
if ($result->num_rows == 0) | |
{ | |
// Invalid cookie | |
header('Location:https://my.laravel.site/login'); |
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
<script type="text/javascript"> | |
var thisHackInterval = setInterval(function(){ | |
// Check if app is available yet | |
if (typeof(app) == "object") | |
{ | |
// Set app routes to whatever I need | |
// This will repaint the DOM automatically | |
app.routes.settings.path = "https://my.laravel.site/preferences"; |
OlderNewer