796. File Comparison Report

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

796.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5 mem_polls.php Thu Sep 20 09:00:20 2007 UTC
2 Dolphin-v.6.1.0 mem_polls.php Mon Mar 31 07:47:50 2008 UTC

796.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 232
Changed 2 4
Inserted 0 0
Removed 0 0

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

796.4 Active regular expressions

No regular expressions were active.

796.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 . 'u tils.inc.p hp' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'u tils.inc.p hp' );
24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );   24   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rofiles.in c.php' );
25     25  
26   // ------- -------- p age variab les   26   // ------- -------- p age variab les
27     27  
28   $_page['na me_index']     = 30;   28   $_page['na me_index']     = 30;
29   $_page['cs s_name']       = 'mem _polls.css ';   29   $_page['cs s_name']       = 'mem _polls.css ';
30     30  
31   $logged['m ember'] =  member_aut h( 0, fals e );   31   $logged['m ember'] =  member_aut h( 0, fals e );
32     32  
33   $_page['he ader'] = _ t( "_Membe rs Polls H " );   33   $_page['he ader'] = _ t( "_Membe rs Polls H " );
34   $_page['he ader_text' ] = _t( "_ Members Po lls H1" );   34   $_page['he ader_text' ] = _t( "_ Members Po lls H1" );
35     35  
36   // this is  dynamic p age -  sen d headers  to do not  cache this  page   36   // this is  dynamic p age -  sen d headers  to do not  cache this  page
37   send_heade rs_page_ch anged();   37   send_heade rs_page_ch anged();
38     38  
39   // ------- -------- p age compon ents   39   // ------- -------- p age compon ents
40     40  
41   $_ni = $_p age['name_ index'];   41   $_ni = $_p age['name_ index'];
42   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;   42   $_page_con t[$_ni]['p age_main_c ode'] = Pa geCompPage MainCode() ;
43     43  
44   // ------- -------- [ END] page  components   44   // ------- -------- [ END] page  components
45     45  
46   PageCode() ;   46   PageCode() ;
47     47  
48   // ------- -------- p age compon ents funct ions   48   // ------- -------- p age compon ents funct ions
49     49  
50   /**   50   /**
51    * page co de functio n   51    * page co de functio n
52    */   52    */
53   function P ageCompPag eMainCode( )   53   function P ageCompPag eMainCode( )
54   {   54   {
55       global  $site;   55       global  $site;
56        global   $ p r of ;   56        global   $ aP r eValues ;
57          57       
58       $query  = "   58       $query  = "
59           SE LECT   59           SE LECT
60                `id_poll `,   60                `id_poll `,
61                `id_prof ile`,   61                `id_prof ile`,
62                `poll_qu estion`,   62                `poll_qu estion`,
63                `Profile s`.*   63                `Profile s`.*
64           FR OM `Profil esPolls`   64           FR OM `Profil esPolls`
65           LE FT JOIN `P rofiles` O N   65           LE FT JOIN `P rofiles` O N
66                `id_prof ile` = `Pr ofiles`.`I D`   66                `id_prof ile` = `Pr ofiles`.`I D`
67           WH ERE   67           WH ERE
68                `poll_st atus` = 'a ctive'   68                `poll_st atus` = 'a ctive'
69                AND `pol l_approval `   69                AND `pol l_approval `
70           OR DER BY `id _poll` DES C   70           OR DER BY `id _poll` DES C
71           ";   71           ";
72       //$que ry = "SELE CT `ID`, ` Question`  FROM `poll s_q` WHERE  `Active`  = 'on' ORD ER BY `Que stion`";   72       //$que ry = "SELE CT `ID`, ` Question`  FROM `poll s_q` WHERE  `Active`  = 'on' ORD ER BY `Que stion`";
73     73  
74       $res =  db_res($q uery);   74       $res =  db_res($q uery);
75     75  
76       if ( $ res and my sql_num_ro ws($res) )   76       if ( $ res and my sql_num_ro ws($res) )
77       {   77       {
78           $r et = '<div  class="cl ear_both"> </div>';   78           $r et = '<div  class="cl ear_both"> </div>';
79              79           
80           wh ile ( $arr  = mysql_f etch_array ($res) )   80           wh ile ( $arr  = mysql_f etch_array ($res) )
81           {   81           {
82                $age_str  = _t("_y/ o", age( $ arr['DateO fBirth'] ) );   82                $age_str  = _t("_y/ o", age( $ arr['DateO fBirth'] ) );
83                $y_o_sex  = $age_st r . '&nbsp ;' . _t("_ ".$arr['Se x']);   83                $y_o_sex  = $age_st r . '&nbsp ;' . _t("_ ".$arr['Se x']);
84                   84                
85                 $poll_cout ry   =   _t( "__". $ p r of [' c ountr ies '][$arr['C ountry']]
);
  85                 $poll_cout ry   =   _t(
$ aP r eValues [' C ountr y '][$arr['C ountry']] ['LKey'] );
86                   86                
87                   87                
88                $ret .=  '<div clas s="pollBod y">';   88                $ret .=  '<div clas s="pollBod y">';
89                    $ret  .= '<div  class="cle ar_both">< /div>';   89                    $ret  .= '<div  class="cle ar_both">< /div>';
90                       90                    
91                         $ret .= '< div class= "pollInfo" >';   91                         $ret .= '< div class= "pollInfo" >';
92                             $ret . = get_memb er_icon( $ arr['id_pr ofile'], ' left' );   92                             $ret . = get_memb er_icon( $ arr['id_pr ofile'], ' left' );
93                             $ret . = '<div cl ass="pollI nfo_nickna me">';   93                             $ret . = '<div cl ass="pollI nfo_nickna me">';
94                                 $r et .= _t(  '_Submitte d by', $ar r['NickNam e'] );   94                                 $r et .= _t(  '_Submitte d by', $ar r['NickNam e'] );
95                             $ret . = '</div>' ;   95                             $ret . = '</div>' ;
96                             $ret . = '<div cl ass="pollI nfo_info"> ';   96                             $ret . = '<div cl ass="pollI nfo_info"> ';
97                                 $r et .= $y_o _sex . '<b r />' . $p oll_coutry ;   97                                 $r et .= $y_o _sex . '<b r />' . $p oll_coutry ;
98                             $ret . = '</div>' ;   98                             $ret . = '</div>' ;
99                         $ret .= '< /div>';   99                         $ret .= '< /div>';
100                           100                        
101                    $ret  .= '<div  class="cle ar_both">< /div>';   101                    $ret  .= '<div  class="cle ar_both">< /div>';
102                         $ret .= Sh owPoll( $a rr['id_pol l'] );   102                         $ret .= Sh owPoll( $a rr['id_pol l'] );
103                    $ret  .= '<div  class="cle ar_both">< /div>';   103                    $ret  .= '<div  class="cle ar_both">< /div>';
104                       104                    
105                $ret .=  '</div>';   105                $ret .=  '</div>';
106                   106                
107           }   107           }
108           $r et .= '<di v class="c lear_both" ></div>';   108           $r et .= '<di v class="c lear_both" ></div>';
109       }   109       }
110       else   110       else
111       {   111       {
112           $r et = "<div  align=cen ter>". _t( "_No polls  available ") ."</div >\n";   112           $r et = "<div  align=cen ter>". _t( "_No polls  available ") ."</div >\n";
113       }   113       }
114          114       
115       return  $ret;   115       return  $ret;
116   }   116   }
117     117  
118   ?>   118   ?>