[ Index ]
 

Code source de GeekLog 1.4.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/public_html/layout/professional/ -> functions.php (source)

   1  <?php
   2  
   3  // this file can't be used on its own
   4  if (strpos ($_SERVER['PHP_SELF'], 'functions.php') !== false) {
   5      die ('This file can not be used on its own!');
   6  }
   7  
   8  $_IMAGE_TYPE = 'png';
   9  
  10  $result = DB_query ("SELECT onleft,name FROM {$_TABLES['blocks']} WHERE is_enabled = 1");
  11  $nrows = DB_numRows ($result);
  12  for ($i = 0; $i < $nrows; $i++) {
  13      $A = DB_fetchArray ($result);
  14          if ($A['onleft'] == 1) {
  15              $_BLOCK_TEMPLATE[$A['name']] = 'blockheader-left.thtml,blockfooter-left.thtml';
  16          } else {
  17              $_BLOCK_TEMPLATE[$A['name']] = 'blockheader-right.thtml,blockfooter-right.thtml';
  18      }
  19  }
  20  
  21  $_BLOCK_TEMPLATE['_msg_block'] = 'blockheader-message.thtml,blockfooter-message.thtml';
  22  
  23  $_BLOCK_TEMPLATE['whats_related_block'] = 'blockheader-related.thtml,blockfooter-related.thtml';
  24  $_BLOCK_TEMPLATE['story_options_block'] = 'blockheader-related.thtml,blockfooter-related.thtml';
  25  
  26  ?>


Généré le : Wed Nov 21 12:27:40 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics