One ThemeOne Theme Version '; echo '1.1.3'; echo ' Control Panel
Hi!
You have been a faithful One Theme customer since you\'re born ;)
'; echo 'Licensed Domain:
All :)
'; } function ot_appearance_page () { echo '
One Theme Appearance Settings
One Theme gives you the freedom to edit certain aspects of your web site\'s appearance without requiring any web design experience. For your ease of use all of the options below are multiple choice, excluding some of the additional features offered in the "Misc" section. D'; echo 'on\'t be afraid to leave boxes empty however, One Theme is smart enough to handle the omission.
'; wp_nonce_field ('update-options'); echo '
One ThemeColor & Layout
Help The color you specify here will be your default color scheme.
'; echo '
Help Allows your readers to choose the color they wish to view the site in.
Help There are three pre-made homepage layouts to choose from.
One ThemePost Appearance
'; $limit_mode = (int)get_option ('ot_limit_mode'); echo '
WordPress Default (use Excerpts & "more" tags)

No Limit (show full posts)

User Defined Limit (for best results)

Help WordPress Default:This will allow images/videos/html to appear on the homepage and category pages. It also displays a "Read More" link where the "More Tag" is placed.

Help No Limit: This option won\'t limit your content, this is the ideal choice for use with the "Blog Layout".

Help User Defined: If you are using the "News" or "Default" layout, this option is recommended. For best results select "300 Characters".
Help If activated One Theme will limit your post titles to a specific number of characters.
Help If you select "Yes" One Theme will limit your post titles to better suite the layout. We\'ve pre-set how many characters to limit on each page through-out the site. Set to "No" to disable post title limiting.
Help If activated this allows you to assign a unique image to your posts.
Help If you see the image pending box this means the article doesn\'t have the "Thumbnail" custom field attached to it. Simply go back and edit the article, find the the "custom fields" box, enter "Thumbnail" into the "Key" field, and the URL to your image in the "Value" field. For best results the image dimensions should be 112px x 112px.
Help If activated the author and subscribe link will appear below all posts.
Help Activates or deactivates the bar below each post allowing the viewing of author details and subscription of RSS.
Help If activated this will display the related, bookmarks & tag tabs.
Help Activates or deactivates the box below all posts displaying related articles, social bookmarks and any assigned post tags.
'; echo '
One ThemePost Info/Gravatar
Help You will find the Post Intro at the top of every post if activated.
One ThemeMisc
Help Shows four of the most commented posts on your sidebar in thumbnail format.
Info Example: Read More »
One ThemeFeedBurner
Info Example: 2129394
Info '; echo 'Example: http://feeds.feedburner.com/OneThemeDemo
'; } function ot_add_switcher_ajax () { echo ' '; echo ' '; } function ot_seo_page () { echo '
One Theme Search Engine Optimization
While rather thin on the ground in this version. One Theme hopes to weave into future versions of One Theme a multitude of Search Engine Optimisation enhancements and Web Analysis tools. Please post your suggestions on our Support Forum!
'; wp_nonce_field ('update-options'); echo '
One ThemeSearch Friendly Search URL\'s
Help Your search page URL\'s will look like this if activated: /search/this+is+a+search+example
'; $permalinks_enabled = get_option ('permalink_structure'); echo (empty ($permalinks_enabled) ? '
Please enable permalinks to activate this feature.
' : ''); echo ' '; echo '

Help Set to " Yes" to enable search friendly Search URL\'s.

Note: This feature only works if you have a customized permalink structure.
One ThemeStats & Tracking
Info Example: Code provided by Statcounter or Google Analytics
'; } function ot_adsense_page () { echo '
One Theme Ad Settings
The One Theme Ad feature makes it easy for you to add popular pay per click advertising to your website. Adsense ID fields are available to make it easy for you to attach Google Adsense blocks, but you also have the freedom of entering any custom HTML code you like, or even just plain old '; echo 'text! If you don\'t wish to show ads in a specific area at all, just leave that box empty and relax while One Theme handles the rest.
'; wp_nonce_field ('update-options'); echo '
One ThemeAffiliate Link
Info If you wish you use your One Theme affiliate link in the footer and make a percentage on every sale attributable to your site, enter your E-Junkie affiliate link here.
One ThemeRight Sidebar (120x600)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


Info Example: Affiliate banners, CPM banners, etc
Right Sidebar (120x600)
One ThemeTop of Category (468x60)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


Info'; echo ' Example: Affiliate banners, CPM banners, etc
Top of Category (468x60)
One ThemeBottom of Category (336x280)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


'; echo 'Info'; echo ' Example: Affiliate banners, CPM banners, etc
Bottom of Category (336x280)
One ThemeTop of Post (468x60)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


Info'; echo ' Example: Affiliate banners, CPM banners, etc
Top of Post (468x60)
One ThemeBelow Post (336x280)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


Info'; echo ' Example: Affiliate banners, CPM banners, etc
Below Post (336x280)
One ThemeAbove sidebars (336x280)

pub-4271937201388273
2839102756

Alternatively you can enter HTML to replace the AdSense block.


Info'; echo ' Example: Affiliate banners, CPM banners, etc
Above sidebars (336x280)
'; } function ot_menu_links_page () { if (isset ($_POST['ot_footer_links'])) { if (is_array ($_POST['ot_footer_links'])) { update_option ('ot_footer_links', $_POST['ot_footer_links']); } } else { if (isset ($_POST['kill'])) { update_option ('ot_footer_links', false); } } if (isset ($_POST['ot_top_menu_links'])) { if (is_array ($_POST['ot_top_menu_links'])) { update_option ('ot_top_menu_links', $_POST['ot_top_menu_links']); } } else { if (isset ($_POST['kill'])) { update_option ('ot_top_menu_links', false); } } if (isset ($_POST['ot_sub_menu_links'])) { if (is_array ($_POST['ot_sub_menu_links'])) { update_option ('ot_sub_menu_links', $_POST['ot_sub_menu_links']); } } else { if (isset ($_POST['kill'])) { update_option ('ot_sub_menu_links', false); } } $footer_links = get_option ('ot_footer_links'); $top_menu_links = get_option ('ot_top_menu_links'); $sub_menu_links = get_option ('ot_sub_menu_links'); $page_data = get_pages (); $category_data = get_categories (); echo '
'; } function ot_upload_page () { $upload_directory = ABSPATH . get_option ('upload_path'); if (!is_writable ($upload_directory)) { echo '
Sorry!
Your upload directory ('; echo $upload_directory; echo ') does not appear to be writable by the webserver.
'; return true; } if ($_POST) { $file = $_FILES['file_' . $_POST['option']]; $upload_target = $upload_directory . '/' . basename ($file['name']); $actual_src = get_option ('home') . '/' . get_option ('upload_path') . '/' . basename ($file['name']); switch ($file['error']) { case UPLOAD_ERR_FORM_SIZE: { $error = 'The file you posted is too big!'; break; } case UPLOAD_ERR_INI_SIZE: { $error = 'The file you posted is too big!'; break; } case UPLOAD_ERR_NO_FILE: { $error = 'You did not upload a file'; } } if (move_uploaded_file ($file['tmp_name'], $upload_target)) { update_option ($_POST['option'], $actual_src); } else { echo $error; } } echo '
One Theme Image Uploads
Make One Theme your own with custom logo uploads. This page allows you to edit the four most important images to the look and feel of your website. Guideline sizes have been included in order help you get the most out of this feature. Once you have the images you want, it\'s as easy'; echo ' as browse and upload!
'; } function ot_print_uploads_page ($color, $section) { $tab_types = array (); $tab_types['blue'] = 'top'; $tab_types['black'] = 'bot'; $tab_types['green'] = 'bot'; $tab_types['pink'] = 'bot'; $tab_types['red'] = 'bot'; switch ($section) { case 'header': { $tab_numbers = array (); $tab_numbers['blue'] = 1; $tab_numbers['black'] = 2; $tab_numbers['green'] = 3; $tab_numbers['pink'] = 4; $tab_numbers['red'] = 5; echo '

The recommended size for this image is 329x89

'; echo 'Current Image

'; break; } case 'header_bg': { $tab_numbers = array (); $tab_numbers['blue'] = 1; $tab_numbers['black'] = 2; $tab_numbers['green'] = 3; $tab_numbers['pink'] = 4; $tab_numbers['red'] = 5; echo '

The recommended size for this image is 587x144

'; echo 'Current Image

'; break; } case 'footer_logo': { $tab_numbers = array (); $tab_numbers['blue'] = 1; $tab_numbers['black'] = 2; $tab_numbers['green'] = 3; $tab_numbers['pink'] = 4; $tab_numbers['red'] = 5; echo '
'; break; } case 'site_background': { $tab_numbers = array (); $tab_numbers['blue'] = 1; $tab_numbers['black'] = 2; $tab_numbers['green'] = 3; $tab_numbers['pink'] = 4; $tab_numbers['red'] = 5; echo '

'; echo 'Current Image

'; } } } function ot_add_admin_styles () { $css_path = get_option ('home') . '/wp-content/plugins/ot_plugins'; echo '' . ' '; echo '' . ' '; echo '' . ' '; echo ''; } function magic_check_1 () { return 26 * 23 + 0; } function ot_default_image () { update_option ($_POST['option'], ''); $color = &$_POST['color']; switch ($_POST['option']) { case 'ot_header_logo_' . $color: { echo ot_top_logo ($color); break; } case 'ot_header_bg_' . $color: { echo ot_logo_bg ($color); break; } case 'ot_footer_logo_' . $color: { echo ot_footer_logo ($color); break; } case 'ot_site_background_' . $color: { echo ot_site_bg ($color); } } exit (); } function ot_youtube_ajax () { if (substr ($_POST['url'], 0, 31) != 'http://www.youtube.com/watch?v=') { echo '
Please enter a valid YouTube URL.
'; exit (); } $video_data = ot_get_youtube_video ($_POST['url']); if ($video_data['xml_response'] == 'Video not found') { echo '
YouTube video not found!
'; exit (); return null; } if ($video_data['xml_response'] == 'Invalid id') { echo '
YouTube video not found!
'; exit (); return null; } echo '' . ' '; echo ' ' . ' '; echo '' . ' '; exit (); } function magic_check_2 () { return magic_check_1 () * 3; } function ot_search_posts () { if (empty ($_POST['search_term'])) { $output = '

Please enter a search term.

'; exit ($output); } global $wpdb; $sql = '' . 'SELECT ID, post_title FROM ' . $wpdb->prefix . 'posts WHERE post_content LIKE \'%' . $_POST['search_term'] . '%\' AND post_status = \'publish\' AND post_type=\'post\' OR post_title LIKE \'%' . $_POST['search_term'] . '%\' AND post_status = \'publish\' AND post_type=\'post\' '; $result = mysql_query ($sql); if (mysql_numrows ($result) == 0) { $output = '

Sorry, your search didn\'t return any results

'; exit ($output); } $rows = array (); while ($row = mysql_fetch_assoc ($result)) { $rows[] = $row; } foreach ($rows as $row) { echo ' ' . $row['post_title'] . '
' . ' '; } exit (); } function ot_featured_preview () { $type = $_POST['type']; $id = $_POST['id']; if ((empty ($type) OR empty ($id))) { var_dump ($type, $id); exit ('Possible hacking attempt'); return null; } switch ($type) { case 'post': { if (!is_numeric ($id)) { exit ('Non numeric ID'); } ot_get_featured_post ($id); exit (); break; } case 'category': { if (!is_numeric ($id)) { exit ('Non numeric ID'); } ot_preview_featured_cat ($id); exit (); break; } default: { exit ('unsupported preview type'); break; } } } function ot_uninstall () { update_option ('ot_appearance_color', false); update_option ('ot_home_layout', false); update_option ('ot_text_readmore', false); } function magic_check_3 ($start) { return $start + (420 + 0) * 3; } function ot_install () { update_option ('ot_appearance_color', 'blue'); update_option ('ot_home_layout', 'default'); update_option ('ot_text_readmore', 'more'); update_option ('ot_limit_mode', '1'); update_option ('ot_video_mode', '0'); update_option ('ot_use_details_rss_bar', 'true'); update_option ('ot_use_related', 'true'); } function ot_featured_page () { if (!empty ($_POST['ot_featured_post'])) { if (is_numeric ($_POST['ot_featured_post'])) { update_option ('ot_featured_post', $_POST['ot_featured_post']); } } if (!empty ($_POST['ot_featured_category_1'])) { if (is_numeric ($_POST['ot_featured_category_1'])) { update_option ('ot_featured_category_1', $_POST['ot_featured_category_1']); } if ($_POST['ot_featured_category_1'] == 'off') { delete_option ('ot_featured_category_1'); } } if (!empty ($_POST['ot_featured_category_2'])) { if (is_numeric ($_POST['ot_featured_category_2'])) { update_option ('ot_featured_category_2', $_POST['ot_featured_category_2']); } if ($_POST['ot_featured_category_2'] == 'off') { delete_option ('ot_featured_category_2'); } } if (!empty ($_POST['ot_featured_category_3'])) { if (is_numeric ($_POST['ot_featured_category_3'])) { update_option ('ot_featured_category_3', $_POST['ot_featured_category_3']); } if ($_POST['ot_featured_category_3'] == 'off') { delete_option ('ot_featured_category_3'); } } if (!empty ($_POST['ot_featured_category_4'])) { if (is_numeric ($_POST['ot_featured_category_4'])) { update_option ('ot_featured_category_4', $_POST['ot_featured_category_4']); } if ($_POST['ot_featured_category_4'] == 'off') { delete_option ('ot_featured_category_4'); } } if (!empty ($_POST['ot_video_mode'])) { if ($_POST['ot_video_mode'] == 3) { delete_option ('ot_video_mode'); } else { if (is_numeric ($_POST['ot_video_mode'])) { update_option ('ot_video_mode', $_POST['ot_video_mode']); } } } if (!empty ($_POST['ot_featured_video_url'])) { update_option ('ot_featured_video_url', $_POST['ot_featured_video_url']); } if (!empty ($_POST['ot_embed_video'])) { update_option ('ot_embed_video', $_POST['ot_embed_video']); } if (!empty ($_POST)) { if (!empty ($_POST['ot_limit_featured_post'])) { update_option ('ot_limit_featured_post', true); } else { update_option ('ot_limit_featured_post', false); } } $limit_post = get_option ('ot_limit_featured_post'); $featured_1 = get_option ('ot_featured_category_1'); $featured_2 = get_option ('ot_featured_category_2'); $featured_3 = get_option ('ot_featured_category_3'); $featured_4 = get_option ('ot_featured_category_4'); $video_mode = get_option ('ot_video_mode'); $featured_video_url = get_option ('ot_featured_video_url'); $embed_video = get_option ('ot_embed_video'); $category_data = get_categories (); echo '
One Theme Featured Selection
One Theme uses the options on this page in conjunction with the "One Theme Default" & "One Theme News" homepage layouts (seen on the appearance page). Feel free to enhance your website by selecting a featured post and up to four featured categories to s'; echo 'how on your home page.
'; } define ('OT_TEXTAREA_ROWS', '5'); define ('OT_TEXTAREA_COLS', '60'); define ('OT_VERSION', '1.1.3'); define ('OT_VERSION_DATE', 1223355600); if (is_admin ()) { wp_enqueue_script ('scriptaculous-effects'); } add_action ('admin_menu', 'ot_add_pages'); $ot_page = stripslashes ($_GET['page']); $ot_page = plugin_basename ($ot_page); $use_switcher = get_option ('ot_color_switcher'); if ($use_switcher == 'true') { add_action ('wp_head', 'ot_add_switcher_ajax'); } add_action ('admin_head', 'ot_add_admin_styles'); add_action ('wp_ajax_ot_default_image', 'ot_default_image'); add_action ('wp_ajax_ot_youtube_ajax', 'ot_youtube_ajax'); add_action ('wp_ajax_ot_license_change', 'ot_license_change'); add_action ('wp_ajax_ot_search_posts', 'ot_search_posts'); add_action ('wp_ajax_ot_featured_preview', 'ot_featured_preview'); ?>Unable to add cookies, header already sent.
File: /var/www/vhosts/clubdelc3.com.ar/httpdocs/wp-content/plugins/ot_plugins/control-panel.php
Line: 2758