$Article_Category = "1"; } if ($Article_Url == "") { $Article_Url = $Article_Content["name"]; } if ($Article_Content['code'] == "") { $Article_Content["code"] = $Article_Content["embedcode"]; } if ($Article_Date == "") { $Article_Date = strtotime("now"); } if ($Article_Type == "") { $Article_Category = "post"; } // REMOVES ALL AND ANY ILLEGAL CHARACTERS \\ $Article_Url = CharacterRemoval($Article_Url); $Article_Content['name'] = CommaRemoval($Article_Content['name']); //////////////////////////////////////// SOCIAL/3RD PARTY PLATFORMS INTEGRATION \\\\\\\\\\\\\\\\\\\\\\\ /////////////////////////////////////////////////////////////////////////////////////////////////////// ///////////////////// FINALIZE ALL ARRAYS FOR UPLOAD TO DATABASE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $Article_Content = serialize($Article_Content); $Article_Other = serialize($Article_Other); if ($Article_Id == "") { mysql_query("INSERT INTO articles(url, active, category, type, other, rand, date, feat, content, info,img,list) VALUES('{$Article_Url}', '{$Article_Active}', '{$Article_Category}', '{$Article_Type}', '{$Article_Other}', '{$Rand}','{$Article_Date}', '{$Article_Feat}', '{$Article_Content}', '{$Article_Info}', '{$PostImages}','{$Article_List}') ") or die(mysql_error()); // PROCESS GALLERY IMAGE UPLOADS \\ $query = "SELECT * FROM articles WHERE trash='0' AND rand='{$Rand}'"; $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); $Album = $row[id]; $Array["galleryupload"]["id"] = $row["id"]; $Upload = $files["gallery"];
<?php // PULLS ALL INFORMATION FROM THE POST REQUEST FOR THE ARTICLE \\ include "forms/logincheck.php"; if ($Login == "1") { $Article_Type = $_POST["imgtype"]; $Article_Name = $_POST["name"]; $Article_Active = $_POST["active"]; $Article_Content = $_POST["content"]; $PageIds = $_POST["PageIds"]; $PageIds = OtarDecrypt($key, $PageIds); $Article_Id = $PageIds["article"]; // REMOVES ALL AND ANY ILLEGAL CHARACTERS \\ $Article_Code = CharacterRemoval($Article_Code); $Article_Name = CommaRemoval($Article_Name); if ($Article_Id == "") { // CREATE A NEW LISTING WITH THE INFORMATION PROVIDED \\ mysql_query("INSERT INTO cwoptions(type, active, name, content) VALUES('access', '{$Article_Active}', '{$Article_Name}', '{$Article_Content}') ") or die(mysql_error()); } else { // UPDATE THE DATABASE WITH ANY NEW/OLD INFORMATION \\ $result = mysql_query("UPDATE cwoptions SET name='{$Article_Name}' WHERE id='{$Article_Id}'") or die(mysql_error()); $result = mysql_query("UPDATE cwoptions SET content='{$Article_Content}' WHERE id='{$Article_Id}'") or die(mysql_error()); $result = mysql_query("UPDATE cwoptions SET active='{$Article_Active}' WHERE id='{$Article_Id}'") or die(mysql_error()); } $REDIRECT = "admin/CwAccess"; $Domain = $Array["siteinfo"]["domain"]; header("Location: {$Domain}/{$REDIRECT}"); }