| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
exit; // Exit if accessed directly |
| 4 |
} |
| 5 |
|
| 6 |
global $current_user; |
| 7 |
$wpsc_allow_to_create_ticket = get_option('wpsc_allow_to_create_ticket'); |
| 8 |
|
| 9 |
if ( $current_user->ID || in_array('guest', $wpsc_allow_to_create_ticket)) { |
| 10 |
include WPSC_ABSPATH . 'includes/admin/tickets/create_ticket/load_create_ticket.php'; |
| 11 |
|
| 12 |
} else { |
| 13 |
include WPSC_ABSPATH . 'includes/admin/tickets/sign_in/sign_in.php'; |
| 14 |
} |
| 15 |
|