Skip to content

Instantly share code, notes, and snippets.

@anstak
anstak / cf7-sendpulse.php
Created March 3, 2017 14:53 — forked from smartdeal/cf7-sendpulse.php
пример интеграции wordpress contact form 7 и sendpulse
<?php
function add_email_to_sendpulse($contact_form) {
$wpcf7 = WPCF7_ContactForm::get_current();
$submission = WPCF7_Submission::get_instance();
$data = $submission->get_posted_data();
$cur_email = $data['Email'];
if ($cur_email != '') {
define( 'API_USER_ID', '' );
@anstak
anstak / gist:045d2f79934b3eea171fd2198feff4a5
Last active May 29, 2023 05:01 — forked from seanmcn/gist:62a021a765ad4f8e593b
The Perfect Web Server - Nginx, Ajenti, Ubuntu
#Insall Ajenti
apt-get update
wget http://repo.ajenti.org/debian/key -O- | apt-key add -
echo "deb http://repo.ajenti.org/ng/debian main main ubuntu" >> /etc/apt/sources.list
apt-get update
apt-get install ajenti
service ajenti restart
# Uninstall Apache2