# PURPOSE. See the GNU General Public License # for more details. # # You should have received a copy of the GNU # General Public License along with Exponent; if # not, write to: # # Free Software Foundation, Inc., # 59 Temple Place, # Suite 330, # Boston, MA 02111-1307 USA # # $Id: save_collection.php,v 1.1 2005/05/04 19:11:32 filetreefrog Exp $ ################################################## if (!defined('PATHOS')) { exit(''); } $collection = null; if (isset($_POST['id'])) { $collection = $db->selectObject('file_collection', 'id=' . $_POST['id']); } $loc = pathos_core_makeLocation('filemanagermodule'); // PERM CHECK $collection = file_collection::update($_POST, $collection); if (isset($collection->id)) { $db->updateObject($collection, 'file_collection'); } else { $db->insertObject($collection, 'file_collection'); } pathos_flow_redirect(); // END PERM CHECK