Skip to content

Commit

Permalink
Updater 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Dernerd committed Apr 1, 2024
1 parent b08370a commit ad9b184
Show file tree
Hide file tree
Showing 66 changed files with 11,460 additions and 10,687 deletions.
97 changes: 54 additions & 43 deletions affiliate.php
Original file line number Diff line number Diff line change
@@ -1,43 +1,54 @@
<?php
/*
Plugin Name: PS Affiliate
Plugin URI: https://n3rds.work/piestingtal-source-project/ps-affiliate/
Description: Dieses Plugin fügt Deiner Seite ein einfaches Affiliate-System hinzu. Verfolge eingehende Klicks von Affiliate-Referer-Links, die Integration der Auftragsverfolgung in PSeCommerce, bezahlte Bloghosting-Anmeldungen und bezahlte Mitgliedschaftsanmeldungen.
Author: WebMasterService N@W
Version: 3.2.7
Author URI: https://n3rds.work
Domain Path: /affiliateincludes/languages
*/

require 'psource/psource-plugin-update/psource-plugin-updater.php';
use Psource\PluginUpdateChecker\v5\PucFactory;
$MyUpdateChecker = PucFactory::buildUpdateChecker(
'https://n3rds.work//wp-update-server/?action=get_metadata&slug=affiliate',
__FILE__,
'affiliate'
);

require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/config.php');
require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/functions.php');
// Set up my location
set_affiliate_url(__FILE__);
set_affiliate_dir(__FILE__);

if(is_admin()) {
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/affiliate_admin_metaboxes.php');

// Only include the administration side of things when we need to
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateadmin.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatedashboard.php');

$affadmin = new affiliateadmin();
$affdash = new affiliatedashboard();
}

// Include the public and shortcode classes for both public and admin areas
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatepublic.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateshortcodes.php');

$affiliate = new affiliate();
$affshortcode = new affiliateshortcodes();

<?php
/*
Plugin Name: PS Affiliate
Plugin URI: https://cp-psource.github.io/affiliate/
Description: Dieses Plugin fügt Deiner Seite ein einfaches Affiliate-System hinzu. Verfolge eingehende Klicks von Affiliate-Referer-Links, die Integration der Auftragsverfolgung in PSeCommerce, bezahlte Bloghosting-Anmeldungen und bezahlte Mitgliedschaftsanmeldungen.
Author: DerN3rd (PSOURCE)
Version: 3.2.7
Author URI: https://github.com/cp-psource
Domain Path: /affiliateincludes/languages
*/

/**
* @@@@@@@@@@@@@@@@@ PS UPDATER 1.3 @@@@@@@@@@@
**/
require 'psource/psource-plugin-update/plugin-update-checker.php';
use YahnisElsts\PluginUpdateChecker\v5\PucFactory;

$myUpdateChecker = PucFactory::buildUpdateChecker(
'https://github.com/cp-psource/affiliate',
__FILE__,
'affiliate'
);

//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('master');

/**
* @@@@@@@@@@@@@@@@@ ENDE PS UPDATER 1.3 @@@@@@@@@@@
**/

require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/config.php');
require_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/functions.php');
// Set up my location
set_affiliate_url(__FILE__);
set_affiliate_dir(__FILE__);

if(is_admin()) {
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/includes/affiliate_admin_metaboxes.php');

// Only include the administration side of things when we need to
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateadmin.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatedashboard.php');

$affadmin = new affiliateadmin();
$affdash = new affiliatedashboard();
}

// Include the public and shortcode classes for both public and admin areas
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliatepublic.php');
include_once(plugin_dir_path( __FILE__ ) . 'affiliateincludes/classes/affiliateshortcodes.php');

$affiliate = new affiliate();
$affshortcode = new affiliateshortcodes();

2 changes: 1 addition & 1 deletion affiliateincludes/addons/debugaffiliate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/*
Plugin Name: Partnerprogramm Debugging
Description: Fügt dem Affiliate-Plugin ein Debug-System hinzu, um potenzielle Cookie-Probleme aufzuspüren
Author: DerN3rd (WMS N@W)
Author: DerN3rd (PSOURCE)
Author URI: https://n3rds.work
*/

Expand Down
Loading

0 comments on commit ad9b184

Please sign in to comment.