Ejemplo n.º 1
0
        <?php 
    }
}
hook_handle_callback('layout_column_half', 1);
print_heading('Send a test email');
?>
    <form action="" method="post">
        <input type="hidden" name="_email" value="true">
        <p>Please enter your email address:</p>
        <p><input type="text" name="email" value="<?php 
echo htmlspecialchars($demo_email);
?>
" size="40"></p>
        <p>If sending an email does not work, please change your SMTP details on the right and try again.</p>
        <input type="submit" name="send" value="Click here to send a test email" class="submit_button btn btn-success">
        <p><em>(the subject of this email will be "Test Email from <?php 
echo module_config::c('admin_system_name');
?>
")</em></p>
    </form>
<?php 
hook_handle_callback('layout_column_half', 2);
?>

    <?php 
print_heading('Email Settings (SMTP)');
module_config::print_settings_form($settings);
?>

<?php 
hook_handle_callback('layout_column_half', 'end');
Ejemplo n.º 2
0
/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Authorize Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_authorize_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Authorize Checkout'), array('key' => 'payment_method_authorize_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_authorize_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Sandbox Mode'), array('key' => 'payment_method_authorize_api_login_id', 'default' => '', 'type' => 'text', 'description' => 'Your Authorize API Login ID'), array('key' => 'payment_method_authorize_transaction_key', 'default' => '', 'type' => 'text', 'description' => 'Your Authorize Transaction Key')));
?>

<?php 
print_heading('Authorize setup instructions:');
?>

<p>Authorize.net only supports payments in USD. Please make sure all your invoices are in USD to use Authorize.net</p>
<p>Please signup for a Authorize account here: https://authorize.net - please enter your authorize API Keys above.</p>
<p>For testing select "Visa" and enter the test credit card number 4111111111111111, any expiration date (MMYY) in the future (such as "1120"), and hit "Submit".</p>
<p><strong>Please use SSL on your website (eg: https://) in order to use Authorize.net</strong></p>
<p>To change how the Authorize credit card form looks please go to Settings > Templates and look for 'authorize_credit_card_form'.</p>
<p>If you get "cannot connect" errors when making a payment please try going to Settings > Advanced and changing 'payment_method_authorize_ssl_verify' from 1 to 0</p>
Ejemplo n.º 3
0
    redirect_browser(_BASE_HREF);
}
/*
define('MSP_TEST_API',     true); // seperate testaccount needed
define('MSP_ACCOUNT_ID',   '1001001');
define('MSP_SITE_ID',      '60');
define('MSP_SITE_CODE',    '123');

define('BASE_URL', ($_SERVER['SERVER_PORT'] == 443 ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . ':' . $_SERVER['SERVER_PORT'] . dirname($_SERVER['SCRIPT_NAME']) . "/");
*/
print_heading('Multisafepay Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_multisafepay_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Multisafepay Checkout'), array('key' => 'payment_method_multisafepay_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_multisafepay_account', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Account ID'), array('key' => 'payment_method_multisafepay_site_id', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Site ID'), array('key' => 'payment_method_multisafepay_side_code', 'default' => '', 'type' => 'text', 'description' => 'Your Multisafepay Site Code'), array('key' => 'payment_method_multisafepay_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use Multisafepay Testing Mode (for testing payments)')));
?>

<?php 
print_heading('Multisafepay setup instructions:');
?>

<p><strong>Note:</strong> Multisafepay only accepts EUR currency</p>

<p>Please signup for a Multisafepay account here: http://www.multisafepay.com - please enter your multisafepay account and site details above.</p>

<p>The notification url is:</p> <pre><?php 
echo full_link(_EXTERNAL_TUNNEL . '?m=paymethod_multisafepay&h=ipn&method=multisafepay&type=initial');
?>
</pre>
Ejemplo n.º 4
0
print_heading(array('title' => 'Customer Signup Form', 'type' => 'h2', 'main' => true));
$roles = array();
foreach (module_security::get_roles() as $r) {
    $roles[$r['security_role_id']] = $r['name'];
}
ob_start();
$invoice_templates = array();
$invoice_templates['customer_signup_thank_you_page'] = 1;
$invoice_templates['customer_signup_email_welcome'] = 1;
$invoice_templates['customer_signup_email_admin'] = 1;
$invoice_templates['customer_signup_form_wrapper'] = 1;
foreach ($invoice_templates as $template_key => $tf) {
    module_template::link_open_popup($template_key);
}
$template_html = ob_get_clean();
module_config::print_settings_form(array(array('key' => 'customer_signup_allowed', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('Not allowed'), 1 => _l('Allowed')), 'description' => 'Enable customer signup form'), array('key' => 'customer_signup_always_new', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('Allow Update of Existing Customer Entries'), 1 => _l('Always Create New Customer Entries')), 'description' => 'Matching email address action', 'help' => 'If a customer fills in this form and the email address already exists in the system then it can update the existing entry instead of creating a new customer entry. If updating existing entry then the new customer name will be applied, which could differ from existing company name. Set this option to "Always Create New Customer Entry" if you do not want a customer to be able to update their existing details.'), array('key' => 'customer_signup_password', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No Password, Admin creates password for each new account (most secure option)'), 1 => _l('Allow Primary User to pick a Password on Signup')), 'description' => 'User Passwords', 'help' => 'If a user has a password they can login to the system and see all their details.'), array('key' => 'customer_signup_role', 'default' => 0, 'type' => 'select', 'options' => $roles, 'description' => 'User Role', 'help' => 'Assign this User Role to all newly created contacts.'), array('key' => 'captcha_on_signup_form', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Use CAPTCHA on signup form'), array('key' => 'customer_signup_redirect', 'default' => '', 'type' => 'text', 'description' => 'Redirect URL', 'help' => 'If no redirect URL is set then the standard thank you message will be displayed. This can be changed in Settings > Templates > customer_signup_thank_you_page'), array('key' => 'customer_signup_admin_email', 'default' => module_config::c('admin_email_address'), 'type' => 'text', 'description' => 'What email address will signup notifications be sent to'), array('key' => 'customer_signup_contact_count', 'default' => 1, 'type' => 'text', 'description' => 'Number of customer contacts'), array('key' => 'customer_signup_password', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Ask for Password'), array('key' => 'customer_signup_on_login', 'default' => 0, 'type' => 'select', 'options' => array(0 => _l('No'), 1 => _l('Yes')), 'description' => 'Show Signup Link on Login Page'), array('key' => 'customer_signup_on_login_url', 'default' => '', 'type' => 'text', 'description' => 'Signup Page URL', 'help' => 'If you have placed the signup form on a page of your website, put that website URL here (e.g. http://www.yourwebsite.com/signup.html)'), array('key' => 'customer_signup_subscription_start', 'default' => '', 'type' => 'text', 'description' => 'Subscription Start Date Modification', 'help' => 'How much to modify the subscription start date by (if they choose a Subscription during signup). Examples are: +5 days or +2 weeks'), array('type' => 'html', 'description' => 'Templates', 'html' => $template_html)));
$form_html = module_customer::get_customer_signup_form_html();
?>



<table width="100%">
    <tbody>
    <tr>
        <td valign="top" width="50%">
            <?php 
echo $form_html;
?>
        </td>
        <td valign="top">
            <p>
Ejemplo n.º 5
0
<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Settings');
module_config::print_settings_form(array(array('key' => 'payment_method_other_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Payment Method'), array('key' => 'payment_method_other_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_other_label', 'default' => 'Other', 'type' => 'text', 'description' => 'Name this payment method')));
print_heading('Templates');
echo module_template::link_open_popup('paymethod_other');
echo module_template::link_open_popup('paymethod_other_details');
Ejemplo n.º 6
0
<?php 
if (isset($_REQUEST['test_google'])) {
    $result = module_paymethod_google::verify_merchant_account();
    if ($result === true) {
        set_message('Google checkout details correct!');
    } else {
        set_error('Failed, response from google: ' . htmlspecialchars($result));
    }
    redirect_browser($_SERVER['REQUEST_URI']);
}
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_google_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Google Checkout'), array('key' => 'payment_method_google_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_google_pmid', 'default' => '', 'type' => 'text', 'description' => 'Your Merchant ID'), array('key' => 'payment_method_google_pmkey', 'default' => '', 'type' => 'text', 'description' => 'Your Merchant KEY'), array('key' => 'payment_method_google_pmid_s', 'default' => '', 'type' => 'text', 'description' => 'Your SANDBOX Merchant ID (optional)'), array('key' => 'payment_method_google_pmkey_s', 'default' => '', 'type' => 'text', 'description' => 'Your SANDBOX Merchant KEY (optional)'), array('key' => 'payment_method_google_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use Google Sandbox Mode (for testing payments)')));
?>

<?php 
print_heading('Google Checkout/Wallet setup instructions:');
?>

<p>Please signup for a Google payments account here: <a href="http://checkout.google.com/sell/signup">http://checkout.google.com/sell/signup</a> then find your  merchant ID and KEY on the Settings > Integration page. Enter those values on this page. Click the test button to check your settings are correct.</p>

<p><strong>Important:</strong> If you would like the system to <em>automatically</em> record a payment against an invoice then you need to set your Notification Callback API url by following the instructions below (if you do not want to do this then you will have to mark payments against invoices manually each time a customer pays)</p>
<ol>
<li><a href="http://checkout.google.com/sell">Sign in</a> to Google Checkout.</li>
<li>Click the <b>Settings</b> tab.</li>
<li>Click <b>Integration</b>.</li>
<li>Enter this callback URL in the 'API callback URL' box: <strong><?php 
echo module_paymethod_google::link_callback();
Ejemplo n.º 7
0
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('PayPal Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_paypal_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable PayPal Checkout'), array('key' => 'payment_method_paypal_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_paypal_label', 'default' => 'PayPal', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_paypal_email', 'default' => _ERROR_EMAIL, 'type' => 'text', 'description' => 'Your PayPal registered email address'), array('key' => 'payment_method_paypal_sandbox', 'default' => 0, 'type' => 'checkbox', 'description' => 'Use PayPal Sandbox Mode (for testing payments)'), array('key' => 'payment_method_paypal_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable PayPal recurring payments', 'help' => 'Be sure to set the paypal IPN url to ' . full_link(_EXTERNAL_TUNNEL . '?m=paymethod_paypal&h=ipn&method=paypal') . ' in your paypal account settings.'), array('key' => 'payment_method_paypal_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_paypal_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the paypal option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_paypal_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict paypal payments to'), array('key' => 'payment_method_paypal_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 2.9 do not enter %% sign'), array('key' => 'payment_method_paypal_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 0.30 do not enter $ sign'), array('key' => 'invoice_fee_calculate_reverse', 'default' => 0, 'type' => 'checkbox', 'description' => 'Calculate as provider fee', 'help' => 'If this is enabled then it will work out the fee in reverse. Enable this option in order to receive the correct amount from PayPal if you have set 2.9%% and 0.30 above.'), array('key' => 'payment_method_paypal_charge_description', 'default' => 'PayPal Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via PayPal')));
?>

<?php 
print_heading('PayPal setup instructions:');
?>

<p>Please signup for a PayPal business account here: http://www.paypal.com - please enter your paypal email address above.</p>

<?php 
if (module_config::c('payment_method_paypal_subscriptions', 0)) {
    ?>

<?php 
    print_heading('PayPal subscription setup instructions:');
    ?>
Ejemplo n.º 8
0
<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
$c = array();
$customers = module_customer::get_customers();
foreach ($customers as $customer) {
    $c[$customer['customer_id']] = $customer['customer_name'];
}
$pop3imap_accounts = array();
foreach (module_ticket::get_accounts() as $account) {
    $pop3imap_accounts[$account['ticket_account_id']] = $account['name'];
}
module_config::print_settings_form(array('heading' => array('title' => 'Ticket Settings', 'type' => 'h2', 'main' => true), 'settings' => array(array('key' => 'ticket_show_summary', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show unread ticket count in the menu item.'), array('key' => 'ticket_recaptcha', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show recaptcha on ticket form'), array('key' => 'ticket_show_position', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show ticket position (eg: 1st of 10)'), array('key' => 'ticket_allow_priority', 'default' => 1, 'type' => 'checkbox', 'description' => 'Allow priority paid support'), array('key' => 'ticket_priority_cost', 'default' => 10, 'type' => 'currency', 'description' => 'Cost of a priority support ticket'), array('key' => 'faq_ticket_show_product_selection', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show FAQ product selection', 'help' => 'If you have the FAQ module installed this will show a drop down list of products and commoon support questions before the user creates a support ticket.'), array('key' => 'ticket_allow_extra_data', 'default' => 1, 'type' => 'checkbox', 'description' => 'Allow for extra input boxes on tickets', 'help' => 'For FTP usernames and passwords, or whatever else you need'), array('key' => 'ticket_from_creators_email', 'default' => 0, 'type' => 'checkbox', 'description' => 'Customer replies go directly to staff', 'help' => 'Enable this option and any customer email replies will go back to the staff member who sent the support ticket (rather than into the system). Recommended unticking this option.'), array('key' => 'ticket_admin_email_alert', 'default' => '', 'type' => 'text', 'description' => 'Send notifications of new tickets to this address.'), array('key' => 'ticket_admin_alert_subject', 'default' => 'Support Ticket Updated: #%s', 'type' => 'text', 'description' => 'The subject to have in ticket notification emails.'), array('key' => 'ticket_public_header', 'default' => 'Submit a support ticket', 'type' => 'text', 'description' => 'Message to display at the top of the embed ticket form.'), array('key' => 'ticket_public_welcome', 'default' => '', 'type' => 'textarea', 'description' => 'Text to display at the top of the embed ticket form.', 'help' => 'You can use text or html code'), array('key' => 'ticket_default_customer_id', 'default' => 1, 'type' => 'select', 'options' => $c, 'description' => 'Which customer to assign tickets to from the public Ticket Embed Form', 'help' => 'Only use this default customer if the customer cannot be found based on the ticket users email address.'), array('key' => 'ticket_type_id_default', 'default' => 0, 'type' => 'select', 'options' => module_ticket::get_types(), 'array_id' => 'name', 'description' => 'What default ticket type for tickets'), array('key' => 'ticket_default_account_id', 'default' => 0, 'type' => 'select', 'options' => $pop3imap_accounts, 'description' => 'Which default POP3/IMAP account to use'), array('key' => 'ticket_public_new_redirect', 'default' => '', 'type' => 'text', 'description' => 'Public New Ticket Redirect URL', 'help' => 'When a user submits a new public ticket, take them to this URL. Leave blank to use default. Use full URL with http://'), array('key' => 'ticket_public_reply_redirect', 'default' => '', 'type' => 'text', 'description' => 'Public Reply Ticket Redirect URL', 'help' => 'When a user submits a reply to the public ticket form, take them to this URL. Leave blank to use default. Use full URL with http://'))));
Ejemplo n.º 9
0
 *  License: Please check CodeCanyon.net for license details.
 *  More license clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/
 */
// Get the infos about the plugin from the plugin.info file
$info = parse_ini_file(dirname(__FILE__) . '/../plugin.info');
$plugin_full_name = $info['fullname'];
$plugin_name = $info['modulename'];
$plugin_id = $info['id'];
$plugin_ver = $info['version'];
// Check permissions
if (!module_webnpro_menu_editor::can_i('edit', 'webNpro Menu Editor Settings', 'Config') && module_security::get_loggedin_id() != '1') {
    redirect_browser(_BASE_HREF);
}
// Include the update class
require_once dirname(__FILE__) . '/../update/updateclass.php';
// Get license infos
$update = new update();
$license = $update->get_license_info();
unset($update);
// Header buttons
$header_buttons[] = array('url' => _BASE_HREF . '?m[0]=' . $plugin_name . '&p[0]=documentation', 'title' => _l('Read Documentation'));
// Settings
$settings = array(array('key' => $plugin_name . '_envato_license_number', 'default' => '', 'type' => 'text', 'description' => _l('Plugin License key'), 'size' => '100', 'help' => _l('Please copy your license key here. They called it purchase code on the envato marketplaces. For more information about your license keys location check <a href="http://webnpro.com/images/envato_purchase_code_help.png" target="_blank">this image (...CLICK HERE...)</a>.')));
// Print the heading with the header buttons
print_heading(array('type' => 'h2', 'main' => true, 'title' => _l($plugin_full_name) . ' v' . $plugin_ver, 'button' => $header_buttons));
// Print the setting form
module_config::print_settings_form(array('settings' => $settings));
// Print the license informations
echo '<br/>';
echo $license;
echo '<br>';
Ejemplo n.º 10
0
<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Coinbase Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_coinbase_enabled', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Coinbase Checkout'), array('key' => 'payment_method_coinbase_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_coinbase_label', 'default' => 'Bitcoin', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_coinbase_api_key', 'default' => '', 'type' => 'text', 'description' => 'Your Coinbase API Key', 'help' => 'From https://coinbase.com/settings/api '), array('key' => 'payment_method_coinbase_secret_key', 'default' => '', 'type' => 'text', 'description' => 'Your coinbase Secret Key ', 'help' => 'From https://coinbase.com/settings/api '), array('key' => 'payment_method_coinbase_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Coinbase Subscriptions', 'help' => 'Coinbase only supports subscriptions that are: daily, weekly, every_two_weeks, monthly, quarterly, and yearly. So your invoice/subscription renewals will have to match these in order to work.'), array('key' => 'payment_method_coinbase_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_coinbase_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the bitcoin option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_coinbase_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict bitcoin payments to'), array('key' => 'payment_method_coinbase_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 1.5 do not enter %% sign'), array('key' => 'payment_method_coinbase_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 1.5 do not enter $ sign'), array('key' => 'payment_method_coinbase_charge_description', 'default' => 'Coinbase Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via coinbase')));
?>

<?php 
print_heading('Coinbase setup instructions:');
?>

<p>Please create an account from http://coinbase.com - please note you will require a USA bank account in order to be verified and receive funds. More details on their website.</p>
Ejemplo n.º 11
0
/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (isset($_REQUEST['social_twitter_id']) && !empty($_REQUEST['social_twitter_id'])) {
    $social_twitter_id = (int) $_REQUEST['social_twitter_id'];
    $social_twitter = module_social_twitter::get($social_twitter_id);
    include 'twitter_account_edit.php';
} else {
    if (_DEMO_MODE) {
        ?>
		<p>Demo Mode Notice: <strong>This is a public demo. Please only use TEST accounts here as others will see them.</strong></p>
		<?php 
    }
    print_heading('Twitter Settings');
    ?>
	<p>Please go to <a href="https://apps.twitter.com/" target="_blank">https://apps.twitter.com/</a> and create an app. Enter your API Keys below: <?php 
    _h('Signin with Twitter at https://apps.twitter.com/ and click the Create New App button. Enter a Name, Description, Website and in the Callback URL just put your website address. Once created, go to Permissions and choose "Read, write, and direct messages" then go to API Keys and copy your API Key and API Secret from here into the below form.');
    ?>
</p>
	<?php 
    module_config::print_settings_form(array(array('key' => 'social_twitter_api_key', 'default' => '', 'type' => 'text', 'description' => 'App API Key ', 'help' => 'The API key obtained from creating your app on dev.twitter.com '), array('key' => 'social_twitter_api_secret', 'default' => '', 'type' => 'text', 'description' => 'App API Secret ', 'help' => 'The API secret obtained from creating your app on dev.twitter.com ')));
    // show twitter app settings here.
    include 'twitter_account_list.php';
}
Ejemplo n.º 12
0
<?php

/** 
 * Copyright: dtbaker 2012
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Help Settings');
module_config::print_settings_form(array(array('key' => 'help_only_for_admin', 'default' => 1, 'type' => 'checkbox', 'description' => 'Only show help menu for Super Administrator.', 'help' => 'By default only the Super Administrator (first user created) can see the help documentation. If this option is disabled you will still need to give each User Role access to "view help" for them to see the "help" menu correctly. Please note that the help documentation may contain branding.')));
Ejemplo n.º 13
0
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('FAQ Settings');
$c = array();
$customers = module_customer::get_customers();
foreach ($customers as $customer) {
    $c[$customer['customer_id']] = $customer['customer_name'];
}
module_config::print_settings_form(array(array('key' => 'faq_ticket_show_product_selection', 'default' => 1, 'type' => 'checkbox', 'description' => 'Show product selection on ticket submit form.')));
?>

<?php 
print_heading('FAQ Embed');
?>
<p>
    <?php 
_e('Place this in an iframe on your website, or as a link on your website, and people can view FAQ tickets.');
?>
</p>
<p><a href="<?php 
echo module_faq::link_open_public(-1);
?>
?show_search=1&show_header=1&show_product=1" target="_blank"><?php 
echo module_faq::link_open_public(-1);
Ejemplo n.º 14
0
    echo htmlspecialchars($subscription['customer_count']);
    ?>
 </td>
            <td> <?php 
    echo htmlspecialchars($subscription['website_count']);
    ?>
 </td>
            <td><?php 
    echo $subscription['automatic_renew'] ? _l('Yes') : _l('No');
    ?>
</td>
            <td><?php 
    echo $subscription['automatic_email'] ? _l('Yes') : _l('No');
    ?>
</td>
        </tr>
	<?php 
}
?>

  </tbody>
</table>
<?php 
echo $pagination['links'];
?>

</form>

<?php 
module_config::print_settings_form(array('title' => 'Subscription Options', 'settings' => array(array('key' => 'subscription_invoice_due_date', 'default' => 0, 'type' => 'text', 'description' => 'Invoice Due Date Days', 'help' => 'How many days after the invoice is created should the due date be set?'))));
Ejemplo n.º 15
0
 * Licence: Please check CodeCanyon.net for licence details. 
 * More licence clarification available here:  http://codecanyon.net/wiki/support/legal-terms/licensing-terms/ 
 * Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
 * Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
 * Package Date: 2015-11-25 02:55:20 
 * IP Address: 67.79.165.254
 */
if (!module_config::can_i('edit', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
print_heading('Stripe Settings');
?>


<?php 
module_config::print_settings_form(array(array('key' => 'payment_method_stripe_enabled', 'default' => 1, 'type' => 'checkbox', 'description' => 'Enable Stripe Checkout'), array('key' => 'payment_method_stripe_enabled_default', 'default' => 1, 'type' => 'checkbox', 'description' => 'Available By Default On Invoices', 'help' => 'If this option is enabled, all new invoices will have this payment method available. If this option is disabled, it will have to be enabled on individual invoices.'), array('key' => 'payment_method_stripe_label', 'default' => 'Stripe', 'type' => 'text', 'description' => 'Payment Method Label', 'help' => 'This will display on invoices as the name of this payment method.'), array('key' => 'payment_method_stripe_secret_key', 'default' => '', 'type' => 'text', 'description' => 'Your Stripe Secret Key (Test or Live)'), array('key' => 'payment_method_stripe_publishable_key', 'default' => '', 'type' => 'text', 'description' => 'Your Stripe Publishable Key (Test or Live)'), array('key' => 'payment_method_stripe_subscriptions', 'default' => 0, 'type' => 'checkbox', 'description' => 'Enable Stripe Subscriptions (set web hook below!)'), array('key' => 'payment_method_stripe_currency', 'default' => '', 'type' => 'text', 'description' => 'Which Currencies To Support', 'help' => 'A comma separated list of currencies to support, eg: AUD,USD Leave this blank to support all currencies. If an invoice is in an unsupported currency then this payment method will not display.'), array('key' => 'payment_method_stripe_limit_type', 'default' => 'above', 'type' => 'select', 'options' => array('above' => _l('Greater Than...'), 'below' => _l('Less Than...')), 'description' => 'Only show when invoice value is ...', 'help' => 'Only show the stripe option if the dollar value is greater than or less than the below value.'), array('key' => 'payment_method_stripe_limit_value', 'default' => '0', 'type' => 'text', 'description' => '... this amount', 'help' => 'What value to restrict stripe payments to'), array('key' => 'payment_method_stripe_charge_percent', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as %)', 'help' => 'Example: 1.5 do not enter %% sign'), array('key' => 'payment_method_stripe_charge_amount', 'default' => 0, 'type' => 'text', 'description' => 'Additional Charge (as $)', 'help' => 'Example: 1.5 do not enter $ sign'), array('key' => 'payment_method_stripe_charge_description', 'default' => 'Stripe Fee', 'type' => 'text', 'description' => 'Additional Charge (Description)', 'help' => 'This will show on the Invoice when paying via stripe')));
?>

<?php 
print_heading('Stripe setup instructions:');
?>

<p>Stripe only supports payments in USD and CAD </p>
<p>Please signup for a Strip account here: http://www.stripe.com - please enter your stripe API Keys above.</p>
<p>If you are using the TEST api keys then you can use the credit card number 4242424242424242 with any valid expiry date of CVC</p>
<?php 
print_heading('Stripe subscriptions:');
?>
<p><strong>WebHook:</strong> if you are planning to offer subscriptions via stripe (enabled above) please set the webhook address (in Stripe settings) to: <?php 
echo full_link(_EXTERNAL_TUNNEL . '?m=paymethod_stripe&h=event_ipn&method=stripe');
?>
Ejemplo n.º 16
0
        $invoice_templates[$template['template_key']] = 1;
    }
}
foreach ($invoice_templates as $template_key => $tf) {
    module_template::link_open_popup($template_key);
}
$template_html = ob_get_clean();
$payment_methods_options = array();
$payment_methods = handle_hook('get_payment_methods', $module);
foreach ($payment_methods as $payment_method) {
    if ($payment_method->is_method('online') && $payment_method->is_enabled()) {
        $payment_methods_options[$payment_method->module_name] = $payment_method->get_payment_method_name();
    }
}
$settings = array(array('key' => 'overdue_email_auto', 'default' => '0', 'type' => 'checkbox', 'description' => 'Automatic Overdue Emails', 'help' => 'If this is ticked then by default newly created invoices will be sent automatic overdue notices. This can be disabled/enabled per invoice. See the "Auto Overdue Email" option near "Due Date".'), array('key' => 'invoice_automatic_receipt', 'default' => '1', 'type' => 'checkbox', 'description' => 'Automatic Send Invoice Receipt', 'help' => 'Automatically send the invoice receipt to the customer once the invoice is marked as paid. If this is disabled you will have to go into the invoice and manually send it after payment is received.'), array('key' => 'invoice_template_print_default', 'default' => 'invoice_print', 'type' => 'text', 'description' => 'Default PDF invoice template', 'help' => 'Used for invoice PDF. You can overwrite in the Advanced settings of each invoice.'), array('key' => 'overdue_email_auto_days', 'default' => '3', 'type' => 'text', 'description' => 'Automically send after', 'help' => 'How many days after the invoice is overdue is the automated email sent (set to 0 will send on the date the invoice is due)'), array('key' => 'overdue_email_auto_days_repeat', 'default' => '7', 'type' => 'text', 'description' => 'Automically re-send every', 'help' => 'How many days after the last automatic overdue reminder is the overdue reminder re-sent automatically (set to 0 to disable this option)'), array('key' => 'invoice_automatic_after_time', 'default' => '7', 'type' => 'text', 'description' => 'Hour of day to perform automatic operations', 'help' => 'Enter the hour of day (eg: 7 for 7am, 14 for 2pm) to perform automatic actions - such as renewing invoices, subscriptions, overdue notices, etc...'), array('key' => 'invoice_auto_renew_only_paid_invoices', 'default' => '1', 'type' => 'checkbox', 'description' => 'Only renew paid invoices', 'help' => 'If an invoice (or past subscription invoice) has not been paid then do not renew the next one until original payment has been received.'), array('key' => 'invoice_default_payment_method', 'default' => 'paymethod_paypal', 'type' => 'select', 'options' => $payment_methods_options, 'description' => 'Default Payment Method'), array('key' => 'invoice_due_days', 'default' => '30', 'type' => 'text', 'description' => 'Invoice Due Days', 'help' => 'The number of days used to calculate the "Due Date" on new invoices. Due Date can be overridden per invoice.'), array('key' => 'invoice_name_match_job', 'default' => '0', 'type' => 'checkbox', 'description' => 'Match Invoice with Job Name', 'help' => 'If an invoice is created from a Job, set the Invoice name the same as the job name'), array('key' => 'invoice_incrementing', 'default' => '0', 'type' => 'checkbox', 'description' => 'Incrementing Invoice Numbers', 'help' => 'If this is enabled the system will pick a new invoice number each time. Choose what number to start from below.'), array('key' => 'invoice_incrementing_next', 'default' => '1', 'type' => 'text', 'description' => 'Incrementing Invoice Number', 'help' => 'What will be the next invoice number'), array('key' => 'invoice_task_list_show_date', 'default' => '1', 'type' => 'checkbox', 'description' => 'Show Dates on Invoice Items'), array('key' => 'invoice_task_numbers', 'default' => '1', 'type' => 'checkbox', 'description' => 'Show Task Numbers on Invoice Items'), array('key' => 'invoice_allow_payment_amount_adjustment', 'default' => '1', 'type' => 'checkbox', 'description' => 'Allow User To Enter Payment Amount', 'help' => 'If this is enabled the user can change the payment amount on invoices. For example, they might want to pay $50 of a $100 invoice with PayPal, and $50 with cash.'), array('type' => 'html', 'description' => 'Templates', 'html' => $template_html));
module_config::print_settings_form(array('heading' => array('title' => 'Invoice Settings', 'type' => 'h2', 'main' => true), 'settings' => $settings));
// find any blank invoices.
$sql = "SELECT * FROM `" . _DB_PREFIX . "invoice` WHERE customer_id IS NULL AND `name` = '' AND `status` = '' AND `date_create` = '0000-00-00' AND `date_sent` = '0000-00-00' AND `date_paid` = '0000-00-00' AND `date_due` = '0000-00-00' AND c_total_amount = 0 ";
$invoices = qa($sql);
$blank_invoices = array();
foreach ($invoices as $invoice) {
    $items = module_invoice::get_invoice_items($invoice['invoice_id']);
    if (empty($items)) {
        $blank_invoices[] = $invoice;
    }
}
if (count($blank_invoices) && isset($_POST['remove_duplicates']) && $_POST['remove_duplicates'] == 'yes') {
    foreach ($blank_invoices as $id => $blank_invoice) {
        module_invoice::delete_invoice($blank_invoice['invoice_id']);
        unset($blank_invoices[$id]);
    }
Ejemplo n.º 17
0
 */
if (!module_config::can_i('view', 'Settings')) {
    redirect_browser(_BASE_HREF);
}
$show_theme_selector = false;
$themes = module_theme::get_available_themes();
if (count($themes) > 1) {
    $show_theme_selector = true;
}
if ($show_theme_selector) {
    $settings = array(array('key' => 'theme_name', 'default' => 'default', 'type' => 'select', 'options' => $themes, 'options_array_id' => 'name', 'description' => 'Default theme to use'), array('key' => _THEME_CONFIG_PREFIX . 'theme_logo', 'default' => _BASE_HREF . 'images/logo.png', 'type' => 'text', 'description' => 'URL for header logo'), array('key' => _THEME_CONFIG_PREFIX . 'theme_favicon', 'default' => '', 'type' => 'text', 'description' => 'URL for favicon', 'help' => 'Please google for "How to make a favicon". It should be a small PNG or ICO image.'), array('key' => _THEME_CONFIG_PREFIX . 'theme_custom_css', 'default' => '', 'type' => 'textarea', 'description' => 'Custom CSS Code', 'help' => 'Add your own custom CSS code here and it will be included in all pages of the website. You may have to clear your browser cache in order to see these changes. This code is added to the "ext.php?m=theme&amp;h=css" file if you are looking at the page source code.'));
    if (module_security::is_logged_in() && module_config::c('theme_per_user', 0)) {
        $default_theme = is_dir('includes/plugin_theme/themes/metis/') ? 'metis' : 'default';
        $settings[] = array('key' => 'theme_name_' . module_security::get_loggedin_id(), 'default' => module_config::c('theme_name', $default_theme), 'options' => $themes, 'options_array_id' => 'name', 'type' => 'select', 'description' => 'Theme to use when logged into your account');
    }
    module_config::print_settings_form(array('title' => _l('Theme Settings'), 'settings' => $settings));
}
?>

<form action="" method="post">
    <input type="hidden" name="_config_settings_hook" value="save_config">

    <?php 
module_form::print_form_auth();
module_form::prevent_exit(array('valid_exits' => array('.submit_button')));
?>

    <?php 
ob_start();
?>
    <p><?php