47. File Comparison Report

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

47.1 Files compared

# Location File Last Modified
1 Dolphin-v.6.0.5\admin links.php Thu Sep 20 08:58:42 2007 UTC
2 Dolphin-v.6.1.0\admin links.php Sat Apr 19 12:05:02 2008 UTC

47.2 Comparison summary

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

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

47.4 Active regular expressions

No regular expressions were active.

47.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( '../in c/header.i nc.php' );   21   require_on ce( '../in c/header.i nc.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 . 'a dmin_desig n.inc.php'  );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'a dmin_desig n.inc.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   $logged['a dmin']   =   member_aut h(   1  
);
  26   $logged['a dmin']   =   member_aut h(   1 ,   true,   true   );
27   $_page['cs s_name'] =  'links.cs s';   27   $_page['cs s_name'] =  'links.cs s';
28     28  
29   TopCodeAdm in();   29   TopCodeAdm in();
30   ContentBlo ckHead("Ma nage links ");   30   ContentBlo ckHead("Ma nage links ");
31     31  
32   if( !$demo _mode && ' add' == $_ GET['actio n'] )   32   if( !$demo _mode && ' add' == $_ GET['actio n'] )
33   {   33   {
34       echo G etLinkForm ();   34       echo G etLinkForm ();
35   }   35   }
36   elseif( !$ demo_mode  && 'addnew ' == $_POS T['action' ])   36   elseif( !$ demo_mode  && 'addnew ' == $_POS T['action' ])
37   {   37   {
38       if( 1  > strlen($ _POST['tit le']) )   38       if( 1  > strlen($ _POST['tit le']) )
39       {   39       {
40           ec ho GetActi onText( 'P lease ente r title' ) ;   40           ec ho GetActi onText( 'P lease ente r title' ) ;
41           ec ho GetLink Form( fals e, 0, true  );   41           ec ho GetLink Form( fals e, 0, true  );
42     42  
43       }   43       }
44       elseif ( 1 > strl en($_POST[ 'URL']) )   44       elseif ( 1 > strl en($_POST[ 'URL']) )
45       {   45       {
46           ec ho GetActi onText( 'P lease ente r URL' );   46           ec ho GetActi onText( 'P lease ente r URL' );
47           ec ho GetLink Form( fals e, 0, true  );   47           ec ho GetLink Form( fals e, 0, true  );
48       }   48       }
49       elseif ( 1 > strl en($_POST[ 'desc']) )   49       elseif ( 1 > strl en($_POST[ 'desc']) )
50       {   50       {
51           ec ho GetActi onText( 'P lease ente r descript ion' );   51           ec ho GetActi onText( 'P lease ente r descript ion' );
52           ec ho GetLink Form( fals e, 0, true  );   52           ec ho GetLink Form( fals e, 0, true  );
53       }   53       }
54       else   54       else
55       {   55       {
56           if ( db_res(  "INSERT IN TO `Links`  SET `Titl e` = '" .  $_POST['ti tle'] . "' , `URL` =  '" . $_POS T['URL'] .  "', `Desc ription` =  '" . $_PO ST['desc']  . "';" )  )   56           if ( db_res(  "INSERT IN TO `Links`  SET `Titl e` = '" .  $_POST['ti tle'] . "' , `URL` =  '" . $_POS T['URL'] .  "', `Desc ription` =  '" . $_PO ST['desc']  . "';" )  )
57           {   57           {
58                echo Get ActionText ( 'link su ccessfully  added', 1 );   58                echo Get ActionText ( 'link su ccessfully  added', 1 );
59                echo Get LinkList() ;   59                echo Get LinkList() ;
60           }   60           }
61           el se   61           el se
62           {   62           {
63                echo Get ActionText ( 'action  failed');   63                echo Get ActionText ( 'action  failed');
64                echo Get LinkList() ;   64                echo Get LinkList() ;
65           }   65           }
66       }   66       }
67     67  
68   }   68   }
69   elseif( !$ demo_mode  && 'edit'  == $_GET[' action'])   69   elseif( !$ demo_mode  && 'edit'  == $_GET[' action'])
70   {   70   {
71       echo G etLinkForm ( true, $_ GET['linkI D'] );   71       echo G etLinkForm ( true, $_ GET['linkI D'] );
72   }   72   }
73   elseif( !$ demo_mode  && 'update ' == $_POS T['action' ] )   73   elseif( !$ demo_mode  && 'update ' == $_POS T['action' ] )
74   {   74   {
75       if( 1  > strlen($ _POST['tit le']) )   75       if( 1  > strlen($ _POST['tit le']) )
76       {   76       {
77           ec ho GetActi onText( 'P lease ente r title' ) ;   77           ec ho GetActi onText( 'P lease ente r title' ) ;
78           ec ho GetLink Form( fals e, 0, true  );   78           ec ho GetLink Form( fals e, 0, true  );
79     79  
80       }   80       }
81       elseif ( 1 > strl en($_POST[ 'URL']) )   81       elseif ( 1 > strl en($_POST[ 'URL']) )
82       {   82       {
83           ec ho GetActi onText( 'P lease ente r URL' );   83           ec ho GetActi onText( 'P lease ente r URL' );
84           ec ho GetLink Form( fals e, 0, true  );   84           ec ho GetLink Form( fals e, 0, true  );
85       }   85       }
86       elseif ( 1 > strl en($_POST[ 'desc']) )   86       elseif ( 1 > strl en($_POST[ 'desc']) )
87       {   87       {
88           ec ho GetActi onText( 'P lease ente r descript ion' );   88           ec ho GetActi onText( 'P lease ente r descript ion' );
89           ec ho GetLink Form( fals e, 0, true  );   89           ec ho GetLink Form( fals e, 0, true  );
90       }   90       }
91       else   91       else
92       {   92       {
93           if ( db_res(  "UPDATE `L inks` SET  `Title` =  '" . proce ss_db_inpu t($_POST[' title']) .  "', `URL`  = '" . pr ocess_db_i nput($_POS T['URL'])  . "', `Des cription`  = '" . pro cess_db_in put($_POST ['desc'])  . "' WHERE  `ID` = "  . (int)$_P OST['linkI D'] . ";"  ) )   93           if ( db_res(  "UPDATE `L inks` SET  `Title` =  '" . proce ss_db_inpu t($_POST[' title']) .  "', `URL`  = '" . pr ocess_db_i nput($_POS T['URL'])  . "', `Des cription`  = '" . pro cess_db_in put($_POST ['desc'])  . "' WHERE  `ID` = "  . (int)$_P OST['linkI D'] . ";"  ) )
94           {   94           {
95                echo Get ActionText ( 'link up dated succ essfully',  1 );   95                echo Get ActionText ( 'link up dated succ essfully',  1 );
96                echo Get LinkList() ;   96                echo Get LinkList() ;
97           }   97           }
98           el se   98           el se
99           {   99           {
100                echo Get ActionText ( 'action  failed');   100                echo Get ActionText ( 'action  failed');
101                echo Get LinkList() ;   101                echo Get LinkList() ;
102           }   102           }
103       }   103       }
104   }   104   }
105   elseif( !$ demo_mode  && 'delete ' == $_GET ['action']  )   105   elseif( !$ demo_mode  && 'delete ' == $_GET ['action']  )
106   {   106   {
107       if( db _res( "DEL ETE FROM ` Links` WHE RE `ID` =  " . (int)$ _GET['link ID'] ) )   107       if( db _res( "DEL ETE FROM ` Links` WHE RE `ID` =  " . (int)$ _GET['link ID'] ) )
108       {   108       {
109           ec ho GetActi onText( 'l ink delete d successf ully', 1 ) ;   109           ec ho GetActi onText( 'l ink delete d successf ully', 1 ) ;
110           ec ho GetLink List();   110           ec ho GetLink List();
111       }   111       }
112       else   112       else
113       {   113       {
114           ec ho GetActi onText( 'a ction fail ed');   114           ec ho GetActi onText( 'a ction fail ed');
115           ec ho GetLink List();   115           ec ho GetLink List();
116       }   116       }
117   }   117   }
118   else   118   else
119   {   119   {
120       echo G etLinkList ();   120       echo G etLinkList ();
121   }   121   }
122     122  
123   ContentBlo ckFoot();   123   ContentBlo ckFoot();
124   BottomCode ();   124   BottomCode ();
125     125  
126   function G etLinkList ()   126   function G etLinkList ()
127   {   127   {
128       global  $site;   128       global  $site;
129     129  
130       $link_ query = "S ELECT `ID` , `Title`,  `URL`, `D escription ` FROM `Li nks`";   130       $link_ query = "S ELECT `ID` , `Title`,  `URL`, `D escription ` FROM `Li nks`";
131       $link_ res = db_r es($link_q uery);   131       $link_ res = db_r es($link_q uery);
132     132  
133       $link_ count = db _arr("SELE CT COUNT(I D) FROM `L inks`");   133       $link_ count = db _arr("SELE CT COUNT(I D) FROM `L inks`");
134       $link_ count = $l ink_count[ '0'];   134       $link_ count = $l ink_count[ '0'];
135       $links _onpage =  10;   135       $links _onpage =  10;
136     136  
137       $ret =  '';   137       $ret =  '';
138       $ret . = '<div cl ass="linkA dd">';   138       $ret . = '<div cl ass="linkA dd">';
139           $r et .= '<a  href="' .  $site['url _admin'] .  'links.ph p?action=a dd">';   139           $r et .= '<a  href="' .  $site['url _admin'] .  'links.ph p?action=a dd">';
140                $ret .=  'Add New L ink';   140                $ret .=  'Add New L ink';
141           $r et .= '</a >';   141           $r et .= '</a >';
142       $ret . = '</div>' ;   142       $ret . = '</div>' ;
143       $j = 1 ;   143       $j = 1 ;
144       while(  $link_arr  = mysql_f etch_assoc ($link_res ))   144       while(  $link_arr  = mysql_f etch_assoc ($link_res ))
145       {   145       {
146           if ( ($j%2) = = 0 )   146           if ( ($j%2) = = 0 )
147           {   147           {
148                $add = ' style="bac kground-co lor:#E6E6E 6;"';   148                $add = ' style="bac kground-co lor:#E6E6E 6;"';
149           }   149           }
150           el se   150           el se
151           {   151           {
152                $add = ' ';   152                $add = ' ';
153           }   153           }
154     154  
155           $r et .= '<di v class="l ink_block"  ' . $add  . '>';   155           $r et .= '<di v class="l ink_block"  ' . $add  . '>';
156                $ret .=  '<div clas s="link_ti tle">';   156                $ret .=  '<div clas s="link_ti tle">';
157                    $ret  .= '<a hr ef="' . $l ink_arr['U RL'] . '"> ';   157                    $ret  .= '<a hr ef="' . $l ink_arr['U RL'] . '"> ';
158                         $ret .= pr ocess_line _output($l ink_arr['T itle']);   158                         $ret .= pr ocess_line _output($l ink_arr['T itle']);
159                    $ret  .= '</a>' ;   159                    $ret  .= '</a>' ;
160                $ret .=  '</div>';   160                $ret .=  '</div>';
161                $ret .=  '<div>';   161                $ret .=  '<div>';
162                    $ret  .= proces s_text_out put($link_ arr['Descr iption']);   162                    $ret  .= proces s_text_out put($link_ arr['Descr iption']);
163                $ret .=  '</div>';   163                $ret .=  '</div>';
164                $ret .=  '<div styl e="text-al ign:right; ">';   164                $ret .=  '<div styl e="text-al ign:right; ">';
165                    $ret  .= '<a hr ef="' . $s ite['url_a dmin']  .  'links.php ?linkID='  . $link_ar r['ID'] .  '&action=e dit">';   165                    $ret  .= '<a hr ef="' . $s ite['url_a dmin']  .  'links.php ?linkID='  . $link_ar r['ID'] .  '&action=e dit">';
166                         $ret .= 'E dit';   166                         $ret .= 'E dit';
167                    $ret  .= '</a>' ;   167                    $ret  .= '</a>' ;
168                    $ret  .= '&nbsp ;||&nbsp;' ;   168                    $ret  .= '&nbsp ;||&nbsp;' ;
169                    $ret  .= '<a hr ef="' . $s ite['url_a dmin']  .  'links.php ?linkID='  . $link_ar r['ID'] .  '&action=d elete">';   169                    $ret  .= '<a hr ef="' . $s ite['url_a dmin']  .  'links.php ?linkID='  . $link_ar r['ID'] .  '&action=d elete">';
170                         $ret .= 'D elete';   170                         $ret .= 'D elete';
171                    $ret  .= '</a>' ;   171                    $ret  .= '</a>' ;
172                $ret .=  '</div>';   172                $ret .=  '</div>';
173           $r et .= '</d iv>';   173           $r et .= '</d iv>';
174     174  
175           $j ++;   175           $j ++;
176       }   176       }
177     177  
178       return  $ret;   178       return  $ret;
179   }   179   }
180     180  
181   function G etLinkForm ( $edit =  false, $li nkID = 0,  $use_post_ data = fal se )   181   function G etLinkForm ( $edit =  false, $li nkID = 0,  $use_post_ data = fal se )
182   {   182   {
183       global  $site;   183       global  $site;
184     184  
185       $ret =  '';   185       $ret =  '';
186       if( $e dit )   186       if( $e dit )
187       {   187       {
188           $l ink_arr =  db_arr( "S ELECT `ID` , `Title`,  `URL`, `D escription ` FROM `Li nks` WHERE  `ID` = '"  . (int)$l inkID . "' ;");   188           $l ink_arr =  db_arr( "S ELECT `ID` , `Title`,  `URL`, `D escription ` FROM `Li nks` WHERE  `ID` = '"  . (int)$l inkID . "' ;");
189           $v alue_title  = htmlspe cialchars( $link_arr[ 'Title']);   189           $v alue_title  = htmlspe cialchars( $link_arr[ 'Title']);
190           $v alue_URL =  htmlspeci alchars($l ink_arr['U RL']);   190           $v alue_URL =  htmlspeci alchars($l ink_arr['U RL']);
191           $v alue_desc  = htmlspec ialchars($ link_arr[' Descriptio n']);   191           $v alue_desc  = htmlspec ialchars($ link_arr[' Descriptio n']);
192       }   192       }
193       elseif ( $use_pos t_data )   193       elseif ( $use_pos t_data )
194       {   194       {
195           $v alue_title  = htmlspe cialchars(  process_p ass_data($ _POST['tit le']) );   195           $v alue_title  = htmlspe cialchars(  process_p ass_data($ _POST['tit le']) );
196           $v alue_URL =  htmlspeci alchars( p rocess_pas s_data($_P OST['URL'] ) );   196           $v alue_URL =  htmlspeci alchars( p rocess_pas s_data($_P OST['URL'] ) );
197           $v alue_desc  = htmlspec ialchars(  process_pa ss_data($_ POST['desc ']) );   197           $v alue_desc  = htmlspec ialchars(  process_pa ss_data($_ POST['desc ']) );
198       }   198       }
199       else   199       else
200       {   200       {
201           $v alue_title  = '';   201           $v alue_title  = '';
202           $v alue_URL =  '';   202           $v alue_URL =  '';
203           $v alue_desc  = '';   203           $v alue_desc  = '';
204       }   204       }
205     205  
206     206  
207       $ret . = '<div cl ass="link_ block">';   207       $ret . = '<div cl ass="link_ block">';
208           $r et .= '<fo rm action= "' . $site ['url_admi n'] . 'lin ks.php" me thod="post ">';   208           $r et .= '<fo rm action= "' . $site ['url_admi n'] . 'lin ks.php" me thod="post ">';
209                $ret .=  '<table ce llpadding= "0" cellsp acing="1"  border="0"  width="70 %" align=" center">';   209                $ret .=  '<table ce llpadding= "0" cellsp acing="1"  border="0"  width="70 %" align=" center">';
210                    $ret  .= '<tr>' ;   210                    $ret  .= '<tr>' ;
211                         $ret .= '< td>';   211                         $ret .= '< td>';
212                             $ret . = 'Title';   212                             $ret . = 'Title';
213                         $ret .= '< /td>';   213                         $ret .= '< /td>';
214                         $ret .= '< td>';   214                         $ret .= '< td>';
215                             $ret . = '<input  type="text " class="l ink_text_i nput" name ="title" v alue="' .  $value_tit le . '" /> ';   215                             $ret . = '<input  type="text " class="l ink_text_i nput" name ="title" v alue="' .  $value_tit le . '" /> ';
216                         $ret .= '< /td>';   216                         $ret .= '< /td>';
217                    $ret  .= '</tr> ';   217                    $ret  .= '</tr> ';
218                    $ret  .= '<tr>' ;   218                    $ret  .= '<tr>' ;
219                         $ret .= '< td>';   219                         $ret .= '< td>';
220                             $ret . = 'URL';   220                             $ret . = 'URL';
221                         $ret .= '< /td>';   221                         $ret .= '< /td>';
222                         $ret .= '< td>';   222                         $ret .= '< td>';
223                             $ret . = '<input  type="text " class="l ink_text_i nput" name ="URL" val ue="' . $v alue_URL .  '"  />';   223                             $ret . = '<input  type="text " class="l ink_text_i nput" name ="URL" val ue="' . $v alue_URL .  '"  />';
224                         $ret .= '< /td>';   224                         $ret .= '< /td>';
225                    $ret  .= '</tr> ';   225                    $ret  .= '</tr> ';
226                    $ret  .= '<tr>' ;   226                    $ret  .= '<tr>' ;
227                         $ret .= '< td>';   227                         $ret .= '< td>';
228                             $ret . = 'Descrip tion';   228                             $ret . = 'Descrip tion';
229                         $ret .= '< /td>';   229                         $ret .= '< /td>';
230                         $ret .= '< td>';   230                         $ret .= '< td>';
231                             $ret . = '<textar ea name="d esc" class ="link_tex tarea">' .  $value_de sc  . '</t extarea>';   231                             $ret . = '<textar ea name="d esc" class ="link_tex tarea">' .  $value_de sc  . '</t extarea>';
232                         $ret .= '< /td>';   232                         $ret .= '< /td>';
233                    $ret  .= '</tr> ';   233                    $ret  .= '</tr> ';
234                    $ret  .= '<tr>' ;   234                    $ret  .= '<tr>' ;
235                         $ret .= '< td colspan ="2" align ="center"> ';   235                         $ret .= '< td colspan ="2" align ="center"> ';
236                         if( $edit  )   236                         if( $edit  )
237                         {   237                         {
238                             $ret . = '<input  type="hidd en" name=" linkID" va lue="' . $ linkID . ' ">';   238                             $ret . = '<input  type="hidd en" name=" linkID" va lue="' . $ linkID . ' ">';
239                             $ret . = '<input  type="hidd en" name=" action" va lue="updat e">';   239                             $ret . = '<input  type="hidd en" name=" action" va lue="updat e">';
240                         }   240                         }
241                         else   241                         else
242                         {   242                         {
243                             $ret . = '<input  type="hidd en" name=" action" va lue="addne w">';   243                             $ret . = '<input  type="hidd en" name=" action" va lue="addne w">';
244                         }   244                         }
245     245  
246                             $ret . = '<input  type="subm it" value= "Save" />' ;   246                             $ret . = '<input  type="subm it" value= "Save" />' ;
247                         $ret .= '< /td>';   247                         $ret .= '< /td>';
248     248  
249                    $ret  .= '</tr> ';   249                    $ret  .= '</tr> ';
250                $ret .=  '</table>' ;   250                $ret .=  '</table>' ;
251           $r et .= '';   251           $r et .= '';
252       $ret . = '</div>' ;   252       $ret . = '</div>' ;
253     253  
254       return  $ret;   254       return  $ret;
255   }   255   }
256     256  
257   function G etActionTe xt( $text,  $success  = '')   257   function G etActionTe xt( $text,  $success  = '')
258   {   258   {
259       global  $site;   259       global  $site;
260     260  
261       $ret =  '';   261       $ret =  '';
262       if( $s uccess )   262       if( $s uccess )
263       {   263       {
264           $r et .= '<di v style="p osition:re lative; bo rder:1px s olid green ; margin-b ottom:20px ; font-wei ght:bold;  text-align :center; c olor:green ; padding: 3px;">';   264           $r et .= '<di v style="p osition:re lative; bo rder:1px s olid green ; margin-b ottom:20px ; font-wei ght:bold;  text-align :center; c olor:green ; padding: 3px;">';
265                //$ret . = '<div st yle="font- weight:bol d; text-al ign:center ; color:gr een;">';   265                //$ret . = '<div st yle="font- weight:bol d; text-al ign:center ; color:gr een;">';
266                    $ret  .= $text;   266                    $ret  .= $text;
267                //$ret . = '</div>' ;   267                //$ret . = '</div>' ;
268           $r et .= '</d iv>';   268           $r et .= '</d iv>';
269   /*   269   /*
270           $r et .= '<di v style="p osition:re lative; te xt-align:c enter;">';   270           $r et .= '<di v style="p osition:re lative; te xt-align:c enter;">';
271                $ret .=  '<a href=" ' . $site[ 'url_admin '] . 'link s.php">Bac k to link  list</a>';   271                $ret .=  '<a href=" ' . $site[ 'url_admin '] . 'link s.php">Bac k to link  list</a>';
272           $r et .= '</d iv>';   272           $r et .= '</d iv>';
273   */   273   */
274       }   274       }
275       else   275       else
276       {   276       {
277           $r et .= '<di v style="p osition:re lative; bo rder:1px s olid red;  margin-bot tom:20px;  font-weigh t:bold; te xt-align:c enter; col or:red; pa dding:3px; ">';   277           $r et .= '<di v style="p osition:re lative; bo rder:1px s olid red;  margin-bot tom:20px;  font-weigh t:bold; te xt-align:c enter; col or:red; pa dding:3px; ">';
278                $ret .=  '<div styl e="font-we ight:bold;  text-alig n:center;  color:red; ">';   278                $ret .=  '<div styl e="font-we ight:bold;  text-alig n:center;  color:red; ">';
279                    $ret  .= $text;   279                    $ret  .= $text;
280                $ret .=  '</div>';   280                $ret .=  '</div>';
281           $r et .= '</d iv>';   281           $r et .= '</d iv>';
282   /*      $r et .= '<di v style="p osition:re lative; te xt-align:c enter;">';   282   /*      $r et .= '<di v style="p osition:re lative; te xt-align:c enter;">';
283                $ret .=  '<a href=" ' . $site[ 'url_admin '] . 'link s.php">Bac k to link  list</a>';   283                $ret .=  '<a href=" ' . $site[ 'url_admin '] . 'link s.php">Bac k to link  list</a>';
284           $r et .= '</d iv>';   284           $r et .= '</d iv>';
285   */   285   */
286       }   286       }
287     287  
288       return  $ret;   288       return  $ret;
289     289  
290   }   290   }
291     291  
292   ?>   292   ?>