This file contains hidden or 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 | |
require_once 'gn21cookie.php'; | |
//Encrypt and set the cookie | |
\GN21Session::encrypt( array( | |
'networkId'=>123, | |
'membershipLevel'=>'gold', | |
'clubId'=>2, | |
), true); |
This file contains hidden or 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 | |
/* | |
List of available WordPress permissions as of version 4.3.1 | |
Copied, and cleaned from: https://codex.wordpress.org/Roles_and_Capabilities | |
*/ | |
$allPermissions = array( | |
'manage_network', | |
'manage_sites', | |
'manage_network_users', |
This file contains hidden or 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
#!/bin/bash -x | |
role=players-api | |
env=prod | |
longEnv=Production | |
region=us-east-1 | |
targetFilter="players" | |
# Check if in running state | |
is_running() { |