topical media & game development
portal-cms-edit_video.php
<?php
if (isset(contentid = delete_image = title = addslashes(contentdate = addslashes(sourcename = addslashes(sourceurl = addslashes(binary = addslashes(state = addslashes(description = addslashes(videoformat = addslashes(videoresolution = addslashes(videolength = addslashes(videosize = addslashes(update = upload = health = politics = wildlife = energy = business = climate = pollution = technology = lifestyle = environment = region = keywords = delete_image) {
unlink(query = "UPDATE content set content_binary = 0 where content_id=result = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
}
if(target_path = "uploads/";
target_path . basename(
_FILES['uploadedfile']['tmp_name'],
file_upload_name = basename( binary = "uploads/".update){
title',
content.content_date = 'binary',
content.content_source_name = 'sourceurl',
content.content_state = 'description',
content_type_video.video_format = 'videoresolution',
content_type_video.video_length='videosize' where
content.content_id = contentid";
health',
content_matrix.politics = 'wildlife',
content_matrix.energy='business',
content_matrix.climate='pollution',
content_matrix.technology='lifestyle', content_matrix.environment='region'
WHERE content_matrix.content_id='keywords = split(' ', strtolower(query3 = "DELETE from `content_keywords` WHERE content_id = 'result = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
foreach (word) {
word);
word')";
query3);
if(!query3 = "SELECT * from keywords WHERE keyword_name = 'result3 = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
result3);
row['keyword_id'];
contentid','result = mysql_query(result) {
die('Invalid query: ' . mysql_error());
}
}
query);
query2);
if(!query = "SELECT * FROM `content` , `content_type_video` WHERE content.content_id = 'contentid'";
query);
if(!query2 = "SELECT * FROM `content_matrix` WHERE content_id='result2 = mysql_query(result2) {
die('2: Invalid query: ' . mysql_error());
}
contentid' AND
content_keywords.keyword_id=keywords.keyword_id";
query3);
if(!row = mysql_fetch_array(row2 = mysql_fetch_array(image = row['content_title']; ?>" />
</td>
</tr>
<tr>
<td width="150">
Date:
</td>
<td>
<input type="text" name="date" size="30" value="<?php echo image) {
?>
<tr>
<td width="150">
Image:
</td>
<td>
<img src="video.jpg"></a>
</td>
<td>
<form name="input" method="post" action="">
<input type="hidden" name="contentbinary" value="<?php echo row['content_source_name']; ?>"/>
</td>
</tr>
<tr>
<td>
Source url:
</td>
<td>
<input type="text" name="sourceurl" size="30" value="<?php echo row['content_state']; ?>"/>
<tr>
<td width="150">
Content Description:
</td>
<td>
<input type="text" name="contentdescription" size="30" value="<?php echo row['video_format']; ?>"/>
</td>
</tr>
<tr>
<td width="150">
Video Resolution:
</td>
<td>
<input type="text" name="videoresolution" size="30" value="<?php echo row['video_length']; ?>"/>
</td>
</tr>
<tr>
<td width="150">
Video Size:
</td>
<td>
<input type="text" name="videosize" size="30" value="<?php echo health=health == "1"){echo " CHECKED";}?>>
<br />
Politics:
<input type="checkbox" name="politics" value="1" <?php row2['politics']; if(wildlife=wildlife == "1"){echo " CHECKED";}?>>
<br/>
Energy
<input type="checkbox" name="energy" value="1" <?php row2['energy']; if(business=business == "1"){echo " CHECKED";}?>>
<br />
Climate
<input type="checkbox" name="climate" value="1" <?php row2['climate']; if(pollution=pollution == "1"){echo " CHECKED";}?>>
<br />
Technology
<input type="checkbox" name="technology" value="1" <?php row2['technology']; if(lifestyle=lifestyle == "1"){echo " CHECKED";}?>>
<br />
Environment
<input type="checkbox" name="environment" value="1" <?php row2['environment']; if(row2['region']; ?>"/>
</td>
</tr>
<tr>
<td width="150">
Keywords:
</td>
<td>
<input type="text" name="keywords" size="30" value="<?php while(result3)) { echo contentid; ?>">
</form>
<p><br />
</p></td>
</tr>
</table> </td>
<td width="4"> </td>
<td width="574"> </td>
</tr>
<tr>
<td colspan="6">
<img src="file: D|/Program%20Files/%5Bwebdesign%5D/dreamweaver%208/Dreamweaver%208/Configuration/BuiltIn/StarterPages/mm_spacer.gif"
alt="" width="1" height="1" border="0" /></td>
</tr>
<tr>
<td width="15"> </td>
<td width="4"> </td>
<td width="50"> </td>
<td width="536"> </td>
<td width="4"> </td>
<td width="574"> </td>
</tr>
</table>
</body>
</html>
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.