Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:37-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13099 2011-12-20T09:50:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=57835#p57835 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:50 am


]]>
2011-12-07T01:03:44-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=55517#p55517 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: December 7, 2011, 1:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:03 am


]]>
2011-11-05T19:26:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=51891#p51891 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: November 5, 2011, 8:26 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:26 pm


]]>
2011-10-29T20:35:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=49986#p49986 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: October 29, 2011, 9:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:35 pm


]]>
2011-10-17T15:39:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=47780#p47780 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: October 17, 2011, 1:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:39 pm


]]>
2011-10-11T14:35:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=46181#p46181 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: October 11, 2011, 12:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:35 pm


]]>
2011-10-03T15:48:01-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=44311#p44311 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: October 3, 2011, 1:48 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:48 pm


]]>
2011-10-03T03:41:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=43018#p43018 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: October 3, 2011, 1:41 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:41 am


]]>
2011-09-27T05:26:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=41264#p41264 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: September 27, 2011, 3:26 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:26 am


]]>
2011-09-26T21:03:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=40020#p40020 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:03 pm


]]>
2011-09-17T16:20:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=38162#p38162 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: September 17, 2011, 2:21 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:20 pm


]]>
2011-09-14T01:28:09-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=36743#p36743 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: September 13, 2011, 11:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:28 am


]]>
2011-09-13T12:03:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=35471#p35471 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: September 13, 2011, 10:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:03 pm


]]>
2011-08-15T15:14:36-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=31592#p31592 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: August 15, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-forms.inc.php ?php /** * Form utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_forms" ) ) { /** * Form utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_forms { /** * Converts a form with hidden inputs into a URL w/ query string. * * @package s2Member\Utilities * @since 3.5 * * @param str $form A form tag with hidden input fields. * @return str A URL with query string equivalents. */ public static function form_whips_2_url ( $form = FALSE ) { if ( preg_match ( "/\form(.+?)\/is" , $form , $form_attr_m ) ) /* Is this a form? */ { if ( preg_match ( "/(\s)(action)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $form_attr_m [ 1 ] , $form_action_m ) ) { if ( ( $url = trim ( $form_action_m [ 7 ] ) ) ) /* Set URL value dynamically. Now we add values. */ { foreach ( ( array )c_ws_plugin__s2member_utils_forms:: form_whips_2_array ( $form ) as $name = $value ) { if ( strlen ( $name ) && strlen ( $value ) ) /* Check $name - $value lengths. */ /**/ if ( strlen ( $value = ( preg_match ( "/^http(s)?\:\/\//i" , $value ) ) ? rawurlencode ( $value ) : urlencode ( $value ) ) ) { $url = add_query_arg ( $name , $value , $url ) ; } } /**/ return $url ; } } } /**/ return false ; } /** * Converts a form with hidden inputs into an associative array. * * @package s2Member\Utilities * @since 3.5 * * @param str $form A form tag with hidden input fields. * @return array An associative array of all hidden input fields. */ public static function form_whips_2_array ( $form = FALSE ) { if ( preg_match ( "/\form(.+?)\/is" , $form ) ) /* Is this a form? */ { if ( preg_match_all ( "/(?!\\!--)\input(.+?)\/is" , $form , $input_attr_ms , PREG_SET_ORDER) ) { foreach ( $input_attr_ms as $input_attr_m ) /* Go through each hidden input variable. */ { if ( preg_match ( "/(\s)(type)( ?)(\=)( ?)(['\"])(hidden)(['\"])/is" , $input_attr_m [ 1 ] ) ) { if ( preg_match ( "/(\s)(name)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $input_attr_m [ 1 ] , $input_name_m ) ) { if ( preg_match ( "/(\s)(value)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $input_attr_m [ 1 ] , $input_value_m ) ) { $array [ trim ( $input_name_m [ 7 ] ) ] = trim ( wp_specialchars_decode ( $input_value_m [ 7 ] , ENT_QUOTES ) ) ; } } } } } } /**/ return ( array ) $array ; } } } ? [ full view ]s2member\includes\classes\utils-forms.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:14 pm


]]>
2011-07-11T17:30:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=27762#p27762 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: July 11, 2011, 6:30 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-forms.inc.php ?php /** * Form utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_forms" ) ) { /** * Form utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_forms { /** * Converts a form with hidden inputs into a URL w/ query string. * * @package s2Member\Utilities * @since 3.5 * * @param str $form A form tag with hidden input fields. * @return str A URL with query string equivalents. */ public static function form_whips_2_url ( $form = FALSE ) { if ( preg_match ( "/\form(.+?)\/is" , $form , $form_attr_m ) ) /* Is this a form? */ { if ( preg_match ( "/(\s)(action)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $form_attr_m [ 1 ] , $form_action_m ) ) { if ( ( $url = trim ( $form_action_m [ 7 ] ) ) ) /* Set URL value dynamically. Now we add values. */ { foreach ( ( array )c_ws_plugin__s2member_utils_forms:: form_whips_2_array ( $form ) as $name = $value ) { if ( strlen ( $name ) && strlen ( $value ) ) /* Check $name - $value lengths. */ /**/ if ( strlen ( $value = ( preg_match ( "/^http(s)?\:\/\//i" , $value ) ) ? rawurlencode ( $value ) : urlencode ( $value ) ) ) { $url = add_query_arg ( $name , $value , $url ) ; } } /**/ return $url ; } } } /**/ return false ; } /** * Converts a form with hidden inputs into an associative array. * * @package s2Member\Utilities * @since 3.5 * * @param str $form A form tag with hidden input fields. * @return array An associative array of all hidden input fields. */ public static function form_whips_2_array ( $form = FALSE ) { if ( preg_match ( "/\form(.+?)\/is" , $form ) ) /* Is this a form? */ { if ( preg_match_all ( "/(?!\\!--)\input(.+?)\/is" , $form , $input_attr_ms , PREG_SET_ORDER) ) { foreach ( $input_attr_ms as $input_attr_m ) /* Go through each hidden input variable. */ { if ( preg_match ( "/(\s)(type)( ?)(\=)( ?)(['\"])(hidden)(['\"])/is" , $input_attr_m [ 1 ] ) ) { if ( preg_match ( "/(\s)(name)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $input_attr_m [ 1 ] , $input_name_m ) ) { if ( preg_match ( "/(\s)(value)( ?)(\=)( ?)(['\"])(.+?)(['\"])/is" , $input_attr_m [ 1 ] , $input_value_m ) ) { $array [ trim ( $input_name_m [ 7 ] ) ] = trim ( wp_specialchars_decode ( $input_value_m [ 7 ] , ENT_QUOTES ) ) ; } } } } } } /**/ return ( array ) $array ; } } } ? [ full view ]s2member\includes\classes\utils-forms.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:30 pm


]]>
2011-07-09T06:10:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13099&p=25394#p25394 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-forms.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:10 am


]]>