Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91707057
LINK_ACTION_del.php.wml
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 13, 17:06
Size
2 KB
Mime Type
text/x-php
Expires
Fri, Nov 15, 17:06 (2 d)
Engine
blob
Format
Raw Data
Handle
22311301
Attached To
R3600 invenio-infoscience
LINK_ACTION_del.php.wml
View Options
<?
/*********************************************************************
This file is part of CDS Invenio.
Copyright (C) 2002, 2003, 2004, 2005, 2006 CERN.
1211 Geneva 23 - Switzerland
<cds.support@cern.ch>
CDS Invenio is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
CDS Invenio is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with CDS Invenio; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*********************************************************************/
//==========================================================================
// File: LINK_ACTION_del.php (flexElink WI)
// Description: Deletes an existing action of a certain condition for a given
// link definition from the DB.
// POST parameters:
// linktype --> (required) Name (id) of the link definition the condition
// belongs to
// eorder ----> (required) Action's condition evaluation order number for
// the given link definition
// aorder ----> (required) Action's apply order number inside the given
// condition
// Notes: If the action is succesfully added to the DB the current browser is
// redirectred to the link detailed definition display
// Requires: DB, ERROR
// Author: Hector.Sanchez@cern.ch
//==========================================================================
include("localconf.inc.php");
include(DB);
include(ERROR);
if( (!isset($linktype)) or (trim($linktype)=="") )
{
errorpage("<b>Link type</b> hasn't been specified");
exit();
}
if( (!isset($eorder)) or (trim($eorder)=="") )
{
errorpage("<b>Evaluation order</b> hasn't been specified");
exit();
}
if( (!isset($aorder)) or (trim($aorder)=="") )
{
errorpage("<b>Apply order</b> hasn't been specified");
exit();
}
$linktype=strtoupper(trim($linktype));
$db=mysql_connect( $DB_HOST, $DB_USER, $DB_PASSWD );
mysql_selectdb( $DB_DB );
$qry="delete from flxLINKTYPECONDITIONSACTIONS
where linktype='$linktype'
and eval_order='$eorder'
and apply_order='$aorder'";
if(!mysql_query( $qry ))
{
errorpage("Impossible to delete action:<br> ".mysql_error());
}
mysql_close( $db );
header("location: LINK_showone.php?linktype=".urlencode($linktype));
?>
Event Timeline
Log In to Comment