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
/** | |
* CUSTOM_CODE Machform Integration code. | |
* | |
* @since Twenty Fifteen 1.0 | |
*/ | |
add_action('init', 'machformGetUser', 1); | |
add_action('wp_logout', 'machformEndSession'); | |
add_action('wp_login', 'machformStartSession', 10, 2); | |
function machformGetUser() { |
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 | |
/* | |
Plugin Name: Formidable Forms UUID | |
Plugin URI: https://gist.github.com/ano/95f19663a9cf8126eca2009c970d7c24 | |
Description: Creates entry keys as UUIDv4 unique identifiers on form save. | |
Version: 1.0.0 | |
Author: Ano Tisam | |
Author URI: https://www.linkedin.com/in/ano-tisam-19b50614/ | |
License: GPL2 | |
License URI: https://www.gnu.org/licenses/gpl-2.0.html |
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
/* | |
* Common meta data fields for Machform | |
*/ | |
ALTER TABLE `table_name` | |
ADD `user_id` int(11) DEFAULT NULL, | |
ADD `user_level_id` int(11) DEFAULT NULL, | |
ADD `user_group_id` int(11) DEFAULT NULL, | |
ADD `ipaddress` varchar(255) COLLATE utf8_bin DEFAULT NULL, | |
ADD `date_published` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, | |
ADD `date_updated` datetime DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP; |
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 | |
/******************************************************************************** | |
MachForm | |
Copyright 2007-2016 Appnitro Software. This code cannot be redistributed without | |
permission from http://www.appnitro.com/ | |
More info at: http://www.appnitro.com/ | |
********************************************************************************/ | |
require('includes/init.php'); |
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 | |
/** | |
* QR Code + Logo Generator | |
* | |
* Description: Accepts a form_id and entry_id parameter and creates a QRCode Link from that. | |
* Author: Ano Tisam | |
* Email: an0tis@gmail.com | |
* Orginal: https://gist.github.com/NTICompass/1283249 | |
*/ |
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
# install certbot, ONLY if not installed | |
apt-get update | |
apt-get install python-certbot-apache -t jessie-backports | |
# Run Update Manually on the Command Line | |
certbot renew |
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 | |
// Page Loading event | |
function Page_Loading() { | |
//echo "Page Loading"; | |
} | |
/* | |
CUSTOM_CODE | |
----------- | |
Author: Ano Tisam |
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 | |
/** | |
* MACHFORM INTEGRATION | |
*/ | |
define("MACHFORM_BASE", "../../"); | |
require_once(MACHFORM_BASE . "config.php"); | |
//Find and Replace the $EW_CONN["DB"] variable with this | |
$EW_CONN["DB"] = array("conn" => NULL, "id" => "DB", "type" => "MYSQL", "host" => MF_DB_HOST, "port" => 3306, "user" => MF_DB_USER, "pass" => MF_DB_PASSWORD, "db" => MF_DB_NAME, "qs" => "`", "qe" => "`"); |
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
/* | |
Author: Ano Tisam | |
Description: A custom database table that can be added to the Machform database to enable 1 to many relationships between lookup fields (dropdown, checkboxes, radio) | |
Date: 2015-03-09 16:31:51 | |
*/ | |
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- | |
-- Table structure for ap_custom_link |
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 | |
/* | |
CUSTOM_CODE | |
----------- | |
Author: Ano Tisam | |
Date: 09/03/2015 | |
Description: PHP Library of functions to enable 1:M database relational database features in Machform Form Builder. | |
*/ |
OlderNewer