Skip to content

Commit

Permalink
fixed not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
michelve committed Dec 4, 2018
1 parent c0d5653 commit 3760354
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
8 changes: 4 additions & 4 deletions admin/update-checker/plugin-update-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
/**
* Plugin Update Checker Library 4.4
* http://w-shadow.com/
*
*
* Copyright 2017 Janis Elsts
* Released under the MIT license. See license.txt for details.
*/

require dirname(__FILE__) . '/Puc/v4p4/Factory.php';
require dirname(__FILE__) . '/Puc/v4/Factory.php';
require dirname(__FILE__) . '/Puc/v4p4/Autoloader.php';
require_once dirname(__FILE__) . '/Puc/v4p4/Factory.php';
require_once dirname(__FILE__) . '/Puc/v4/Factory.php';
require_once dirname(__FILE__) . '/Puc/v4p4/Autoloader.php';
new Puc_v4p4_Autoloader();

//Register classes defined in this file with the factory.
Expand Down
41 changes: 20 additions & 21 deletions software-license-manager.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php
/*
Plugin Name: Software License Manager
Version: 4.4
Plugin URI: https://www.tipsandtricks-hq.com/software-license-manager-plugin-for-wordpress
Author: Tips and Tricks HQ
Author URI: https://www.tipsandtricks-hq.com/
Description: Software license management solution for your web applications (WordPress plugins, Themes, Applications, PHP based membership script etc.). Supports WooCommerce and Subscriptio Plugin.
Author2: <a href="https://epikly.com/">Michel Velis</a>
Version: 4.5
Plugin URI: https://github.com/michelve/software-license-manager/
Author: Michel Velis
Author URI: https://www.epikly.com/
Description: Software license management solution for your web applications (WordPress plugins, Themes, Applications, PHP based membership script etc.). Supports WooCommerce.
Author2: <a href="https://www.tipsandtricks-hq.com/">Tips and Tricks HQ</a>
Text Domain: slm
*/

Expand All @@ -16,28 +16,27 @@
}

//Short name/slug "SLM" or "slm"
define('SLM_VERSION', "4.4");
define('SLM_DB_VERSION', '2.0');
define('SLM_FOLDER', dirname(plugin_basename(__FILE__)));
define('SLM_URL', plugins_url('',__FILE__));
define('SLM_ASSETS_URL', plugins_url('',__FILE__).'/public/assets/');
define('SLM_PATH', plugin_dir_path(__FILE__));
define('SLM_LIB', SLM_PATH .'includes/');
define('SLM_ADMIN', SLM_PATH .'admin/');
define('SLM_ADMIN_ADDONS', SLM_PATH .'admin/includes/');
define('SLM_PUBLIC', SLM_PATH .'public/');
define('SLM_VERSION', '4.5');
define('SLM_DB_VERSION', '2.1');
define('SLM_FOLDER', dirname(plugin_basename(__FILE__)));
define('SLM_URL', plugins_url('',__FILE__));
define('SLM_ASSETS_URL', plugins_url('',__FILE__).'/public/assets/');
define('SLM_PATH', plugin_dir_path(__FILE__));
define('SLM_LIB', SLM_PATH .'includes/');
define('SLM_ADMIN', SLM_PATH .'admin/');
define('SLM_ADMIN_ADDONS', SLM_PATH .'admin/includes/');
define('SLM_PUBLIC', SLM_PATH .'public/');
define('SLM_SITE_HOME_URL', home_url());
define('SLM_SITE_URL', site_url());
define('SLM_SITE_URL', site_url());

if( file_exists( SLM_LIB . 'slm_plugin_core.php') ) {
if( file_exists( SLM_LIB . 'slm_plugin_core.php') ) {
require_once( SLM_LIB . 'slm_plugin_core.php');
}

// check for updates from github
require_once SLM_ADMIN . 'plugin-update-checker.php';
require_once SLM_ADMIN . 'update-checker/plugin-update-checker.php';
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/michelve/software-license-manager/',
__FILE__,
'software-license-manager'
);
$myUpdateChecker->setBranch('master');
);

0 comments on commit 3760354

Please sign in to comment.