-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathloader.php
More file actions
124 lines (98 loc) · 4.96 KB
/
loader.php
File metadata and controls
124 lines (98 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
/*
Plugin Name: Kleinanzeigen
Plugin URI: https://cp-psource.github.io/classifieds/
Description: Füge Kleinanzeigen zu Deinem Blog, Netzwerk oder Deiner BuddyPress-Seite hinzu. Erstelle und verwalte Anzeigen, lade Bilder hoch, sende E-Mails, aktiviere das Kreditsystem und berechne Deinen Benutzern die Platzierung von Anzeigen in Deinem Netzwerk oder auf der BuddyPress-Seite.
Version: 2.4.4
Author: PSOURCE
Author URI: https://github.com/cp-psource
License: GNU General Public License (Version 2 - GPLv2)
Text Domain: classifieds
Domain Path: /languages
Network: false
*/
$plugin_header_translate = array(
__('Kleinanzeigen - Füge Kleinanzeigen zu Deinem Blog, Netzwerk oder Deiner BuddyPress-Seite hinzu. Erstelle und verwalte Anzeigen, lade Bilder hoch, sende E-Mails, aktiviere das Kreditsystem und berechne Deinen Benutzern die Platzierung von Anzeigen in Deinem Netzwerk oder auf der BuddyPress-Seite.', 'classifieds'),
__('PSOURCE', 'classifieds'),
__('https://cp-psource.github.io/classifieds', 'classifieds'),
__('Kleinanzeigen', 'classifieds'),
);
/*
Authors - DerN3rd
Copyright 2012-2024 PSOURCE (https://github.com/cp-psource)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License (Version 2 - GPLv2) as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/**
* @@@@@@@@@@@@@@@@@ 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/classifieds',
__FILE__,
'classifieds'
);
//Set the branch that contains the stable release.
$myUpdateChecker->setBranch('master');
/**
* @@@@@@@@@@@@@@@@@ ENDE PS UPDATER 1.3 @@@@@@@@@@@
**/
/* Define plugin version */
define ( 'CF_VERSION', '2.4.4' );
define ( 'CF_DB_VERSION', '2.0' );
/* define the plugin folder url */
define ( 'CF_PLUGIN_URL', plugin_dir_url(__FILE__));
/* define the plugin folder dir */
define ( 'CF_PLUGIN_DIR', plugin_dir_path(__FILE__));
// The key for the options array
define( 'CF_TEXT_DOMAIN', 'classifieds' );
// The key for the options array
define( 'CF_OPTIONS_NAME', 'classifieds_options' );
// The key for the captcha transient
define( 'CF_CAPTCHA', 'cf_captcha_' );
// include core files
//If another version of CustomPress not loaded, load ours.
if(!class_exists('CustomPress_Core')) include_once 'core/custompress/loader.php';
register_deactivation_hook( __FILE__, function() {
//Remove Classifieds custom post types and fields
$ct_custom_post_types = get_site_option( 'ct_custom_post_types' );
unset($ct_custom_post_types['classifieds']);
update_site_option( 'ct_custom_post_types', $ct_custom_post_types );
$ct_custom_post_types = get_option( 'ct_custom_post_types' );
unset($ct_custom_post_types['classifieds']);
update_option( 'ct_custom_post_types', $ct_custom_post_types );
$ct_custom_taxonomies = get_site_option('ct_custom_taxonomies');
unset($ct_custom_taxonomies['classifieds_tags']);
update_site_option( 'ct_custom_taxonomies', $ct_custom_taxonomies );
$ct_custom_taxonomies = get_option('ct_custom_taxonomies');
unset($ct_custom_taxonomies['classifieds_tags']);
update_option( 'ct_custom_taxonomies', $ct_custom_taxonomies );
$ct_custom_taxonomies = get_site_option('ct_custom_taxonomies');
unset($ct_custom_taxonomies['classifieds_categories']);
update_site_option( 'ct_custom_taxonomies', $ct_custom_taxonomies );
$ct_custom_taxonomies = get_option('ct_custom_taxonomies');
unset($ct_custom_taxonomies['classifieds_categories']);
update_option( 'ct_custom_taxonomies', $ct_custom_taxonomies );
$ct_network_custom_fields = ( get_site_option( 'ct_custom_fields' ) );
unset($ct_network_custom_fields['selectbox_4cf582bd61fa4'], $ct_network_custom_fields['text_4cfeb3eac6f1f']);
update_site_option( 'ct_custom_fields', $ct_network_custom_fields );
$ct_custom_fields = ( get_option( 'ct_custom_fields' ) );
unset($ct_custom_fields['selectbox_4cf582bd61fa4'], $ct_custom_fields['text_4cfeb3eac6f1f']);
update_option( 'ct_custom_fields', $ct_custom_fields );
//Remove Virtual pages @todo
flush_rewrite_rules();
} );
/* Load plugin files */
include_once 'core/core.php';
include_once 'core/payments.php';
include_once 'core/paypal-express-gateway.php';
include_once 'core/functions.php';