Plugin Directory

Changeset 1717151


Ignore:
Timestamp:
08/21/2017 05:02:24 PM (9 years ago)
Author:
simasta
Message:

version 1.0.9.1

Hot fix

Location:
wpsid-shortcode
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • wpsid-shortcode/trunk/classes/class-opensid.php

    r1716832 r1717151  
    22defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
    33abstract class OpenSID {
    4     const version = '1.0.9';
     4    const version = '1.0.9.1';
    55    public static $model_opensid;
    66    public static $controller;
  • wpsid-shortcode/trunk/init.php

    r1677978 r1717151  
    22defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
    33define( 'OPENSID_OPTION_KEY', 'wpsid_config' );
     4if(strpos($_SERVER['HTTP_HOST'], '.demo.siini.com') !== false || strpos($_SERVER['HTTP_HOST'], '.devhost') !== false)
     5    define( 'OPENSID_DEMO_SITE', true );
     6else define( 'OPENSID_DEMO_SITE', false );
    47define( 'OPENSID_ABSPATH', dirname( OPENSID__FILE__ ) . '/' );
    58define( 'OPENSID_DIR_URL', plugin_dir_url( OPENSID__FILE__ ) );
  • wpsid-shortcode/trunk/opensid.php

    r1716832 r1717151  
    99 * Author: Simasta
    1010 * Author URI: http://simasta.siini.com
    11  * Version: 1.0.9
     11 * Version: 1.0.9.1
    1212 * Text Domain: wpsid-shortcode
    1313 * Domain Path: /locale/
  • wpsid-shortcode/trunk/readme.txt

    r1716832 r1717151  
    55Requires at least: 4.3
    66Tested up to: 4.8.1
    7 Stable tag: 1.0.9
     7Stable tag: 1.0.9.1
    88License: GPLv2 or later
    99
     
    1212== Description ==
    1313
    14 WPSID Shortcode integrate OpenSID and SID into Wrodpress with shortcodes. You can display statistics data from OpenSID and SID into wordpress. Visit [**demo site**](http://wpsid-shortcode.plugin.demo.siini.com/) for detail.
     14WPSID Shortcode integrate OpenSID and SID into Wrodpress with shortcodes. You can display statistics data from OpenSID and SID into wordpress. Visit [**http://wpsid-shortcode.plugin.demo.siini.com**](http://wpsid-shortcode.plugin.demo.siini.com/) for detail.
    1515
    1616If you find this useful, [**please consider donating**](http://www.siini.com/wordpress/plugins/wpsid-shortcode/) whatever sum you choose, **even just 10 cents**.
     
    40401. Activate plugin at "Plugins" administration page.
    41411. Verify configuration on admin panel.
    42 1. Place shortcodes build in opensid plugin to your post, page, or widget, or use `echo do_shortcode("[name_shortcode]")` code.
     421. Place shortcodes build in opensid plugin to your post, page, or widget, or use `echo do_shortcode("[name_shortcode]")` code ini php files.
    4343
    4444= The Shortcodes =
     
    76763. Example directory structure
    77774. Admin page
     785. Layanan Mandiri
    7879
    7980
    8081== Changelog ==
     82
     83= 1.0.9.1 =
     84*Release Date - 2017/08/20*
     85
     86* Hot fix
    8187
    8288= 1.0.9 =
  • wpsid-shortcode/trunk/shortcodes/shortcode-layanan_mandiri_widget.php

    r1716832 r1717151  
    3232        </div>
    3333        <div class="box-body">
    34             <?php echo (isset($_SESSION['mandiri']) && $_SESSION['mandiri'] == -1) ? '<span style="color: red !important"><strong>NIK atau PIN salah!</strong></span><br>' : '';?>
     34            <?php echo (isset($_POST['mandiri']) && isset($_SESSION['mandiri']) && $_SESSION['mandiri'] == -1) ? '<span style="color: red !important"><strong>NIK atau PIN salah!</strong></span><br>' : '';?>
    3535            <h4>Masukan NIK dan PIN</h4>
    3636            <form action="<?php echo $data['mandiri_page']?>" method="post">
    37                 <input name="nik" type="text" placeholder="NIK" style="margin-left:0px" value="5201142005716996" required="">
    38                 <input name="pin" type="password" placeholder="PIN" style="margin-left:0px" value="123456" required="">
     37                <input name="nik" type="text" placeholder="NIK" style="margin-left:0px" value="<?php echo (OPENSID_DEMO_SITE) ? '5201142005716996' : '';?>" required="">
     38                <input name="pin" type="password" placeholder="PIN" style="margin-left:0px" value="<?php echo (OPENSID_DEMO_SITE) ? '123456' : '';?>" required="">
    3939                <button type="submit" name="mandiri" value="login" id="submit" style="margin-left:0px">Masuk</button>
    4040            </form>
Note: See TracChangeset for help on using the changeset viewer.