HEX
Server: Apache
System: Linux msm5694.mjhst.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: camjab_ssh (1000)
PHP: 5.3.29
Disabled: NONE
Upload Files
File: /home/httpd/html/seekya.com/DEAD/manage/itemPopup_inc.php
<?php
if (empty($_SESSION["admin"])) redirect("index.php?e=1");
if (!empty($_POST["btnSave"])) {
	
	$video_status=1;
	if (pdbfx("video_status")=='')
		$video_status=0;
	$video_homepage=1;
	if (pdbfx("video_homepage")=='')
		$video_homepage=0;
	
	if ($_GET["video_id"]!='') //Edit Item
	{
		$sql="update video_master set video_title='".pdbfx("video_title") ."',video_category='".pdbfx("video_category")."',video_status=".$video_status .",video_homepage=".$video_homepage .",video_description='".pdbfx("video_description") ."',video_warning='".pdbfx("video_warning") ."',video_date='".pdbfx("video_date") ."',video_file='".pdbfx("video_file") ."',video_image='".pdbfx("video_image") ."',video_size='".pdbfx("video_size") ."' where video_id=".$_GET["video_id"];
		
		mysql_query($sql);
		$errMsg="<font color=red><b>Item Information Saved.</b></font>";
	}
	echo("<script language='javascript' type='text/javascript'>");
	echo("window.opener.navigate(window.opener.document.location.href);");
	echo("</script>");

}

if ($_GET["video_id"]!='') 
{
$sql = "SELECT * from video_master where video_id=".$_GET["video_id"];
$cmd = mysql_query($sql);
$rs = mysql_fetch_array($cmd);	

}
$sql = "SELECT * from category_master";
$cmdcat = mysql_query($sql);

$strcatp.="<select name=video_category>";
while ($rscat = mysql_fetch_array($cmdcat))
	{
		
		if ($rs["video_category"]==$rscat["category_id"])
			$strcatp.= "<option selected  value=" . $rscat["category_id"] . ">".$rscat["category_name"]."</option>";
		else
			$strcatp.= "<option value=" . $rscat["category_id"].">".$rscat["category_name"]."</option>";
	}

$strcatp.="</select>";

?>