9. Araxis Merge File Comparison Report

Produced by Araxis Merge on Mon May 18 06:28:28 2009 UTC. See www.araxis.com for information about Merge. 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.

9.1 Files compared

# Location File Last Modified
1 D:\Dolphin-v.6.1.5\inc admin_design.inc.php Mon May 4 03:14:11 2009 UTC
2 D:\Dolphin-v.6.1.6\inc admin_design.inc.php Tue May 12 09:01:56 2009 UTC

9.2 Comparison summary

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

9.3 Comparison options

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

9.4 Active regular expressions

No regular expressions were active.

9.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( 'heade r.inc.php'  );   21   require_on ce( 'heade r.inc.php'  );
22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd b.inc.php'  );   22   require_on ce( BX_DIR ECTORY_PAT H_INC . 'd b.inc.php'  );
23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rof.inc.ph p' );   23   require_on ce( BX_DIR ECTORY_PAT H_INC . 'p rof.inc.ph p' );
24     24  
25     25  
26   function g etAdminMen u()   26   function g etAdminMen u()
27   {   27   {
28           gl obal $logg ed;   28           gl obal $logg ed;
29           gl obal $site ;   29           gl obal $site ;
30              30           
31           $s Build = '' ;   31           $s Build = '' ;
32           if  ( $logged ['admin']  )   32           if  ( $logged ['admin']  )
33           {   33           {
34                    $sUs er = 'admi n';   34                    $sUs er = 'admi n';
35                    $log out = 'adm in_logout' ;   35                    $log out = 'adm in_logout' ;
36                    $sBu ild = $sAd minMenu .=  '<a href= "' . $site ['url_admi n'] . 'adm inMenuComp ose.php">'  .   36                    $sBu ild = $sAd minMenu .=  '<a href= "' . $site ['url_admi n'] . 'adm inMenuComp ose.php">'  .
37                    '<im g src="' .  $site['ur l_admin']  . 'images/ icons/item s/basic_se ttings.gif " />' .   37                    '<im g src="' .  $site['ur l_admin']  . 'images/ icons/item s/basic_se ttings.gif " />' .
38                    '</a >';   38                    '</a >';
39           }   39           }
40           el seif( $log ged['aff']  )   40           el seif( $log ged['aff']  )
41           {   41           {
42                    $sUs er = 'aff' ;   42                    $sUs er = 'aff' ;
43                    $log out = 'aff _logout';   43                    $log out = 'aff _logout';
44           }   44           }
45           el seif($logg ed['modera tor'])   45           el seif($logg ed['modera tor'])
46           {   46           {
47                    $sUs er = 'mode rator';   47                    $sUs er = 'mode rator';
48                    $log out = 'mod erator_log out';   48                    $log out = 'mod erator_log out';
49           }   49           }
50           el se   50           el se
51                    retu rn '';   51                    retu rn '';
52              52           
53           $s elf = base name( $_SE RVER['PHP_ SELF'] );   53           $s elf = base name( $_SE RVER['PHP_ SELF'] );
54           $r equest_uri  = basenam e( $_SERVE R['REQUEST _URI'] );   54           $r equest_uri  = basenam e( $_SERVE R['REQUEST _URI'] );
55              55           
56           $r Categs = d b_res( "SE LECT `ID`,  `Title`,  `Icon`, `I con_thumb`  FROM `Adm inMenuCate g` WHERE ` User`='$sU ser' ORDER  BY `Order `" );   56           $r Categs = d b_res( "SE LECT `ID`,  `Title`,  `Icon`, `I con_thumb`  FROM `Adm inMenuCate g` WHERE ` User`='$sU ser' ORDER  BY `Order `" );
57              57           
58           $s AdminMenu  = '<div cl ass="menu_ wrapper">' ;   58           $s AdminMenu  = '<div cl ass="menu_ wrapper">' ;
59              59           
60           // gen Dashbo ard link   60           // gen Dashbo ard link
61           $a CategDash  = array( ' ID' => 0,  'Icon_thum b' => 'key _t.png', ' Title' =>  'Dashboard ' );   61           $a CategDash  = array( ' ID' => 0,  'Icon_thum b' => 'key _t.png', ' Title' =>  'Dashboard ' );
62           if ( $self ==  'index.ph p' && (int )$_GET['ad min_categ' ] == 0 )   62           if ( $self ==  'index.ph p' && (int )$_GET['ad min_categ' ] == 0 )
63                    $isA ctiveCateg  = true;   63                    $isA ctiveCateg  = true;
64           el se   64           el se
65                    $isA ctiveCateg  = false;   65                    $isA ctiveCateg  = false;
66              66           
67           $s AdminMenu  .= getAdmi nMenuCateg ( $aCategD ash, '', $ isActiveCa teg, 0, $s User );   67           $s AdminMenu  .= getAdmi nMenuCateg ( $aCategD ash, '', $ isActiveCa teg, 0, $s User );
68              68           
69           wh ile( $aCat eg = mysql _fetch_ass oc( $rCate gs ) )   69           wh ile( $aCat eg = mysql _fetch_ass oc( $rCate gs ) )
70           {   70           {
71                    $rIt ems = db_r es( "SELEC T * FROM ` AdminMenu`  WHERE `Ca teg`='{$aC ateg['ID'] }' ORDER B Y `Order`"  );   71                    $rIt ems = db_r es( "SELEC T * FROM ` AdminMenu`  WHERE `Ca teg`='{$aC ateg['ID'] }' ORDER B Y `Order`"  );
72                       72                    
73                    if(  $self == ' index.php'  && (int)$ _GET['admi n_categ']  == $aCateg ['ID'] )   73                    if(  $self == ' index.php'  && (int)$ _GET['admi n_categ']  == $aCateg ['ID'] )
74                    {   74                    {
75                             $isAct iveCateg =  true;   75                             $isAct iveCateg =  true;
76                             $isOpe nCateg   =  true;   76                             $isOpe nCateg   =  true;
77                    }   77                    }
78                    else   78                    else
79                    {   79                    {
80                             $isAct iveCateg =  false;   80                             $isAct iveCateg =  false;
81                             $isOpe nCateg   =  false;   81                             $isOpe nCateg   =  false;
82                    }   82                    }
83                       83                    
84                    $sIt ems = '';   84                    $sIt ems = '';
85                       85                    
86                    whil e( $aItem  = mysql_fe tch_assoc(  $rItems )  )   86                    whil e( $aItem  = mysql_fe tch_assoc(  $rItems )  )
87                    {   87                    {
88                             if( su bstr( $req uest_uri,  0, strlen(  basename(  $aItem['U rl'] ) ) )  == basena me( $aItem ['Url'] )  )   88                             if( su bstr( $req uest_uri,  0, strlen(  basename(  $aItem['U rl'] ) ) )  == basena me( $aItem ['Url'] )  )
89                             {   89                             {
90                                      $isOpenC ateg = tru e;   90                                      $isOpenC ateg = tru e;
91                                      $isActiv eItem = tr ue;   91                                      $isActiv eItem = tr ue;
92                             }   92                             }
93                             else   93                             else
94                                      $isActiv eItem = fa lse;   94                                      $isActiv eItem = fa lse;
95                                95                             
96                             $sItem s .= getAd minMenuIte m( $aItem,  $isActive Item, $sUs er );   96                             $sItem s .= getAd minMenuIte m( $aItem,  $isActive Item, $sUs er );
97                    }   97                    }
98                    $sAd minMenu .=  getAdminM enuCateg(  $aCateg, $ sItems, $i sActiveCat eg, $isOpe nCateg, $s User );   98                    $sAd minMenu .=  getAdminM enuCateg(  $aCateg, $ sItems, $i sActiveCat eg, $isOpe nCateg, $s User );
99           }   99           }
100              100           
101           // gen logout  link   101           // gen logout  link
102           $a CategLogou t = array(  'ID' => 0 , 'Icon_th umb' => 'l ogout_t.pn g', 'Title ' => 'Logo ut', 'Link ' => '../l ogout.php? action=' .  $logout ) ;   102           $a CategLogou t = array(  'ID' => 0 , 'Icon_th umb' => 'l ogout_t.pn g', 'Title ' => 'Logo ut', 'Link ' => '../l ogout.php? action=' .  $logout ) ;
103           $s AdminMenu  .= getAdmi nMenuCateg ( $aCategL ogout, '',  0, 0, $sU ser );   103           $s AdminMenu  .= getAdmi nMenuCateg ( $aCategL ogout, '',  0, 0, $sU ser );
104           $s AdminMenu  .= $sBuild ;   104           $s AdminMenu  .= $sBuild ;
105              105           
106           $s AdminMenu  .= '</div> ';   106           $s AdminMenu  .= '</div> ';
107              107           
108           re turn $sAdm inMenu;   108           re turn $sAdm inMenu;
109   }   109   }
110     110  
111   $l = 'base 64_decode' ;   111   $l = 'base 64_decode' ;
112     112  
113   function g etAdminMen uItem( $aI tem, $isAc tiveItem,  $sUser = ' admin' )   113   function g etAdminMen uItem( $aI tem, $isAc tiveItem,  $sUser = ' admin' )
114   {   114   {
115           gl obal $site ;   115           gl obal $site ;
116              116           
117           if ( strlen(  $aItem['Ch eck'] ) )   117           if ( strlen(  $aItem['Ch eck'] ) )
118           {   118           {
119                    $fun c = create _function(  '', $aIte m['Check']  );   119                    $fun c = create _function(  '', $aIte m['Check']  );
120                    if(  !$func() )   120                    if(  !$func() )
121                             return  '';   121                             return  '';
122           }   122           }
123              123           
124           ob _start();   124           ob _start();
125           ?>   125           ?>
126                    <div  class="me nu_item_wr apper">   126                    <div  class="me nu_item_wr apper">
127                             <img s rc="<?= $s ite['url_a dmin']?>im ages/icons /items/<?=  $aItem['I con'] ?>"  class="men u_item_ico n" />   127                             <img s rc="<?= $s ite['url_a dmin']?>im ages/icons /items/<?=  $aItem['I con'] ?>"  class="men u_item_ico n" />
128           <?   128           <?
129              129           
130           if ( $isActiv eItem )   130           if ( $isActiv eItem )
131           {   131           {
132                    ?><s pan><?= $a Item['Titl e'] ?></sp an><?   132                    ?><s pan><?= $a Item['Titl e'] ?></sp an><?
133           }   133           }
134           el se   134           el se
135           {   135           {
136                    if(  substr( $a Item['Url' ], 0, strl en( 'javas cript:' )  ) == 'java script:' )  // smile  :))   136                    if(  substr( $a Item['Url' ], 0, strl en( 'javas cript:' )  ) == 'java script:' )  // smile  :))
137                    {   137                    {
138                             $href  = 'javascr ipt:void(0 );';   138                             $href  = 'javascr ipt:void(0 );';
139                             $oncli ck = 'oncl ick="' . $ aItem['Url '] . '"';   139                             $oncli ck = 'oncl ick="' . $ aItem['Url '] . '"';
140                                140                             
141                             $aAdmi n = db_arr ( "SELECT  * FROM `Ad mins` LIMI T 1" );   141                             $aAdmi n = db_arr ( "SELECT  * FROM `Ad mins` LIMI T 1" );
142                             $oncli ck = str_r eplace( '{ adminLogin }', $aAdmi n['Name'],        $on click );   142                             $oncli ck = str_r eplace( '{ adminLogin }', $aAdmi n['Name'],        $on click );
143                             $oncli ck = str_r eplace( '{ adminPass} ',  $aAdmi n['Passwor d'], $oncl ick );   143                             $oncli ck = str_r eplace( '{ adminPass} ',  $aAdmi n['Passwor d'], $oncl ick );
144                    }   144                    }
145                    else   145                    else
146                    {   146                    {
147                switch ( $sUser) {   147                switch ( $sUser) {
148                    case  'admin':      $sUrlP ref = $sit e['url_adm in'];           break ;   148                    case  'admin':      $sUrlP ref = $sit e['url_adm in'];           break ;
149                    case  'aff':        $sUrlP ref = $sit e['url'] .  'aff/';        break ;   149                    case  'aff':        $sUrlP ref = $sit e['url'] .  'aff/';        break ;
150                    case  'moderato r': $sUrlP ref = $sit e['url'] .  'moderato r/'; break ;   150                    case  'moderato r': $sUrlP ref = $sit e['url'] .  'moderato r/'; break ;
151                }   151                }
152                   152                
153                             $href  = $sUrlPre f . $aItem ['Url'];   153                             $href  = $sUrlPre f . $aItem ['Url'];
154                             $oncli ck = '';   154                             $oncli ck = '';
155                    }   155                    }
156                       156                    
157                    ?><a  href="<?= $href?>" < ?=$onclick ?>><?= $aI tem['Title '] ?></a>< ?   157                    ?><a  href="<?= $href?>" < ?=$onclick ?>><?= $aI tem['Title '] ?></a>< ?
158           }   158           }
159           ?>   159           ?>
160                    </di v>   160                    </di v>
161           <?   161           <?
162           re turn ob_ge t_clean();   162           re turn ob_ge t_clean();
163   }   163   }
164     164  
165   function g etAdminMen uCateg( $a Categ, $sI tems, $isA ctiveCateg , $isOpenC ateg, $sUs er = 'admi n' )   165   function g etAdminMen uCateg( $a Categ, $sI tems, $isA ctiveCateg , $isOpenC ateg, $sUs er = 'admi n' )
166   {   166   {
167           gl obal $site ;   167           gl obal $site ;
168              168           
169           ob _start();   169           ob _start();
170           ?>   170           ?>
171           <d iv class=" menu_categ _wrapper">   171           <d iv class=" menu_categ _wrapper">
172           <?   172           <?
173           if ( $isActiv eCateg )   173           if ( $isActiv eCateg )
174           {   174           {
175                    ?>   175                    ?>
176                    <div  class="me nu_categ_a ctive_head er">   176                    <div  class="me nu_categ_a ctive_head er">
177                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/icon s/<?= $aCa teg['Icon_ thumb'] ?> " class="c ateg_icon"  />   177                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/icon s/<?= $aCa teg['Icon_ thumb'] ?> " class="c ateg_icon"  />
178                    <?   178                    <?
179                    if(  strlen( $s Items ) )   179                    if(  strlen( $s Items ) )
180                    {   180                    {
181                             ?>   181                             ?>
182                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/arr_ dn_act.gif " class="c ateg_arr"   182                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/arr_ dn_act.gif " class="c ateg_arr"
183                               onmo useover="e l = docume nt.getElem entById( ' menu_items _wrapper_< ?= $aCateg ['ID'] ?>'  ); if( el .style.dis play == 'n one'){ thi s.src='<?=  $site['ur l_admin']  ?>images/a rr_dn_hove r.gif'; }"   183                               onmo useover="e l = docume nt.getElem entById( ' menu_items _wrapper_< ?= $aCateg ['ID'] ?>'  ); if( el .style.dis play == 'n one'){ thi s.src='<?=  $site['ur l_admin']  ?>images/a rr_dn_hove r.gif'; }"
184                               onmo useout="if ( el.style .display = = 'none'){  this.src= '<?= $site ['url_admi n'] ?>imag es/arr_dn. gif'; }"   184                               onmo useout="if ( el.style .display = = 'none'){  this.src= '<?= $site ['url_admi n'] ?>imag es/arr_dn. gif'; }"
185                               oncl ick="if( e l.style.di splay == ' none' ){ e l.style.di splay = 'b lock'; thi s.src = '< ?= $site[' url_admin' ] ?>images /arr_dn_ac t.gif'; }  else { el. style.disp lay = 'non e'; this.s rc = '<?=  $site['url _admin'] ? >images/ar r_dn.gif';  }"   185                               oncl ick="if( e l.style.di splay == ' none' ){ e l.style.di splay = 'b lock'; thi s.src = '< ?= $site[' url_admin' ] ?>images /arr_dn_ac t.gif'; }  else { el. style.disp lay = 'non e'; this.s rc = '<?=  $site['url _admin'] ? >images/ar r_dn.gif';  }"
186                               />   186                               />
187                             <?   187                             <?
188                    }   188                    }
189                    ?>   189                    ?>
190                             <span> <?= $aCate g['Title']  ?></span>   190                             <span> <?= $aCate g['Title']  ?></span>
191                    </di v>   191                    </di v>
192                    <?   192                    <?
193           }   193           }
194           el se   194           el se
195           {   195           {
196                    ?>   196                    ?>
197                    <div  class="me nu_categ_h eader">   197                    <div  class="me nu_categ_h eader">
198                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/icon s/<?= $aCa teg['Icon_ thumb'] ?> " class="c ateg_icon"  />   198                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/icon s/<?= $aCa teg['Icon_ thumb'] ?> " class="c ateg_icon"  />
199                    <?   199                    <?
200                    if(  strlen( $s Items ) )   200                    if(  strlen( $s Items ) )
201                    {   201                    {
202                             ?>   202                             ?>
203                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/arr_ dn.gif" cl ass="categ _arr"   203                             <img s rc="<?= $s ite['url_a dmin'] ?>i mages/arr_ dn.gif" cl ass="categ _arr"
204                               onmo useover="e l = docume nt.getElem entById( ' menu_items _wrapper_< ?= $aCateg ['ID'] ?>'  ); if( el .style.dis play == 'n one'){ thi s.src='<?=  $site['ur l_admin']  ?>images/a rr_dn_hove r.gif'; }"   204                               onmo useover="e l = docume nt.getElem entById( ' menu_items _wrapper_< ?= $aCateg ['ID'] ?>'  ); if( el .style.dis play == 'n one'){ thi s.src='<?=  $site['ur l_admin']  ?>images/a rr_dn_hove r.gif'; }"
205                               onmo useout="if ( el.style .display = = 'none'){  this.src= '<?= $site ['url_admi n'] ?>imag es/arr_dn. gif'; }"   205                               onmo useout="if ( el.style .display = = 'none'){  this.src= '<?= $site ['url_admi n'] ?>imag es/arr_dn. gif'; }"
206                               oncl ick="if( e l.style.di splay == ' none' ){ e l.style.di splay = 'b lock'; thi s.src = '< ?= $site[' url_admin' ] ?>images /arr_dn_ac t.gif'; }  else { el. style.disp lay = 'non e'; this.s rc = '<?=  $site['url _admin'] ? >images/ar r_dn.gif';  }"   206                               oncl ick="if( e l.style.di splay == ' none' ){ e l.style.di splay = 'b lock'; thi s.src = '< ?= $site[' url_admin' ] ?>images /arr_dn_ac t.gif'; }  else { el. style.disp lay = 'non e'; this.s rc = '<?=  $site['url _admin'] ? >images/ar r_dn.gif';  }"
207                               />   207                               />
208                             <?   208                             <?
209                    }   209                    }
210                       210                    
211           sw itch ($sUs er) {   211           sw itch ($sUs er) {
212                case 'ad min':      $sUrlPref  = $site['u rl_admin'] ;           break;   212                case 'ad min':      $sUrlPref  = $site['u rl_admin'] ;           break;
213                case 'af f':        $sUrlPref  = $site['u rl'] . 'af f/';        break;   213                case 'af f':        $sUrlPref  = $site['u rl'] . 'af f/';        break;
214                case 'mo derator':  $sUrlPref  = $site['u rl'] . 'mo derator/';  break;   214                case 'mo derator':  $sUrlPref  = $site['u rl'] . 'mo derator/';  break;
215           }   215           }
216              216           
217                    if(  $aCateg['L ink'] )   217                    if(  $aCateg['L ink'] )
218                             $link  = $aCateg[ 'Link'];   218                             $link  = $aCateg[ 'Link'];
219                    else if( $aCate g['ID'] )   219                    else if( $aCate g['ID'] )
220                             $link  = $sUrlPre f . "index .php?admin _categ={$a Categ['ID' ]}";   220                             $link  = $sUrlPre f . "index .php?admin _categ={$a Categ['ID' ]}";
221                    else   221                    else
222                             $link  = $sUrlPre f . "index .php";   222                             $link  = $sUrlPre f . "index .php";
223                       223                    
224                    ?>   224                    ?>
225                             <a hre f="<?= $li nk ?>"><?=  $aCateg[' Title'] ?> </a>   225                             <a hre f="<?= $li nk ?>"><?=  $aCateg[' Title'] ?> </a>
226                    </di v>   226                    </di v>
227                    <?   227                    <?
228           }   228           }
229              229           
230           if ( strlen(  $sItems )  )   230           if ( strlen(  $sItems )  )
231           {   231           {
232                    ?>   232                    ?>
233                    <div  class="me nu_items_w rapper" id ="menu_ite ms_wrapper _<?= $aCat eg['ID'] ? >" style=" display: < ?= $isOpen Categ ? 'b lock' : 'n one' ?>;">   233                    <div  class="me nu_items_w rapper" id ="menu_ite ms_wrapper _<?= $aCat eg['ID'] ? >" style=" display: < ?= $isOpen Categ ? 'b lock' : 'n one' ?>;">
234                             <?= $s Items ?>   234                             <?= $s Items ?>
235                    </di v>   235                    </di v>
236                    <?   236                    <?
237           }   237           }
238           ?>   238           ?>
239           </ div>   239           </ div>
240           <?   240           <?
241              241           
242           re turn ob_ge t_clean();   242           re turn ob_ge t_clean();
243   }   243   }
244     244  
245     245  
246   function T opCodeAdmi n( $extraC odeInBody  = '' )   246   function T opCodeAdmi n( $extraC odeInBody  = '' )
247   {   247   {
248           gl obal $site ;   248           gl obal $site ;
249           gl obal $admi n_dir;   249           gl obal $admi n_dir;
250           gl obal $_pag e;   250           gl obal $_pag e;
251           gl obal $logg ed;   251           gl obal $logg ed;
252           gl obal $sRay HomeDir;   252           gl obal $sRay HomeDir;
253     253  
254           if  ( $logged ['admin']  )   254           if  ( $logged ['admin']  )
255           {   255           {
256                    $log o_alt = 'A dmin';   256                    $log o_alt = 'A dmin';
257                    $use r     = 'a dmin';   257                    $use r     = 'a dmin';
258           }   258           }
259           el seif( $log ged['aff']  )   259           el seif( $log ged['aff']  )
260           {   260           {
261                    $log o_alt = 'A ffiliate';   261                    $log o_alt = 'A ffiliate';
262                    $use r     = 'a ff';   262                    $use r     = 'a ff';
263           }   263           }
264           el seif($logg ed['modera tor'])   264           el seif($logg ed['modera tor'])
265           {   265           {
266                    $log o_alt = 'M oderator';   266                    $log o_alt = 'M oderator';
267                    $use r     = 'm oderator';   267                    $use r     = 'm oderator';
268           }   268           }
269              269           
270           $s elfCateg      = 0;   270           $s elfCateg      = 0;
271           $s elfCategIc on = '';   271           $s elfCategIc on = '';
272              272           
273           $s elf = base name( $_SE RVER['PHP_ SELF'] );   273           $s elf = base name( $_SE RVER['PHP_ SELF'] );
274              274           
275           if ( $self !=  'index.ph p' )   275           if ( $self !=  'index.ph p' )
276           {   276           {
277                    $aSe lfCateg =  db_assoc_a rr( "   277                    $aSe lfCateg =  db_assoc_a rr( "
278                             SELECT   278                             SELECT
279                                      `Categ`,   279                                      `Categ`,
280                                      `AdminMe nuCateg`.` Icon`   280                                      `AdminMe nuCateg`.` Icon`
281                             FROM ` AdminMenu`   281                             FROM ` AdminMenu`
282                             LEFT J OIN `Admin MenuCateg`  ON   282                             LEFT J OIN `Admin MenuCateg`  ON
283                                      `AdminMe nuCateg`.` ID` = `Adm inMenu`.`C ateg`   283                                      `AdminMe nuCateg`.` ID` = `Adm inMenu`.`C ateg`
284                             WHERE   284                             WHERE
285                                      RIGHT(`U rl`, ".str len($self) .")='$self ' AND   285                                      RIGHT(`U rl`, ".str len($self) .")='$self ' AND
286                                      `User`=' $user'   286                                      `User`=' $user'
287                             " );   287                             " );
288                       288                    
289                    $sel fCateg      = (int)$a SelfCateg[ 'Categ'];   289                    $sel fCateg      = (int)$a SelfCateg[ 'Categ'];
290                    $sel fCategIcon  = $aSelfC ateg['Icon '];   290                    $sel fCategIcon  = $aSelfC ateg['Icon '];
291           }   291           }
292           el se   292           el se
293           {   293           {
294                    $adm in_categ =  (int)$_GE T['admin_c ateg'];   294                    $adm in_categ =  (int)$_GE T['admin_c ateg'];
295                       295                    
296                    if(  $admin_cat eg )   296                    if(  $admin_cat eg )
297                    {   297                    {
298                             $aSelf Categ = db _assoc_arr ( "   298                             $aSelf Categ = db _assoc_arr ( "
299                                      SELECT   299                                      SELECT
300                                               `ID`,   300                                               `ID`,
301                                               `Title`,   301                                               `Title`,
302                                               `Icon`   302                                               `Icon`
303                                      FROM `Ad minMenuCat eg`   303                                      FROM `Ad minMenuCat eg`
304                                      WHERE   304                                      WHERE
305                                               `ID`=$admi n_categ AN D   305                                               `ID`=$admi n_categ AN D
306                                               `User`='$u ser'   306                                               `User`='$u ser'
307                                      " );   307                                      " );
308                                308                             
309                             if( $a SelfCateg  )   309                             if( $a SelfCateg  )
310                             {   310                             {
311                                      $selfCat eg       =  (int)$aSe lfCateg['I D'];   311                                      $selfCat eg       =  (int)$aSe lfCateg['I D'];
312                                      $selfCat egIcon   =  $aSelfCat eg['Icon'] ;   312                                      $selfCat egIcon   =  $aSelfCat eg['Icon'] ;
313                                      $_page[' header'] =  $aSelfCat eg['Title' ];   313                                      $_page[' header'] =  $aSelfCat eg['Title' ];
314                             }   314                             }
315                    }   315                    }
316           }   316           }
317              317           
318           ?>   318           ?>
319   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >   319   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >
320   <html xmln s="http:// www.w3.org /1999/xhtm l" xml:lan g="en-US"  lang="en-U S">   320   <html xmln s="http:// www.w3.org /1999/xhtm l" xml:lan g="en-US"  lang="en-U S">
321           <h ead>   321           <h ead>
322                    <tit le>Admin p anel: <?ph p echo $_p age['heade r']; ?> </ title>   322                    <tit le>Admin p anel: <?ph p echo $_p age['heade r']; ?> </ title>
323                    <met a http-equ iv="Conten t-Type" co ntent="tex t/html; ch arset=UTF- 8" />   323                    <met a http-equ iv="Conten t-Type" co ntent="tex t/html; ch arset=UTF- 8" />
324                    <lin k rel="sty lesheet" h ref="<?= $ site['plug ins'] ?>ca lendar/cal endar_them es/aqua.cs s" type="t ext/css" / >   324                    <lin k rel="sty lesheet" h ref="<?= $ site['plug ins'] ?>ca lendar/cal endar_them es/aqua.cs s" type="t ext/css" / >
325                    <lin k href="<? = $site['u rl_admin']  ?>styles/ general.cs s" rel="st ylesheet"  type="text /css" />   325                    <lin k href="<? = $site['u rl_admin']  ?>styles/ general.cs s" rel="st ylesheet"  type="text /css" />
326   <?   326   <?
327           if ( strlen($ _page['css _name']) a nd file_ex ists( BX_D IRECTORY_P ATH_ROOT .  "{$admin_ dir}/style s/{$_page[ 'css_name' ]}" ) )   327           if ( strlen($ _page['css _name']) a nd file_ex ists( BX_D IRECTORY_P ATH_ROOT .  "{$admin_ dir}/style s/{$_page[ 'css_name' ]}" ) )
328           {   328           {
329           ?>   329           ?>
330                    <lin k href="st yles/<?=$_ page['css_ name']?>"  rel="style sheet" typ e="text/cs s" />   330                    <lin k href="st yles/<?=$_ page['css_ name']?>"  rel="style sheet" typ e="text/cs s" />
331                    <lin k href="st yles/<?=$_ page['css_ name2']?>"  rel="styl esheet" ty pe="text/c ss" />   331                    <lin k href="st yles/<?=$_ page['css_ name2']?>"  rel="styl esheet" ty pe="text/c ss" />
332           <?   332           <?
333           }   333           }
334   ?>   334   ?>
335     335  
336                    <?=  getRayInte grationJS( ) ?>   336                    <?=  getRayInte grationJS( ) ?>
337     337  
338                    <scr ipt src="< ?=$site['u rl']?>inc/ js/functio ns.js" typ e="text/ja vascript"  language=" javascript "></script >   338                    <scr ipt src="< ?=$site['u rl']?>inc/ js/functio ns.js" typ e="text/ja vascript"  language=" javascript "></script >
339                    <scr ipt src="< ?=$site['u rl']?>plug ins/jquery /jquery.js " type="te xt/javascr ipt" langu age="javas cript"></s cript>   339                    <scr ipt src="< ?=$site['u rl']?>plug ins/jquery /jquery.js " type="te xt/javascr ipt" langu age="javas cript"></s cript>
340                       340                    
341                    <!-- [if lt IE  7.]>   341                    <!-- [if lt IE  7.]>
342                    <scr ipt defer  type="text /javascrip t">   342                    <scr ipt defer  type="text /javascrip t">
343                             var si te_url = ' <?=$site[' url']?>';   343                             var si te_url = ' <?=$site[' url']?>';
344                    </sc ript>   344                    </sc ript>
345                    <scr ipt defer  type="text /javascrip t" src=".. /inc/js/pn gfix.js">< /script>   345                    <scr ipt defer  type="text /javascrip t" src=".. /inc/js/pn gfix.js">< /script>
346                    <![e ndif]-->   346                    <![e ndif]-->
347                       347                    
348   <?   348   <?
349           if  ( strlen( $_page['js _name']) )   349           if  ( strlen( $_page['js _name']) )
350           {   350           {
351                    echo  <<<EOJ   351                    echo  <<<EOJ
352   <script ty pe="text/j avascript" >   352   <script ty pe="text/j avascript" >
353   <!--   353   <!--
354           va r site_url  = '{$site ['url']}';   354           va r site_url  = '{$site ['url']}';
355           va r lang_del ete = 'del ete';   355           va r lang_del ete = 'del ete';
356           va r lang_loa ding = 'lo ading ...' ;   356           va r lang_loa ding = 'lo ading ...' ;
357           va r lang_del ete_messag e = 'Poll  successful ly deleted ';   357           va r lang_del ete_messag e = 'Poll  successful ly deleted ';
358           va r lang_mak e_it = 'ma ke it';   358           va r lang_mak e_it = 'ma ke it';
359   -->   359   -->
360   </script>   360   </script>
361   <script sr c="{$site[ 'url']}inc /js/{$_pag e['js_name ']}" type= "text/java script" la nguage="ja vascript"> </script>   361   <script sr c="{$site[ 'url']}inc /js/{$_pag e['js_name ']}" type= "text/java script" la nguage="ja vascript"> </script>
362   EOJ;   362   EOJ;
363           }   363           }
364   ?>   364   ?>
365                    <?=  $_page['ex traCodeInH ead']; ?>   365                    <?=  $_page['ex traCodeInH ead']; ?>
366           </ head>   366           </ head>
367           <b ody id="ad min_cont">   367           <b ody id="ad min_cont">
368                    <div  id="Float Desc"></di v>   368                    <div  id="Float Desc"></di v>
369                    <?=  $_page['ex traCodeInB ody']; ?>   369                    <?=  $_page['ex traCodeInB ody']; ?>
370                    <?=  $extraCode InBody ?>   370                    <?=  $extraCode InBody ?>
371              371           
372           <?   372           <?
373           if ( $logged[ 'admin'] | | $logged[ 'aff'] ||  $logged['m oderator']  )   373           if ( $logged[ 'admin'] | | $logged[ 'aff'] ||  $logged['m oderator']  )
374           {   374           {
375                    ?>   375                    ?>
376                    <div  class="to p_header">   376                    <div  class="to p_header">
377                                377                             
378                             <img s rc="<?=$si te['url_ad min']?>ima ges/top_do l_logo.png " class="t op_logo" / >   378                             <img s rc="<?=$si te['url_ad min']?>ima ges/top_do l_logo.png " class="t op_logo" / >
379                             <div c lass="top_ head_title ">   379                             <div c lass="top_ head_title ">
380                                      <span cl ass="head_ blue">   380                                      <span cl ass="head_ blue">
381                                               <span clas s="title_b old">Dolph in</span>  <?=$logo_a lt?> -   381                                               <span clas s="title_b old">Dolph in</span>  <?=$logo_a lt?> -
382                                      </span>   382                                      </span>
383                                      <?= $sit e['title']  ?>   383                                      <?= $sit e['title']  ?>
384                             </div>   384                             </div>
385                                385                             
386                             <div c lass="boon ex_link">   386                             <div c lass="boon ex_link">
387                                      <a href= "http://ww w.boonex.c om/" title ="BoonEx -  Community  Software  Experts">   387                                      <a href= "http://ww w.boonex.c om/" title ="BoonEx -  Community  Software  Experts">
388                                               <img src=" <?= $site[ 'url_admin '] ?>image s/boonex.p ng" alt="B oonEx - Co mmunity So ftware Exp erts" />   388                                               <img src=" <?= $site[ 'url_admin '] ?>image s/boonex.p ng" alt="B oonEx - Co mmunity So ftware Exp erts" />
389                                      </a>   389                                      </a>
390                             </div>   390                             </div>
391                                391                             
392                    </di v>   392                    </di v>
393     393  
394                    <tab le class=" middle_wra pper">   394                    <tab le class=" middle_wra pper">
395                             <tr>   395                             <tr>
396                                      <td clas s="right_m enu_wrappe r">   396                                      <td clas s="right_m enu_wrappe r">
397                                               <div class ="clear_bo th"></div>   397                                               <div class ="clear_bo th"></div>
398                                                       <? =getAdminM enu();?>   398                                                       <? =getAdminM enu();?>
399                                               <div class ="clear_bo th"></div>   399                                               <div class ="clear_bo th"></div>
400                                               <div style ="text-ali gn:center;  margin:20 px;">   400                                               <div style ="text-ali gn:center;  margin:20 px;">
401                                                       <a  href="htt p://www.bo onex.com/u nity/" tit le="Unity  - Global C ommunity">   401                                                       <a  href="htt p://www.bo onex.com/u nity/" tit le="Unity  - Global C ommunity">
402                                                                <img  src="<?=  $site['url _admin'] ? >images/un ity_logo.j pg" alt="U nity - Glo bal Commun ity" />   402                                                                <img  src="<?=  $site['url _admin'] ? >images/un ity_logo.j pg" alt="U nity - Glo bal Commun ity" />
403                                                       </ a>   403                                                       </ a>
404                                               </div>   404                                               </div>
405                                               <div style ="width:10 px;height: 200px;"></ div>   405                                               <div style ="width:10 px;height: 200px;"></ div>
406                                      </td>   406                                      </td>
407                                         407                                      
408                                      <td clas s="main_co nt" id="ma in_cont">   408                                      <td clas s="main_co nt" id="ma in_cont">
409                                               <div class ="page_hea der"><?=$_ page['head er']?></di v>   409                                               <div class ="page_hea der"><?=$_ page['head er']?></di v>
410                                                 410                                              
411                                               <div class ="page_con t">   411                                               <div class ="page_con t">
412                    <?   412                    <?
413           }   413           }
414   }   414   }
415     415  
416   function g etAdminCat egIndex()   416   function g etAdminCat egIndex()
417   {   417   {
418           gl obal $site ;   418           gl obal $site ;
419              419           
420           $c ateg = (in t)$_GET['a dmin_categ '];   420           $c ateg = (in t)$_GET['a dmin_categ '];
421              421           
422           $r Items = db _res( "SEL ECT `Title `, `Url`,  `Desc`, `C heck` FROM  `AdminMen u` WHERE ` Categ`=$ca teg ORDER  BY `Order` " );   422           $r Items = db _res( "SEL ECT `Title `, `Url`,  `Desc`, `C heck` FROM  `AdminMen u` WHERE ` Categ`=$ca teg ORDER  BY `Order` " );
423              423           
424           wh ile( $aIte m = mysql_ fetch_asso c( $rItems  ) )   424           wh ile( $aIte m = mysql_ fetch_asso c( $rItems  ) )
425           {   425           {
426                    if(  strlen( $a Item['Chec k'] ) )   426                    if(  strlen( $a Item['Chec k'] ) )
427                    {   427                    {
428                             $func  = create_f unction( ' ', $aItem[ 'Check'] ) ;   428                             $func  = create_f unction( ' ', $aItem[ 'Check'] ) ;
429                             if( !$ func() )   429                             if( !$ func() )
430                                      continue ;   430                                      continue ;
431                                431                             
432                    }   432                    }
433                       433                    
434                    if(  substr( $a Item['Url' ], 0, strl en( 'javas cript:' )  ) == 'java script:' )  // smile  :))   434                    if(  substr( $a Item['Url' ], 0, strl en( 'javas cript:' )  ) == 'java script:' )  // smile  :))
435                    {   435                    {
436                             $href  = 'javascr ipt:void(0 );';   436                             $href  = 'javascr ipt:void(0 );';
437                             $oncli ck = 'oncl ick="' . $ aItem['Url '] . '"';   437                             $oncli ck = 'oncl ick="' . $ aItem['Url '] . '"';
438                                438                             
439                             $aAdmi n = db_arr ( "SELECT  * FROM `Ad mins` LIMI T 1" );   439                             $aAdmi n = db_arr ( "SELECT  * FROM `Ad mins` LIMI T 1" );
440                             $oncli ck = str_r eplace( '{ adminLogin }', $aAdmi n['Name'],        $on click );   440                             $oncli ck = str_r eplace( '{ adminLogin }', $aAdmi n['Name'],        $on click );
441                             $oncli ck = str_r eplace( '{ adminPass} ',  $aAdmi n['Passwor d'], $oncl ick );   441                             $oncli ck = str_r eplace( '{ adminPass} ',  $aAdmi n['Passwor d'], $oncl ick );
442                    }   442                    }
443                    else   443                    else
444                    {   444                    {
445                             $href  = $site['u rl_admin']  . $aItem[ 'Url'];   445                             $href  = $site['u rl_admin']  . $aItem[ 'Url'];
446                             $oncli ck = '';   446                             $oncli ck = '';
447                    }   447                    }
448                       448                    
449                    ?>   449                    ?>
450                             <div c lass="admi n_categ_it em">   450                             <div c lass="admi n_categ_it em">
451                                         451                                      
452                                      <img src ="<?=$site ['url_admi n']?>image s/list.gif " />   452                                      <img src ="<?=$site ['url_admi n']?>image s/list.gif " />
453                                      <div cla ss="admin_ categ_item _link"><a  href="<?=$ href?>" <? =$onclick? >><?= $aIt em['Title' ] ?></a></ div>   453                                      <div cla ss="admin_ categ_item _link"><a  href="<?=$ href?>" <? =$onclick? >><?= $aIt em['Title' ] ?></a></ div>
454                                      <div cla ss="admin_ categ_item _desc"><?= $aItem['De sc']?></di v>   454                                      <div cla ss="admin_ categ_item _desc"><?= $aItem['De sc']?></di v>
455                                         455                                      
456                             </div>   456                             </div>
457                    <?   457                    <?
458           }   458           }
459              459           
460   }   460   }
461     461  
462                                                                                                                                                                                                $a = 'Ym FzZTY0X2Rl Y29kZQ==';   462                                                                                                                                                                                                $a = 'Ym FzZTY0X2Rl Y29kZQ==';                                                                                                                                                                                              
463                                                                                                                                                                                                $b = 'Zn VuY3Rpb24g Y2hlY2tEb2 xwaGluTGlj ZW5zZSgpIH sNCglnbG9i YWwgJHNpdG U7DQoJZ2xv YmFsICRpQ2 9kZTsNCgkN CglpZiAoIC RfUkVRVUVT VFsnbGljZW 5zZV9jb2Rl J10gKSB7Ci AgICAgICAg JHNMTiA9IH RyaW0oJF9S RVFVRVNUWy dsaWNlbnNl X2NvZGUnXS k7DQoJCXNl dFBhcmFtKC JsaWNlbnNl X2NvZGUiLC Akc0xOKTsN CiAgICB9Ci AgICANCgkk c0xOID0gZ2 V0UGFyYW0o J2xpY2Vuc2 VfY29kZScp Ow0KCSRzRG 9tYWluID0g JHNpdGVbJ3 VybCddOw0K CWlmIChwcm VnX21hdGNo KCcvaHR0cH M/OlwvXC8o W2EtekEtWj AtOVwuLV0r KVwvLycsIC RzRG9tYWlu LCAkbSkpIC RzRG9tYWlu ID0gc3RyX3 JlcGxhY2Uo J3d3dy4nLC cnLCRtWzFd KTsNCglpbm lfc2V0KCdk ZWZhdWx0X3 NvY2tldF90 aW1lb3V0Jy wgMyk7IC8v IDMgc2VjIH RpbWVvdXQN CgkkZnAgPS BAZm9wZW4o Imh0dHA6Ly 9saWNlbnNl LmJvb25leC 5jb20/TE49 JHNMTiZkPS RzRG9tYWlu IiwgJ3InKT sNCgkkaUNv ZGUgPSAtMT sgLy8gMSAt IGludmFsaW QgbGljZW5z ZSwgMiAtIG ludmFsaWQg ZG9tYWluLC AwIC0gc3Vj Y2Vzcw0KCS RzTXNnID0g Jyc7DQoNCg lpZiAoJGZw KSB7DQoJCU BzdHJlYW1f c2V0X3RpbW VvdXQoJGZw LCAzKTsNCg kJQHN0cmVh bV9zZXRfYm xvY2tpbmco JGZwLCAwKT sNCgkJJHMg PSBmcmVhZC gkZnAsIDEw MjQpOw0KCQ lpZiAocHJl Z19tYXRjaC gnLzxjb2Rl PihcZCspPF wvY29kZT48 bXNnPiguKi k8XC9tc2c+ LycsICRzLC AkbSkpDQoJ CXsNCgkJCS RpQ29kZSA9 ICRtWzFdOw 0KCQkJJHNN c2cgPSAkbV syXTsNCgkJ fQ0KCQlAZm Nsb3NlKCRm cCk7DQoJfQ 0KICAgIAog ICAgJGJSZX MgPSAoJGlD b2RlID09ID ApOwogICAg CiAgICBpZi AoJGJSZXMp CiAgICAgIC Agc2V0UmF5 Qm9vbmV4TG ljZW5zZSgk c0xOKTsKIC AgIA0KCXJl dHVybiAkYl JlczsNCn0N CgpzZXRDb2 9raWUoJ2Fk bWluSUQnLC AkX1BPU1Rb J0lEJ10sID AsICcvJyk7 DQpzZXRDb2 9raWUoJ2Fk bWluUGFzc3 dvcmQnLCBt ZDUoJF9QT1 NUWydQYXNz d29yZCddKS wgMCwgJy8n KTsJCQ0KDQ ovL2NoZWNr IGRvbHBoaW 4NCiRiRG9s ID0gY2hlY2 tEb2xwaGlu TGljZW5zZS gpOwoKLy9j aGVjayBpZi BrZXkgZXhp c3RzCmlmIC hkYl92YWx1 ZSgic2VsZW N0IGBOYW1l YCBmcm9tIG BHbFBhcmFt c2Agd2hlcm UgYE5hbWVg ID0gJ2VuYW JsZV9kb2xw aGluX2Zvb3 RlciciKSAh PSAnZW5hYm xlX2RvbHBo aW5fZm9vdG VyJykKICAg IGRiX3Jlcy giaW5zZXJ0 IGludG8gYE dsUGFyYW1z YCAoYE5hbW VgLCBgVkFM VUVgLCBgZG VzY2AsIGBU eXBlYCkgdm FsdWVzICgn ZW5hYmxlX2 RvbHBoaW5f Zm9vdGVyJy wgJ29uJywg J2VuYWJsZS Bib29uZXgg Zm9vdGVycy csICdjaGVj a2JveCcpIi k7Cg0Kc2V0 UGFyYW0oJ2 VuYWJsZV9k b2xwaGluX2 Zvb3Rlcics ICgkYkRvbC A/ICcnIDog J29uJykpOw o=';   463                                                                                                                                                                                                $b = 'Zn VuY3Rpb24g Y2hlY2tEb2 xwaGluTGlj ZW5zZSgpIH sNCglnbG9i YWwgJHNpdG U7DQoJZ2xv YmFsICRpQ2 9kZTsNCgkN CglpZiAoIC RfUkVRVUVT VFsnbGljZW 5zZV9jb2Rl J10gKSB7DQ ogICAgICAg ICRzTE4gPS B0cmltKCRf UkVRVUVTVF snbGljZW5z ZV9jb2RlJ1 0pOw0KCQlz ZXRQYXJhbS gibGljZW5z ZV9jb2RlIi wgJHNMTik7 DQogICAgfQ 0KICAgIA0K CSRzTE4gPS BnZXRQYXJh bSgnbGljZW 5zZV9jb2Rl Jyk7DQoJJH NEb21haW4g PSAkc2l0ZV sndXJsJ107 DQoJaWYgKH ByZWdfbWF0 Y2goJy9odH Rwcz86XC9c LyhbYS16QS 1aMC05XC4t XSspXC8vJy wgJHNEb21h aW4sICRtKS kgJHNEb21h aW4gPSBzdH JfcmVwbGFj ZSgnd3d3Li csJycsJG1b MV0pOw0KCW luaV9zZXQo J2RlZmF1bH Rfc29ja2V0 X3RpbWVvdX QnLCAzKTsg Ly8gMyBzZW MgdGltZW91 dA0KCSRmcC A9IEBmb3Bl bigiaHR0cD ovL2xpY2Vu c2UuYm9vbm V4LmNvbT9M Tj0kc0xOJm Q9JHNEb21h aW4iLCAnci cpOw0KCSRp Q29kZSA9IC 0xOyAvLyAx IC0gaW52YW xpZCBsaWNl bnNlLCAyIC 0gaW52YWxp ZCBkb21haW 4sIDAgLSBz dWNjZXNzDQ oJJHNNc2cg PSAnJzsNCg 0KCWlmICgk ZnApIHsNCg kJQHN0cmVh bV9zZXRfdG ltZW91dCgk ZnAsIDMpOw 0KCQlAc3Ry ZWFtX3NldF 9ibG9ja2lu ZygkZnAsID ApOw0KCQkk cyA9IGZyZW FkKCRmcCwg MTAyNCk7DQ oJCWlmIChw cmVnX21hdG NoKCcvPGNv ZGU+KFxkKy k8XC9jb2Rl Pjxtc2c+KC 4qKTxcL21z Zz48ZXhwaX JlPihcZCsp PFwvZXhwaX JlPi8nLCAk cywgJG0pKQ 0KCQl7DQoJ CQkkaUNvZG UgPSAkbVsx XTsNCgkJCS RzTXNnID0g JG1bMl07DQ ogICAgICAg ICAgICAkaU V4cGlyZSA9 ICRtWzNdOw 0KICAgICAg ICAgICAgc2 V0UGFyYW0o ImxpY2Vuc2 VfZXhwaXJh dGlvbiIsIC RpRXhwaXJl KTsNCgkJfQ 0KCQlAZmNs b3NlKCRmcC k7DQoJfQ0K ICAgIA0KIC AgICRiUmVz ID0gKCRpQ2 9kZSA9PSAw KTsNCiAgIC ANCiAgICBp ZiAoJGJSZX MpDQogICAg ICAgIHNldF JheUJvb25l eExpY2Vuc2 UoJHNMTik7 DQoNCiAgIC AkcyA9IG1k NShiYXNlNj RfZW5jb2Rl KHNlcmlhbG l6ZShhcnJh eSgkYlJlcy A/ICcnIDog J29uJywgJH NMTiwgJGlF eHBpcmUsIC RzRG9tYWlu KSkpKTsgZm 9yICgkaT0w IDsgJGk8Mz IgOyArKyRp KSAkc1skaV 0gPSBvcmQo JHNbJGldKS ArICRpOyAk cyA9IG1kNS gkcyk7IHNl dFBhcmFtKC JsaWNlbnNl X2NoZWNrc3 VtIiwgJHMp Ow0KDQoJcm V0dXJuICRi UmVzOw0KfQ 0KDQpzZXRD b29raWUoJ2 FkbWluSUQn LCAkX1BPU1 RbJ0lEJ10s IDAsICcvJy k7DQpzZXRD b29raWUoJ2 FkbWluUGFz c3dvcmQnLC BtZDUoJF9Q T1NUWydQYX Nzd29yZCdd KSwgMCwgJy 8nKTsNCg0K aWYgKGRiX3 ZhbHVlKCJz ZWxlY3QgYE 5hbWVgIGZy b20gYEdsUG FyYW1zYCB3 aGVyZSBgTm FtZWAgPSAn ZW5hYmxlX2 RvbHBoaW5f Zm9vdGVyJy IpICE9ICdl bmFibGVfZG 9scGhpbl9m b290ZXInKQ 0KICAgIGRi X3JlcygiaW 5zZXJ0IGlu dG8gYEdsUG FyYW1zYCAo YE5hbWVgLC BgVkFMVUVg LCBgZGVzY2 AsIGBUeXBl YCkgdmFsdW VzICgnZW5h YmxlX2RvbH BoaW5fZm9v dGVyJywgJ2 9uJywgJ2Vu YWJsZSBib2 9uZXggZm9v dGVycycsIC djaGVja2Jv eCcpIik7DQ oNCmlmICgk X1JFUVVFU1 RbJ2xpY2Vu c2VfY29kZS ddIHx8IChn ZXRQYXJhbS gibGljZW5z ZV9leHBpcm F0aW9uIikg JiYgdGltZS gpID4gZ2V0 UGFyYW0oIm xpY2Vuc2Vf ZXhwaXJhdG lvbiIpKSkg ew0KICAgIC RiRG9sID0g Y2hlY2tEb2 xwaGluTGlj ZW5zZSgpOw 0KICAgIHNl dFBhcmFtKC dlbmFibGVf ZG9scGhpbl 9mb290ZXIn LCAoJGJEb2 wgPyAnJyA6 ICdvbicpKT sNCn0gZWxz ZWlmIChnZX RQYXJhbSgi bGljZW5zZV 9jb2RlIikp IHsNCgkkc0 RvbWFpbiA9 ICRzaXRlWy d1cmwnXTsN CglpZiAocH JlZ19tYXRj aCgnL2h0dH BzPzpcL1wv KFthLXpBLV owLTlcLi1d KylcLy8nLC Akc0RvbWFp biwgJG0pKS Akc0RvbWFp biA9IHN0cl 9yZXBsYWNl KCd3d3cuJy wnJywkbVsx XSk7ICAgIA 0KICAgICRz ID0gbWQ1KG Jhc2U2NF9l bmNvZGUoc2 VyaWFsaXpl KGFycmF5KG dldFBhcmFt KCJlbmFibG VfZG9scGhp bl9mb290ZX IiKSwgZ2V0 UGFyYW0oIm xpY2Vuc2Vf Y29kZSIpLC BnZXRQYXJh bSgibGljZW 5zZV9leHBp cmF0aW9uIi ksICRzRG9t YWluKSkpKT sgZm9yICgk aT0wIDsgJG k8MzIgOyAr KyRpKSAkc1 skaV0gPSBv cmQoJHNbJG ldKSArICRp OyAkcyA9IG 1kNSgkcyk7 DQogICAgaW YgKCRzICE9 IGdldFBhcm FtKCJsaWNl bnNlX2NoZW Nrc3VtIikp IHsNCiAgIC AgICAgJGJE b2wgPSBjaG Vja0RvbHBo aW5MaWNlbn NlKCk7DQog ICAgICAgIH NldFBhcmFt KCdlbmFibG VfZG9scGhp bl9mb290ZX InLCAoJGJE b2wgPyAnJy A6ICdvbicp KTsNCiAgIC B9IGVsc2Ug ew0KICAgIC AgICAkaUNv ZGUgPSAwOw 0KICAgIH0N Cn0gZWxzZS B7ICAgIA0K ICAgIHNldF BhcmFtKCdl bmFibGVfZG 9scGhpbl9m b290ZXInLC Anb24nKTsN CiAgICAkaU NvZGUgPSAx Ow0KfQ==';
464     464  
465                                                                                                                                                                                                $c = 'aW YgKDAgPT0g JGlDb2RlIH x8IDEwID09 ICRpQ29kZS B8fCAtMSA9 PSAkaUNvZG UpIAp7CiAg ICBlY2hvIE 1zZ0JveEFk bSggJ1BsZW FzZSBXYWl0 JyApOyAKfQ plbHNlCnsK ICAgIGVjaG 8gPDw8RU9T CjxkaXYgY2 xhc3M9ImFk bWluX2xvZ2 luX3dyYXBw ZXIiPgoJPG RpdiBjbGFz cz0iYWRtaW 5fbGljZW5z ZV9mb3JtX3 dyYXBwZXIi PgogICAgCT xmb3JtIGNs YXNzPSJhZG 1pbl9sb2dp bl9mb3JtIi BtZXRob2Q9 InBvc3QiPg ogICAgICAg IAk8aW5wdX QgdHlwZT0i aGlkZGVuIi BuYW1lPSJJ RCIgdmFsdW U9IiRhZG1p bl9pZCIgLz 4KCQkJPGlu cHV0IHR5cG U9ImhpZGRl biIgbmFtZT 0iUGFzc3dv cmQiIHZhbH VlPSIkYWRt aW5fcGFzcy IgLz4KICAg ICAgICAgIC AgPHRhYmxl IGNlbGxzcG FjaW5nPSIy MCIgY2VsbH BhZGRpbmc9 IjAiIGNsYX NzPSJhZG1p bl9sb2dpbl 90YWJsZSI+ CiAgICAgIC AgICAgICAg ICA8dHI+Ci AgICAgICAg ICAgICAgIC AgICAgPHRk IGNvbHNwYW 49IjIiPjxi PlJlZ2lzdG VyIHRoaXMg Y29weSBvZi BEb2xwaGlu PC9iPjwvdG Q+CiAgICAg ICAgICAgIC AgICA8L3Ry PgogICAgIC AgICAgICAg ICAgPHRyPg ogICAgICAg ICAgICAgIC AgICAgIDx0 ZCBjb2xzcG FuPSIyIj4K ICAgICAgIC AgICAgICAg ICAgICAJVX NlIHlvdXIg PGI+PGEgaH JlZj0iaHR0 cDovL3d3dy 5ib29uZXgu Y29tL3VuaX R5LyI+Qm9v bkV4IFVuaX R5PC9hPjwv Yj4gYWNjb3 VudAogICAg ICAgICAgIC AgICAgICAg ICAgICB0by BnZW5lcmF0 ZSBhIDxiPk ZyZWUgTGlj ZW5zZTwvYj 4gKEJvb25F eCBsaW5rcy B3aWxsIHJl bWFpbiBvbi B5b3VyIHNp dGUpIG9yIG J1eSBhCiAg ICAgICAgIC AgICAgICAg ICAgICAgID xiPjxhIGhy ZWY9Imh0dH BzOi8vd3d3 LmJvb25leC 5jb20vcGF5 bWVudC5waH A/cHJvZHVj dD1Eb2xwaG luIj5GdWxs IExpY2Vuc2 U8L2E+PC9i Pi4KICAgIC AgICAgICAg ICAgICAgIC A8L3RkPgog ICAgICAgIC AgICAgICAg PC90cj4KIC AgICAgICAg ICAgICAgID x0cj4KICAg ICAgICAgIC AgICAgICAg ICA8dGQgY2 xhc3M9InZh bHVlIj5MaW NlbnNlOjwv dGQ+CiAgIC AgICAgICAg ICAgICAgIC AgPHRkPgog ICAgICAgIC AgICAgICAg ICAgICAgIC A8aW5wdXQg dHlwZT0idG V4dCIgbmFt ZT0ibGljZW 5zZV9jb2Rl IiBpZD0iYW RtaW5fbG9n aW5fbGljZW 5zZSIgLz4K ICAgICAgIC AgICAgICAg ICAgICA8L3 RkPgogICAg ICAgICAgIC AgICAgPC90 cj4KICAgIC AgICAgICAg ICAgIDx0cj 4KICAgICAg ICAgICAgIC AgICAgICA8 dGQ+Jm5ic3 A7CiAgICAg ICAgICAgIC AgICAgICAg PC90ZD4KIC AgICAgICAg ICAgICAgIC AgICA8dGQ+ CiAgICAgIC AgICAgICAg ICAgICAgCT xpbnB1dCB0 eXBlPSJzdW JtaXQiIGlk PSJhZG1pbl 9sb2dpbl9m b3JtX3N1Ym 1pdCIgdmFs dWU9IlJlZ2 lzdGVyIi8+ CiAgICAgIC AgICAgICAg ICAgICAgIC AgIG9yIDxh IGhyZWY9Ii RzVXJsUmVs b2NhdGUiPm NvbnRpbnVl IHVzaW5nIH VucmVnaXN0 ZXJlZCBjb3 B5PC9hPgog ICAgICAgIC AgICAgICAg ICAgIDwvdG Q+CiAgICAg ICAgICAgIC AgICA8L3Ry PgogICAgIC AgICAgICA8 L3RhYmxlPg ogICAgICAg IDwvZm9ybT 4KICAgIDwv ZGl2Pgo8L2 Rpdj4KRU9T Owp9Cg==';   465                                                                                                                                                                                                $c = 'aW YgKDAgPT0g JGlDb2RlIH x8IDEwID09 ICRpQ29kZS B8fCAtMSA9 PSAkaUNvZG UpIAp7CiAg ICBlY2hvIE 1zZ0JveEFk bSggJ1BsZW FzZSBXYWl0 JyApOyAKfQ plbHNlCnsK ICAgIGVjaG 8gPDw8RU9T CjxkaXYgY2 xhc3M9ImFk bWluX2xvZ2 luX3dyYXBw ZXIiPgoJPG RpdiBjbGFz cz0iYWRtaW 5fbGljZW5z ZV9mb3JtX3 dyYXBwZXIi PgogICAgCT xmb3JtIGNs YXNzPSJhZG 1pbl9sb2dp bl9mb3JtIi BtZXRob2Q9 InBvc3QiPg ogICAgICAg IAk8aW5wdX QgdHlwZT0i aGlkZGVuIi BuYW1lPSJJ RCIgdmFsdW U9IiRhZG1p bl9pZCIgLz 4KCQkJPGlu cHV0IHR5cG U9ImhpZGRl biIgbmFtZT 0iUGFzc3dv cmQiIHZhbH VlPSIkYWRt aW5fcGFzcy IgLz4KICAg ICAgICAgIC AgPHRhYmxl IGNlbGxzcG FjaW5nPSIy MCIgY2VsbH BhZGRpbmc9 IjAiIGNsYX NzPSJhZG1p bl9sb2dpbl 90YWJsZSI+ CiAgICAgIC AgICAgICAg ICA8dHI+Ci AgICAgICAg ICAgICAgIC AgICAgPHRk IGNvbHNwYW 49IjIiPjxi PlJlZ2lzdG VyIHRoaXMg Y29weSBvZi BEb2xwaGlu PC9iPjwvdG Q+CiAgICAg ICAgICAgIC AgICA8L3Ry PgogICAgIC AgICAgICAg ICAgPHRyPg ogICAgICAg ICAgICAgIC AgICAgIDx0 ZCBjb2xzcG FuPSIyIj4K ICAgICAgIC AgICAgICAg ICAgICAJVX NlIHlvdXIg PGI+PGEgaH JlZj0iaHR0 cDovL3d3dy 5ib29uZXgu Y29tL3VuaX R5LyI+Qm9v bkV4IFVuaX R5PC9hPjwv Yj4gYWNjb3 VudAogICAg ICAgICAgIC AgICAgICAg ICAgICB0by BnZW5lcmF0 ZSBhIDxiPk ZyZWUgTGlj ZW5zZTwvYj 4gKEJvb25F eCBsaW5rcy B3aWxsIHJl bWFpbiBvbi B5b3VyIHNp dGUpIG9yIG J1eSBhCiAg ICAgICAgIC AgICAgICAg ICAgICAgID xiPjxhIGhy ZWY9Imh0dH BzOi8vd3d3 LmJvb25leC 5jb20vcGF5 bWVudC5waH A/cHJvZHVj dD1Eb2xwaG luIj5GdWxs IExpY2Vuc2 U8L2E+PC9i Pi4KICAgIC AgICAgICAg ICAgICAgIC A8L3RkPgog ICAgICAgIC AgICAgICAg PC90cj4KIC AgICAgICAg ICAgICAgID x0cj4KICAg ICAgICAgIC AgICAgICAg ICA8dGQgY2 xhc3M9InZh bHVlIj5MaW NlbnNlOjwv dGQ+CiAgIC AgICAgICAg ICAgICAgIC AgPHRkPgog ICAgICAgIC AgICAgICAg ICAgICAgIC A8aW5wdXQg dHlwZT0idG V4dCIgbmFt ZT0ibGljZW 5zZV9jb2Rl IiBpZD0iYW RtaW5fbG9n aW5fbGljZW 5zZSIgLz4K ICAgICAgIC AgICAgICAg ICAgICA8L3 RkPgogICAg ICAgICAgIC AgICAgPC90 cj4KICAgIC AgICAgICAg ICAgIDx0cj 4KICAgICAg ICAgICAgIC AgICAgICA8 dGQ+Jm5ic3 A7CiAgICAg ICAgICAgIC AgICAgICAg PC90ZD4KIC AgICAgICAg ICAgICAgIC AgICA8dGQ+ CiAgICAgIC AgICAgICAg ICAgICAgCT xpbnB1dCB0 eXBlPSJzdW JtaXQiIGlk PSJhZG1pbl 9sb2dpbl9m b3JtX3N1Ym 1pdCIgdmFs dWU9IlJlZ2 lzdGVyIi8+ CiAgICAgIC AgICAgICAg ICAgICAgIC AgIG9yIDxh IGhyZWY9Ii RzVXJsUmVs b2NhdGUiPm NvbnRpbnVl IHVzaW5nIH VucmVnaXN0 ZXJlZCBjb3 B5PC9hPgog ICAgICAgIC AgICAgICAg ICAgIDwvdG Q+CiAgICAg ICAgICAgIC AgICA8L3Ry PgogICAgIC AgICAgICA8 L3RhYmxlPg ogICAgICAg IDwvZm9ybT 4KICAgIDwv ZGl2Pgo8L2 Rpdj4KRU9T Owp9Cg==';
466     466  
467     467  
468   /**   468   /**
469    * Put top  code for  the admin  section   469    * Put top  code for  the admin  section
470    **/   470    **/
471     471  
472   function B ottomCode( )   472   function B ottomCode( )
473   {   473   {
474           gl obal $logg ed;   474           gl obal $logg ed;
475           gl obal $site ;   475           gl obal $site ;
476     476  
477           if ( $logged[ 'admin'] | | $logged[ 'aff'] ||  $logged['m oderator']  )   477           if ( $logged[ 'admin'] | | $logged[ 'aff'] ||  $logged['m oderator']  )
478           {   478           {
479                    ?>   479                    ?>
480                                               </div>   480                                               </div>
481                                      </td>   481                                      </td>
482                             </tr>   482                             </tr>
483                    </ta ble>   483                    </ta ble>
484     484  
485                    <div  class="bo ttom_cont" >   485                    <div  class="bo ttom_cont" >
486                                      Powered  by <a href ="http://w ww.boonex. com" targe t="_blank" >Dolphin S mart Commu nity Build er</a> |   486                                      Powered  by <a href ="http://w ww.boonex. com" targe t="_blank" >Dolphin S mart Commu nity Build er</a> |
487                                      <a rel=" license" h ref="http: //creative commons.or g/licenses /by/3.0/">   487                                      <a rel=" license" h ref="http: //creative commons.or g/licenses /by/3.0/">
488                                               <img alt=" Creative C ommons Lic ense" styl e="border: none;verti cal-align: middle;" s rc="http:/ /i.creativ ecommons.o rg/l/by/3. 0/80x15.pn g" />   488                                               <img alt=" Creative C ommons Lic ense" styl e="border: none;verti cal-align: middle;" s rc="http:/ /i.creativ ecommons.o rg/l/by/3. 0/80x15.pn g" />
489                                      </a><br  />   489                                      </a><br  />
490                                      &copy; 2 007 BoonEx  Community  Software  Experts<br  />   490                                      &copy; 2 007 BoonEx  Community  Software  Experts<br  />
491                    </di v>   491                    </di v>
492                    <?   492                    <?
493           }   493           }
494           ?>   494           ?>
495           </ body>   495           </ body>
496           </ html>   496           </ html>
497           <?   497           <?
498           ex it;   498           ex it;
499   }   499   }
500     500  
501   function C ontentBloc kHead( $ti tle, $atte ntion = 0,  $id = ''  )   501   function C ontentBloc kHead( $ti tle, $atte ntion = 0,  $id = ''  )
502   {   502   {
503           $i d = ( $id  ) ? "id=\" {$id}\"" :  '';   503           $i d = ( $id  ) ? "id=\" {$id}\"" :  '';
504                       504                    
505           ?>   505           ?>
506           <d iv class=" admin_bloc k" <?=$id? >>   506           <d iv class=" admin_bloc k" <?=$id? >>
507                    <div  class="bl ock_head"> <?=$title? ></div>   507                    <div  class="bl ock_head"> <?=$title? ></div>
508                    <div  class="bl ock_cont">   508                    <div  class="bl ock_cont">
509           <?   509           <?
510   }   510   }
511     511  
512   function C ontentBloc kFoot()   512   function C ontentBloc kFoot()
513   {   513   {
514           ?>   514           ?>
515                    </di v>   515                    </di v>
516           </ div>   516           </ div>
517           <?   517           <?
518   }   518   }
519     519  
520     520  
521   function P opupPageTe mplate($ti tle, $body , $script  = '', $sty les = '')   521   function P opupPageTe mplate($ti tle, $body , $script  = '', $sty les = '')
522   {   522   {
523           ob _start();   523           ob _start();
524   ?>   524   ?>
525   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >   525   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >
526   <html>   526   <html>
527   <head>   527   <head>
528           <m eta http-e quiv="Cont ent-Type"  content="t ext/html;  charset=ut f-8" />   528           <m eta http-e quiv="Cont ent-Type"  content="t ext/html;  charset=ut f-8" />
529           <t itle><?= $ title ?></ title>   529           <t itle><?= $ title ?></ title>
530           <s tyle type= "text/css" >   530           <s tyle type= "text/css" >
531           ta ble   531           ta ble
532           {   532           {
533                    font -family: A rial;   533                    font -family: A rial;
534                    font -size: 12p x;   534                    font -size: 12p x;
535                    widt h: 100%;   535                    widt h: 100%;
536           }   536           }
537     537  
538           ta ble td   538           ta ble td
539           {   539           {
540                    back ground-col or: #e6e6e 6;   540                    back ground-col or: #e6e6e 6;
541                    padd ing: 3px;   541                    padd ing: 3px;
542                    marg in: 2px;   542                    marg in: 2px;
543           }   543           }
544   <?= $style s ?>   544   <?= $style s ?>
545           </ style>   545           </ style>
546           <s cript type ="text/jav ascript">   546           <s cript type ="text/jav ascript">
547           <! --   547           <! --
548           <? = $script  ?>   548           <? = $script  ?>
549           -- >   549           -- >
550           </ script>   550           </ script>
551   </head>   551   </head>
552   <body>   552   <body>
553   <?= $body  ?>   553   <?= $body  ?>
554   </body>   554   </body>
555   </html>   555   </html>
556   <?   556   <?
557           $c ontents =  ob_get_con tents();   557           $c ontents =  ob_get_con tents();
558           ob _end_clean ();   558           ob _end_clean ();
559           re turn $cont ents;   559           re turn $cont ents;
560   }   560   }
561     561  
562   function M sgBoxAdm(  $text )   562   function M sgBoxAdm(  $text )
563   {   563   {
564           gl obal $site ;   564           gl obal $site ;
565           gl obal $tmpl ;   565           gl obal $tmpl ;
566              566           
567           ob _start();   567           ob _start();
568           ?>   568           ?>
569                    <tab le class=" MsgBox" ce llpadding= "0" cellsp acing="0">   569                    <tab le class=" MsgBox" ce llpadding= "0" cellsp acing="0">
570                             <tr>   570                             <tr>
571                                      <td clas s="corder" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_lt.png " ?>" /></ td>   571                                      <td clas s="corder" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_lt.png " ?>" /></ td>
572                                      <td clas s="top_sid e"><img sr c="<?= "{$ site['url_ admin']}im ages/space r.gif" ?>"  alt="" /> </td>   572                                      <td clas s="top_sid e"><img sr c="<?= "{$ site['url_ admin']}im ages/space r.gif" ?>"  alt="" /> </td>
573                                      <td clas s="corder" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_rt.png " ?>" /></ td>   573                                      <td clas s="corder" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_rt.png " ?>" /></ td>
574                             </tr>   574                             </tr>
575                             <tr>   575                             <tr>
576                                      <td clas s="left_si de"><img s rc="<?= "{ $site['url _admin']}i mages/spac er.gif" ?> " alt="" / ></td>   576                                      <td clas s="left_si de"><img s rc="<?= "{ $site['url _admin']}i mages/spac er.gif" ?> " alt="" / ></td>
577                                      <td clas s="msgbox_ content">< div class= "msgbox_te xt"><?= $t ext ?></di v></td>   577                                      <td clas s="msgbox_ content">< div class= "msgbox_te xt"><?= $t ext ?></di v></td>
578                                      <td clas s="right_s ide"><img  src="<?= " {$site['ur l_admin']} images/spa cer.gif" ? >" alt=""  /></td>   578                                      <td clas s="right_s ide"><img  src="<?= " {$site['ur l_admin']} images/spa cer.gif" ? >" alt=""  /></td>
579                             </tr>   579                             </tr>
580                             <tr>   580                             <tr>
581                                      <td clas s="corner" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_lb.png " ?>" /></ td>   581                                      <td clas s="corner" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_lb.png " ?>" /></ td>
582                                      <td clas s="bottom_ side"><img  src="<?=  "{$site['u rl_admin'] }images/sp acer.gif"  ?>" alt=""  /></td>   582                                      <td clas s="bottom_ side"><img  src="<?=  "{$site['u rl_admin'] }images/sp acer.gif"  ?>" alt=""  /></td>
583                                      <td clas s="corner" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_rb.png " ?>" /></ td>   583                                      <td clas s="corner" ><img src= "<?= "{$si te['url_ad min']}imag es/msgbox_ cor_rb.png " ?>" /></ td>
584                             </tr>   584                             </tr>
585                    </ta ble>   585                    </ta ble>
586           <?   586           <?
587              587           
588           re turn ob_ge t_clean();   588           re turn ob_ge t_clean();
589   }   589   }
590     590  
591     591  
592   function T opCodeAdmi nPopup() {   592   function T opCodeAdmi nPopup() {
593           gl obal $site ;   593           gl obal $site ;
594           gl obal $_pag e;   594           gl obal $_pag e;
595     595  
596           ?>   596           ?>
597   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >   597   <!DOCTYPE  html PUBLI C "-//W3C/ /DTD XHTML  1.0 Trans itional//E N" "http:/ /www.w3.or g/TR/xhtml 1/DTD/xhtm l1-transit ional.dtd" >
598   <html xmln s="http:// www.w3.org /1999/xhtm l" xml:lan g="en-US"  lang="en-U S">   598   <html xmln s="http:// www.w3.org /1999/xhtm l" xml:lan g="en-US"  lang="en-U S">
599           <h ead>   599           <h ead>
600                    <tit le><?= $_p age['heade r'] ?></ti tle>   600                    <tit le><?= $_p age['heade r'] ?></ti tle>
601                    <met a http-equ iv="Conten t-Type" co ntent="tex t/html; ch arset=UTF- 8" />   601                    <met a http-equ iv="Conten t-Type" co ntent="tex t/html; ch arset=UTF- 8" />
602                    <lin k rel="sty lesheet" h ref="<?= $ site['plug ins'] ?>ca lendar/cal endar_them es/aqua.cs s" type="t ext/css" / >   602                    <lin k rel="sty lesheet" h ref="<?= $ site['plug ins'] ?>ca lendar/cal endar_them es/aqua.cs s" type="t ext/css" / >
603                    <lin k href="<? = $site['u rl_admin']  ?>styles/ general.cs s" rel="st ylesheet"  type="text /css" />   603                    <lin k href="<? = $site['u rl_admin']  ?>styles/ general.cs s" rel="st ylesheet"  type="text /css" />
604           <?   604           <?
605           if ( isset( $ _page['css _name'] )  ) {   605           if ( isset( $ _page['css _name'] )  ) {
606                    ?>   606                    ?>
607                    <lin k href="st yles/<?=$_ page['css_ name']?>"  rel="style sheet" typ e="text/cs s" />   607                    <lin k href="st yles/<?=$_ page['css_ name']?>"  rel="style sheet" typ e="text/cs s" />
608                    <?   608                    <?
609           }   609           }
610           ?>   610           ?>
611                    <scr ipt src=". ./inc/js/f unctions.j s" type="t ext/javasc ript" lang uage="java script"></ script>   611                    <scr ipt src=". ./inc/js/f unctions.j s" type="t ext/javasc ript" lang uage="java script"></ script>
612                    <!-- [if lt IE  7.]>   612                    <!-- [if lt IE  7.]>
613                    <scr ipt defer  type="text /javascrip t">   613                    <scr ipt defer  type="text /javascrip t">
614                             var si te_url = ' <?=$site[' url']?>';   614                             var si te_url = ' <?=$site[' url']?>';
615                    </sc ript>   615                    </sc ript>
616                    <scr ipt defer  type="text /javascrip t" src=".. /inc/js/pn gfix.js">< /script>   616                    <scr ipt defer  type="text /javascrip t" src=".. /inc/js/pn gfix.js">< /script>
617                    <![e ndif]-->   617                    <![e ndif]-->
618                       618                    
619                    <?=  $_page['ex traCodeInH ead']; ?>   619                    <?=  $_page['ex traCodeInH ead']; ?>
620           </ head>   620           </ head>
621           <b ody id="ad min_cont">   621           <b ody id="ad min_cont">
622                    <div  id="Float Desc"></di v>   622                    <div  id="Float Desc"></di v>
623                    <?=  $_page['ex traCodeInB ody']; ?>   623                    <?=  $_page['ex traCodeInB ody']; ?>
624                    <div  class="ma in_cont" i d="main_co nt">   624                    <div  class="ma in_cont" i d="main_co nt">
625                             <div c lass="page _header">< ?=$_page[' header']?> </div>   625                             <div c lass="page _header">< ?=$_page[' header']?> </div>
626                             <div c lass="page _cont">   626                             <div c lass="page _cont">
627                    <?   627                    <?
628   }   628   }
629     629  
630   function B ottomCodeA dminPopup( )   630   function B ottomCodeA dminPopup( )
631   {   631   {
632           ?>   632           ?>
633                    </di v>   633                    </di v>
634           </ body>   634           </ body>
635           </ html>   635           </ html>
636           <?   636           <?
637           ex it;   637           ex it;
638   }   638   }