topical media & game development
basic-php-16-transact-affirm.php / php
<?php
require_once 'conn.php';
require_once 'functions.php';
require_once 'http.php';
require_once 'header.php';
?>
<script type="text/javascript">
<!--
function deletePost(id,redir) {
if (id > 0) {
window.location = "transact-post.php?action=delete&post=" +
id + "&r=" + redir;
} else {
history.back();
}
}
function deleteForum(id) {
if (id > 0) {
window.location = "transact-admin.php?action=deleteForum&f=" + id;
} else {
history.back();
}
}
->
</script>
<?php
switch (strtoupper(
sql = "SELECT * FROM forum_posts WHERE id=" .
result = mysql_query(
row = mysql_fetch_array(
row['topic_id'] > 0) {
row['subject'] . "
</em>?";
row['topic_id']);
} else {
row['subject'] . "
</em>?";
row['forum_id']);
}
echo "
<div id=\"requestConfirmWarn\">";
echo "
<h2>DELETE POST?
</h2>\n";
echo "
<p>" .
row['id'] .
",'" .
sql = "SELECT * FROM forum_forum WHERE id=" .
result = mysql_query(
row = mysql_fetch_array(
msg = "If you delete this forum, all topics and replies will " .
"be deleted as well. Are you sure you wish to delete " .
"the entire forum
<br><em>" .
msg . "
</p>";
echo "
<p><input class=\"confirm\" type=\"button\" ";
echo "value=\"Delete\" ";
echo "onclick=\"deleteForum(" .
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2780434-1";
urchinTracker();
</script>