');
}
function bte_bc_options() {
$message = null;
$message_updated = __("BlogCopyright Options Updated.", 'bte_bc');
if (!empty($_POST['bte_bc_action'])) {
$message = $message_updated;
if (isset($_POST['bte_bc_header'])) {
update_option('bte_bc_header',$_POST['bte_bc_header']);
}
if (isset($_POST['bte_bc_footer'])) {
update_option('bte_bc_footer',$_POST['bte_bc_footer']);
}
if (isset($_POST['bte_bc_start'])) {
update_option('bte_bc_start',$_POST['bte_bc_start']);
}
if (isset($_POST['bte_bc_rights'])) {
update_option('bte_bc_rights',$_POST['bte_bc_rights']);
}
if (isset($_POST['bte_bc_org_header'])) {
update_option('bte_bc_org_header',$_POST['bte_bc_org_header']);
}
if (isset($_POST['bte_bc_org'])) {
update_option('bte_bc_org',$_POST['bte_bc_org']);
}
if (isset($_POST['bte_bc_org_footer'])) {
update_option('bte_bc_org_footer',$_POST['bte_bc_org_footer']);
}
if (isset($_POST['bte_bc_url'])) {
update_option('bte_bc_url',$_POST['bte_bc_url']);
}
if (isset($_POST['bte_bc_add'])) {
update_option('bte_bc_add',$_POST['bte_bc_add']);
}
if (isset($_POST['bte_bc_link'])) {
update_option('bte_bc_link',$_POST['bte_bc_link']);
}
print('
'.__('BlogCopyright Options Updated.', 'bte_bc').'
');
}
$bte_bc_header = get_option('bte_bc_header');
if (!isset($bte_bc_header)) {
$bte_bc_header = BTE_BC_HEADER;
}
$bte_bc_footer = get_option('bte_bc_footer');
if (!isset($bte_bc_header)) {
$bte_bc_footer = BTE_BC_FOOTER;
}
$bte_bc_start = get_option('bte_bc_start');
if (!isset($bte_bc_start)) {
$bte_bc_start = BTE_BC_START;
}
$bte_bc_rights = get_option('bte_bc_rights');
if (!isset($bte_bc_header)) {
$bte_bc_rights = BTE_BC_RIGHTS;
}
$bte_bc_org_header = get_option('bte_bc_org_header');
if (!isset($bte_bc_org_header)) {
$bte_bc_org_header = '';
}
$bte_bc_org = get_option('bte_bc_org');
if (!isset($bte_bc_org)) {
$bte_bc_org = get_bloginfo('name');
}
$bte_bc_org_footer = get_option('bte_bc_org_footer');
if (!isset($bte_bc_org_footer)) {
$bte_bc_org_footer = '';
}
$bte_bc_url = get_option('bte_bc_url');
if (!isset($bte_bc_url)) {
$bte_bc_url = get_bloginfo('url');
}
$bte_bc_add = get_option('bte_bc_add');
if (!isset($bte_bc_add)) {
$bte_bc_add = true;
}
$bte_bc_link = get_option('bte_bc_link');
if (!isset($bte_bc_link)) {
$bte_bc_link = true;
}
print('
'.__('Powerfull Blog Copyright by', 'BlogCopyright').' Sharath
For Instructions Visit:Plugin Page
' );
}
function bte_bc_optionselected($opValue, $value) {
if($opValue==$value) {
return 'selected="selected"';
}
return '';
}
function bte_bc_options_setup() {
add_options_page('BlogCopyright', 'Powerfull Blog Copyright', 10, basename(__FILE__), 'bte_bc_options');
}
?>