Popular Vulnerable Code

Covet

…in order to make a man or a boy covet a thing,it is only necessary to make the thing difficult to obtain.
-Mark Twain

<?php   function show_subscription_checkbox ($id='0') {global $sg_subscribe;sg_subscribe_start(); if ( $sg_subscribe->checkbox_shown ) return $id;if ( !$email = $sg_subscribe->current_viewer_subscription_status() ) : ?> <?php  ?><?php  ?><?php  ?> <p <?php if ($sg_subscribe->clear_both) echo 'style="clear:both;"'; ?>class="subscribe-to-comments"> <input type="checkbox"name="subscribe"id="subscribe"value="subscribe"style="width:auto;"<?php if ($sg_subscribe->default_subscribed) echo 'checked="checked"'; ?>/> <label for="subscribe"><?php echo $sg_subscribe->not_subscribed_text; ?></label></p> <?php  ?> <?php elseif ( $email == 'admin' && current_user_can('manage_options') ) : ?> <?php  ?><?php  ?><?php  ?> <p <?php if ($sg_subscribe->clear_both) echo 'style="clear:both;"'; ?>class="subscribe-to-comments"><?php echo str_replace('[manager_link]', $sg_subscribe->manage_link($email, true, false), $sg_subscribe->author_text); ?></p> <?php else : ?> <?php  ?><?php  ?><?php  ?> <p <?php if ($sg_subscribe->clear_both) echo 'style="clear:both;"'; ?>class="subscribe-to-comments"><?php echo str_replace('[manager_link]', $sg_subscribe->manage_link($email, true, false), $sg_subscribe->subscribed_text); ?></p> <?php  ?> <?php endif; $sg_subscribe->checkbox_shown = true;return $id;}   function show_manual_subscription_form () {global $id, $sg_subscribe, $user_email;sg_subscribe_start();$sg_subscribe->show_errors('solo_subscribe', '<div class="solo-subscribe-errors">', '</div>', __('<strong>Error:</strong>', 'subscribe-to-comments'), '<br />'); if ( !$sg_subscribe->current_viewer_subscription_status() ) :get_currentuserinfo(); ?> <?php  ?><?php  ?><?php  ?> <form action="http://<?php echo $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ?>"method="post"><input type="hidden"name="solo-comment-subscribe"value="solo-comment-subscribe"/><input type="hidden"name="postid"value="<?php echo $id; ?>"/><input type="hidden"name="ref"value="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; ?>"/> <p class="solo-subscribe-to-comments"><?php _e('Subscribe without commenting', 'subscribe-to-comments'); ?><br /><label for="solo-subscribe-email"><?php _e('E-Mail:', 'subscribe-to-comments'); ?><input type="text"name="email"id="solo-subscribe-email"size="22"value="<?php echo $user_email; ?>"/></label><input type="submit"name="submit"value="<?php _e('Subscribe', 'subscribe-to-comments'); ?>"/></p></form> <?php  ?>
If you enjoyed this post,make sure you subscribe to my RSS feed!

1 comment to Covet

Leave a Reply

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong><pre lang=""line=""escaped=""highlight="">