'.
__('It appears that cforms was not able to create abspath.php in your cforms plugin folder. Please check file/folder permissions (plugins/cforms), then re-activate cforms.', 'cforms').
'
'.
__('If the problem persists, please create a file (using your preferred text editor) manually with the following content:', 'cforms').
'
<?php $abspath = \''.addslashes(ABSPATH).'\'; ?>
'.
'
'.__('Save the file as abspath.php and ftp to your cforms folder.', 'cforms').'
';
}
}
### get WP plugin dir
function get_cf_plugindir(){
$cr = defined('PLUGINDIR') ? get_option('siteurl') .'/'. PLUGINDIR . '/' : get_option('siteurl') . '/wp-content/plugins/';
$cr = defined('WP_CONTENT_URL') ? WP_CONTENT_URL.'/plugins/' : $cr;
$cr = defined('WP_PLUGIN_URL') ? WP_PLUGIN_URL .'/' : $cr;
return $cr;
}
### cforms JS scripts
function cforms_scripts() {
global $wp_scripts, $localversion;
### get options
$cformsSettings = get_option('cforms_settings');
### global settings
$request_uri = get_request_uri();
if ( version_compare(strval($wp_scripts->registered['jquery']->ver), strval("1.2.6") ) === -1 ){
wp_deregister_script('jquery');
wp_register_script('jquery',$cformsSettings['global']['cforms_root'].'/js/jquery.js',false,'1.2.6');
wp_enqueue_script('jquery');
}
echo '' . "\n";
if ( strpos($request_uri,'cforms-options')!==false ){
echo '' . "\n";
wp_register_script('cforms_admin_cal',$cformsSettings['global']['cforms_root'].'/js/cformsadmincal.js',false,$localversion);
wp_enqueue_script('cforms_admin_cal');
}
wp_deregister_script('prototype');
wp_register_script('cforms_interface',$cformsSettings['global']['cforms_root'].'/js/interface.js',false,$localversion);
wp_register_script('cforms_admin',$cformsSettings['global']['cforms_root'].'/js/cformsadmin.js',false,$localversion);
wp_enqueue_script('cforms_interface');
wp_enqueue_script('cforms_admin');
}
### some css for arranging the table fields in wp-admin
function cforms_options_page_style() {
global $localversion;
$cformsSettings = get_option('cforms_settings');
$nav = $cformsSettings['global']['cforms_dp_nav'];
echo "\n\n";
echo ''."\n";
echo ''."\n\n";
}
### footer unbder all options pages
function cforms_footer() {
global $localversion;
?>