"Integration Settings", "type" => "heading", "desc" => "This section customizes the way WHMCS Bridge interacts with Wordpress."); $cc_whmcs_bridge_options[] = array( "name" => "WHMCS URL", "desc" => "The site URL of your WHMCS installation. Make sure this is exactly the same as the settings field 'WHMCS System URL' in WHMCS. If you want to use SSL (https), make sure this URL and the 'WHMCS System URL' are using the https URL. In all cases make sure the WHMCS setting 'WHMCS SSL System URL' is left blank.", "id" => $cc_whmcs_bridge_shortname."_url", "type" => "text"); $cc_whmcs_bridge_options[] = array( "name" => "WHMCS admin user", "desc" => 'This is your WHMCS admin user, used for connections, upgrades and synchronisation of new users.
Make sure you authorise your IP in your WHMCS portal (General Settings - Security - API IP Access Restriction).', "id" => $cc_whmcs_bridge_shortname."_admin_login", "type" => "text"); $cc_whmcs_bridge_options[] = array( "name" => "WHMCS admin password", "desc" => "The password of the WHMCS admin user.", "id" => $cc_whmcs_bridge_shortname."_admin_password", "type" => "password"); if (get_option('cc_whmcs_bridge_sso_active')) { require(get_option('cc_whmcs_bridge_sso_active').'/includes/controlpanel.inc.php'); } $cc_whmcs_bridge_options[] = array( "name" => "Styling Settings", "type" => "heading", "desc" => "This section customizes the look and feel."); $cc_whmcs_bridge_options[] = array( "name" => "Don't load jQuery", "desc" => "If you have a theme using jQuery, you can avoid loading it twice by ticking this box", "id" => $cc_whmcs_bridge_shortname."_jquery", "type" => "checkbox"); $cc_whmcs_bridge_options[] = array( "name" => "Custom styles", "desc" => 'Enter your custom CSS styles here', "id" => $cc_whmcs_bridge_shortname."_css", "type" => "textarea"); $cc_whmcs_bridge_options[] = array( "name" => "Load WHMCS styles", "desc" => 'Select if you want to load the WHMCS style.css style sheet', "id" => $cc_whmcs_bridge_shortname."_style", "type" => "checkbox"); $cc_whmcs_bridge_options[] = array( "name" => "Other Settings", "type" => "heading", "desc" => "This section customizes miscellaneous settings."); $cc_whmcs_bridge_options[] = array( "name" => "Debug", "desc" => "If you have problems with the plugin, activate the debug mode to generate a debug log for our support team", "id" => $cc_whmcs_bridge_shortname."_debug", "type" => "checkbox"); $cc_whmcs_bridge_options[] = array( "name" => "Footer", "desc" => "Specify where you want the Zingiri footer to appear. If you disable the footer here,
we count on you to link back to our site some other way.", "id" => $cc_whmcs_bridge_shortname."_footer", "std" => 'Page', "type" => "select", "options" => array('Site','Page','None')); return $cc_whmcs_bridge_options; } function cc_whmcs_bridge_add_admin() { global $cc_whmcs_bridge_name, $cc_whmcs_bridge_shortname; $cc_whmcs_bridge_options=cc_whmcs_bridge_options(); if ( $_GET['page'] == "cc-ce-bridge-cp" ) { if ( isset($_REQUEST['action']) && 'install' == $_REQUEST['action'] ) { delete_option('cc_whmcs_bridge_log'); foreach ($cc_whmcs_bridge_options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($cc_whmcs_bridge_options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } cc_whmcs_bridge_install(); if (function_exists('cc_whmcs_bridge_sso_update')) cc_whmcs_bridge_sso_update(); header("Location: options-general.php?page=cc-ce-bridge-cp&installed=true"); die; } } add_options_page($cc_whmcs_bridge_name, $cc_whmcs_bridge_name, 'administrator', 'cc-ce-bridge-cp','cc_whmcs_bridge_admin'); } function cc_whmcs_bridge_admin() { global $cc_whmcs_bridge_name, $cc_whmcs_bridge_shortname; $cc_whmcs_bridge_options=cc_whmcs_bridge_options(); if ( isset($_REQUEST['installed']) ) echo '

'.$cc_whmcs_bridge_name.' installed.

'; if ( isset($_REQUEST['error']) ) echo '

The following error occured: '.$_REQUEST['error'].'

'; ?>

: " size="40" />

: />

:

:



Debug log'; echo '
'; } ?>