| [ PHPXref.com ] | [ Generated: Sun Jul 20 20:47:44 2008 ] | [ TUTOS 1.2 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Copyright 1999 - 2003 by Gero Kohnert 4 * 5 * @modulegroup address 6 * @module address_select 7 * @package address 8 */ 9 include_once 'webelements.p3'; 10 include_once 'permission.p3'; 11 include_once 'product.pinc'; 12 include_once 'appointment.pinc'; 13 include_once 'task.pinc'; 14 15 /* Check if user is allowed to use it */ 16 check_user(); 17 loadmodules("address","del"); 18 19 $msg = ""; 20 21 $a = new tutos_address($dbconn); 22 if ( isset($_GET['id']) ) { 23 $a = $a->read($_GET['id'],$a); 24 $gotourl = $a->getUrl(); 25 } elseif ( isset($_GET['id']) ) { 26 $a = $a->read($_GET['id'],$a); 27 $gotourl = $a->getUrl(); 28 } else { 29 $gotourl = "address_select.php"; 30 $msg .= "Missing ID"; 31 } 32 33 if ( $a->isUser() == 1 ) { 34 $msg .= "Please remove Userentry first"; 35 } 36 37 if ( $a->del_ok() == 0 ) { 38 $msg .= sprintf($lang['Err0023'],$lang[$a->getType()]); 39 } 40 41 if ( $msg == "" ) { 42 $dbconn->Begin("WORK"); 43 $a->delete(); 44 $dbconn->Commit("WORK"); 45 46 $gotourl = "address_select.php"; 47 } 48 $gotourl = addMessage($gotourl,$msg,true); 49 $gotourl = addSessionKey($gotourl,true); 50 51 Header("Status: 302 Moved Temporarily"); 52 Header("Location: ". getBaseUrl() . $gotourl); 53 $dbconn->Close(); 54 /* 55 * CVS Info: $Id: address_del.php,v 1.25.4.1 2004/07/26 19:54:56 gokohnert Exp $ 56 * $Author: gokohnert $ 57 */ 58 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |