Skip to content

Commit

Permalink
added more columns to show in the manage licenses menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
amin0_000 committed Sep 22, 2014
1 parent d8efad8 commit 585fb50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
8 changes: 4 additions & 4 deletions license-manager/menu/lic_mgr_integration_help_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ function lic_mgr_integration_help_menu() {
echo '<div id="poststuff"><div id="post-body">';
echo '<h2>WP License Manager Integration Help v' . WP_LICENSE_MANAGER_VERSION . '</h2>';

$LicenseCreationPostURL = WP_LICENSE_MANAGER_URL . '/api/create.php';
$LicenseCreationPostURL = SLM_SITE_HOME_URL;
echo "<strong>The License Creation POST URL For Your Installation</strong>";
echo '<div class="lic_mgr_code">' . $LicenseCreationPostURL . '</div>';

$LicenseVerificationPostURL = WP_LICENSE_MANAGER_URL . '/api/verify.php';
echo "<strong>The License Verification POST URL For Your Installation</strong>";
$LicenseVerificationPostURL = SLM_SITE_HOME_URL;
echo "<strong>The License Activation POST URL For Your Installation</strong>";
echo '<div class="lic_mgr_code">' . $LicenseVerificationPostURL . '</div>';

$LicenseDeactivationPostURL = WP_LICENSE_MANAGER_URL . '/api/deactivate.php';
$LicenseDeactivationPostURL = SLM_SITE_HOME_URL;
echo "<strong>The License Deactivation POST URL For Your Installation</strong>";
echo '<div class="lic_mgr_code">' . $LicenseDeactivationPostURL . '</div>';
?>
Expand Down
4 changes: 3 additions & 1 deletion license-manager/menu/wp-lic-mgr-list-licenses.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ function get_columns(){
$columns = array(
'cb' => '<input type="checkbox" />', //Render a checkbox
'id' => 'ID',
'license_key' => 'Key',
'license_key' => 'License Key',
'lic_status' => 'Status',
'max_allowed_domains' => 'Domains Allowed',
'email' => 'Registered Email',
'date_created' => 'Date Created',
'date_renewed' => 'Date Renewed',
'date_expiry' => 'Expiry',
Expand Down
2 changes: 2 additions & 0 deletions license-manager/slm_bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
define('WP_LICENSE_MANAGER_FOLDER', dirname(plugin_basename(__FILE__)));
define('WP_LICENSE_MANAGER_URL', plugins_url('',__FILE__));
define('WP_LICENSE_MANAGER_PATH', plugin_dir_path(__FILE__));
define('SLM_SITE_HOME_URL', home_url());
define('SLM_WP_SITE_URL', site_url());

include_once('slm_plugin_core.php');

Expand Down

0 comments on commit 585fb50

Please sign in to comment.