25 lines
677 B
PHP
Executable File
25 lines
677 B
PHP
Executable File
<?php
|
|
try {
|
|
|
|
$form = $_POST['form'];
|
|
$FolderUid = $form['FOLDER_UID'];
|
|
|
|
|
|
require_once ( "classes/model/AppFolder.php" );
|
|
|
|
//if exists the row in the database propel will update it, otherwise will insert.
|
|
$tr = AppFolderPeer::retrieveByPK( $FolderUid );
|
|
if ( ( is_object ( $tr ) && get_class ($tr) == 'AppFolder' ) ) {
|
|
$tr->delete();
|
|
}
|
|
|
|
G::Header('location: appFolderList');
|
|
|
|
}
|
|
catch ( Exception $e ) {
|
|
$G_PUBLISH = new Publisher;
|
|
$aMessage['MESSAGE'] = $e->getMessage();
|
|
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
|
G::RenderPage( 'publish', 'blank' );
|
|
}
|
|
|