Example #1
0
			if ( isset($_POST['editaccess']) )
			{
				$xt->seteditaccess($_POST['editaccess']);
			}

			$xt->setTitle($_POST['title']);

			$variable = trim($_POST['orders']);
			if (is_numeric($variable)) {
				$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":
Example #2
0
     }
     $xt->setDescription($HTTP_POST_VARS['description']);
     $xt->setcatdescription($HTTP_POST_VARS['catdescription']);
     $xt->setcatfooter($HTTP_POST_VARS['catfooter']);
     $xt->setPid($HTTP_POST_VARS['pid']);
     $xt->setgroupid($HTTP_POST_VARS['groupid']);
     $xt->seteditaccess($HTTP_POST_VARS['editaccess']);
     $xt->setTitle($HTTP_POST_VARS['title']);
     $variable = trim($HTTP_POST_VARS['orders']);
     if (is_numeric($variable)) {
         $xt->setOrders($HTTP_POST_VARS['orders']);
     } else {
         redirect_header($HTTP_SERVER_VARS['PHP_SELF'], 3, "Weight must be a number!");
     }
     if (isset($HTTP_POST_VARS['indeximage'])) {
         $xt->setImgurl($HTTP_POST_VARS['indeximage']);
     }
     if (isset($HTTP_POST_VARS['displayimg'])) {
         $xt->setDisplayimg($HTTP_POST_VARS['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
 // -- Skalpa Keo 03/05/14: Duplicate Topic
 case "dup":
 case "dupsubs":
     $sourceid = intval($HTTP_POST_VARS['source']);