PageRenderTime 45ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/includes/static_content.php

https://bitbucket.org/mpercy/deeemm-cms
PHP | 13 lines | 9 code | 4 blank | 0 comment | 0 complexity | 88d3336f05ed9f0b0d1fef578572bb04 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause
  1. <?php
  2. defined( '_INDM' ) or die( 'POSSIBLE HACK ATTEMPT!' );
  3. foreach($static_pages as $value){
  4. $sql_query = mysql_query("SELECT * FROM `" . $db_table_prefix . "static_content` WHERE `category` = '$value'");
  5. while($sql_result = mysql_fetch_array($sql_query)){
  6. ${'static_'.$value} = rtesafe($sql_result[description_lan_1]);
  7. }
  8. }
  9. ?>