1 <?php |
|
2 |
|
3 // If it cannot locate the wp-config file, you may have to hard code the full path here. |
|
4 if ( file_exists('../../../wp-load.php') ) { |
|
5 require_once('../../../wp-load.php'); |
|
6 } else { |
|
7 require_once('../../../wp-config.php'); |
|
8 } |
|
9 |
|
10 $gcd = 'gigs-calendar'; // Domain for Internationalization |
|
11 load_plugin_textdomain($gcd, 'wp-content/plugins/gigs-calendar/i18n'); |
|
12 |
|
13 require_once 'gigs-classes.php'; |
|
14 if ( !defined('WP_CONTENT_URL') ) define( 'WP_CONTENT_URL', get_option('siteurl') . '/wp-content'); |
|
15 if ( !defined('WP_CONTENT_DIR') ) define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); |
|
16 |
|
17 |
|
18 if ( !defined('GIGS_RSS') ) |
|
19 header('Content-Type: text/html; charset=' . get_bloginfo('charset')); |
|
20 |
|
21 if ( !defined('GIGS_PUBLIC') ) { |
|
22 if ( !is_user_logged_in() ) die("not logged in"); |
|
23 if ( !wp_verify_nonce($_POST['nonce'], 'gigs-calendar') ) { |
|
24 if ( in_array($_POST['action'], array('delete')) ) { |
|
25 die('{"success":false,"error":"nonce","action":"' . $_POST['action'] . '"}'); |
|
26 } else { |
|
27 die(__('Your authentication token seems to have timed out. Try refreshing this page before continuing.', $gcd)); |
|
28 } |
|
29 } |
|
30 } |
|
31 |
|
32 $folder = dtc_gigs::get_url(); |
|
33 |
|
34 |
|
35 $options = get_option('gigs-calendar'); |
|
36 |
|
37 $gcd = 'gigs-calendar'; // Domain for Internationalization |
|
38 load_plugin_textdomain($gcd, 'wp-content/plugins/gigs-calendar/i18n'); |
|
39 |
|
40 ?> |
|