PluginProbe ʕ •ᴥ•ʔ
Advanced Database Cleaner – Optimize & Clean Database to Speed Up Site Performance / trunk
Advanced Database Cleaner – Optimize & Clean Database to Speed Up Site Performance vtrunk
trunk 1.0.0 1.1.0 1.1.1 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.5 1.3.6 1.3.7 2.0.0 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.0.7 4.1.0 4.1.1
advanced-database-cleaner / constants.php
advanced-database-cleaner Last commit date
assets 1 month ago includes 1 month ago languages 1 month ago LICENSE.txt 7 months ago README.txt 1 month ago advanced-db-cleaner.php 1 month ago constants.php 3 months ago index.php 7 months ago uninstall.php 1 month ago
constants.php
65 lines
1 <?php
2
3 // Exit if accessed directly
4 if ( ! defined( 'ABSPATH' ) )
5 exit;
6
7 // Version type: FREE or PREMIUM.
8 if ( ! defined( 'ADBC_VERSION_TYPE' ) )
9 file_exists( __DIR__ . '/includes/premium' ) ? define( 'ADBC_VERSION_TYPE', 'PREMIUM' ) : define( 'ADBC_VERSION_TYPE', 'FREE' );
10
11 // Is this version the pro version based on the slug of the plugin folder.
12 if ( ! defined( 'ADBC_IS_PRO_VERSION' ) )
13 basename( __DIR__ ) === 'advanced-database-cleaner-pro' ? define( 'ADBC_IS_PRO_VERSION', true ) : define( 'ADBC_IS_PRO_VERSION', false );
14
15 // Plugin folder name.
16 if ( ! defined( 'ADBC_PLUGIN_DIR_NAME' ) )
17 define( 'ADBC_PLUGIN_DIR_NAME', dirname( plugin_basename( __FILE__ ) ) );
18
19 // Plugin folder path. Used to include files.
20 if ( ! defined( 'ADBC_PLUGIN_DIR_PATH' ) )
21 define( 'ADBC_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
22
23 // WordPress uploads folder path.
24 if ( ! defined( 'ADBC_WP_UPLOADS_DIR_PATH' ) )
25 define( 'ADBC_WP_UPLOADS_DIR_PATH', wp_upload_dir()['basedir'] );
26
27 // ADBC uploads folder prefix.
28 if ( ! defined( 'ADBC_UPLOADS_DIR_PREFIX' ) )
29 define( 'ADBC_UPLOADS_DIR_PREFIX', 'adbc_uploads_F_' );
30
31 // ADBC uploads security code length.
32 if ( ! defined( 'ADBC_SECURITY_CODE_LENGTH' ) )
33 define( 'ADBC_SECURITY_CODE_LENGTH', 25 );
34
35 // ADBC uploads folder path.
36 if ( ! defined( "ADBC_UPLOADS_DIR_PATH" ) ) {
37 $adbc_security_code = ADBC_Settings::instance()->get_setting( 'security_code' );
38 define( "ADBC_UPLOADS_DIR_PATH", ADBC_WP_UPLOADS_DIR_PATH . '/' . ADBC_UPLOADS_DIR_PREFIX . $adbc_security_code );
39 }
40
41 // WordPress debug file path.
42 if ( ! defined( 'ADBC_WP_DEBUG_LOG_FILE_PATH' ) ) {
43 $adbc_debug_log_path = WP_CONTENT_DIR . '/debug.log';
44 if ( defined( 'WP_DEBUG_LOG' ) && is_string( WP_DEBUG_LOG ) ) {
45 $adbc_debug_log_path = WP_DEBUG_LOG;
46 }
47 define( 'ADBC_WP_DEBUG_LOG_FILE_PATH', $adbc_debug_log_path );
48 }
49
50 // Plugin URL. Used to enqueue scripts and styles.
51 if ( ! defined( 'ADBC_PLUGIN_ABSOLUTE_URL' ) )
52 define( 'ADBC_PLUGIN_ABSOLUTE_URL', plugins_url( '', __FILE__ ) );
53
54 // Current website URL.
55 if ( ! defined( 'ADBC_WEBSITE_HOME_URL' ) )
56 define( 'ADBC_WEBSITE_HOME_URL', home_url() );
57
58 // Rest API routes.
59 if ( ! defined( 'ADBC_REST_API_NAMESPACE' ) )
60 define( 'ADBC_REST_API_NAMESPACE', "advanced-db-cleaner/v1" );
61
62 // ADBC API remote URL.
63 if ( ! defined( 'ADBC_API_REMOTE_URL' ) )
64 define( 'ADBC_API_REMOTE_URL', "https://api.sigmaplugin.com/v1" );
65