238. File Comparison Report

Produced on Mon May 12 13:05:23 2008 UTC. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

238.1 Files compared

# Location File Last Modified
1 Mon May 12 13:05:23 2008 UTC
2 Dolphin-v.6.1.0\inc news.inc.php Wed Apr 9 17:44:54 2008 UTC

238.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 0 0
Changed 0 0
Inserted 1 115
Removed 0 0

238.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

238.4 Active regular expressions

No regular expressions were active.

238.5 Comparison detail

    1   <?
    2  
    3   /********* ********** ********** ********** ********** ********** ********** ******
    4   *                              D olphin Sma rt Communi ty Builder
    5   *                                 --------- --------
    6   *     begi n                 : M on Mar 23  2006
    7   *     copy right             : ( C) 2006 Bo onEx Group
    8   *     webs ite               : h ttp://www. boonex.com /
    9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder
    10   *
    11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License. 
    12   * http://c reativecom mons.org/l icenses/by /3.0/
    13   *
    14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;
    15   * without  even the i mplied war ranty of   MERCHANTAB ILITY or F ITNESS FOR  A PARTICU LAR PURPOS E.
    16   * See the  Creative C ommons Att ribution 3 .0 License  for more  details. 
    17   * You shou ld have re ceived a c opy of the  Creative  Commons At tribution  3.0 Licens e along wi th Dolphin
    18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
    19   ********** ********** ********** ********** ********** ********** ********** *****/
    20   require_on ce( 'heade r.inc.php'  );
    21   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
    22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
    23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
    24  
    25  
    26   function g etNewsUrl( $iNewsId,  $sNewsUri,  $bPermali nk = true)
    27   {
    28       global  $site;
    29       
    30       $sMain Url = $sit e['url'];
    31       
    32       if ($b Permalink)
    33       {
    34           $s Url = $sMa inUrl.'new s/'.$sNews Uri;
    35       }
    36       else
    37       {
    38           $s Url = $sMa inUrl.'new s.php?ID=' .$iNewsId;
    39       }
    40       
    41       return  $sUrl;
    42   }
    43  
    44   function g etNewsList ($iLimit =  0)
    45   {
    46       $sqlQu ery = "SEL ECT `News` .`ID` AS ` newsID`,
    47                             `Heade r`,
    48                             `NewsU ri`,
    49                             `Snipp et`,
    50                             UNIX_T IMESTAMP(  `Date` ) A S 'Date'
    51                     FRO M `News`
    52                     ORD ER BY `Dat e`DESC";
    53       
    54       $sqlLi mit = $iLi mit > 0 ?  " LIMIT $i Limit" : " ";
    55       
    56       $rNews  = db_res( $sqlQuery  . $sqlLimi t);
    57       
    58       return  $rNews;
    59   }
    60  
    61   function p rintNewsPa nel($iLimi t = 0, $iP review = 1 28)
    62   {
    63       global  $site;
    64       
    65       $php_d ate_format  = getPara m( 'php_da te_format'  );   
    66  
    67       // new s
    68       $news_ limit_char s = getPar am("max_ne ws_preview ");
    69       $bNews Friendly =  getParam( 'permalink s_news') = = 'on' ? t rue : fals e;
    70       
    71       $news_ res = getN ewsList($i Limit);
    72       
    73       $news_ count = db _arr("SELE CT COUNT(* ) FROM `Ne ws`");
    74       $news_ counter =  $news_coun t['0'];
    75  
    76       $ret =  '';
    77       
    78       if( $n ews_counte r > 0 )
    79       {
    80           wh ile( $news _arr = mys ql_fetch_a ssoc($news _res) )
    81           {            
    82                $ret .=  '<div clas s="newsWra p">';
    83                    $ret  .= '<div  class="new sHead">';
    84                             $ret . = '<a href ="' . getN ewsUrl($ne ws_arr['ne wsID'], $n ews_arr['N ewsUri'],  $bNewsFrie ndly) . '" >';
    85                                 $r et .= proc ess_line_o utput( $ne ws_arr['He ader'] );
    86                             $ret . = '</a>';
    87                    $ret  .= '</div >';
    88                    
    89                    $ret  .= '<div  class="new sInfo"><im g src="' .  getTempla teIcon( 'c lock.gif'  ) . '" />'  . date( $ php_date_f ormat, $ne ws_arr['Da te'] ) . ' </div>';
    90                    
    91                    $ret  .= '<div  class="new sText">';
    92                         //$ret .=  process_te xt_withlin ks_output(  $news_arr ['Snippet' ] );
    93                         $ret .= pr ocess_html _output( $ news_arr[' Snippet']  );
    94                    $ret  .= '</div >';
    95                $ret .=  '</div>';
    96                
    97           }
    98           
    99           if ( $news_co unter > $m ax_news_on _home )
    100           {
    101                $sNewsLi nk = $bNew sFriendly  ? $site['u rl'].'news /' : $site ['url'].'n ews.php';
    102                $ret .=  '<div clas s="newsRea dMore">';
    103                    $ret  .= '<a hr ef="' . $s NewsLink .  '">' . _t ("_Read ne ws in arch ive") . '< /a>';
    104                $ret .=  '</div>';
    105           }
    106       }
    107       else
    108       {
    109           $r et .= '<di v class="n o_result"> <div>' . _ t("_No new s availabl e") . '</d iv></div>' ;
    110       }
    111       
    112       return  $ret;
    113   }
    114  
    115   ?>