Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created January 12, 2010 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerhard/274978 to your computer and use it in GitHub Desktop.
Save gerhard/274978 to your computer and use it in GitHub Desktop.
+++ modified
@@ -24,7 +24,7 @@
unset($atts['show_error'], $atts['show_input']);
$zem_contact_form_id = md5(serialize($atts).preg_replace('/[\t\s\r\n]/','',$thing));
- $zem_contact_submit = (ps('zem_contact_form_id') == $zem_contact_form_id);
+ $zem_contact_submit = (gps('zem_contact_form_id') == $zem_contact_form_id);
if (!is_callable('mail'))
{
@@ -41,7 +41,7 @@
$headers_sent = true;
}
- $nonce = mysql_real_escape_string(ps('zem_contact_nonce'));
+ $nonce = mysql_real_escape_string(gps('zem_contact_nonce'));
$renonce = false;
if ($zem_contact_submit)
@@ -327,7 +327,7 @@
if ($zem_contact_submit)
{
- $value = trim(ps($name));
+ $value = trim(gps($name));
$utf8len = preg_match_all("/./su", $value, $utf8ar);
$hlabel = htmlspecialchars($label);
@@ -404,7 +404,7 @@
if ($zem_contact_submit)
{
- $value = preg_replace('/^\s*[\r\n]/', '', rtrim(ps($name)));
+ $value = preg_replace('/^\s*[\r\n]/', '', rtrim(gps($name)));
$utf8len = preg_match_all("/./su", ltrim($value), $utf8ar);
$hlabel = htmlspecialchars($label);
@@ -472,7 +472,7 @@
if (empty($name)) $name = zem_contact_label2name($label);
- $email = $zem_contact_submit ? trim(ps($name)) : $default;
+ $email = $zem_contact_submit ? trim(gps($name)) : $default;
if ($zem_contact_submit and strlen($email))
{
@@ -539,7 +539,7 @@
if ($zem_contact_submit)
{
- $value = trim(ps($name));
+ $value = trim(gps($name));
if (strlen($value))
{
@@ -598,7 +598,7 @@
if ($zem_contact_submit)
{
- $value = (bool) ps($name);
+ $value = (bool) gps($name);
if ($required and !$value)
{
@@ -694,7 +694,7 @@
if ($zem_contact_submit)
{
- $is_checked = (ps($name) == $id);
+ $is_checked = (gps($name) == $id);
if ($is_checked or $checked and !isset($zem_contact_values[$name]))
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment