Plugin Directory

Changeset 1259660


Ignore:
Timestamp:
10/05/2015 08:44:01 AM (11 years ago)
Author:
beaconby
Message:

allows https get request for issues data

Location:
beacon-by/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • beacon-by/trunk/classes/class.beacon_plugin.php

    r1246626 r1259660  
    357357
    358358
     359
     360    public static function getPageURL()
     361    {
     362        $pageURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";
     363
     364        if ($_SERVER["SERVER_PORT"] != "80")
     365        {
     366            $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
     367        }
     368        else
     369        {
     370            $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
     371        }
     372
     373        return $pageURL;
     374
     375    }
     376
    359377}
    360378
  • beacon-by/trunk/readme.txt

    r1246626 r1259660  
    33Requires at least: 3.0.1
    44Tested up to: 4.2.2
    5 Stable tag: 1.1
     5Stable tag: 1.2
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
  • beacon-by/trunk/views/dashboard/footer.tpl.php

    r1246626 r1259660  
    22<script>
    33<?php if ($data['has_connected']): ?>
    4 BN_target = 'http://<?php echo BEACONBY_CREATE_TARGET . '/api/beacon/' . $data['has_connected']?>';
     4BN_target = '//<?php echo BEACONBY_CREATE_TARGET . '/api/beacon/' . $data['has_connected']?>';
    55<?php else: ?>
    66BN_target = false;
Note: See TracChangeset for help on using the changeset viewer.