$xt->setOrders($_POST['orders']); } else { redirect_header(xoops_getenv('PHP_SELF'),3,"Weight must be a number!"); } if (isset($_POST['indeximage'])) { $xt->setImgurl($_POST['indeximage']); } if (isset($_POST['displayimg'])) { $xt->setDisplayimg($_POST['displayimg']); } else { $xt->setDisplayimg(0); } $xt->store(); redirect_header("category.php?op=topicsmanager",1,_AM_DBUPDATED); exit(); break; // -- Skalpa Keo 03/05/14: Duplicate Topic case "dup": case "dupsubs": $sourceid = intval($_POST['source']); $targetid = intval($_POST['target']); $xt = new WfsCategory($sourceid); // Quick & dirty code explanation: // TextSanitizer tests magic_quotes_gpc before escaping strings // problem is that most properties here don't come from GPC, and // won't be escaped automatically by PHP (except title)