예제 #1
0
 $manga->postid = $_POST['postid'];
 $manga->illustration = $_POST['illustration'];
 $manga->mangatitle = $_POST['mangatitle'];
 $manga->othertitle = $_POST['othertitle'];
 $manga->author = $_POST['author'];
 $manga->type = $_POST['type'];
 $manga->numberofchapter = $_POST['numberofchapter'];
 $manga->finishedchapter = $_POST['finish edchapter'];
 $manga->originalcomposition = $_POST['originalcomposition'];
 $manga->status = $_POST['status'];
 $manga->genre = $_POST['genre'];
 $manga->summary = $_POST['summary'];
 $manga->fansubname = $_POST['fansubname'];
 $manga->fansubsite = $_POST['fansubsite'];
 $manga->fansubnote = $_POST['fansubnote'];
 $error = $manga->validate();
 if ($error == "") {
     $manga->update();
     $messagetype = "success";
     $message = construct_phrase($vbphrase['yrms_msg_success_general'], $vbphrase['yrms_edit'], $vbphrase['yrms_manga'], $manga->mangatitle);
     $messagebox = vB_Template::create('yrms_messagebox');
     $messagebox->register('messagetype', $messagetype);
     $messagebox->register('message', $message);
     $contenttemplatename = 'yrms_message';
 } else {
     $messagetype = "error";
     $message = nl2br(construct_phrase($vbphrase['yrms_msg_error_head'], $vbphrase['yrms_edit']) . "\n" . $error);
     $messagebox = vB_Template::create('yrms_messagebox');
     $messagebox->register('messagetype', $messagetype);
     $messagebox->register('message', $message);
 }