pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP paste-bin - collaborative debugging tool View Help


Posted by rich on Mon 18th Dec 05:32
download | new post

  1. <?php
  2. defined( '_VALID_MOS' ) or die( 'Restricted access' );
  3. // needed to seperate the ISO number from the language file constant _ISO
  4. $iso = explode( '=', _ISO );
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  7. <html>
  8. <head>
  9. <?php mosShowHead(); ?>
  10. <?php
  11. if ( $my->id ) {
  12.         initEditor();
  13. }
  14. $collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
  15. //script to determine which div setup for layout to use based on module configuration
  16. $user1 = 0;
  17. $user2 = 0;
  18. $colspan = 0;
  19. $right = 0;
  20. // banner combos
  21.  
  22. //user1 combos
  23. if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
  24.         $user1 = 2;
  25.         $user2 = 2;
  26.         $colspan = 3;
  27. } elseif ( mosCountModules( 'user1' ) == 1 ) {
  28.         $user1 = 1;
  29.         $colspan = 1;
  30. } elseif ( mosCountModules( 'user2' ) == 1 ) {
  31.         $user2 = 1;
  32.         $colspan = 1;
  33. }
  34.  
  35. //right based combos
  36. if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
  37.         $right = 1;
  38. }
  39. ?>
  40. <meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>">
  41. <link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/css/template_css.css" rel="stylesheet" type="text/css">
  42. </head>
  43. <body>
  44.  
  45. <div align="center">
  46.         <table border="0" cellpadding="0" cellspacing="0" width="808">
  47.                 <tr>
  48.                         <td class="outline">
  49.                                 <div id="buttons_outer">
  50.                                 <div id="buttons_inner">
  51.                                                 <div id="buttons">
  52.                                                 <?php mosLoadModules ( 'user3', -1); ?>
  53.                                                 </div>
  54.                                         </div>
  55.                               </div>
  56.                               <div id="search_outer">
  57.                                 <div id="search_inner">
  58.                                 <?php mosLoadModules ( 'user4', -1 ); ?>
  59.                                 </div>
  60.                               </div>
  61.                               <div class="clr"></div>
  62.                               <div id="header_outer">
  63.                                     <div id="header">
  64.                                     &nbsp;
  65.                                     </div>
  66.                                     <div id="top_outer">
  67.                                                 <div id="top_inner">
  68.                                                 <?php
  69.                                             if ( mosCountModules( 'top' ) ) {
  70.                                                   mosLoadModules ( 'top', -2 );
  71.                                             } else {
  72.                                                   ?>
  73.                                                   <span class="error">Top Module Empty</span>
  74.                                                   <?php
  75.                                             }
  76.                                             ?>
  77.                                                  </div>
  78.                                            </div>
  79.                                                                                      
  80.                                
  81.                                              
  82.                               </div>
  83.                              
  84.                               <div id="left_outer">
  85.                                     <div id="left_inner">
  86.                                     <?php mosLoadModules ( 'left', -2 ); ?>
  87.                                     </div>
  88.                                  <div id="adleft_outer">
  89.                                         <div id="adleft_inner">
  90.                                    <?php mosLoadModules ( 'adleft' ); ?>
  91.                                     </div>
  92.                                  </div>                                 
  93. </div>
  94.                                  
  95.                                
  96.                               <div id="content_outer">
  97.                                         <div id="content_inner">
  98.                                        
  99.                                                        
  100.                                                        
  101.                                     <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
  102.                                                 <tr valign="top">
  103.                                                         <td width="99%">
  104.                                                                 <table border="0" cellpadding="0" cellspacing="0" width="100%" class="content_table">
  105.  
  106.                                                                 <?php
  107.                                                                 if ($colspan > 0) {
  108.                                                                 ?>
  109.                                                                         <tr valign="top">
  110.                                                                                
  111.                                                                               <td>
  112.  
  113.                                                 <div class="bts_inner">
  114.                                                                       <?php mosLoadModules ( 'btsnews', -2 ); ?>
  115.                                                                 </div>
  116.                                                                       </td>
  117.                                                                      
  118. <?php
  119.                                                                 }
  120.                                                                 if ( $colspan == 3) {
  121.                                                                                  ?>
  122.                                                                                         <td width="2">
  123.                                                                                                 <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="10" width="2" />
  124.                                                                                         </td>
  125.  
  126.  
  127.  
  128.  
  129.  
  130. <?php
  131.                                                                 if ( $user1 > 0 ) {
  132.                                                                       ?>
  133.                                                                       <td width="50%">
  134.                                                                             <div class="user1_inner">
  135.                                                                             <?php mosLoadModules ( 'user1', -2 ); ?>
  136.                                                                             </div>
  137.                                                                       </td>
  138.                                                                       <?php
  139.                                                                 }
  140.                                                                 if ( $colspan == 3) {
  141.                                                                                  ?>
  142.                                                                                         <td width="2">
  143.                                                                                                 <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="10" width="2" />
  144.                                                                                         </td>
  145.                                        
  146.                                                                                 <?php
  147.                                                                                 }
  148.                                                                 if ( $user2 > 0 ) {
  149.                                                                       ?>
  150.                                                                       <td width="50%">
  151.                                                                             <div class="user2_inner">
  152.                                                                             <?php mosLoadModules ( 'user2', -2 ); ?>
  153.                                                                             </div>
  154.                                                                       </td>
  155.                                                                       <?php
  156.                                                                 }
  157.                                                                                 ?>
  158.                                                                         </tr>
  159.                                                                         <tr>
  160.                                                                                 <td colspan="<?php echo $colspan; ?>">
  161.                                                                                         <img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/spacer.png" alt="" title="spacer" border="0" height="2" width="100" /><br />
  162.                                                                                 </td>
  163.                                                                         </tr>
  164.                                                                         <?php
  165.                                                                         }
  166.                                                                 ?>
  167.                                                                 <tr>
  168.                                                                         <td colspan="<?php echo $colspan; ?>">
  169.                                                                                 <div id="pathway_text">
  170.                                                                                 <?php mosPathWay(); ?>
  171.                                                                                 </div>
  172.                                                                         </td>
  173.                                                                 </tr>
  174.                                                                 <tr>
  175.                                                                         <td colspan="<?php echo $colspan; ?>" class="body_outer">
  176.                                                                  <?php mosMainBody(); ?>
  177.                                                                         </td>
  178.                                                                 </tr>
  179.                                                                 </table>
  180.  
  181.  
  182.                                                         </td>
  183.                                                         <?php
  184.                                                         if ( $right > 0 ) {
  185.                                           ?>
  186.                                           <td>
  187.                                                   <div id="right_outer">
  188.                                                         <div id="right_inner">
  189.                                                         <?php mosLoadModules ( 'right', -2 ); ?>
  190.                                                         </div>
  191.                                                   </div>
  192.                                                   <div id="gmow_outer">
  193.                                                                 <div id="gmow_inner">
  194.                                                                 <?php mosLoadModules ( 'gmow' ); ?>
  195.                                                                 </div>
  196.                                                         </div>
  197.                                                  </td>
  198.                                         </tr>
  199.                                                 </td>
  200.                                           <?php
  201.                                     }
  202.                                     ?>
  203.  
  204.                                                 </tr>
  205.                                                
  206.                                         </table>
  207.                                 </td>
  208.           </tr>
  209.   </table>
  210. </div>
  211. <div>
  212. <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
  213. <?php mosLoadModules( 'debug', -1 );?></div>
  214. <?php
  215.                                     if ( mosCountModules ('banner') ) {
  216.                                           ?>
  217.                                           <table border="0" cellpadding="0" cellspacing="0" width="100" class="content_table">
  218.                                                 <tr>
  219.                                                                 <td>
  220.                                                                         <div id="banner_inner" align="center">
  221.                                                                         <br /><img src="<?php echo $mosConfig_live_site;?>/templates/rhuk_solarflare_ii/images/advertisement.png" alt="advertisement.png, 0 kB" title="advertisement" border="0" height="8" width="468" /><br />
  222.                                                         <?php mosLoadModules( 'banner', -1 ); ?><br />
  223.                                                                         </div>
  224.                                                                 </td>
  225.                                                         </tr>
  226. <?php
  227.                                     }
  228.                                     ?>
  229. </table>
  230. </body>
  231. </html>

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@


Remember my settings