<script>location="http://www.google.com"</script>lütfen cok acil oyuncak oldum
20
●2.710
$icerik = strip_tags($icerik);
<?php /** * $Id: submit.inc.php,v 1.23 2006/04/21 18:39:15 malanciault Exp $ * Module: BoLumler * Author: The SmartFactory <The SmartFactory - Making XOOPS Modules Smarter... Everyday !> * Licence: GNU */ if (!defined("XOOPS_ROOT_PATH")) { die("XOOPS root path not defined"); } global $_POST, $xoopsDB; include_once XOOPS_ROOT_PATH . "/class/xoopstree.php"; include_once XOOPS_ROOT_PATH . "/class/xoopslists.php"; include_once XOOPS_ROOT_PATH . "/class/xoopsformloader.php"; if (!$itemObj->categoryid() && isset($_GET['categoryid'])) { $categoryid = $_GET['categoryid']; } else { $categoryid = $itemObj->categoryid(); } if(isset($_GET['op']) && $_GET['op'] == 'clone'){ $title = _MD_BLUMLER_SUB_CLONE; } else{ $title = _MD_BLUMLER_SUB_SMNAME; } $sform = new XoopsThemeForm($title , "form", xoops_getenv('PHP_SELF')); $sform->setExtra('enctype="multipart/form-data"'); // Category $category_select = new XoopsFormSelect(_MD_BLUMLER_CATEGORY, 'categoryid', $categoryid); $category_select->setDescription(_MD_BLUMLER_CATEGORY_DSC); $category_select->addOptionArray($categoriesArray); $sform->addElement($category_select); // ITEM TITLE $sform->addElement(new XoopsFormText(_MD_BLUMLER_TITLE, 'title', 50, 255, $itemObj->title('e')), true); // SUMMARY $summary_text = bolumler_getEditor(_MD_BLUMLER_SUMMARY, 'summary', $itemObj->getVar('summary')); $summary_text->setDescription(_MD_BLUMLER_SUMMARY_DSC); $sform->addElement($summary_text, false); // BODY //$body_text = new XoopsFormDhtmlTextArea(_MD_BLUMLER_BODY, 'body', '', 15, 60); $body_text = bolumler_getEditor(_MD_BLUMLER_BODY_REQ, 'body', $itemObj->getVar('body')); $body_text->setDescription(_MD_BLUMLER_BODY_DSC); $sform->addElement($body_text); // IMAGE $image_array = & XoopsLists :: getImgListAsArray( bolumler_getImageDir('item') ); $image_select = new XoopsFormSelect( '', 'image', $itemObj->image() ); //$image_select -> addOption ('-1', '---------------'); $image_select -> addOptionArray( $image_array ); $image_select -> setExtra( "onchange='showImgSelected(\"image3\", \"image\", \"" . 'uploads/bolumler/images/item/' . "\", \"\", \"" . XOOPS_URL . "\")'" ); $image_tray = new XoopsFormElementTray( _MD_BLUMLER_IMAGE_ITEM, ' ' ); $image_tray -> addElement( $image_select ); $image_tray -> addElement( new XoopsFormLabel( '', "<br /><br /><img src='" . bolumler_getImageDir('item', false) .$itemObj->image() . "' name='image3' id='image3' alt='' />" ) ); $image_tray->setDescription(_MD_BLUMLER_IMAGE_ITEM_DSC); $sform -> addElement( $image_tray ); // IMAGE UPLOAD $max_size = 5000000; $file_box = new XoopsFormFile(_MD_BLUMLER_IMAGE_UPLOAD, "image_file", $max_size); $file_box->setExtra( "size ='45'") ; $file_box->setDescription(_MD_BLUMLER_IMAGE_UPLOAD_ITEM_DSC); $sform->addElement($file_box); if (BOLUMLER_LEVEL > 0 ) { // VARIOUS OPTIONS $options_tray = new XoopsFormElementTray(_AM_BLUMLER_OPTIONS, '<br />'); $html_checkbox = new XoopsFormCheckBox('', 'dohtml', $itemObj->dohtml()); $html_checkbox->addOption(1, _AM_BLUMLER_DOHTML); $options_tray->addElement($html_checkbox); $smiley_checkbox = new XoopsFormCheckBox('', 'dosmiley', $itemObj->dosmiley()); $smiley_checkbox->addOption(1, _AM_BLUMLER_DOSMILEY); $options_tray->addElement($smiley_checkbox); $xcodes_checkbox = new XoopsFormCheckBox('', 'doxcode', $itemObj->doxcode()); $xcodes_checkbox->addOption(1, _AM_BLUMLER_DOXCODE); $options_tray->addElement($xcodes_checkbox); $images_checkbox = new XoopsFormCheckBox('', 'doimage', $itemObj->doimage()); $images_checkbox->addOption(1, _AM_BLUMLER_DOIMAGE); $options_tray->addElement($images_checkbox); $linebreak_checkbox = new XoopsFormCheckBox('', 'dobr', $itemObj->dobr()); $linebreak_checkbox->addOption(1, _AM_BLUMLER_DOLINEBREAK); $options_tray->addElement($linebreak_checkbox); $sform->addElement($options_tray); } // NOTIFY ON PUBLISH if (is_object($xoopsUser)) { $notify_checkbox = new XoopsFormCheckBox('', 'notifypub', $notifypub); $notify_checkbox->addOption(1, _MD_BLUMLER_NOTIFY); $sform->addElement($notify_checkbox); } $button_tray = new XoopsFormElementTray('', ''); $hidden = new XoopsFormHidden('op', 'post'); if(isset($_GET['op']) && $_GET['op']= 'clone'){ $itemid = 0; $itemObj->setNew(); } $button_tray->addElement($hidden); if ($itemid) { $button_tray->addElement(new XoopsFormButton('', 'post', _MD_BLUMLER_EDIT, 'submit')); } else { $button_tray->addElement(new XoopsFormButton('', 'post', _MD_BLUMLER_CREATE, 'submit')); } $button_tray->addElement(new XoopsFormButton('', 'preview', _MD_BLUMLER_PREVIEW, 'submit')); $sform->addElement($button_tray); $hidden_itemid = new XoopsFormHidden('itemid', $itemid); $sform->addElement($hidden_itemid); $sform->assign($xoopsTpl); unset($hidden); unset($hidden2); ?>