808. File Comparison Report

Produced on Mon May 12 13:07:12 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.

808.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 rate.php Mon Sep 24 10:55:20 2007 UTC
2 Dolphin-v.6.1.0 rate.php Sun Apr 27 07:29:24 2008 UTC

808.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 9 532
Changed 6 27
Inserted 0 0
Removed 2 2

808.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

808.4 Active regular expressions

No regular expressions were active.

808.5 Comparison detail

1   <?   1   <?
2     2  
3   /********* ********** ********** ********** ********** ********** ********** ******   3   /********* ********** ********** ********** ********** ********** ********** ******
4   *                              D olphin Sma rt Communi ty Builder   4   *                              D olphin Sma rt Communi ty Builder
5   *                                 --------- --------   5   *                                 --------- --------
6   *     begi n                 : M on Mar 23  2006   6   *     begi n                 : M on Mar 23  2006
7   *     copy right             : ( C) 2006 Bo onEx Group   7   *     copy right             : ( C) 2006 Bo onEx Group
8   *     webs ite               : h ttp://www. boonex.com /   8   *     webs ite               : h ttp://www. boonex.com /
9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder   9   * This fil e is part  of Dolphin  - Smart C ommunity B uilder
10   *   10   *
11   * Dolphin  is free so ftware. Th is work is  licensed  under a Cr eative Com mons Attri bution 3.0  License.    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/   12   * http://c reativecom mons.org/l icenses/by /3.0/
13   *   13   *
14   * Dolphin  is distrib uted in th e hope tha t it will  be useful,  but WITHO UT ANY WAR RANTY;   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.   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.    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   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   18   * see lice nse.txt fi le; if not , write to  marketing @boonex.co m
19   ********** ********** ********** ********** ********** ********** ********** *****/   19   ********** ********** ********** ********** ********** ********** ********** *****/
20     20  
21   require_on ce( 'inc/h eader.inc. php' );   21   require_on ce( 'inc/h eader.inc. php' );
22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );   22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd esign.inc. php' );
23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
25     25  
26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolMe diaQuery.p hp' );   26   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolMe diaQuery.p hp' );
27     27  
28   // ------- -------- p age variab les and lo gin   28   // ------- -------- p age variab les and lo gin
29     29  
30   $_page['na me_index']     = 26;   30   $_page['na me_index']     = 26;
31   $_page['cs s_name']       = 'upl oad_media. css';   31   $_page['cs s_name']       = 'upl oad_media. css';
32   $_ni = $_p age['name_ index'];   32   $_ni = $_p age['name_ index'];
33     33  
34     34   check_logg ed();
35   if ( !( $l ogged['adm in'] = mem ber_auth(  1, false )  ) )    
36       if ( ! ( $logged[ 'member']  = member_a uth( 0, fa lse ) ) )    
37           if  ( !( $log ged['aff']  = member_ auth( 2, f alse ) ) )    
38                $logged[ 'moderator '] = membe r_auth( 3,  false );    
39     35  
40   $max_thumb _width  =  (int)getPa ram( 'max_ thumb_widt h' );   36   $max_thumb _width  =  (int)getPa ram( 'max_ thumb_widt h' );
41   $max_thumb _height =  (int)getPa ram( 'max_ thumb_heig ht' );   37   $max_thumb _height =  (int)getPa ram( 'max_ thumb_heig ht' );
42     38  
43   $_page['he ader'] = _ t( "_HOTOR NOT_H" );   39   $_page['he ader'] = _ t( "_HOTOR NOT_H" );
44   $_page['he ader_text' ] = _t( "_ HOTORNOT_H 1" );   40   $_page['he ader_text' ] = _t( "_ HOTORNOT_H 1" );
45     41  
46     42  
47   // ------- -------- G ET/POST ac tions   43   // ------- -------- G ET/POST ac tions
48     44  
49   $_ni = $_p age['name_ index'];   45   $_ni = $_p age['name_ index'];
50   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   46   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
51     47  
52     48  
53   PageCode() ;   49   PageCode() ;
54     50  
55     51  
56   function   PageCompPa geMainCode ()
  52   function   PageCompPa geMainCode ()   {
57   {    
58       global  $site;   53       global  $site;
59       global  $oTemplCo nfig;   54       global  $oTemplCo nfig;
60     55  
61      
62       $aPhot o = getVot ingItem();   56       $aPhot o = getVot ingItem();
63     57  
64       $check _res = che ckAction(  $_COOKIE[' memberID'] , ACTION_I D_RATE_PHO TOS );   58       $check _res = che ckAction(  $_COOKIE[' memberID'] , ACTION_I D_RATE_PHO TOS );
65       if ( $ check_res[ CHECK_ACTI ON_RESULT]  != CHECK_ ACTION_RES ULT_ALLOWE D )   59       if ( $ check_res[ CHECK_ACTI ON_RESULT]  != CHECK_ ACTION_RES ULT_ALLOWE D )
66       {   60       {
67           $r et = '   61           $r et = '
68                <table w idth="100% " cellpadd ing="4" ce llspacing= "4" border ="0">   62                <table w idth="100% " cellpadd ing="4" ce llspacing= "4" border ="0">
69                    <tr>   63                    <tr>
70                         <td align= "center">'  . $check_ res[CHECK_ ACTION_MES SAGE] . '< /td>   64                         <td align= "center">'  . $check_ res[CHECK_ ACTION_MES SAGE] . '< /td>
71                    </tr >   65                    </tr >
72                </table> ';   66                </table> ';
73           re turn $ret;   67           re turn $ret;
74       }   68       }
75          69       
76       $ret =  '';   70       $ret =  '';
77     71  
78       if ($_ GET['prev_ id'])   72       if ($_ GET['prev_ id'])
79           $r et .= show PreviousRa ted((int)$ _GET['prev _id']);   73           $r et .= show PreviousRa ted((int)$ _GET['prev _id']);
80     74  
81       if( $o TemplConfi g -> custo mize['rate ']['showSe xSelector' ] )   75       if( $o TemplConfi g -> custo mize['rate ']['showSe xSelector' ] )
82       {   76       {
83           $r et .= '<di v class="r ate_sex_fo rm">';   77           $r et .= '<di v class="r ate_sex_fo rm">';
84           $r et .= '<fo rm method= "post" nam e="FormVot e" action= "' . $_SER VER['PHP_S ELF'] . '" >';   78           $r et .= '<fo rm method= "post" nam e="FormVot e" action= "' . $_SER VER['PHP_S ELF'] . '" >';
85                $ret .=  '<span>';   79                $ret .=  '<span>';
86                $ret .=  _t("_Show  me");   80                $ret .=  _t("_Show  me");
87                $ret .=  '</span>';   81                $ret .=  '</span>';
88                $ret .=  '<span>';   82                $ret .=  '<span>';
89                   83                
90                $ret .=  '<select n ame="showm e" onchang e="documen t.forms[\' FormVote\' ].submit() ">' . "\n" ;   84                $ret .=  '<select n ame="showm e" onchang e="documen t.forms[\' FormVote\' ].submit() ">' . "\n" ;
91                    $sel ected_all  = ( $_REQU EST['showm e'] == 'al l' || strl en(trim($_ REQUEST['s howme']))  == 0 ) ? '  selected= "selected"  ' : '';   85                    $sel ected_all  = ( $_REQU EST['showm e'] == 'al l' || strl en(trim($_ REQUEST['s howme']))  == 0 ) ? '  selected= "selected"  ' : '';
92                    $ret  .= '<opti on value=" all"'. $se lected_all  . '>' . _ t("_all")  . '</optio n>';   86                    $ret  .= '<opti on value=" all"'. $se lected_all  . '>' . _ t("_all")  . '</optio n>';
93                    $arr  = db_arr( "SELECT `e xtra` FROM  `Profiles Desc` WHER E `name` =  'Sex'");   87                    $ret  .= Select Options( ' Sex', $_RE QUEST['sho wme'] );
94                    $val s = preg_s plit ("/[, \']+/", $a rr[0], -1,  PREG_SPLI T_NO_EMPTY );    
95                    fore ach ( $val s as $v )    
96                    {    
97                         if ( strle n(trim($v) ) <= 0 ) c ontinue;    
98                             $ret . = "<option  value=\"$ v\" ".($_R EQUEST['sh owme'] ==  $v ? 'sele cted="sele cted"' : ' ').">"._t( "_$v")."</ option>\n" ;    
99                    }    
100                $ret .=  '</select> ';   88                $ret .=  '</select> ';
101                $ret .=  '</span>';   89                $ret .=  '</span>';
102                $ret .=  '</form>';   90                $ret .=  '</form>';
103           $r et .= '</d iv>';   91           $r et .= '</d iv>';
104       }   92       }
105     93  
106       if( em pty( $aPho to ) )   94       if( em pty( $aPho to ) )
107       {   95       {
108           $r et .= _t_a ction('_th ere_is_no_ photo_that _you_can_r ate');   96           $r et .= _t_a ction('_th ere_is_no_ photo_that _you_can_r ate');
109       }   97       }
110       else   98       else
111       {   99       {
112           if ( $oTemplC onfig -> c ustomize[' rate']['sh owProfileI nfo'] )   100           if ( $oTemplC onfig -> c ustomize[' rate']['sh owProfileI nfo'] )
113           {   101           {
114                $ret .=  '<div clas s="clear_b oth"></div >';   102                $ret .=  '<div clas s="clear_b oth"></div >';
115                $ret .=  ProfileDet ails( $aPh oto['med_p rof_id'] ) ;   103                $ret .=  ProfileDet ails( $aPh oto['med_p rof_id'] ) ;
116                $ret .=  '<div clas s="clear_b oth"></div >';   104                $ret .=  '<div clas s="clear_b oth"></div >';
117           }   105           }
118              106           
119           $r et .= getR atingPhoto ( $aPhoto  );   107           $r et .= getR atingPhoto ( $aPhoto  );
120     108  
121           $o VotingView  = new BxT emplVoting View ('med ia', (int) $aPhoto['m ed_id']);   109           $o VotingView  = new BxT emplVoting View ('med ia', (int) $aPhoto['m ed_id']);
122           if ( $oVoting View->isEn abled())   110           if ( $oVoting View->isEn abled())
123           {   111           {
124                $sUrlAdd  = '';   112                $sUrlAdd  = '';
125                if ($_RE QUEST['sho wme'])    113                if ($_RE QUEST['sho wme']) 
126                    $sUr lAdd .= 's howme='.$_ REQUEST['s howme'].'& ';   114                    $sUr lAdd .= 's howme='.$_ REQUEST['s howme'].'& ';
127     115  
128                $ret .=  "   116                $ret .=  "
129                    <scr ipt>   117                    <scr ipt>
130                         BxDolVotin g.prototyp e.onvote =  function  (fRate, iC ount)   118                         BxDolVotin g.prototyp e.onvote =  function  (fRate, iC ount)
131                         {   119                         {
132                             docume nt.locatio n = '{$sit e['url']}r ate.php?{$ sUrlAdd}pr ev_id=' +  this._iObj Id;   120                             docume nt.locatio n = '{$sit e['url']}r ate.php?{$ sUrlAdd}pr ev_id=' +  this._iObj Id;
133                         }   121                         }
134                         BxDolVotin g.prototyp e.onvotefa il = funct ion ()   122                         BxDolVotin g.prototyp e.onvotefa il = funct ion ()
135                         {   123                         {
136                             docume nt.locatio n = '{$sit e['url']}r ate.php?{$ sUrlAdd}pr ev_id=' +  this._iObj Id;   124                             docume nt.locatio n = '{$sit e['url']}r ate.php?{$ sUrlAdd}pr ev_id=' +  this._iObj Id;
137                         }   125                         }
138                    </sc ript>";   126                    </sc ript>";
139     127  
140                 $ret   .=   '<div   style="mar gin-left: 22 5px">'   .   $oVotingVi ew->getBig Voting   ()   .   '</div>';   128                 $ret   .=   '<div   style="mar gin-left: 5 5px">'   .   $oVotingVi ew->getBig Voting   ()   .   '</div>';
141           }   129           }
142       }   130       }
143     131  
144       return  $ret;   132       return  $ret;
145   }   133   }
146     134  
147   function   getVotingI tem()
  135   function   getVotingI tem()   {
148   {   136        if   (   strlen($_R EQUEST['sh owme'])   &&   $_REQUEST[ 'showme']   !=   'all'   )   {
149        if   (   strlen($_R EQUEST['sh owme'])   &&   $_REQUEST[ 'showme']   !=   'all'   )
   
150       {    
151           $s SexOnly =  process_db _input($_R EQUEST['sh owme']);   137           $s SexOnly =  process_db _input($_R EQUEST['sh owme']);
152       }   138       }
153       $sVote d = getVot edItems();   139       $sVote d = getVot edItems();
154       $oMedi aQuery = n ew BxDolMe diaQuery() ;   140       $oMedi aQuery = n ew BxDolMe diaQuery() ;
155       $oDolV oting = ne w BxDolVot ing ('medi a', 0, 0);   141       $oDolV oting = ne w BxDolVot ing ('medi a', 0, 0);
156       return  $oMediaQu ery -> sel ectVotingI tem( $oDol Voting, $s Voted, $sS exOnly );   142       return  $oMediaQu ery -> sel ectVotingI tem( $oDol Voting, $s Voted, $sS exOnly );
157     143  
158   }   144   }
159     145  
160   function V otingTrack ( $iMediaI D )   146   function V otingTrack ( $iMediaI D )
161   {   147   {
162       $oMedi aQuery = n ew BxDolMe diaQuery() ;   148       $oMedi aQuery = n ew BxDolMe diaQuery() ;
163       $iMedi aID = (int )$iMediaID ;   149       $iMedi aID = (int )$iMediaID ;
164       $ip =  getVisitor IP();   150       $ip =  getVisitor IP();
165       $oMedi aQuery ->  insertVoti ngTrack( $ iMediaID,  $ip );   151       $oMedi aQuery ->  insertVoti ngTrack( $ iMediaID,  $ip );
166   }   152   }
167     153  
168   function g etVotedIte ms()   154   function g etVotedIte ms()
169   {   155   {
170       $ip =  getVisitor IP();   156       $ip =  getVisitor IP();
171     157  
172       $oDolV oting = ne w BxDolVot ing ('medi a', 0, 0);   158       $oDolV oting = ne w BxDolVot ing ('medi a', 0, 0);
173       $_aVot edItems =  $oDolVotin g -> getVo tedItems ( $ip);   159       $_aVot edItems =  $oDolVotin g -> getVo tedItems ( $ip);
174      
175       $aVote dItems = r eviewArray ( $_aVoted Items );        160       $aVote dItems = r eviewArray ( $_aVoted Items );     
176     161  
177       return  $aVotedIt ems;   162       return  $aVotedIt ems;
178   }   163   }
179     164  
180   function r eviewArray ( $arrays  )   165   function r eviewArray ( $arrays  )
181   {   166   {
182       $line  = '';   167       $line  = '';
183       foreac h($arrays  as $array)   168       foreac h($arrays  as $array)
184       {   169       {
185           $l ine .= '\' ' . $array ['med_id']  . '\',';   170           $l ine .= '\' ' . $array ['med_id']  . '\',';
186       }   171       }
187       $line  .= '\'\'';   172       $line  .= '\'\'';
188       return  $line;   173       return  $line;
189   }   174   }
190     175  
191   function g etRatingPh oto( $aPho to )   176   function g etRatingPh oto( $aPho to )
192   {   177   {
193       global  $max_phot o_width, $ max_photo_ height, $d ir, $site;   178       global  $max_phot o_width, $ max_photo_ height, $d ir, $site;
194     179  
195       $sFile Src = $dir ['profileI mage'] . $ aPhoto['me d_prof_id' ] . '/phot o_' . $aPh oto['med_f ile'];   180       $sFile Src = $dir ['profileI mage'] . $ aPhoto['me d_prof_id' ] . '/phot o_' . $aPh oto['med_f ile'];
196       if( ex tFileExist s($sFileSr c) )   181       if( ex tFileExist s($sFileSr c) )
197       {   182       {
198           $s PhotoUrl =  $site['pr ofileImage '] . $aPho to['med_pr of_id'] .  '/photo_'  . $aPhoto[ 'med_file' ];   183           $s PhotoUrl =  $site['pr ofileImage '] . $aPho to['med_pr of_id'] .  '/photo_'  . $aPhoto[ 'med_file' ];
199       }   184       }
200       else   185       else
201       {   186       {
202           he ader('Loca tion:' . $ _SERVER['P HP_SELF']) ;   187           he ader('Loca tion:' . $ _SERVER['P HP_SELF']) ;
203       }   188       }
204     189  
205     190  
206       $ret =  '';   191       $ret =  '';
207     192  
208       $ret . = '<div cl ass="media Title">';   193       $ret . = '<div cl ass="media Title">';
209           $r et .= proc ess_line_o utput( $aP hoto['med_ title'] );   194           $r et .= proc ess_line_o utput( $aP hoto['med_ title'] );
210       $ret . = '</div>' ;   195       $ret . = '</div>' ;
211       $ret . = '<div cl ass="photo Block" sty le="text-a lign:cente r;">';   196       $ret . = '<div cl ass="photo Block" sty le="text-a lign:cente r;">';
212            $ret   .=   '<img  
src="'   .   getTemplat eIcon('spa cer.gif')   .   '"   style="wid th:'   .   $max_photo _width   .   'px;   height:'   .   $max_photo _height   .   'px;   background -image:url ('   .   $sPhotoUrl   .   ');"   class="pho to"   />';
  197            $ret   .=   '<img   alt=""   src="'   .   getTemplat eIcon('spa cer.gif')   .   '"   style="wid th:'   .   $max_photo _width   .   'px;   height:'   .   $max_photo _height   .   'px;   background -image:url ('   .   $sPhotoUrl   .   ');"   class="pho to"   />';
213       $ret . = '</div>' ;   198       $ret . = '</div>' ;
214     199  
215     200  
216       return  $ret;   201       return  $ret;
217   }   202   }
218     203  
219     204  
220     205  
221   function s howPreviou sRated( $i PhotoID )   206   function s howPreviou sRated( $i PhotoID )
222   {   207   {
223       global  $site;   208       global  $site;
224       global  $oTemplCo nfig;   209       global  $oTemplCo nfig;
225       global  $max_thum b_width;   210       global  $max_thum b_width;
226       global  $max_thum b_height;   211       global  $max_thum b_height;
227          212       
228       $iBarW idth = $oT emplConfig  -> iRateS mallRating Bar;   213       $iBarW idth = $oT emplConfig  -> iRateS mallRating Bar;
229       $iBarN um   = $oT emplConfig  -> iRateS mallRating BarNum;   214       $iBarN um   = $oT emplConfig  -> iRateS mallRating BarNum;
230          215       
231       $query  = "   216       $query  = "
232           SE LECT   217           SE LECT
233                `media`. `med_id`,   218                `media`. `med_id`,
234                `med_pro f_id`,   219                `med_pro f_id`,
235                `med_fil e`,   220                `med_fil e`,
236                `med_tit le`,   221                `med_tit le`,
237                `med_rat ing_count` ,   222                `med_rat ing_count` ,
238                `med_rat ing_sum`,   223                `med_rat ing_sum`,
239                `Profile s`.`NickNa me`   224                `Profile s`.`NickNa me`
240           FR OM `media`   225           FR OM `media`
241           LE FT JOIN `m edia_ratin g` USING ( `med_id`)   226           LE FT JOIN `m edia_ratin g` USING ( `med_id`)
242           LE FT JOIN `P rofiles` O N   227           LE FT JOIN `P rofiles` O N
243                (`Profil es`.`ID`=` media`.`me d_prof_id` )   228                (`Profil es`.`ID`=` media`.`me d_prof_id` )
244           WH ERE   229           WH ERE
245                `med_sta tus` = 'ac tive'   230                `med_sta tus` = 'ac tive'
246                AND `med ia`.`med_i d` = $iPho toID   231                AND `med ia`.`med_i d` = $iPho toID
247           ";   232           ";
248          233       
249       $ph_ar r = db_arr ( $query ) ;   234       $ph_ar r = db_arr ( $query ) ;
250       if( !$ ph_arr )   235       if( !$ ph_arr )
251           re turn '';   236           re turn '';
252          237       
253          238       
254       $urlIm g = "{$sit e['profile Image']}{$ ph_arr['me d_prof_id' ]}/thumb_{ $ph_arr['m ed_file']} ";   239       $urlIm g = "{$sit e['profile Image']}{$ ph_arr['me d_prof_id' ]}/thumb_{ $ph_arr['m ed_file']} ";
255       $urlSp acer = get TemplateIc on( 'space r.gif' );   240       $urlSp acer = get TemplateIc on( 'space r.gif' );
256          241       
257       $sProf Link = get ProfileLin k($ph_arr[ 'med_prof_ id']);   242       $sProf Link = get ProfileLin k($ph_arr[ 'med_prof_ id']);
258     243  
259       $sRati ngBar = '' ;   244       $sRati ngBar = '' ;
260       $oVoti ngView = n ew BxTempl VotingView  ('media',  (int)$iPh otoID);   245       $oVoti ngView = n ew BxTempl VotingView  ('media',  (int)$iPh otoID);
261       if( $o VotingView ->isEnable d())   246       if( $o VotingView ->isEnable d())
262           $s RatingBar  = $oVoting View->getS mallVoting  (false);   247           $s RatingBar  = $oVoting View->getS mallVoting  (false);
263     248  
264          249       
265     250  
266       $ret . = <<<EOJ   251       $ret . = <<<EOJ
267       <div c lass="rate _prev_phot o_block">   252       <div c lass="rate _prev_phot o_block">
268           <d iv class=" thumbnail_ block" sty le="float: none;">   253           <d iv class=" thumbnail_ block" sty le="float: none;">
269                <a href= "{$site['u rl']}photo s_gallery. php?ID={$p h_arr['med _prof_id'] }&amp;phot oID={$ph_a rr['med_id ']}" title ="{$ph_arr ['med_titl e']}">   254                <a href= "{$site['u rl']}photo s_gallery. php?ID={$p h_arr['med _prof_id'] }&amp;phot oID={$ph_a rr['med_id ']}" title ="{$ph_arr ['med_titl e']}">
270                    <img  style="wi dth:{$max_ thumb_widt h}px;heigh t:{$max_th umb_height }px;backgr ound-image :url($urlI mg);" src= "$urlSpace r" />   255                    <img  style="wi dth:{$max_ thumb_widt h}px;heigh t:{$max_th umb_height }px;backgr ound-image :url($urlI mg);" src= "$urlSpace r" />
271                </a>   256                </a>
272           </ div>   257           </ div>
273           <d iv class=" rate_prev_ photo_nick name">   258           <d iv class=" rate_prev_ photo_nick name">
274                <a href= "{$sProfLi nk}">{$ph_ arr['NickN ame']}</a>   259                <a href= "{$sProfLi nk}">{$ph_ arr['NickN ame']}</a>
275           </ div>   260           </ div>
276           <d iv style=" position:r elative; w idth:50%;  height:30p x; overflo w:visible;  margin-to p:10px;">   261           <d iv style=" position:r elative; w idth:50%;  height:30p x; overflo w:visible;  margin-to p:10px;">
277                <div sty le="positi on:absolut e; right:- 94px; widt h:400px; h eight:30px ;">   262                <div sty le="positi on:absolut e; right:- 94px; widt h:400px; h eight:30px ;">
278                    $sRa tingBar   263                    $sRa tingBar
279                </div>              264                </div>           
280           </ div>   265           </ div>
281     266  
282       </div>   267       </div>
283   EOJ;   268   EOJ;
284          269       
285       return  DesignBox Content( _ t('_Previo us rated') , $ret, 1  );   270       return  DesignBox Content( _ t('_Previo us rated') , $ret, 1  );
286   }   271   }
287     272  
288   ?>   273   ?>