Add files via upload
This commit is contained in:
parent
b861b1f6ae
commit
7b1edde46c
13 changed files with 1237 additions and 0 deletions
29
removed_stuff/REMOVED_forums/push_thread.php
Normal file
29
removed_stuff/REMOVED_forums/push_thread.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
require_once("../inc/conx.php");
|
||||
if($logged_in == false) {
|
||||
header("location: /");
|
||||
exit();
|
||||
}
|
||||
$f_type = safe($_POST['type']);
|
||||
$f_uqid = safe($_POST['uqid']);
|
||||
$f_title = safe($_POST['title']);
|
||||
$f_content = safe($_POST['content']);
|
||||
$split = explode('1', $f_uqid);
|
||||
$spindle_uqid = $split[0];
|
||||
$subspindle_uqid = $split[1];
|
||||
if($f_title != '') {
|
||||
if($f_type == 'save') {
|
||||
$draft = "yes";
|
||||
}
|
||||
elseif($f_type == 'post') {
|
||||
$draft = "no";
|
||||
}
|
||||
else {
|
||||
exit();
|
||||
}
|
||||
mysqli_query($conx, "INSERT INTO forum_threads (draft,spindle_uqid,name,uid,content,tstamp) VALUES ('$draft','$f_uqid','$f_title','$u_uid','$f_content','$tstamp')");
|
||||
if($f_type == 'post') {
|
||||
mysqli_query($conx, "UPDATE forum_spindles SET tstamp='$tstamp' WHERE uqid='$spindle_uqid'");
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue