@@ 374-374 (lines=1) @@ | ||
371 | // Save to database |
|
372 | if ( !$entryID ) { |
|
373 | // verify that the term does not exists |
|
374 | if (lx_TermExists($term,$xoopsDB->prefix('lxentries'))) redirect_header("javascript:history.go(-1)", 2, _AM_LEXIKON_ITEMEXISTS . "<br />" . $term ); |
|
375 | if ( $xoopsDB -> query( "INSERT INTO " . $xoopsDB -> prefix( "lxentries" ) . " (categoryID, term, init, definition, ref, url, uid, submit, datesub, html, smiley, xcodes, breaks, block, offline, notifypub, request ) VALUES ('$categoryID', '$term', '$init', '$definition', '$ref', '$url', '$uid', '$submit', '$date', '$html', '$smiley', '$xcodes', '$breaks', '$block', '$offline', '$notifypub', '$request' )" ) ) { |
|
376 | $newid = $xoopsDB->getInsertId(); |
|
377 | // Increment author's posts count (only if it's a new definition) |
@@ 156-156 (lines=1) @@ | ||
153 | $autoapprove = 1; |
|
154 | } |
|
155 | // verify that the term not exists |
|
156 | if (lx_TermExists($term,$xoopsDB->prefix('lxentries'))) redirect_header("javascript:history.go(-1)", 2, _MD_LEXIKON_ITEMEXISTS . "<br />" . $term ); |
|
157 | $result = $xoopsDB -> query( "INSERT INTO " . $xoopsDB -> prefix( "lxentries" ) . " (entryID, categoryID, term, init, definition, ref, url, uid, submit, datesub, html, smiley, xcodes, breaks, block, offline, notifypub ) VALUES ('', '$categoryID', '$term', '$init', '$definition', '$ref', '$url', '$uid', '$submit', '$datesub', '$html', '$smiley', '$xcodes', '$breaks','$block', '$offline', '$notifypub')" ); |
|
158 | $newid = $xoopsDB -> getInsertId(); |
|
159 | // Increment author's posts count |