[ Index ]

PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09)

title

Body

[close]

/include/inc_module/mod_graphical_text/inc_lib/ -> gt.style.delete.inc.php (source)

   1  <?php
   2  
   3  // ----------------------------------------------------------------
   4  // obligate check for phpwcms constants
   5  if (!defined('PHPWCMS_ROOT')) {
   6     die("You Cannot Access This Script Directly, Have a Nice Day.");
   7  }
   8  // ----------------------------------------------------------------
   9  
  10  
  11  $style_id = intval($_GET["style_id"]);
  12  
  13  if ($style_id)
  14  {
  15      $query = "DELETE FROM ".DB_PREPEND."phpwcms_fonts_styles WHERE style_id = ".$style_id." LIMIT 1";
  16      
  17      $results = mysql_query($query, $db) or die ("Error in query:$query");
  18  }
  19  
  20  
  21  header("Location: phpwcms.php?do=modules&p=2&s=styles");
  22  exit();
  23  
  24  ?>


Generated: Wed Dec 30 05:55:15 2009 Cross-referenced by PHPXref 0.7