@@ -1212,7 +1212,7 @@ function require_js_helper( $helper = '', $relative_to = 'rsc_url' )
12121212 // Colorbox params to display a voting panel:
12131213 $ colorbox_voting_params = '{ ' .$ colorbox_strings_params .'
12141214 displayVoting: true,
1215- votingUrl: " ' .get_secure_htsrv_url ().'anon_async.php?action=voting&vote_type=link&b2evo_icons_type= ' .$ b2evo_icons_type .$ blog_param .'",
1215+ votingUrl: " ' .get_htsrv_url ().'anon_async.php?action=voting&vote_type=link&b2evo_icons_type= ' .$ b2evo_icons_type .$ blog_param .'",
12161216 minWidth: 305} ' ;
12171217 // Colorbox params without voting panel:
12181218 $ colorbox_no_voting_params = '{ ' .$ colorbox_strings_params .'
@@ -1558,7 +1558,7 @@ function init_voting_comment_js( $relative_to = 'rsc_url' )
15581558 add_js_headline ( '
15591559 jQuery( document ).ready( function()
15601560 {
1561- var comment_voting_url = " ' .get_secure_htsrv_url ().'anon_async.php?action=voting&vote_type=comment&b2evo_icons_type= ' .$ b2evo_icons_type .'";
1561+ var comment_voting_url = " ' .get_htsrv_url ().'anon_async.php?action=voting&vote_type=comment&b2evo_icons_type= ' .$ b2evo_icons_type .'";
15621562 jQuery( "span[id^=vote_helpful_]" ).each( function()
15631563 {
15641564 init_voting_bar( jQuery( this ), comment_voting_url, jQuery( this ).find( "#votingID" ).val(), false );
@@ -2207,7 +2207,7 @@ function display_ajax_form( $params )
22072207 function get_form_<?php echo $ ajax_form_number ; ?> ()
22082208 {
22092209 jQuery.ajax({
2210- url: '<?php echo get_samedomain_htsrv_url (); ?> anon_async.php',
2210+ url: '<?php echo get_htsrv_url (); ?> anon_async.php',
22112211 type: 'POST',
22122212 data: <?php echo $ json_params ; ?> ,
22132213 success: function(result)
@@ -2261,7 +2261,7 @@ function check_and_show_<?php echo $ajax_form_number; ?>()
22612261function display_login_form ( $ params )
22622262{
22632263 global $ Settings , $ Plugins , $ Session , $ Blog , $ blog , $ dummy_fields ;
2264- global $ secure_htsrv_url , $ admin_url , $ baseurl , $ ReqHost , $ redirect_to ;
2264+ global $ admin_url , $ baseurl , $ ReqHost , $ redirect_to ;
22652265
22662266 $ params = array_merge ( array (
22672267 'form_before ' => '' ,
@@ -2510,7 +2510,7 @@ function processSubmit(e) {
25102510
25112511 jQuery.ajax({
25122512 type: 'POST',
2513- url: '<?php echo get_samedomain_htsrv_url (); ?> anon_async.php',
2513+ url: '<?php echo get_htsrv_url (); ?> anon_async.php',
25142514 data: {
25152515 '<?php echo $ dummy_fields [ 'login ' ]; ?> ': username,
25162516 'action': 'get_user_salt',
@@ -2581,12 +2581,12 @@ function processSubmit(e) {
25812581 */
25822582function display_lostpassword_form ( $ login , $ hidden_params , $ params = array () )
25832583{
2584- global $ secure_htsrv_url , $ dummy_fields , $ redirect_to , $ Session ;
2584+ global $ dummy_fields , $ redirect_to , $ Session ;
25852585
25862586 $ params = array_merge ( array (
25872587 'form_before ' => '' ,
25882588 'form_after ' => '' ,
2589- 'form_action ' => $ secure_htsrv_url .'login.php ' ,
2589+ 'form_action ' => get_htsrv_url ( true ) .'login.php ' ,
25902590 'form_name ' => 'lostpass_form ' ,
25912591 'form_class ' => 'fform ' ,
25922592 'form_template ' => NULL ,
@@ -2685,7 +2685,7 @@ function display_lostpassword_form( $login, $hidden_params, $params = array() )
26852685function display_activateinfo ( $ params )
26862686{
26872687 global $ current_User , $ Settings , $ UserSettings , $ Plugins ;
2688- global $ secure_htsrv_url , $ rsc_path , $ rsc_url , $ dummy_fields ;
2688+ global $ rsc_path , $ rsc_url , $ dummy_fields ;
26892689
26902690 if ( !is_logged_in () )
26912691 { // if this happens, it means the code is not correct somewhere before this
@@ -2696,7 +2696,7 @@ function display_activateinfo( $params )
26962696 'use_form_wrapper ' => true ,
26972697 'form_before ' => '' ,
26982698 'form_after ' => '' ,
2699- 'form_action ' => $ secure_htsrv_url .'login.php ' ,
2699+ 'form_action ' => get_htsrv_url ( true ) .'login.php ' ,
27002700 'form_name ' => 'form_validatemail ' ,
27012701 'form_class ' => 'fform ' ,
27022702 'form_layout ' => 'fieldset ' ,
@@ -2825,7 +2825,7 @@ function display_activateinfo( $params )
28252825
28262826 echo $ params ['use_form_wrapper ' ] ? $ params ['form_before ' ] : '' ;
28272827
2828- $ Form = new Form ( $ secure_htsrv_url .'login.php ' , 'form_validatemail ' , 'post ' , 'fieldset ' );
2828+ $ Form = new Form ( get_htsrv_url ( true ) .'login.php ' , 'form_validatemail ' , 'post ' , 'fieldset ' );
28292829
28302830 if ( ! empty ( $ params ['form_template ' ] ) )
28312831 { // Switch layout to template from array
@@ -2836,7 +2836,7 @@ function display_activateinfo( $params )
28362836
28372837 $ Form ->add_crumb ( 'validateform ' );
28382838 $ Form ->hidden ( 'action ' , 'validatemail ' );
2839- $ Form ->hidden ( 'redirect_to ' , url_rel_to_same_host ( $ redirect_to , $ secure_htsrv_url ) );
2839+ $ Form ->hidden ( 'redirect_to ' , url_rel_to_same_host ( $ redirect_to , get_htsrv_url ( true ) ) );
28402840 $ Form ->hidden ( 'reqID ' , 1 );
28412841 $ Form ->hidden ( 'sessID ' , $ Session ->ID );
28422842
@@ -3033,7 +3033,7 @@ function display_login_validator( $params = array() )
30333033 jQuery( "#login_status" ).html( login_icon_load );
30343034 jQuery.ajax( {
30353035 type: "POST",
3036- url: " ' .get_samedomain_htsrv_url ().'anon_async.php",
3036+ url: " ' .get_htsrv_url ().'anon_async.php",
30373037 data: "action=validate_login&login=" + jQuery( this ).val(),
30383038 success: function( result )
30393039 {
0 commit comments