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
/* Global */ | |
/* Global: reset */ | |
html, body, div, span, applet, object, iframe, | |
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | |
a, abbr, acronym, address, big, cite, code, | |
del, dfn, em, img, ins, kbd, q, s, samp, | |
small, strike, strong, sub, sup, tt, var, | |
b, u, i, center, | |
dl, dt, dd, ol, ul, li, |
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
diff --git a/webform_encrypt.module b/webform_encrypt.module | |
index c74b862..16f8a8e 100644 | |
--- a/webform_encrypt.module | |
+++ b/webform_encrypt.module | |
@@ -90,8 +90,16 @@ function webform_encrypt_webform_component_presave(&$component) { | |
function webform_encrypt_webform_submission_presave($node, &$submission) { | |
foreach ($submission->data as $cid => $entry) { | |
if (!empty($node->webform['components'][$cid]['extra']['encrypt'])) { | |
- foreach ($submission->data[$cid]['value'] as $delta => $value) { | |
- $submission->data[$cid]['value'][$delta] = encrypt($entry['value'][$delta], array('base64' => TRUE)); |
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
#!/bin/sh | |
# Config for SSL. | |
echo "--- Making SSL Directory ---" | |
mkdir /etc/nginx/ssl | |
echo "--- Copying $i SSL crt and key ---" | |
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com" | |
echo "--- Turning SSL on in nginx.conf. ---" |