From 0f220519ecd4cf573e9bbaaec063c4478501979a Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 18 Mar 2010 18:35:05 -0400 Subject: [PATCH] added wp-o-matic --- blog/wp-content/plugins/wp-o-matic 2/cron.php | 18 + blog/wp-content/plugins/wp-o-matic 2/help.php | 140 + .../plugins/wp-o-matic 2/inc/admin/admin.js | 212 + .../wp-o-matic 2/inc/admin/css/admin-new.css | 72 + .../wp-o-matic 2/inc/admin/css/admin.css | 609 + .../plugins/wp-o-matic 2/inc/admin/edit.php | 362 + .../wp-o-matic 2/inc/admin/export.opml.php | 16 + .../plugins/wp-o-matic 2/inc/admin/export.php | 33 + .../plugins/wp-o-matic 2/inc/admin/footer.php | 7 + .../plugins/wp-o-matic 2/inc/admin/header.php | 21 + .../inc/admin/helper/edit.helper.php | 12 + .../inc/admin/helper/form.helper.php | 590 + .../inc/admin/helper/import.helper.php | 73 + .../inc/admin/helper/tag.helper.php | 158 + .../plugins/wp-o-matic 2/inc/admin/home.php | 79 + .../inc/admin/images/bg_line_short.gif | Bin 0 -> 318 bytes .../wp-o-matic 2/inc/admin/images/bg_menu.gif | Bin 0 -> 575 bytes .../inc/admin/images/bg_menu_current.gif | Bin 0 -> 203 bytes .../wp-o-matic 2/inc/admin/images/bg_tab.gif | Bin 0 -> 403 bytes .../inc/admin/images/bg_tab_current.gif | Bin 0 -> 621 bytes .../inc/admin/images/bg_tab_section.gif | Bin 0 -> 2272 bytes .../inc/admin/images/icon_alert.gif | Bin 0 -> 246 bytes .../inc/admin/images/icon_link.png | Bin 0 -> 343 bytes .../wp-o-matic 2/inc/admin/images/icon_ok.gif | Bin 0 -> 263 bytes .../inc/admin/images/icon_rss.png | Bin 0 -> 530 bytes .../inc/admin/images/icon_spinner.gif | Bin 0 -> 1079 bytes .../inc/admin/images/icon_stop.gif | Bin 0 -> 258 bytes .../plugins/wp-o-matic 2/inc/admin/import.php | 94 + .../plugins/wp-o-matic 2/inc/admin/list.php | 53 + .../plugins/wp-o-matic 2/inc/admin/logs.php | 35 + .../wp-o-matic 2/inc/admin/options.php | 67 + .../plugins/wp-o-matic 2/inc/admin/setup.php | 71 + .../wp-o-matic 2/inc/admin/testfeed.php | 5 + .../inc/help/campaign_rewrite.php | 14 + .../wp-o-matic 2/inc/help/campaigns.php | 40 + .../inc/help/feed_date_option.php | 13 + .../wp-o-matic 2/inc/help/image_caching.php | 9 + .../plugins/wp-o-matic 2/inc/help/import.php | 5 + .../plugins/wp-o-matic 2/inc/help/logging.php | 13 + .../wp-o-matic 2/inc/help/post_templates.php | 28 + .../inc/help/post_templates_examples.php | 26 + .../inc/simplepie/simplepie.class.php | 13316 ++++++++++++++++ .../inc/simplepie/simplepie.tests.php | 324 + .../plugins/wp-o-matic 2/inc/tools.class.php | 367 + .../wp-o-matic 2/inc/xmlparser.class.php | 122 + .../plugins/wp-o-matic 2/readme.txt | 82 + .../plugins/wp-o-matic 2/wpomatic.php | 2076 +++ 47 files changed, 19162 insertions(+) create mode 100755 blog/wp-content/plugins/wp-o-matic 2/cron.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/help.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/admin.js create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin-new.css create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin.css create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/edit.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.opml.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/footer.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/header.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/edit.helper.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/form.helper.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/import.helper.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/tag.helper.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/home.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_line_short.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_menu.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_menu_current.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_tab.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_tab_current.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/bg_tab_section.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_alert.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_link.png create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_ok.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_rss.png create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_spinner.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/images/icon_stop.gif create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/import.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/list.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/logs.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/options.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/setup.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/admin/testfeed.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/campaign_rewrite.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/campaigns.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/feed_date_option.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/image_caching.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/import.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/logging.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/post_templates.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/help/post_templates_examples.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/simplepie/simplepie.class.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/simplepie/simplepie.tests.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/tools.class.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/inc/xmlparser.class.php create mode 100755 blog/wp-content/plugins/wp-o-matic 2/readme.txt create mode 100755 blog/wp-content/plugins/wp-o-matic 2/wpomatic.php diff --git a/blog/wp-content/plugins/wp-o-matic 2/cron.php b/blog/wp-content/plugins/wp-o-matic 2/cron.php new file mode 100755 index 0000000..02cc366 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/cron.php @@ -0,0 +1,18 @@ +runCron(); + } else + $wpomatic->log('Warning! cron.php was called with the wrong password or without one!'); \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/help.php b/blog/wp-content/plugins/wp-o-matic 2/help.php new file mode 100755 index 0000000..39fbd79 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/help.php @@ -0,0 +1,140 @@ + + + + + + <?php _e('Help') ?> › <?php echo $title ?> + + + + + + + + + +
+ +
+ + \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/admin.js b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/admin.js new file mode 100755 index 0000000..bc513f3 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/admin.js @@ -0,0 +1,212 @@ +Object.extend(String.prototype, { + toSlug: function() { + return this.toLowerCase().replace(/\W/g, ' ').replace(/\ +/g, '-').replace(/\-$/g, '').replace(/^\-/g, ''); + }, + + test: function(regex, params) { + return ((typeof regex == 'string') ? new RegExp(regex, params) : regex).test(this); + } +}) + +Event.observe( window, 'load', function(){ + + if($('edit_tabs')) { + $$('#edit_tabs a').each(function(el){ + Event.observe(el, 'click', function(event){ + Element.removeClassName($$('#edit_tabs .current').first(), 'current'); + Element.addClassName(el.parentNode, 'current') + + Element.removeClassName($$('#edit_sections .current').first(), 'current'); + Element.addClassName($('section_' + el.id.replace('tab_', '')), 'current'); + + Event.stop(event); + }, false); + }); + + // Basic tab + Event.observe('campaign_title', 'keyup', function(){ + $('campaign_slug').value = $F('campaign_title').toSlug(); + }); + + // Feeds tab + + //- Test feed links + var check_feed = function(el) { + el.className = 'input_text'; + if($F(el).length > 0) + { + var oncomplete = function(t) { + var t = typeof t === 'string' ? t : t.responseText; + el.className = (t == '1') ? 'ok input_text' : 'err input_text'; + }; + if(typeof jQuery !== 'undefined') + jQuery.post("admin-ajax.php", {action: "test-feed", url: el.value, 'cookie': encodeURIComponent(document.cookie)}, oncomplete); + else if(typeof Ajax !== 'undefined') + new Ajax.Request("admin-ajax.php", { method: "post", parameters: "action=test-feed&url="+el.value+'&cookie=' + encodeURIComponent(document.cookie), onComplete: oncomplete }) + else + return false; + + el.className = 'load input_text'; + } + }; + + var update_feeds = function() { + $$('#edit_feed div input[type=text]').each(function(el){ + Event.stopObserving(el, 'blur'); + Event.stopObserving(el, 'focus'); + + Event.observe(el, 'focus', function(e){ + el.className = 'input_text'; + }); + + Event.observe(el, 'blur', function(e){ + check_feed(el); + }); + }); + }; + + update_feeds(); + + //- Add feed link + feed_index = $$('#edit_feed label').length; + Event.observe('add_feed', 'click', function(){ + feed_index++; + var label = $$('#edit_feed label').first().innerHTML; + new Insertion.Bottom('edit_feed', '
'); + $$('#edit_feed input').last().focus(); + update_feeds(); + }, false); + + Event.observe('test_feeds', 'click', function(e){ + Event.stop(e); + $$('#edit_feed input').each(function(el){ check_feed(el); }); + }); + + // Categories + Event.observe('quick_add', 'click', function(){ + new Insertion.Bottom('categories', '
  • '); + $$('#categories input').last().focus(); + }, false); + + // Rewrite + var rewrite_index = 2; + var rewrite_keys = function(){ + $$('#edit_words .rewrite textarea', '#edit_words .relink textarea').each(function(area){ + var check = ''; + var inputs = $A(area.parentNode.getElementsByTagName('INPUT')); + inputs.each(function(input){ + if(input.type.toLowerCase() == 'checkbox') + check = input; + }); + + Event.stopObserving(area, 'keyup'); + Event.observe(area, 'keyup', function(){ + check.checked = (area.value.length > 0); + }); + }); + }; + + rewrite_keys(); + + Event.observe('add_word', 'click', function(e){ + Event.stop(e); + rewrite_index++; + var originvar = $('edit_words').getElementsBySelector('.origin label').first().innerHTML; + var regexvar = $('edit_words').getElementsBySelector('.origin .regex span').first().innerHTML; + var rewritevar = $('edit_words').getElementsBySelector('.rewrite label span').last().innerHTML; + var relinkvar = $('edit_words').getElementsBySelector('.relink label span').last().innerHTML; + + var li = document.createElement('LI'); + li.innerHTML = '
    '; + li.className = 'word'; + $('edit_words').appendChild(li); + + rewrite_keys(); + }); + + // - Options + Event.observe('campaign_templatechk', 'click', function(){ + if(!$('campaign_templatechk').checked) Element.removeClassName('post_template', 'current') + else Element.addClassName('post_template', 'current'); + }, false); + + Event.observe('enlarge_link', 'click', function() { + Element.toggleClassName('campaign_template', 'large'); + return false; + }, false); + } + + $$('a.help_link').each(function(el){ + Event.observe(el, 'click', function(event){ + window.open(el.href, 'popup', 'width=450,height=400,top=' + (screen.height - 400)/2 + ',left=' + (screen.width - 450)/2+',scrollbars=1,menubar=0,toolbar=0'); + Event.stop(event); + }, false); + }); + + if($('option_cachepath')) + Event.observe('option_cachepath', 'keyup', function(){ + $('cachepath_input').innerHTML = $F(this); + }); + + $$('.check a').each(function(el){ + el.checked = true; + Event.observe(el, 'click', function(e){ + Event.stop(e); + el.checked = !el.checked; + var inputs = $A(el.parentNode.parentNode.getElementsByTagName('INPUT')); + inputs.each(function(i){ i.checked = el.checked; }); + }); + }); + + // setup steps + if($('wpo-section-setup')) + { + var stepsnum = $A($('setup_steps').getElementsByTagName('LI')).length; + var current = $('setup_steps').getElementsBySelector('.current').first(); + var current_index = parseInt(current.id.replace('step_', '')); + + var enable_button = function(input) { + var input = $(input); + input.disabled = false; + Element.removeClassName(input, 'disabled'); + } + + var disable_button = function(input) { + var input = $(input); + input.disabled = 'disabled'; + Element.addClassName(input, 'disabled'); + } + + var update_buttons_status = function() { + disable_button('setup_button_submit'); + disable_button('setup_button_next'); + disable_button('setup_button_previous'); + if(current_index > 1) enable_button('setup_button_previous'); + if(current_index < stepsnum) enable_button('setup_button_next'); + if(current_index == stepsnum) enable_button('setup_button_submit'); + } + + var show_page = function(index) + { + Element.removeClassName('step_' + current_index, 'current'); + current_index = index; + Element.addClassName('step_' + current_index, 'current'); + update_buttons_status(); + $('current_indicator').innerHTML = index; + } + + Event.observe('setup_button_next', 'click', function(){ + if(current_index < stepsnum ) show_page(current_index + 1); + }); + + Event.observe('setup_button_previous', 'click', function(){ + if(current_index > 1) show_page(current_index - 1); + }); + } + + if($('import_mode_2')) + Event.observe('import_custom_campaign', 'change', function(){ $('import_mode_2').checked = true }); + + if($('import_mode_3')) + Event.observe('import_new_campaign', 'keyup', function(){ $('import_mode_3').checked = true }); +}, false ); \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin-new.css b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin-new.css new file mode 100755 index 0000000..ce4b3a9 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin-new.css @@ -0,0 +1,72 @@ +#wpomain { + height: auto !important; + height: 1%; + overflow: hidden; + max-width: 980px; +} + +#wpomenu, #wpomenu ul, #wpomenu ul li, #wpomenu ul li a { background: none !important; } +#wpomenu ul li, #wpomenu ul li a { float: none; display: block; } +#wpomenu ul li.current a { color: #C4542A; } + +#wpomenu { + margin: 5px 0; + float: left; + width: 160px; + height: 0; +} + +#wpomenu a { text-decoration: none; } + +#wpomenu div { + padding: 0; +} + +#wpocontent { + margin-left: 170px; + min-height: 200px; + height: auto !important; + height: 200px; +} + +#wpocontent .wrap { margin-top: 0; } +#wpocontent .wrap h2 { margin-top: 0; margin-bottom: 10px; } +#wpocontent .wrap .error, #wpocontent .wrap .updated { margin-bottom: 10px; } + +#setup_steps { + border: none; + padding: 0; +} + +#setup_steps li { + background-color: #EAF3FA; + padding: 5px 20px; + margin-bottom: 20px; +} + +.command { + background: white; +} + +div#setup_buttons { padding-top: 10px; } + +#edit_campaign #edit_buttons { border-top: none; padding-top: 0; } +#edit_buttons a { font-size: 11px; color: #2583AD; } +#edit_buttons input { padding-top: 1px; padding-bottom: 1px; } +#edit_tabs a { text-decoration: none; } + +#logs_pages { padding-top: 5px; } +#wpocontent .wrap #clean_logs { float: right; border-top: none; margin-top: 0; padding-top: 0; } + +#options li, #edit_sections div.section div.checkbox, #edit_sections div.section div.text, #edit_sections div.section div.inlinetext, #edit_sections div.section div.radio, #edit_sections div.section div.longtext, #edit_sections div.section div.multipletext, #edit_sections div.section div.btn, #export_campaigns, #importoptions { border-bottom: none; background-color: #EAF3FA; padding: 10px 15px; margin-bottom: 10px; } + +#export_campaigns, #importoptions { border-top: none; } +#edit_sections div.section div.section_warn { float: none; width: auto; margin-bottom: 10px; } +#section_categories #categories .input_text { display: inline; width: 130px; } +#edit_sections .section { background: none; padding-left: 0; } +.import_submit .button { margin-top: 0; } +#edit_submit { margin-bottom: 0; } + +#edit_words .word { width: 320px; } + +tr.highlight { background: #ffffe0; } \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin.css b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin.css new file mode 100755 index 0000000..fbee1ce --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/css/admin.css @@ -0,0 +1,609 @@ +#options, #edit_tabs, #edit_buttons, ul.import_links, div#setup_buttons { + margin: 0; + padding: 0; + overflow: hidden; + height: auto !important; + height: 1%; +} + +#categories, #edit_words { + overflow: hidden; + margin: 0; + padding: 0; +} + +#add_word { + clear: both; +} + +#sidebar h3 { + margin-top: 10px; + color: #333; +} + +#wpomenu { + background: url('../images/bg_menu.gif'); + padding: 0; + border: 0; + padding-left: 10px; +} + +#wpomenu ul { + margin: 0; + padding: 0; + background: url('../images/bg_menu.gif') right; + height: 36px; +} + +#wpomenu ul li { + float: left; + list-style-type: none; + margin: 6px 10px 0 0; + padding-left: 7px; +} + +#wpomenu ul li a { + display: block; + float: left; + border-bottom: none; + font-size: 85%; + font-family: "Lucida Grande", "Verdana"; + font-weight: bold; + color: #6C95B4; + height: 21px; + padding: 2px 7px 0 0; +} + +#wpomenu ul li.current { + background: url('../images/bg_menu_current.gif') left; + border: none; +} + +#wpomenu ul li.current a { + color: white; + background: url('../images/bg_menu_current.gif') right; +} + +#activity h3 { +} + +#main { + margin-right: 440px; +} + +#sidebar { + float: right; + border: 1px solid #ccc; + padding: 0 10px !important; + padding: 10px; + width: 350px; + background: #fafafa; +} + +#sidebar .help_link { + float: right; +} + +#sidebar h3 { + margin-bottom: 0; +} + +#sidebar_cron { +} + +#sidebar p { + margin-top: 10px; +} + +p.none { + color: #666; +} + +p#log_status { + margin-top: 10px +} + +.import_submit { + border-top: 1px dotted #ccc; + padding-top: 10px; + margin-top: 10px; + position: relative; + width: 400px; +} + +.import_submit .submit { + position: absolute; + right: 0; +} + +#importurl { + width: 290px; +} + +#searchform { + padding-bottom: 10px; +} + +p.errors { + color: red; +} + +#edit_buttons { + float: right; +} + +#edit_buttons li { + float: left; + margin-left: 10px; + list-style-type: none; +} + +#edit_tabs li { + list-style-type: none; + float: left; + margin: 2px 5px 0 0; + background: url('../images/bg_tab.gif') top left; + padding-left: 15px; + text-align: center; +} + +#edit_tabs li a { + display: block; + font-size: 85%; + font-family: "Lucida Grande", "Verdana"; + font-weight: bold; + float: left; + color: #999; + border-bottom: none; + background: url('../images/bg_tab.gif') top right; + padding: 2px 15px 2px 0; + width: auto !important; + width: 50px; + min-width: 50px; + text-shadow: white 0 1px 0; +} + +#edit_tabs li:hover { + margin-top: 1px; +} + +#edit_tabs li:hover a { + padding-top: 3px; +} + +#edit_tabs li a:hover { + color: #666; +} + +#edit_tabs li.current { + margin-top: 0; + background-image: url('../images/bg_tab_current.gif'); + border: none; +} + +#edit_tabs li.current a { + background-image: url('../images/bg_tab_current.gif'); + color: #729DBD; + padding-top: 4px; + cursor: default; +} + +#edit_sections { + background: url('../images/bg_tab_section.gif') no-repeat top right; + padding-right: 5px; +} + +#edit_sections .section { + background: url('../images/bg_tab_section.gif') no-repeat top left; + padding-left: 10px; + padding-top: 15px; + height: auto !important; + height: 200px; + min-height: 200px; + display: none; +} + +#edit_sections .section .buttons ul { + padding-left: 10px; + width: 500px; +} + +#edit_sections .section .buttons ul li { + list-style-type: none; +} + +#edit_sections .section .buttons ul li div { +} + +#edit_sections .section .buttons ul li label { + color: #333; +} + +#edit_sections .section h3 { + margin: 0; +} + +#edit_sections .current { + display: block; + border: none; +} + +#edit_sections .section label, label.main { + font-weight: bold !important; +} + +#edit_sections .section .text, #edit_sections .section .longtext, +#edit_sections .section .checkbox, #edit_sections .section .btn, +#edit_sections .section .multipletext, #edit_sections .section .radio, +#edit_sections .section .textarea, #edit_sections .section .inlinetext { + margin-bottom: 10px; + border-bottom: 1px dotted #999; + padding-bottom: 10px; +} + +#edit_sections .section .longtext label, #edit_sections .section .btn label, +#edit_sections .section .select label, #edit_sections .section .multipletext label, +#edit_sections .section .radio label.main, #edit_sections .section .textarea label, +#edit_sections .section .text label { + display: block; + margin-bottom: 4px; + font-weight: bold !important; +} + +#edit_sections .section .radio label.main { + margin-bottom: 8px; + cursor: default; + font-size: 100%; +} + +#edit_sections .section .radio label { + margin-right: 10px; + font-size: 85%; +} + +#edit_sections .section .longtext input { + width: 300px; +} + +#edit_sections .section .textarea textarea { + width: 300px; + height: 80px; +} + +#edit_sections .section #post_template { + margin-top: 5px; + border-bottom: none; + padding-bottom: 0; + margin-bottom: 0; + display: none; +} + +#edit_sections .section #post_template textarea.large { + width: 500px; + height: 400px; +} + +#edit_sections .section #post_template.current { + display: block; +} + +#edit_sections .section #post_template textarea { + width: 400px; + height: 150px; +} + +#edit_sections .section p { + margin: 0 0 .7em 0; +} + +#edit_sections .section p.note, p.note { + margin: 3px 0 0 0; + color: #666; + font-size: 11px; + font-weight: normal !important; +} + +#edit_sections .section .section_warn { + background: #FFFFE0; + border: 1px solid #EBEBA9; + padding: 8px; + float: right; + width: 300px; + font-size: 11px; +} + +#edit_sections .section .section_warn .icon { + float: right; +} + +#edit_sections .section .section_warn h3 { + font-size: 12px; + margin-bottom: 5px; +} + +#edit_feed div.inlinetext input.input_text { + width: 480px; + padding-right: 25px; +} + +#edit_feed div.inlinetext input.ok, #edit_feed div input.err, #edit_feed div input.load { + background-position: 490px 3px; + background-repeat: no-repeat; +} + +#edit_feed div.inlinetext .delete_label { + font-weight: normal; +} + +#edit_feed div input.ok { + background-image: url('../images/icon_ok.gif'); +} + +#edit_feed div input.load { + background-image: url('../images/icon_spinner.gif'); +} + +#edit_feed div input.err { + background-image: url('../images/icon_stop.gif'); +} + +#edit_submit { + font-size: 11px; + padding: 2px 3px; + margin-bottom: 5px; +} + +.word { + border: 1px solid #ccc; + padding: 10px; + margin-bottom: 10px; +} + +.word .relink, .word .rewrite { + margin-left: 10px; +} + +#edit_words li { + list-style-type: none; + float: left; + width: 400px; + margin: 10px; +} + +#edit_words .word .textarea textarea { + height: 50px; +} + +#edit_words .word .textarea .regex { + display: block; + margin-top: 5px; +} + +#categories { + width: 600px; + list-style-type: none; + margin: 10px 0 10px 10px; + padding: 0; +} + +#categories li { + width: 200px; +} + +#categories li label { } + +#categories li.pad1 { margin-left: 10px; } +#categories li.pad2 { margin-left: 20px; } +#categories li.pad3 { margin-left: 30px; } +#categories li.pad4 { margin-left: 40px; } +#categories li.pad5 { margin-left: 50px; } +#categories li.pad6 { margin-left: 60px; } +/* ...if you go past level 4 you're insane enough! */ + +.test_link { + font-size: 10px; + position: relative; + bottom: 3px; + border-bottom: none; + text-indent: -500em; + width: 16px; + height: 16px; +} + +.test_ok { + background: url('../images/icon_ok.gif'); +} + +#importtree li ul li { + margin-left: 20px; + color: red !important; +} + +#options { +} + +#options li { + border-bottom: 1px dotted #ccc; + padding-bottom: 10px; +} + +#options li label { + font-weight: bold; +} + +#wpofooter p { + background: url('../images/bg_line_short.gif') no-repeat top; + padding-top: 10px; + text-align: center; + font-size: 85%; +} + +#importtree { + width: 400px; +} + +#importtree ul { + list-style-type: none; + margin-left: 0; + padding-left: 0; +} + +#importtree h4 { + font-size: 13px; + margin: 10px 0 0 0; + padding: 0; +} + +#importtree li li h4 { + color: #666; +} + +#importtree li li li h4 { + color: #999; +} + +#importtree li li.odd { + background: #F1F5FA; +} + +#importtree li li h4 label { + padding: 3px; +} + +#importtree h4 label { + display: block; +} + +#importtree .import_links { + float: right; + margin: 3px 3px 0 0; +} + +#importtree .import_links li { + list-style-type: none; + float: left; + margin-left: 5px; +} + +#importtree .import_links li a { + display: block; + float: left; + text-indent: -500em; + width: 16px; + height: 16px; + border-bottom-width: 0; +} + +#importtree .import_links li a.feed_rss { + background: url('../images/icon_rss.png'); +} + +#importtree .import_links li a.feed_link { + background: url('../images/icon_link.png'); +} + +#importtree .check { + float: right; + font-size: 11px; + margin-right: 3px; +} + +ol.campaignlist { + width: 300px; +} + +ol.campaignlist li span.details { + float: right; + font-weight: bold; +} + +div.error ul { + margin: 0 0 20px 20px; + padding: 0; +} + +div.error ul li { + list-style-type: square; +} + +#command_input { + width: 600px; + margin-right: 8px; +} + + +#logs { + padding-left: 25px; +} + +#logs li { + font-size: 11px; +} + +#tags_list { + font-size: 11px; + color: #999; + padding-left: 6px; + border-left: 3px solid #eee; +} + +#cachepath { + color: #333; +} + +#importoptions { + padding: 10px 0; + margin: 10px 0; + border-top: 1px dotted #999; + border-bottom: 1px dotted #999; +} + +#importoptions h4 { + margin-top: 0; + margin-bottom: 10px; +} + +#importoptions ul, #export_campaigns { + list-style: none; + padding-left: 15px; +} + +#clean_logs { + float: right; +} + +.logs_bar { + border-bottom: 1px dotted #999; + height: 35px; +} + +#export_campaigns { + border-top: 1px dotted #999; + border-bottom: 1px dotted #999; + padding: 10px 0 8px; +} + +#setup_steps { + padding-top: 10px; + padding-left: 10px; + border: 1px dotted #999; + border-width: 1px 0; +} + +#setup_steps li { + margin-bottom: 30px; + list-style-type: none; + display: none; +} + +#setup_steps li.current { + display: list-item !important; + display: block; +} + +#setup_button_submit { float: right; } +#setup_buttons input.disabled { background: #eee; color: #999; } + +.command { border: 1px solid #ccc; background: 1px solid #fafafa; padding: 10px; color: #666; } +#options_cron .command { margin: 10px 0; } +#options_cron h3 { font-size: 11px; color: #333; margin: 10px 0; } \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/edit.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/edit.php new file mode 100755 index 0000000..f572b9b --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/edit.php @@ -0,0 +1,362 @@ + + +adminHeader() ?> + +
    + +

    Add campaign

    + +

    Editing campaign

    + + + errno) && $this->errno): ?> +
    +

    +
      + errors as $section => $errs): ?> + +
    • + +
        + +
      • + +
      +
    • + + +
    +
    + + +

    Edit it or fetch it now', 'wpomatic'), $this->adminurl . '&s=edit&id=' . $addedid, wp_nonce_url($this->adminurl . '&s=forcefetch&id=' . $addedid, 'forcefetch-campaign_' . $addedid)) ?>

    + tool_success)): ?> +

    tool_success ?>

    + +

    + + + +
    + + + + + + + + +
      +
    • +
    • +
    + +
      +
    • +
    • +
    • +
    • +
    • + +
    • + +
    + +
    + +
    +
    + + +

    +
    + +
    + + +

    +
    + +
    + + +

    +
    +
    + + +
    +

    + +
    + + $feed): ?> +
    + + + +
    + + + + + $feed): ?> +
    + + +
    + + + +
    + + +
    + + +
    + + | +
    + + +
    +

    + +
      + adminEditCategories($data) ?> + + + $catname): ?> +
    • + + +
    • + + +
    + + +
    + + +
    +

    Read more', 'wpomatic'), $this->helpurl . 'campaign_rewrite') ?>

    + +
      + + $rewrite): ?> +
    • +
      + + id) ?> + +
      + +
      + + +
      + + +
    • + + +
    • +
      + + + +
      +
      + + +
      + +
    • + +
    + + +
    + + +
    + +
    + <?php _e('Warning', 'wpomatic') ?> +

    +

    +

    +
    + + +
    + + + +
    + + + +

    + +

    +

    + {content}, {title}, {permalink}, {feedurl}, {feedtitle}, {feedlogo},
    {campaigntitle}, {campaignid}, {campaignslug} +

    +
    + +

    post templates, or check some examples', 'wpomatic'), $this->helpurl . 'post_templates', $this->helpurl . 'post_templates_examples') ?>

    +
    + +
    + + + + + + + + + + + + + +

    +
    + +
    + + cachepath))) ?> +

    +
    + +
    + + +

    +
    + +
    + + +
    + +
    + + + + + + + + + + +
    + +
    + + +

    +
    + +
    + + +

    +
    + +
    + + +
    + +
    + + + __('Open', 'wpomatic'), + 'closed' => __('Closed', 'wpomatic'), + 'registered_only' => __('Registered only', 'registered_only') + ), _data_value($data['main'], 'comment_status', 'open'))) ?> + + + +
    +
    + + + +
    +
    +

    +

    + +
      +
    • +
      + +
      +
    • +
    • +
      + + + + + + +
      +
    • +
    • +
      + + + + +
      +
    • +
    +
    + + +
    + +
    +
    +
    + +adminFooter() ?> \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.opml.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.opml.php new file mode 100755 index 0000000..dc249d3 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.opml.php @@ -0,0 +1,16 @@ +'; ?> + + + WPOMATIC + + + + + + feeds as $feed): ?> + + + + + + diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.php new file mode 100755 index 0000000..4390f0a --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/export.php @@ -0,0 +1,33 @@ + + +adminHeader() ?> + + +
    +

    +
    + + +
    +

    +

    Note: This tool only exports lists of feeds, not custom options.', 'wpomatic') ?>

    + +
    + +
      + +
    • + id, isset($_REQUEST['export_campaign']) && _data_value($_REQUEST['export_campaign'], $campaign->id), 'id=export_campaign_' . $campaign->id) ?> + id, $campaign->title . ' ' . $campaign->id . '') ?> +
    • + +
    + +

    + +

    + +

    +
    + +adminFooter() ?> \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/footer.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/footer.php new file mode 100755 index 0000000..e5e7b40 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/footer.php @@ -0,0 +1,7 @@ +
    + + +
    + +

    WP-o-Matic version ?> — Copyright ©2008 Guillermo Rauch

    +
    \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/header.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/header.php new file mode 100755 index 0000000..01266ca --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/header.php @@ -0,0 +1,21 @@ + +newadmin): ?> + + + +
    + +
    +
    +
      +
    • >
    • +
    • >
    • +
    • >
    • +
    • >
    • +
    • >
    • +
    • >
    • +
    +
    +
    + +
    \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/edit.helper.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/edit.helper.php new file mode 100755 index 0000000..59805d5 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/edit.helper.php @@ -0,0 +1,12 @@ +cat_name; + + echo ' +
  • + ' . checkbox_tag('campaign_categories[]', $category->cat_ID, in_array($category->cat_ID, $data['categories']), 'id=category_' . $category->cat_ID) . ' + ' . label_for('category_' . $category->cat_ID, $name) . '
  • '; +} \ No newline at end of file diff --git a/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/form.helper.php b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/form.helper.php new file mode 100755 index 0000000..5eb78b7 --- /dev/null +++ b/blog/wp-content/plugins/wp-o-matic 2/inc/admin/helper/form.helper.php @@ -0,0 +1,590 @@ + tags based on optional $options array variable. + * + * The options_for_select helper is usually called in conjunction with the select_tag helper, as it is relatively + * useless on its own. By passing an array of $options, the helper will automatically generate tags. If the helper detects that the array value is an array itself, + * it creates an tag with the name of the group being the key and the contents of the being the array. + * + * Options: + * - include_blank - Includes a blank tags from + * @param string selected option value + * @param array additional HTML compliant