[insert_php] //Finding Current URL
$link = “//$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]”;
$back_edit_url = htmlspecialchars($link, ENT_QUOTES, ‘UTF-8′);
$license_type=’bd_xp_1_1’;
require_once(ABSPATH . ‘invoice_tables.php’);
//Echo product type table
echo $bd_xp_1_1_price_table;
echo $bd_xp_1_1_price_unit;
echo $bd_xp_1_1_notifications;

//Echo customer form to be filled
echo $customer_field_first;
if( function_exists( ‘cptch_display_captcha_custom’ ) ) {
echo ‘‘;
global $wpdb;
$wpdb->get_results(“SELECT * FROM wp_bd_ts_1_1 where checked=0;”);
$license_remained = $wpdb->num_rows;
if ($license_remained == 0) echo “غیر فعال به دلیل اتمام موجودی، لطفاً کمی بعد مراجعه کنید”;
else echo cptch_display_captcha_custom();
}
echo $customer_field_last;[/insert_php]