PluginProbe
MainWP Dashboard: Self-hosted WordPress Management for Agencies / 3.5
MainWP Dashboard: Self-hosted WordPress Management for Agencies v3.5
6.2 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1 6.0.12 6.0.11 4.6.0.1 5.0 5.0.1 5.0.2 5.0.3 5.0.3.1 5.0.3.2 5.1 5.1.1 5.2 5.2.1 5.2.2 5.3 All 153 releases
mainwp / cron / bootstrap.php

bootstrap.php in MainWP Dashboard: Self-hosted WordPress Management for Agencies 3.5, at cron/bootstrap.php

33 lines 1019 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 @ignore_user_abort(true);
3 @set_time_limit(0);
4 $mem = '512M';
5 @ini_set('memory_limit', $mem);
6 @ini_set('max_execution_time', 0);
7
8 define('DOING_CRON', true);
9 $included = false;
10
11 if ( file_exists( __DIR__.'/../../../../wp-load.php' ) ) {
12 include_once __DIR__ . '/../../../../wp-load.php';
13 $included = true;
14 } else if ( file_exists( __DIR__.'/../../../../wp-config.php' ) ) {
15 $wp_config = file_get_contents( __DIR__.'/../../../../wp-config.php' );
16 preg_match_all('/.*define[^d].*ABSPATH.*/i', $wp_config, $matches);
17 if ( count( $matches ) > 0 ) {
18 foreach ( $matches as $match ) {
19 $execute = str_ireplace( 'ABSPATH', 'TMPABSPATH', $match[0] );
20 $execute = str_ireplace( '__FILE__', "'" . __DIR__.'/../../../../wp-config.php' . "'", $execute );
21 eval( $execute );
22 if ( file_exists(TMPABSPATH . 'wp-load.php' ) ) {
23 include_once TMPABSPATH . 'wp-load.php';
24 $included = true;
25 break;
26 }
27 }
28 }
29 }
30
31 if ( !$included ) {
32 exit( 'Unsupported wordpress setup' );
33 }