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 | |
/* | |
* comments.php | |
* | |
* Copyright 2012 kib <[email protected]> | |
* | |
* | |
* | |
*/ |
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 | |
/** | |
* MODX FormLog hook to store formIt data in a jSon log file | |
* | |
* @author Kilian Bohnenblust (sofasurfer.org) | |
* @example [[!FormIt? | |
* &hooks=`spam,formlog,email,redirect` | |
* &logfile=`[[++base_path]]assets/data/form-contact.log` | |
* | |
*/ |
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
# MODX Redmine Virtual Host Config | |
# @sofasurfer.org | |
server { | |
listen 80; | |
server_name *.mymodx.com *.amazonaws.com; | |
root /var/www/mymodx; | |
index index.php; | |
client_max_body_size 30M; |
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
# NGINX WordPress Virtual Host Config | |
# @sofasurfer.org | |
server { | |
listen 80; | |
server_name *.mywordpress.com; | |
root /var/www/mywordpress/; | |
index index.php; | |
client_max_body_size 30M; |
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
# NGINX Redmine Virtual Host Config | |
# @sofasurfer.org | |
server { | |
listen 80; | |
server_name *.myredmine.com; | |
location / { | |
proxy_pass http://127.0.0.1:3000; | |
} | |
} |
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
<html> | |
<header> | |
<style> | |
.logo svg path{ | |
fill: aqua!important; | |
} | |
</style> | |
</header> | |
<bod> |
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 | |
/** | |
* Disable the Plugin and Theme Editor. | |
* | |
* Occasionally you may wish to disable the plugin or theme editor to prevent overzealous users from being able to edit | |
* sensitive files and potentially crash the site. Disabling these also provides an additional layer of security if a hacker | |
* gains access to a well-privileged user account. | |
* | |
* @see https://codex.wordpress.org/Editing_wp-config.php#Disable_the_Plugin_and_Theme_Editor | |
*/ |
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 | |
/* | |
Retrieves twitter feed | |
*/ | |
class SocialFeed { | |
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 | |
// Load WP Core | |
require_once( dirname(".") . "/cms/wp-load.php" ); | |
// Load race jSon | |
$races_string = file_get_contents("races.json"); | |
$races_json = json_decode($races_string, true); |
OlderNewer