|
0) { $recordingent['recordingid'] = $_POST['recordingid']; } else { $recordingent['recordingid'] = guid(); } $recordingent['filename'] = $_POST['filename']; //if file name is not the same then rename the file if ($_POST['filename'] != $_POST['filename_orig']) { rename($v_recordings_dir.$_POST['filename_orig'], $v_recordings_dir.$_POST['filename']); } $a_recordings[$id] = $recordingent; } else { //add $recordingent['filename'] = $_POST['filename']; $a_recordings[] = $recordingent; } write_config(); header("Location: v_recordings.php"); exit; } } include("head.inc"); ?>
$v_label: Recordings: Edit\n"; } ?>
|