Download lbrec2a_after.txt
///begin author mod
$csl_users = array();
foreach($authordump as $csl_row => $csl_col) {
$csl_users[$csl_col['id']] = $csl_col;
}
if( ($csl_users[$_SESSION['authorid']]['admin']=='1') && isset($_POST['csl_author']) ) {
$csl_sql = ",\n author_id = '" .
$_POST['csl_author'] . "'\n";
} else {
$csl_sql = "\n";
}
//write things from post-data into database
$dosql = "UPDATE ".$GLOBALS['prefix']."lb_postings SET
title = '" . $temptitle . "',
message_input = '" . $tempmess . "',
message_html = '" . $temphtml . "',
posted = '" . $posted . "',
comment_on = '" . $comments . "',
audio_length = '" . $lengthint . "',
audio_size = '" . $sizeint . "',
comment_size = '" . $_POST['comment_size'] . "',
category1_id = '" . $_POST['cat1'] . "',
category2_id = '" . $_POST['cat2'] . "',
category3_id = '" . $_POST['cat3'] . "',
category4_id = '" . $_POST['cat4'] . "',
audio_type = '" . $_POST['audio_type'] . "',
status = '" . $_POST['status'] . "'" .
$csl_sql . "
WHERE id = '" . $edit_id . "'";
///end author mod