200. File Comparison Report

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

200.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\inc\classes BxDolProfile.php Thu Sep 20 08:58:32 2007 UTC
2 Dolphin-v.6.1.0\inc\classes BxDolProfile.php Thu Mar 27 04:18:10 2008 UTC

200.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 6 322
Changed 4 16
Inserted 1 13
Removed 0 0

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

200.4 Active regular expressions

No regular expressions were active.

200.5 Comparison detail

1   <?   1   <?
2     2  
3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolPr ofileQuery .php' );   3   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolPr ofileQuery .php' );
4   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolMi stake.php'  );   4   require_on ce( BX_DIR ECTORY_PAT H_CLASSES  . 'BxDolMi stake.php'  );
5     5  
6   class BxDo lProfile e xtends BxD olMistake   6   class BxDo lProfile e xtends BxD olMistake
7   {   7   {
8        var   $_iProfile ID ,   $_aProfile ;   8        var   $_iProfile ID
;
    9       var $_ aProfile;
    10       var $b Couple;
    11       var $_ iCoupleID;
    12       var $_ aCouple;
9     13  
10       /**   14       /**
11        * Con structor   15        * Con structor
12        *   16        *
13        * @re turn User   17        * @re turn User
14        */   18        */
15       functi on BxDolPr ofile( $vP rofileID,  $bWithEmai l = 1 )   19       functi on BxDolPr ofile( $vP rofileID,  $bWithEmai l = 1 )
16       {   20       {
17           $t his -> _iP rofileID =  $this ->  getID( $vP rofileID,  $bWithEmai l );   21           $t his -> _iP rofileID =  $this ->  getID( $vP rofileID,  $bWithEmai l );
18       }   22       }
19     23  
20       /**   24       /**
21        * Ent er descrip tion here. ..   25        * Ent er descrip tion here. ..
22        *   26        *
23        * @pa ram unknow n_type $ID   27        * @pa ram unknow n_type $ID
24        * @pa ram unknow n_type $fl oat   28        * @pa ram unknow n_type $fl oat
25        */   29        */
26       functi on getProf ileThumbna il( $float  )   30       functi on getProf ileThumbna il( $float  )
27       {   31       {
28           $r et = $this  -> getPro fileImageU rl( $iProf ileID, 0);   32           $r et = $this  -> getPro fileImageU rl( $iProf ileID, 0);
29       }   33       }
30     34  
31       /**   35       /**
32        * ret urn link t o profile  image only .   36        * ret urn link t o profile  image only .
33        *   37        *
34        * @pa ram unknow n_type $ID   38        * @pa ram unknow n_type $ID
35        * @pa ram unknow n_type $im ageNum   39        * @pa ram unknow n_type $im ageNum
36        */   40        */
37       functi on getProf ileImageUr l( $imageN um )   41       functi on getProf ileImageUr l( $imageN um )
38       {   42       {
39     43  
40       }   44       }
41     45  
42       /**   46       /**
43        *  re turn assoc  array of  all frofil e fields   47        *  re turn assoc  array of  all frofil e fields
44        */   48        */
45       functi on getProf ileData()   49       functi on getProf ileData()
46       {   50       {
47              51           gl obal $aUse r;
    52           gl obal $dir;
48           $o PDb = new  BxDolProfi leQuery();   53           $o PDb = new  BxDolProfi leQuery();
49           $s ProfileCac he = $dir[ 'cache'] .  'user' .  $this -> _ iProfileID  . '.php';   54           $s ProfileCac he = $dir[ 'cache'] .  'user' .  $this -> _ iProfileID  . '.php';
50            if(   file_exist s(   $sProfileC ache   )   &&   is_file(   $sProfileC ache   )   )
  55            if(   file_exist s(   $sProfileC ache   )   &&   is_file(   $sProfileC ache   )   )   {
51           {    
52                require_ once($sPro fileCache) ;   56                require_ once($sPro fileCache) ;
53                $this ->  _aProfile  = $aUser[ $this -> _ iProfileID ];   57                $this ->  _aProfile  = $aUser[ $this -> _ iProfileID ];
54           }
  58           }  else
55           el se    
56           {    
57                $this ->  _aProfile  = $oPDb - > getProfi leDataById ( $this ->  _iProfile ID );   59                $this ->  _aProfile  = $oPDb - > getProfi leDataById ( $this ->  _iProfile ID );
    60           
    61           
    62           // get couple  data
    63           if ( $this ->  _aProfile ['Couple']  ) {
    64                $this ->  bCouple =  true;
    65                $this ->  _iCoupleI D = $this  -> _aProfi le['Couple '];
    66                
    67                $sProfil eCache = $ dir['cache '] . 'user ' . $this  -> _iCoupl eID . '.ph p';
    68                if( file _exists( $ sProfileCa che ) && i s_file( $s ProfileCac he ) ) {
    69                    requ ire_once($ sProfileCa che);
    70                    $thi s -> _aCou ple = $aUs er[$this - > _iCouple ID];
    71                } else
    72                    $thi s -> _aCou ple = $oPD b -> getPr ofileDataB yId( $this  -> _iCoup leID );
58           }   73           }
59     74  
60           re turn $this  -> _aProf ile;   75           re turn $this  -> _aProf ile;
61       }   76       }
62     77  
63       /**   78       /**
64        * Upd ate profil e info to  database   79        * Upd ate profil e info to  database
65        *   80        *
66        *   81        *
67        * @pa ram int $i UserID   82        * @pa ram int $i UserID
68        * @pa ram array  $aData   83        * @pa ram array  $aData
69        * whe re the key  of the ar ray is nam e of datab ase table  field   84        * whe re the key  of the ar ray is nam e of datab ase table  field
70        *   85        *
71        * exa mple:   86        * exa mple:
72        * $aD ata['Sex']  = 'male';   87        * $aD ata['Sex']  = 'male';
73        *   88        *
74        */   89        */
75       functi on updateP rofileData ( $aData )   90       functi on updateP rofileData ( $aData )
76       {   91       {
77           if ( is_array ( $aData )  )   92           if ( is_array ( $aData )  )
78           {   93           {
79                $sQueryA dd = '';   94                $sQueryA dd = '';
80                foreach( $aData as  $key => $v alue )   95                foreach( $aData as  $key => $v alue )
81                {   96                {
82                    $sQu eryAdd .=  " `$key` =  '$value',  ";   97                    $sQu eryAdd .=  " `$key` =  '$value',  ";
83                }   98                }
84           }   99           }
85     100  
86           $t his -> upd ateProfile DataFile(  $iProfileI D );   101           $t his -> upd ateProfile DataFile(  $iProfileI D );
87       }   102       }
88     103  
89       /**   104       /**
90        * fun ction crea te cache d ata file   105        * fun ction crea te cache d ata file
91        *   106        *
92        * @pa ram int $i ProfileID   107        * @pa ram int $i ProfileID
93        */   108        */
94       functi on updateP rofileData File( $iPr ofileID )   109       functi on updateP rofileData File( $iPr ofileID )
95       {   110       {
96     111  
97       }   112       }
98     113  
99       /**   114       /**
100        * Pri nt code fo r membersh ip status   115        * Pri nt code fo r membersh ip status
101        * $me mberID - m ember ID   116        * $me mberID - m ember ID
102        * $of fer_upgrad e - will t his code b e printed  at [c]ontr ol [p]anel   117        * $of fer_upgrad e - will t his code b e printed  at [c]ontr ol [p]anel
103        * $cr edits - wi ll print c redits sta tus if $cr edits == 1   118        * $cr edits - wi ll print c redits sta tus if $cr edits == 1
104        */   119        */
105       functi on getMemb ershipStat us( $iPrif ileID, $of fer_upgrad e = true,  $credits =  0 )   120       functi on getMemb ershipStat us( $iPrif ileID, $of fer_upgrad e = true,  $credits =  0 )
106       {   121       {
107     122  
108       }   123       }
109     124  
110       /**   125       /**
111        * Sho ws how man y days, ho urs, minut es member  was onine  last time   126        * Sho ws how man y days, ho urs, minut es member  was onine  last time
112        *   127        *
113        * @pa ram  $last NavTime   128        * @pa ram  $last NavTime
114        *   129        *
115        * @re turn int   130        * @re turn int
116        */   131        */
117       functi on  getPro fileLastOn linePeriod ( $lastNav Time )   132       functi on  getPro fileLastOn linePeriod ( $lastNav Time )
118       {   133       {
119     134  
120       }   135       }
121     136  
122     137  
123       functi on getNick Name()   138       functi on getNick Name()
124       {   139       {
125           $o ProfileQue ry = new B xDolProfil eQuery();   140           $o ProfileQue ry = new B xDolProfil eQuery();
126           re turn proce ss_line_ou tput( $oPr ofileQuery  -> getNic kName( $th is -> _iPr ofileID )  );   141           re turn proce ss_line_ou tput( $oPr ofileQuery  -> getNic kName( $th is -> _iPr ofileID )  );
127       }   142       }
128     143  
129       functi on getPass word()   144       functi on getPass word()
130       {   145       {
131     146  
132       }   147       }
133     148  
134       functi on getID(  $vID, $bWi thEmail =  1 )   149       functi on getID(  $vID, $bWi thEmail =  1 )
135       {   150       {
136           $o PDb = new  BxDolProfi leQuery();   151           $o PDb = new  BxDolProfi leQuery();
137     152  
138           if  ( $bWithE mail )   153           if  ( $bWithE mail )
139           {   154           {
140                if ( ere gi("^[_.0- 9a-z-]+@([ 0-9a-z][0- 9a-z-]+.)+ [a-z]{2,4} $", $vID)  )   155                if ( ere gi("^[_.0- 9a-z-]+@([ 0-9a-z][0- 9a-z-]+.)+ [a-z]{2,4} $", $vID)  )
141                {   156                {
142                    $aMa il = $oPDb  -> getIdB yEmail( $v ID );   157                    $aMa il = $oPDb  -> getIdB yEmail( $v ID );
143                    if (  (int)$aMa il['ID'] )   158                    if (  (int)$aMa il['ID'] )
144                    {   159                    {
145                         return (in t)$aMail[' ID'];   160                         return (in t)$aMail[' ID'];
146                    }   161                    }
147                }   162                }
148           }   163           }
149              164           
150           $i ID = (int) $vID;   165           $i ID = (int) $vID;
151           if  ( strcmp( "$vID", "$ iID") == 0  )   166           if  ( strcmp( "$vID", "$ iID") == 0  )
152           {   167           {
153                return $ iID;   168                return $ iID;
154           }   169           }
155           el se   170           el se
156           {   171           {
157                $aNick =  $oPDb ->  getIdByNic kname( $vI D );   172                $aNick =  $oPDb ->  getIdByNic kname( $vI D );
158                if ( (in t)$aNick[' ID'] )   173                if ( (in t)$aNick[' ID'] )
159                {   174                {
160                    retu rn (int)$a Nick['ID'] ;   175                    retu rn (int)$a Nick['ID'] ;
161                }   176                }
162           }   177           }
163     178  
164           re turn false ;   179           re turn false ;
165       }   180       }
166     181  
167   }   182   }
168   ?>   183   ?>