| 1 |
<?php |
| 2 |
|
| 3 |
/* |
| 4 |
Plugin Name: SweepPress |
| 5 |
Plugin URI: https://sweep.press/ |
| 6 |
Description: Remove various old, unused, or obsolete data from the database, optimize the database for the best website performance. |
| 7 |
Author: Milan Petrovic |
| 8 |
Author URI: https://www.dev4press.com/ |
| 9 |
Text Domain: sweeppress |
| 10 |
Version: 2.2 |
| 11 |
Requires at least: 5.5 |
| 12 |
Tested up to: 6.3 |
| 13 |
Requires PHP: 7.3 |
| 14 |
License: GPLv3 or later |
| 15 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html |
| 16 |
|
| 17 |
== Copyright == |
| 18 |
Copyright 2008 - 2023 Milan Petrovic (email: support@dev4press.com) |
| 19 |
|
| 20 |
This program is free software: you can redistribute it and/or modify |
| 21 |
it under the terms of the GNU General Public License as published by |
| 22 |
the Free Software Foundation, either version 3 of the License, or |
| 23 |
(at your option) any later version. |
| 24 |
|
| 25 |
This program is distributed in the hope that it will be useful, |
| 26 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 27 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 28 |
GNU General Public License for more details. |
| 29 |
|
| 30 |
You should have received a copy of the GNU General Public License |
| 31 |
along with this program. If not, see <http://www.gnu.org/licenses/> |
| 32 |
*/ |
| 33 |
|
| 34 |
use Dev4Press\v41\WordPress; |
| 35 |
|
| 36 |
$sweeppress_dirname_basic = dirname( __FILE__ ) . '/'; |
| 37 |
$sweeppress_urlname_basic = plugins_url( '/', __FILE__ ); |
| 38 |
|
| 39 |
define( 'SWEEPPRESS_PATH', $sweeppress_dirname_basic ); |
| 40 |
define( 'SWEEPPRESS_URL', $sweeppress_urlname_basic ); |
| 41 |
define( 'SWEEPPRESS_D4PLIB_PATH', $sweeppress_dirname_basic . 'd4plib/' ); |
| 42 |
define( 'SWEEPPRESS_D4PLIB_URL', $sweeppress_urlname_basic . 'd4plib/' ); |
| 43 |
|
| 44 |
if ( ! defined( 'SWEEPPRESS_SIMULATION' ) ) { |
| 45 |
define( 'SWEEPPRESS_SIMULATION', false ); |
| 46 |
} |
| 47 |
|
| 48 |
if ( ! defined( 'SWEEPPRESS_SWEEPERS_ALLOW_DB' ) ) { |
| 49 |
define( 'SWEEPPRESS_SWEEPERS_ALLOW_DB', true ); |
| 50 |
} |
| 51 |
|
| 52 |
require_once( SWEEPPRESS_D4PLIB_PATH . 'core.php' ); |
| 53 |
|
| 54 |
require_once( SWEEPPRESS_PATH . 'core/autoload.php' ); |
| 55 |
require_once( SWEEPPRESS_PATH . 'core/bridge.php' ); |
| 56 |
require_once( SWEEPPRESS_PATH . 'core/functions.php' ); |
| 57 |
|
| 58 |
sweeppress(); |
| 59 |
sweeppress_settings(); |
| 60 |
|
| 61 |
if ( WordPress::instance()->is_admin() ) { |
| 62 |
sweeppress_ajax(); |
| 63 |
sweeppress_admin(); |
| 64 |
} |
| 65 |
|