Plugin Directory

Changeset 2556464


Ignore:
Timestamp:
06/30/2021 02:48:04 PM (5 years ago)
Author:
4wpbari
Message:

insert v. 1.0.2

Location:
qr-code-login-admin
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • qr-code-login-admin/trunk/class/class.qrla_users.php

    r2550639 r2556464  
    2121       
    2222        public function QRLA_show_camera_and_usb_optical_field() {
     23           
     24        if ( wp_is_mobile() ) {
    2325
    2426        ?>
    2527
    26         <script>
    27         function process()
    28         {
    29         var url = "" + document.getElementById("url").value;
    30         location.href = url;
    31         return false;
    32         }
    33         </script>
    3428        <script>
    3529        function openQRCamera(node) {
     
    5347        }
    5448        </script>
    55         <form onSubmit="return process();">
    56         Open Camera<label class=qrcode-text-btn><input type=file accept="image/*" capture=environment onclick="return showQRIntro();" onchange="openQRCamera(this);" tabindex=-1></label>
    57         <p style="text-align: center;"><strong>or</strong></p>
    58         Scan Your QrCode<input type="text" name="url" id="url" placeholder="With Optical Scan USB" pattern="https?://.*" class=qrcode-text>
    59         <p class="submit">
    60         <input type="submit" class="button button-primary button-large" value="GO NOW">
    61         </p>
    62         </form>
    63 
    64 
     49        Open  Camera   <label class=qrcode-text-btn><input type=file accept="image/*" capture=environment onclick="return showQRIntro();" onchange="openQRCamera(this);" tabindex=-1></label>
    6550
    6651        <?php
     
    7257        input, label {vertical-align:middle}
    7358        .qrcode-text {padding-right:1.7em; margin-right:0}
    74         .qrcode-text-btn {display:inline-block; background:url(/wp-content/plugins/qr-code-login-admin/images/qr_code_login_admin_icon.svg) 50% 50% no-repeat; height:5em; width:5em; cursor:pointer}
     59        .qrcode-text-btn {display:inline-block; background:url(/wp-content/plugins/qr-code-login-admin/images/qr_code_login_admin_icon.svg) 50% 50% no-repeat; height:5.5em; width:5.5em; cursor:pointer}
    7560        .qrcode-text-btn > input[type=file] {position:absolute; overflow:hidden; width:1px; height:1px; opacity:0}
    7661        </style>
     
    8267
    8368        }
     69           
     70       
     71       
     72       
     73        if ( !wp_is_mobile() ) {
     74
     75        ?>
     76        <script>
     77        function process()
     78        {
     79        var url = "" + document.getElementById("url").value;
     80        location.href = url;
     81        return false;
     82        }
     83        </script>
     84        <form onSubmit="return process();">
     85        Scan Your QrCode<input type="text" name="url" id="url" placeholder="With Optical Scan USB" pattern="https?://.*" class=qrcode-text>
     86        <p class="submit">
     87        <input type="submit" class="button button-primary button-large" value="GO NOW">
     88        </p>
     89        </form>
     90        <?php
     91        }
     92            }
     93           
    8494
    8595        public function QRLA_init(){
     
    93103           
    94104            $column['auto_qrcode_badge']    = __( 'Auto login Qrcode', 'automaticqrla' );
     105            $column['auto_qrcode_expired']  = __( 'Expired Qrcode', 'automaticqrla' );
    95106                }
    96107            return $column;
     
    116127                    $qrcodegenerated = $divqrcode . $this->get_qrcode_js($link,200,"qrcode");
    117128                    return $qrcodegenerated;
     129                    }
     130                   
     131
     132                case 'auto_qrcode_expired' :
     133                   
     134if ( ! $user_id || $user_id == get_current_user_id() ) {
     135                   
     136                    $code_time = get_option( 'QRLA_time' );
     137                    $time_limit = get_option( 'QRLA_time_limit' );
     138                    $time_limit = $time_limit * 86400;//24h
     139                    $expiredtime = $code_time + $time_limit ;
     140                    $expired_datetime = date('Y-m-d H:i:s', $expiredtime);
     141                    $date_now = date('Y-m-d H:i:s', strtotime( 'now' ));
     142                    if( ( $code_time + $time_limit ) > strtotime( 'now' ) ){
     143                    //return message will expire
     144                    return sprintf( '<div>Today is </div>'. $date_now . '<div>Your Qr Code will expire on  </div>' . $expired_datetime );
     145                        }
     146                    if( ( $code_time + $time_limit ) < strtotime( 'now' ) ){
     147                    //return message has expire
     148                    return sprintf( '<div>Your Qr Code has expire on </div>'. $expired_datetime . '<div>If the wp cron is not restarted, deactive and active the plugin for restart </div>' . '<a href="' . admin_url( 'plugins.php' ) . '">' . __( 'by going here', 'automaticqrla' ) . '<div> and after, set the days! </div>' . '</a>' );
     149                        }
    118150                    }
    119                     break;
     151                    //break;
    120152                default:
    121153                   
    122154            }
    123             return $val;
     155            //return $val;
    124156        }
    125157           
  • qr-code-login-admin/trunk/qr-code-login-admin.php

    r2550639 r2556464  
    66 * Author: 4wpBari
    77 * Author URI: www.4wp.it
    8  * Version: 1.0.1
     8 * Version: 1.0.2
    99 * Requires at least: 4.4
    1010 * License: GPLv2
     
    1919define( 'QRLA_REQUIRED_PHP_VERSION', '5.3' );                          // because of get_called_class()
    2020define( 'QRLA_REQUIRED_WP_VERSION',  '3.1' );                          // because of esc_textarea()
    21 define( 'QRLA_VER', '1.0.0' );
     21define( 'QRLA_VER', '1.0.2' );
    2222define( 'QRLA_PATH', __FILE__ );
    2323define( 'QRLA_DIR', plugin_dir_path( __FILE__ ) );
  • qr-code-login-admin/trunk/readme.txt

    r2550639 r2556464  
    77Tested up to: 5.7.2
    88Requires PHP: 5.6
    9 Stable tag: 1.0.1
     9Stable tag: 1.0.2
    1010License: GPLv2
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131Puoi accedere anche tramite pistola ottica qrcode usb
    3232
     33Newsss! Se avete necessità di offrire la scansione via web del qrcode, evitando di installare app di terze parti in quanto non si dispone della funzionalità in fotocamera
     34del qrcode, abbiamo rilasciato un plugin che permette di effettuare scansioni tramite la pagina web.
     35Basta semplicemente applicare lo shortcode su una vostra pagina e potete offrire un lettore di qrcode istantaneo
     36[Qui il link del repository](https://wordpress.org/plugins/qr-code-and-barcode-scanner-reader/)
     37
    3338== Installazione ==
    3439
     
    4954== Changelog ==
    5055
    51 Nessuna
     56= 1.0.2 =
     57
     58Inserita colonna con data di scadenza in base ai giorni impostati, affianco al qrcode.
     59Impostata visualizzazione in mobile per apertura fotocamera in login, impostata per desktop visualizzazione campo per lettori ottici in login.
     60
    5261
    5362= 1.0.1 =
Note: See TracChangeset for help on using the changeset viewer.