mirror of
https://ghproxy.net/https://github.com/michelve/software-license-manager.git
synced 2025-10-03 23:10:53 +08:00
hide sample code
This commit is contained in:
parent
6fd51f6f71
commit
8f6c12c97b
8 changed files with 36 additions and 16 deletions
22
.vscode/launch.json
vendored
Normal file
22
.vscode/launch.json
vendored
Normal 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
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# Welcome to software license manager 👋
|
||||
|
||||

|
||||

|
||||
[](https://documenter.getpostman.com/view/307939/6tjU1FL?version=latest)
|
||||
[](https://github.com/michelve/software-license-manager/blob/master/LICENSE.md)
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ if (!defined('WPINC')) {
|
|||
die;
|
||||
}
|
||||
|
||||
|
||||
function slm_admin_tools_menu()
|
||||
{
|
||||
|
||||
|
@ -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 />
|
||||
|
|
|
@ -73,6 +73,4 @@ function slm_manage_licenses_menu()
|
|||
</div>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/
|
||||
|
@ -19,7 +19,7 @@ if (!defined('WPINC')) {
|
|||
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__)));
|
||||
|
|
|
@ -112,12 +112,12 @@ class SLM_Woo_Account
|
|||
|
||||
|
||||
<!-- 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">
|
||||
|
@ -135,7 +135,7 @@ class SLM_Woo_Account
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue