Browse Source

Fixed upload delete generation location issue.

tags/v1.3
Teknikode 5 years ago
parent
commit
f3882c92c5
2 changed files with 32 additions and 14 deletions
  1. 31
    13
      db.sql
  2. 1
    1
      templates/default/js/upload.js

+ 31
- 13
db.sql View File

@@ -3,7 +3,7 @@
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 29, 2014 at 09:52 AM
-- Server version: 5.6.11-log
-- PHP Version: 5.4.15

@@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS `blog` (
`tags` varchar(500) NOT NULL,
`post` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=58 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS `comments` (
`post` text NOT NULL,
`date_posted` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -66,7 +66,7 @@ CREATE TABLE IF NOT EXISTS `history` (
`title` varchar(140) DEFAULT NULL,
`description` varchar(500) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=22 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -81,7 +81,7 @@ CREATE TABLE IF NOT EXISTS `irc` (
`topic` text,
`check_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12671 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -103,7 +103,7 @@ CREATE TABLE IF NOT EXISTS `paste` (
`password` varchar(250) DEFAULT NULL,
`user_id` int(11) NOT NULL,
PRIMARY KEY (`pid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=303 ;
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;

-- --------------------------------------------------------

@@ -119,7 +119,7 @@ CREATE TABLE IF NOT EXISTS `podcast` (
`file_name` varchar(140) NOT NULL,
`description` longtext NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -134,7 +134,7 @@ CREATE TABLE IF NOT EXISTS `ricehalla` (
`date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`tags` varchar(140) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=192 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -149,7 +149,7 @@ CREATE TABLE IF NOT EXISTS `sessions` (
`token` varchar(200) NOT NULL,
`timeout` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=148 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -165,7 +165,7 @@ CREATE TABLE IF NOT EXISTS `support` (
`message` text NOT NULL,
`date_added` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -198,7 +198,7 @@ CREATE TABLE IF NOT EXISTS `transactions` (
`reason` varchar(10000) NOT NULL,
`date_posted` date NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=14 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

@@ -209,6 +209,7 @@ CREATE TABLE IF NOT EXISTS `transactions` (
CREATE TABLE IF NOT EXISTS `uploads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`filename` varchar(20) NOT NULL,
`url` varchar(20) NOT NULL,
`type` varchar(200) NOT NULL,
`user_id` int(11) NOT NULL,
`upload_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
@@ -217,7 +218,7 @@ CREATE TABLE IF NOT EXISTS `uploads` (
`cipher` varchar(20) NOT NULL DEFAULT 'tripleDES',
`delete_key` varchar(64) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=3708 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=8 ;

-- --------------------------------------------------------

@@ -243,7 +244,7 @@ CREATE TABLE IF NOT EXISTS `users` (
`blog_desc` varchar(140) CHARACTER SET utf8 DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=221 ;
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

-- --------------------------------------------------------

@@ -258,7 +259,23 @@ CREATE TABLE IF NOT EXISTS `votes` (
`user_id` int(11) NOT NULL,
`points` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1334 ;
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `walls`
--

CREATE TABLE IF NOT EXISTS `walls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`title` varchar(200) NOT NULL,
`src` varchar(200) NOT NULL,
`thumb` varchar(200) NOT NULL,
`date_added` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;

+ 1
- 1
templates/default/js/upload.js View File

@@ -9,7 +9,7 @@ function linkUploadDelete(selector)
ID=encodeURIComponent($(this).attr('id'));
$.ajax({
type: "POST",
url: "../../../generate_delete_link.php",
url: "../../generate_delete_link.php",
data: "uploadID="+ID,
success: function(html)
{

Loading…
Cancel
Save