hdiff output

wordpress/copperminesc.txt 2005-09-12 20:39:24.000000000 +0100 wordpress/copperminesc-new.txt 2006-02-16 13:57:20.833758107 +0000
Line #102Line #102
   
 /////////////////////////////////////////////////////////////////////  /////////////////////////////////////////////////////////////////////
   
  define ('CPGSC_COPYRIGHT', '&copy Your Name Here');
 define ('CPGSC_DBUSER', 'mysql_user_here');  define ('CPGSC_DBUSER', 'mysql_user_here');
 define ('CPGSC_DBPASS', 'mysql_password_here');  define ('CPGSC_DBPASS', 'mysql_password_here');
 define ('CPGSC_DBSERVER', 'mysql_db_server_here');  define ('CPGSC_DBSERVER', 'mysql_db_server_here');
Line #124Line #125
 define ('CPGSC_ALBUM_SORT', 'albumorder');  define ('CPGSC_ALBUM_SORT', 'albumorder');
 //define ('CPGSC_ALBUM_SORT', 'title');  //define ('CPGSC_ALBUM_SORT', 'title');
   
 // set whether individual image links should link to the normal size image or to the album they belong to  (does not effect album, category, or gallery based thumbnails), comment out exactly one of the following two lines  // set whether individual image links should link to the normal size image, to the album they belong to  (does not effect album, category, or gallery based thumbnails),
 define ('CPGSC_SINGLEIMAGE_LINK', 'album');  // or instead use lightbox (if the lightbox plugin is installed), comment out exactly one of the following lines
  //define ('CPGSC_SINGLEIMAGE_LINK', 'album');
 //define ('CPGSC_SINGLEIMAGE_LINK', 'normalimage');  //define ('CPGSC_SINGLEIMAGE_LINK', 'normalimage');
  define ('CPGSC_SINGLEIMAGE_LINK', 'lightbox');
   
 // optional text for album link (blank text means no link will be created), comment out exactly one of the following two lines  // optional text for album link (blank text means no link will be created), comment out exactly one of the following two lines
 //define ('CPGSC_ALBUM_TEXT', '');  //define ('CPGSC_ALBUM_TEXT', '');
Line #515Line #518
         $image = $cpgdb->cpgscget_row();          $image = $cpgdb->cpgscget_row();
         if ($image) {          if ($image) {
                 $uri = $config[0].$separatorslash.$config[1].$image->filepath.$imagesize.$image->filename;                  $uri = $config[0].$separatorslash.$config[1].$image->filepath.$imagesize.$image->filename;
                   $uri_normal = $config[0].$separatorslash.$config[1].$image->filepath.CPGSC_NORMAL_PREFIX.$image->filename;
                  
                  if ($imagesize != CPGSC_THUMB_PREFIX)
                          $res = '<div class="cpg_imagetable"><table><tr><td>';
                  
                 if (CPGSC_SINGLEIMAGE_LINK == 'normalimage') {                  if (CPGSC_SINGLEIMAGE_LINK == 'normalimage') {
                         $res = '<a href="'.$config[0].$separatorslash.'displayimage.php?pos=-'.$image->pid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';                          $res = $res . '<a href="'.$config[0].$separatorslash.'displayimage.php?pos=-'.$image->pid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                  } else if (CPGSC_SINGLEIMAGE_LINK == 'lightbox') {
                          $res = $res . '<a href="'.$uri_normal.'" class="cpg_imagelink" rel="lightbox"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                 } else {                  } else {
                         $res = '<a href="'.$config[0].$separatorslash.'thumbnails.php?album='.$albumid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';                          $res = $res . '<a href="'.$config[0].$separatorslash.'thumbnails.php?album='.$albumid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                 }                  }
                  
                  if ($imagesize != CPGSC_THUMB_PREFIX)
                          $res = $res . '</td></tr></table></div><div class="cpg_imagecopyright">' . CPGSC_COPYRIGHT . '</div>';
         }          }
         return $res;          return $res;
 }  }
Line #550Line #562
         $image = $cpgdb->cpgscget_row();          $image = $cpgdb->cpgscget_row();
         if ($image) {          if ($image) {
                 $uri = $config[0].$separatorslash.$config[1].$image->filepath.$imagesize.$image->filename;                  $uri = $config[0].$separatorslash.$config[1].$image->filepath.$imagesize.$image->filename;
                  $uri_normal = $config[0].$separatorslash.$config[1].$image->filepath.CPGSC_NORMAL_PREFIX.$image->filename;
   
                  if ($imagesize != CPGSC_THUMB_PREFIX)
                          $res = '<div class="cpg_imagetable"><table><tr><td>';
                          
                 if (CPGSC_SINGLEIMAGE_LINK == 'normalimage') {                  if (CPGSC_SINGLEIMAGE_LINK == 'normalimage') {
                         $res = '<a href="'.$config[0].$separatorslash.'displayimage.php?pos=-'.$image->pid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';                          $res = $res . '<a href="'.$config[0].$separatorslash.'displayimage.php?pos=-'.$image->pid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                  } else if (CPGSC_SINGLEIMAGE_LINK == 'lightbox') {
                          $res = $res . '<a href="'.$uri_normal.'" class="cpg_imagelink" rel="lightbox"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                 } else {                  } else {
                         $res = '<a href="'.$config[0].$separatorslash.'thumbnails.php?album='.$image->aid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';                          $res = $res . '<a href="'.$config[0].$separatorslash.'thumbnails.php?album='.$image->aid.'" class="cpg_imagelink"><img border="0"'.$forcewidth.' src="'.$uri.'" class="cpg_'.$imageimgtag.'image" alt="'.$image->title.'" title="'.$image->title.'" /></a>';
                 }                  }
                  
                  if ($imagesize != CPGSC_THUMB_PREFIX)
                          $res = $res . '</td></tr></table></div><div class="cpg_imagecopyright">' . CPGSC_COPYRIGHT . '</div>';
         }          }
         return $res;          return $res;
 }  }
Line #959Line #980
         add_filter('comment_text', 'cpgsc_process');          add_filter('comment_text', 'cpgsc_process');
 };  };
   
 ?> 
  
  ?>


legend
Lines Added 
Lines changed
 Lines Removed

hdiff - version: 2.1.0