$v){ $_POST["odlinksdata"][$k] = stripslashes($v); } $_POST['odlinksdata']['odlinksinstalled'] = 'y'; $_POST['odlinksdata']['odlinksversion'] = $odlinksversion; $odl_new_slug = $_POST['odlinksdata']['odlinksslug']; $odlinkssettings = get_option('odlinksdata'); $odl_slug_check = $wpdb->get_results("SELECT post_name FROM {$table_prefix}posts WHERE post_name = '".$wpdb->escape($odl_new_slug)."'"); $odl_slug_checked = $odl_slug_check[0]; $odlinkswp_pageinfo = $wpdb->get_row("SELECT * FROM {$table_prefix}posts WHERE post_title = '[[ODLINKS]]'", ARRAY_A); if ($odlinkswp_pageinfo["post_title"]!="[[ODLINKS]]"){ $odlinkswp_pageinfo = odlinkscreate_page(); } $msg = "Settings Updated."; if($odl_new_slug!=$odlinkssettings['odlinksslug']){ if($odl_slug_checked->post_name!=$odl_new_slug){ $wpdb->query("UPDATE {$table_prefix}posts SET post_name = '".$odl_new_slug."' WHERE post_title = '[[ODLINKS]]'"); $msg ="Settings Updated."; }else{ $msg ="Settings Updated but a Slug exists with the name: ".$odl_new_slug."
"."Try Again."; $_POST['odlinksdata']['odlinksslug'] = $odlinkssettings['odlinksslug']; } } $odlinksnew_settings = array(); $odlinksnew_settings = $_POST['odlinksdata']; update_option('odlinksdata', $odlinksnew_settings); $wp_rewrite->flush_rules(); odlinkscheck_db(); $odlinkssettings = get_option('odlinksdata'); break; } odlinksinstall(); if ($msg!=''){ ?>
get_page_permastruct()=="")?"".get_bloginfo('url')."/index.php?pagename=".$odlinkssettings['odlinksslug']."":"".get_bloginfo('url')."/".$odlinkssettings['odlinksslug']."/"; $pageinfo = odlinksget_pageinfo(); ?>

General Settings

'top','btn' => 'bottom', 'bth' => 'both','no' => 'none'); ?> $share%\n"; }else{ $share_list .= " '728 x 15', '468x15' => '468 x 15'); ?>
odlinks Version:
WordPress Version:
odlinks URL:
odlinks Slug: ">
  > Display odlinks credit line at the bottom of ODLinks pages
ODLinks Page Link Name:
Number Of 'Last Links':
  > Display 'Last Links' Post.
Excerpt Length:
Display # of new/updated links:
of subcategories under each category link:
of subcategories to display under each category:
number of links per page to display in categories:
ODLinks Top Image:
Show the confirmation code: >

Google AdSense for Open Directory Links
Google AdSense Account ID:
example: no, pub-2844370112691023 or ...
Google Ad Position:   (If this value is assigned to 'none' then the Google Ads will not show up)
Ad Colours:
Border: Title/Link: Background: Text: URL:

 

get_results("SHOW TABLES", ARRAY_N); $tables = array(); for ($i=0; $i"; $wpdb->query($v); } } } function odlinksget_namefield(){ global $wpdb, $table_prefix, $wp_version; if ($user_field == false){ $tcols = $wpdb->get_results("SHOW COLUMNS FROM {$table_prefix}users", ARRAY_A); $cols = array(); for ($i=0; $i