Commit 82b29781 authored by carboncrafters's avatar carboncrafters

dl

parent 1a544daa
......@@ -179,8 +179,8 @@ if ($moveResult != true) {
if(isset($_POST['down']) && $_POST['down'] == 'Yes')
{$dl = 1;}else{$dl = 0;}
$ip = $_SERVER['REMOTE_ADDR'];
$sql = "INSERT INTO ids (user, id, type, date, views, name, descr, pub)
VALUES ('$uid', '$filn', 'image', '$time', '0', '$tit', '$desc', '$pub' );
$sql = "INSERT INTO ids (user, id, type, date, views, name, descr, pub, dl)
VALUES ('$uid', '$filn', 'image', '$time', '0', '$tit', '$desc', '$pub', '$dl' );
INSERT INTO images (uid, id, oname, orig, type, name, upl_date, views, descr, dl, pub, lke, dlike, bsw, `hash`, `mime`, `mimebase`, `mime_end`)
VALUES ('$uid', '$filn', '$oflnm', '$fileName', '$fileExt', '$tit', '$time', '$vie', '$desc', '$dl', '$pub', '$lke', '$dlike', '$bsw', '$hash', '$mime', '$mimebase', '$mime_end' );
......
......@@ -169,8 +169,8 @@ if (move_uploaded_file($fileTmpLoc, $_SERVER["DOCUMENT_ROOT"]."cdn/video/$filn/$
{
$dl = 1;}else{$dl = 0;}
$ip = $_SERVER['REMOTE_ADDR'];
$sql = "INSERT INTO ids (user, id, type, date, views, name, descr, pub)
VALUES ('$uid', '$filn', 'video', '$time', '0', '$tit', '$desc', '$pub' );
$sql = "INSERT INTO ids (user, id, type, date, views, name, descr, pub, dl)
VALUES ('$uid', '$filn', 'video', '$time', '0', '$tit', '$desc', '$pub', '$dl' );
INSERT INTO videos (uid, id, oname, orig, mp4, webm, name, upl_date, views, descr, dl, pub, lke, dlike, `hash`,`mime`, `mimebase`, `mime_end`)
VALUES ('$uid', '$filn', '$orflnam', '$fileName', '$mp4', '$webm', '$tit', '$time', '$vie', '$desc', '$dl', '$pub', '$lke', '$dlike','$hash', '$mime', '$mimebase', '$mime_end' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment