diff -r 6b96085291d7 -r fb7cd02b9848 web/wp-content/plugins/ggis-subscribe/ggis-subscribe.php --- a/web/wp-content/plugins/ggis-subscribe/ggis-subscribe.php Tue Jan 05 09:48:24 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,558 +0,0 @@ -formAction = 'http://dvector.com/ggis_wp-subscribe.php'; -// $this->formAction = WP_PLUGIN_URL . '/ggis_wp-subscribe.php'; - } - function addHeaderCode(){ - echo ''; - } - - // OUTPUT FUNCTIONS - var $processing_unit_tag; - var $processing_within; - var $unit_count; - var $widget_count; - var $regex; - function the_content_filter($content) { - $this->processing_within = 'p' . get_the_ID(); - $this->unit_count = 0; - - - $regex = '/\[-\s*ggis-subscribe\s*(\d+)?\s*(".*")?\s*-\]/'; -// $regex = '/\[-\s*ggis-subscribe\s+(\d+)(?:\s+.*?)?\s*-\]/'; // [-ggis-subscribe 1 -] -// $regex = '//'; - return preg_replace_callback($regex, array(&$this, 'the_content_filter_callback'), $content); - - $this->processing_within = null; - } - - function widget_text_filter($content) { - $this->widget_count += 1; - $this->processing_within = 'w' . $this->widget_count; - $this->unit_count = 0; - - $regex = '/\[-\s*ggis-subscribe\s*(\d+)?\s*(".*")?\s*-\]/'; - return preg_replace_callback($regex, array(&$this, 'the_content_filter_callback'), $content); - - $this->processing_within = null; - } - - function the_content_filter_callback($matches) { - - // GET AND SET VARIABLES - $list_select = ''; - $listonly = NULL; - $options = unserialize( get_option( 'ggis-Subscribe')); - $options['maillists'] = explode( ',', $options['maillists'] ); - $id = (int) $matches[1]; - - // DETERMINE FORM TYPE - if ( $id == 1 ){ - $listonly = str_replace( '"', '', $matches[2]); - if ( !is_email( $listonly) ){ - $id = 0; - } - }else { - $id = 0; - } - - // FORM HEADERS - $this->unit_count += 1; - $unit_tag = 'ggis-subscribe-f' . $id . '-' . $this->processing_within . '-o' . $this->unit_count; - $this->processing_unit_tag = $unit_tag; - - $form = '
- URL of page to go to upon success - example: http://your.blog/name/thank_you/'; - $form .= ''; - $form .= '
- URL of page containing the full subscription management form - example: http://your.blog/name/manage_subscriptions/'; - $form .= ''; - $form .= '
'; - $form .= '
Manager type is required.
Please enter a valid email address for the mailing list. Your invalid entry was $val
Mailing list entries are required.
Please enter a valid next page. Your invalid entry was ' . $_POST['ggissubscribe_nextpage'] .'
Next page is required.
Please enter a valid form URL. Your invalid entry was ' . $_POST['ggissubscribe_formurl'] .'
Form URL is required.
Options saved.
That action does not exist. Please contact the site owner.
The email address you entered is not valid.
The name you entered is not valid.
The Next URL is not valid. Please contact the site owner.
The Form URL is not valid. Please contact the site owner.
To try again, please visit this page