sudo yum install epel-release
sudo yum update
sudo yum install certbot
sudo yum install nginx
sudo systemctl start nginx
<?php | |
function decode_session($data){ | |
$temp = $_SESSION; | |
session_decode($data); | |
$out = $_SESSION; | |
$_SESSION = $temp; | |
return $out; | |
} |
<?php | |
//My ACF Fields for reference | |
//testimonials - field group | |
//testimonial - sub-field | |
//testimonial_header - sub-field | |
//First Repeater Row in Array | |
$rows = get_field( 'testimonials', 348 );// grab all rows from page ID |
<?php // used here only for enabling syntax highlighting. Leave this out if it's already included in your plugin file. | |
// define the actions for the two hooks created, first for logged in users and the next for logged out users | |
add_action("wp_ajax_my_user_like", "my_user_like"); | |
add_action("wp_ajax_nopriv_my_user_like", "please_login"); | |
// define the function to be fired for logged in users | |
function my_user_like() { | |
// nonce check for an extra layer of security, the function will exit if it fails |
<?php | |
/** | |
* The base configuration for WordPress | |
* | |
* The wp-config.php creation script uses this file during the | |
* installation. You don't have to use the web site, you can | |
* copy this file to "wp-config.php" and fill in the values. | |
* | |
* This file contains the following configurations: | |
* |
<?php | |
// Version CSS file in a theme | |
wp_enqueue_style( | |
'theme-styles', | |
get_stylesheet_directory_uri() . '/style.css', | |
array(), | |
filemtime( get_stylesheet_directory() . '/style.css' ) | |
); |
# Feel free to change this path of course (and keys_zone value as well, but also change the usage of it below). | |
proxy_cache_path /var/www/cache/resized levels=1:2 keys_zone=resizedimages:10m max_size=1G; | |
# Gzip was on in another conf file of mine...You may need to uncomment the next line. | |
#gzip on; | |
gzip_disable msie6; | |
gzip_static on; | |
gzip_comp_level 4; | |
gzip_proxied any; | |
# Again, be careful that you aren't overwriting some other setting from another config's http {} section. |
# Centos 7.1 | |
yum -y install wget | |
wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm | |
rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm | |
yum -y install deluge-web | |
systemctl start deluge-web | |
systemctl stop firewalld |