Advertisement
Guest User

SQL Injection - single.php

a guest
Aug 5th, 2012
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.36 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  4.  
  5. <div id="wrapper" class="fade-in-slow">
  6.    
  7.         <header id="top">
  8.             <div class="nav-wrap">
  9.                 <div class="prim">
  10.                     <nav>
  11.                         <ul class="menu">
  12.                             <li><a href="<?php bloginfo('url'); ?>/#mybooks" alt="My books" class="books">My books</a></li>
  13.                             <li><a href="<?php bloginfo('url'); ?>/#blog" alt="Blog" class="blog">Blog</a></li>
  14.                             <li><a href="<?php bloginfo('url'); ?>/#askhoney" class="askhoney">Ask Honey</a></li>
  15.                             <li><a href="<?php bloginfo('url'); ?>/#contact" class="contact">Contact</a></li>
  16.                         </ul>
  17.                        
  18.                         <ul id="logomark">
  19.                             <li><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" class="home">Home</a></li>
  20.                         </ul>
  21.                        
  22.                         <ul id="right">
  23.                             <li><a href="http://twitter.com/hesterbrowne" class="twitter">Twitter</a></li>
  24.                             <li><a href="http://www.pinterest.com/hesterbrowne" class="pinterest">Pinterest</a></li>
  25.                             <li><a href="http://www.facebook.com/HesterBrowneWriter" class="facebook">Facebook</a></li>
  26.                         </ul>
  27.                     </nav>
  28.                 </div>
  29.                 <div class="hatch"></div>
  30.                 <div class="stamp"></div>
  31.             </div>
  32.         </header>
  33.    
  34.         <div class="inner">
  35.            
  36.             <article id="post-<?php the_ID(); ?>">
  37.                
  38.                 <section class="post-title"><h1><?php the_title(); ?></h1></section>
  39.                
  40.                 <section class="post">
  41.                    
  42.                     <?php the_content(); ?>
  43.                    
  44.                    
  45.                     <?php if ( in_category(4) ) { ?>
  46.                         <hr/>
  47.                         <?php the_field('review') ?>
  48.                         <hr/>
  49.                         <?php if(get_field('review')) { ?>
  50.                         <div class="review">
  51.                                 <?php the_field('review') ?>                           
  52.                         </div>
  53.                         <?php } ?>
  54.                                                        
  55.                        
  56.                          <div id="book-<?php the_ID(); ?>" class="bookcovers">
  57.                             <?php
  58.                              
  59.                             $rows = get_field('book_covers');
  60.                             $row_count = count($rows);
  61.                             $i = rand(0, $row_count - 1);?>
  62.                              
  63.                             <img src="<?php echo $rows[$i]['image']; ?>" />
  64.                          </div>
  65.                        
  66.                        
  67.                         <?php if(get_field('synopsis')) { ?>
  68.                             <hr/>
  69.                             <p><strong>Synopsis</strong></p>
  70.                             <?php the_field('synopsis') ?>                             
  71.                         <?php } ?>
  72.                            
  73.                     <?php } ?>
  74.                    
  75.                     <?php if ( in_category(3) ) { ?>
  76.                        
  77.                         <hr/>
  78.                        
  79.                         <h1>Dear <?php the_field('questioners_name'); ?></h1>
  80.                        
  81.                         <?php the_field('honeys_reply'); ?>
  82.                            
  83.                     <?php } ?>
  84.                    
  85.                    
  86.                    
  87.                     <footer>
  88.                         <hr/>
  89.                        
  90.                         <div class="a-options">
  91.                            
  92.                             <a href="<?php comments_link(); ?>" class="comment-count"><?php comments_number('0', 'one', '%', 'hero'); ?></a>
  93.                             <a href="<?php comments_link(); ?>" class="comments" title="Comments">Comments</a><span>/</span>
  94.                            
  95.                             <a href="./feed/" class="subscribe" title="Subscribe and keep up to date with the goings on in Herefordshire">Subscribe</a><span>/</span>
  96.                             <!-- share -->
  97.                             <div class="share-button">
  98.                                 <div class="buttons">
  99.                                     <!-- AddThis Button BEGIN -->
  100.                                     <div class="addthis_toolbox addthis_default_style">
  101.                                         <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
  102.                                         <a class="addthis_button_tweet"></a>
  103.                                         <a class="addthis_button_pinterest_pinit"></a>
  104.                                     </div>
  105.                                     <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-5005b98d5e449c9a"></script>
  106.                                     <!-- AddThis Button END -->
  107.                                 </div>
  108.                                
  109.                                 <span class="pseudo-button"><a href="#">&#043; Share</a></span>
  110.                              </div> <!--! /share -->
  111.                            
  112.                         </div><!--! /a-options -->
  113.                        
  114.                        
  115.                         <hr/>
  116.                         <?php $home = 2; ?>
  117.                         <img src="<?php the_field('avatar', $home) ?>" />
  118.                         <h4>About the author</h4>
  119.                         <p><?php the_author_description(); ?></p>
  120.                     </footer>
  121.                    
  122.                 </section>
  123.                
  124.                
  125.                     <?php comments_template(); ?>
  126.  
  127.                
  128.                 <a href="#top" title="Top" class="top scrollto">
  129.                     Top
  130.                 </a>
  131.            
  132.             </article>
  133.            
  134.             <?php get_sidebar(); ?>
  135.            
  136.             <footer class="whodidthis">
  137.                 <a href="http://byassociationonly.com" title="By Association Only">By Association Only crafted this</a>
  138.             </footer>
  139.         </div>
  140.  
  141. </div>
  142.  
  143. <?php endwhile; endif; ?>
  144.  
  145. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement