hide sample code

This commit is contained in:
Michel Velis 2020-10-29 10:47:26 -04:00
parent 6fd51f6f71
commit 8f6c12c97b
No known key found for this signature in database
GPG key ID: 7D0C318B6BA43F09
8 changed files with 36 additions and 16 deletions

22
.vscode/launch.json vendored Normal file
View file

@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}

View file

@ -1,6 +1,6 @@
# Welcome to software license manager 👋 # Welcome to software license manager 👋


![Version](https://img.shields.io/badge/version-5.5.8-blue.svg?cacheSeconds=2592000) ![Version](https://img.shields.io/badge/version-5.5.12-blue.svg?cacheSeconds=2592000)
[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://documenter.getpostman.com/view/307939/6tjU1FL?version=latest) [![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://documenter.getpostman.com/view/307939/6tjU1FL?version=latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/michelve/software-license-manager/blob/master/LICENSE.md) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/michelve/software-license-manager/blob/master/LICENSE.md)



View file

@ -4,7 +4,6 @@ if (!defined('WPINC')) {
die; die;
} }



function slm_admin_tools_menu() function slm_admin_tools_menu()
{ {


@ -36,12 +35,13 @@ function slm_admin_tools_menu()
echo '</p></div>'; echo '</p></div>';
} }
if (isset($_POST['slm_clear_log'])) { if (isset($_POST['slm_clear_log'])) {
global $wpdb; global $wpdb, $slm_debug_logger;
$table = SLM_TBL_LIC_LOG; $table = SLM_TBL_LIC_LOG;
$slm_log_clean = $wpdb->query("TRUNCATE TABLE $table"); $slm_log_clean = $wpdb->query("TRUNCATE TABLE $table");

$slm_logger = new SLM_Debug_Logger();
$slm_debug_logger->reset_log_file("log.txt");
$slm_debug_logger->reset_log_file("log-cron-job.txt");
echo '<div id="message" class="updated fade"><p> Log was cleared succesfully!</p></div>'; echo '<div id="message" class="updated fade"><p> Log was cleared succesfully!</p></div>';

} }
?> ?>
<br /> <br />

View file

@ -73,6 +73,4 @@ function slm_manage_licenses_menu()
</div> </div>
</div> </div>
<?php <?php

}

}

View file

@ -1,6 +1,6 @@
{ {
"name": "@michelve/software-license-manager", "name": "@michelve/software-license-manager",
"version": "5.5.11", "version": "5.5.12",
"description": "Software license management solution for your web applications (WordPress plugins, Themes, Applications, PHP based membership script etc.). Supports WooCommerce.", "description": "Software license management solution for your web applications (WordPress plugins, Themes, Applications, PHP based membership script etc.). Supports WooCommerce.",
"scripts": { "scripts": {
"changelog": "auto-changelog -p && git add CHANGELOG.md", "changelog": "auto-changelog -p && git add CHANGELOG.md",

View file

@ -4,7 +4,7 @@ Donate link: http://paypal.me/mvelis
Tags: license, software license Tags: license, software license
Requires at least: 4.1 Requires at least: 4.1
Tested up to: 5.7 Tested up to: 5.7
Stable tag: 5.5.11 Stable tag: 5.5.12
Requires PHP: 5.2.4 Requires PHP: 5.2.4
License: GPLv2 or later License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html License URI: https://www.gnu.org/licenses/gpl-2.0.html

View file

@ -1,7 +1,7 @@
<?php <?php
/* /*
Plugin Name: Software License Manager Plugin Name: Software License Manager
Version: 5.5.11 Version: 5.5.12
Plugin URI: https://github.com/michelve/software-license-manager/ Plugin URI: https://github.com/michelve/software-license-manager/
Author: Michel Velis Author: Michel Velis
Author URI: https://www.epikly.com/ Author URI: https://www.epikly.com/
@ -19,7 +19,7 @@ if (!defined('WPINC')) {
global $wpdb, $slm_debug_logger; global $wpdb, $slm_debug_logger;


//Short name/slug "SLM" or "slm" //Short name/slug "SLM" or "slm"
define('SLM_VERSION', '5.5.11'); define('SLM_VERSION', '5.5.12');
define('SLM_DB_VERSION', '4.3.3'); define('SLM_DB_VERSION', '4.3.3');
define('SLM_REWRITE_VERSION', '2.4.4'); define('SLM_REWRITE_VERSION', '2.4.4');
define('SLM_FOLDER', dirname(plugin_basename(__FILE__))); define('SLM_FOLDER', dirname(plugin_basename(__FILE__)));

View file

@ -112,12 +112,12 @@ class SLM_Woo_Account




<!-- Button trigger modal --> <!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal"> <!-- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">
Launch demo modal Launch demo modal
</button> </button> -->


<!-- Modal --> <!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <!-- <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document"> <div class="modal-dialog" role="document">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
@ -135,7 +135,7 @@ class SLM_Woo_Account
</div> </div>
</div> </div>
</div> </div>
</div> </div> -->