diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2009-08-13 17:46:09 -0400 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2009-08-13 17:46:09 -0400 |
| commit | b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a (patch) | |
| tree | 0449277e94a42aa155995a90fd8a89cb3309e7ab /pages/quotes.php | |
| parent | 6a1d5b60e6ec541a36727b84b71168f62221f7d7 (diff) | |
| download | fourisland-b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a.tar.gz fourisland-b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a.tar.bz2 fourisland-b5736e3ad3830fa732dcbd1a518ec3dd6ea7b98a.zip | |
Rewrote Admin panel
The following database changes must be made: * A TEXT column called "text" must be added to the end of "polloftheweek" * The transferPollRss.php script must be run * The "pollrss" table must be dropped Closes #113
Diffstat (limited to 'pages/quotes.php')
| -rwxr-xr-x | pages/quotes.php | 16 |
1 files changed, 12 insertions, 4 deletions
| diff --git a/pages/quotes.php b/pages/quotes.php index 4d0b46e..f1e0d65 100755 --- a/pages/quotes.php +++ b/pages/quotes.php | |||
| @@ -168,11 +168,19 @@ if (isset($_GET['id']) && !(is_numeric($_GET['id']))) | |||
| 168 | } | 168 | } |
| 169 | } else if (is_numeric($_GET['act'])) | 169 | } else if (is_numeric($_GET['act'])) |
| 170 | { | 170 | { |
| 171 | $query = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; | 171 | $getquote = "SELECT * FROM rash_quotes WHERE id = " . $_GET['act']; |
| 172 | quote_generation($query, "#" . $_GET['act'], -1); | 172 | $getquote2 = mysql_query($getquote); |
| 173 | $getquote3 = mysql_fetch_array($getquote2); | ||
| 173 | 174 | ||
| 174 | $page_id = 'quote-' . $_GET['act']; | 175 | if ($getquote3['id'] == $_GET['act']) |
| 175 | include('includes/comments.php'); | 176 | { |
| 177 | quote_generation($getquote, "#" . $_GET['act'], -1); | ||
| 178 | |||
| 179 | $page_id = 'quote-' . $_GET['act']; | ||
| 180 | include('includes/comments.php'); | ||
| 181 | } else { | ||
| 182 | generateError('404'); | ||
| 183 | } | ||
| 176 | } else { | 184 | } else { |
| 177 | generateError('404'); | 185 | generateError('404'); |
| 178 | } | 186 | } |
