Example #1
0
     // $_POST['transl_of']);
     //$entry->setEntryUserId(     '3'); //$_POST['creator']);
     $entry->setEntryUserId($user_id);
     $entry->setEntryMediaId('1');
     //($_POST['media_id']);
     $entry->setEntryCommentId('2');
     //$_POST['comment_id'];
     $entry->setEntryRatingId('1');
     //($_POST['rating_id']);
     $entry->setEntryTags(htmlentities($_POST['tags']));
     $entry->setEntryAuthors(htmlentities($_POST['authors']));
     $entry->setEntrySourceId(htmlentities($_POST['source']));
     $entry->setEntryUse(htmlentities($_POST['use']));
     $entry->setEntryHttpLink(htmlentities(str_replace("watch?v=", "v/", $_POST['link'])));
     // 40*, 50
     $resultOfEntryUpdate = $em->updateEntry($entry);
     // 33
     echo "<script type='text/javascript'>\n              window.onload = function () { \n                top.location.href = 'entryview.php?id={$_GET['id']}'; \n              };\n             </script>";
 } else {
     // 16
     // 11
     $em = new EntryManager();
     // 12
     // 7, 8, 9, 10
     //table_to_see_post_values(); // 27
     $entry = new Entry();
     // 32
     // 11, 29
     //$entry->setEntryId($_POST['id']);
     $entry->setEntryLanguageId($_POST['langid']);
     // 30 (?)