Skip to content

Commit

Permalink
hide sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
michelve committed Oct 29, 2020
1 parent 6fd51f6 commit 8f6c12c
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 16 deletions.
22 changes: 22 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# 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)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/michelve/software-license-manager/blob/master/LICENSE.md)

Expand Down
8 changes: 4 additions & 4 deletions admin/slm-admin-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
die;
}


function slm_admin_tools_menu()
{

Expand Down Expand Up @@ -36,12 +35,13 @@ function slm_admin_tools_menu()
echo '</p></div>';
}
if (isset($_POST['slm_clear_log'])) {
global $wpdb;
global $wpdb, $slm_debug_logger;
$table = SLM_TBL_LIC_LOG;
$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>';

}
?>
<br />
Expand Down
4 changes: 1 addition & 3 deletions admin/slm-manage-licenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,4 @@ function slm_manage_licenses_menu()
</div>
</div>
<?php


}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"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.",
"scripts": {
"changelog": "auto-changelog -p && git add CHANGELOG.md",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: http://paypal.me/mvelis
Tags: license, software license
Requires at least: 4.1
Tested up to: 5.7
Stable tag: 5.5.11
Stable tag: 5.5.12
Requires PHP: 5.2.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
4 changes: 2 additions & 2 deletions software-license-manager.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: Software License Manager
Version: 5.5.11
Version: 5.5.12
Plugin URI: https://github.com/michelve/software-license-manager/
Author: Michel Velis
Author URI: https://www.epikly.com/
Expand All @@ -19,7 +19,7 @@
global $wpdb, $slm_debug_logger;

//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_REWRITE_VERSION', '2.4.4');
define('SLM_FOLDER', dirname(plugin_basename(__FILE__)));
Expand Down
8 changes: 4 additions & 4 deletions woocommerce/includes/wc_licenses_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ public function endpoint_content()


<!-- 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
</button>
</button> -->

<!-- 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-content">
<div class="modal-header">
Expand All @@ -135,7 +135,7 @@ public function endpoint_content()
</div>
</div>
</div>
</div>
</div> -->



Expand Down

0 comments on commit 8f6c12c

Please sign in to comment.