[wpkg_web] / prof_del.php Repository:
ViewVC logotype

View of /prof_del.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 38 - (download) (annotate)
Fri Jan 19 13:06:31 2007 UTC (11 years, 8 months ago) by linuxkidd
File size: 917 byte(s)
BugFix: Removed priority references.

<?php
  
include "connect.php";
  include 
"header.php";

  if(isset(
$_GET['prof_id'])) {
    
$sql=sprintf("delete from prof_deps where prof_id=%s"quote_smart($_GET['prof_id']));
    
mysql_query($sql) or error_report($sql,mysql_error());
    
$sql=sprintf("delete from prof_packs where prof_id=%s"quote_smart($_GET['prof_id']));
    
mysql_query($sql) or error_report($sql,mysql_error());
    
$sql=sprintf("delete from profiles where id=%s"quote_smart($_GET['prof_id']));
    
mysql_query($sql) or error_report($sql,mysql_error());
    
$sql=sprintf("delete from prof_deps where dep_id=%s"quote_smart($_GET['prof_id']));
    
mysql_query($sql) or error_report($sql,mysql_error());
    
$sql=sprintf("update hosts set prof_id=0 where prof_id=%s"quote_smart($_GET['prof_id']));
    
mysql_query($sql) or error_report($sql,mysql_error());
  }
  print 
"<META HTTP-EQUIV=Refresh content='0; URL=profiles_list.php'>";

?>

ViewVC Help
Powered by ViewVC 1.0.3