summary refs log tree commit diff stats
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rwxr-xr-xpages/admin.php29
1 files changed, 11 insertions, 18 deletions
diff --git a/pages/admin.php b/pages/admin.php index a171b6f..50e7abc 100755 --- a/pages/admin.php +++ b/pages/admin.php
@@ -372,8 +372,9 @@ if (isLoggedIn())
372 { 372 {
373 $otherPending = $get2pending3; 373 $otherPending = $get2pending3;
374 } else { 374 } else {
375 $template = new FITemplate('msg'); 375 $template = new FITemplate('msg2');
376 $template->add('BACK', 'the previous page'); 376 $template->add('BACK', 'Back to the pending queue');
377 $template->add('LINK', 'managePending.php');
377 $template->add('MSG', 'I\'m sorry, that pending post is already the first.'); 378 $template->add('MSG', 'I\'m sorry, that pending post is already the first.');
378 } 379 }
379 } else if ($_GET['dir'] == 'down') 380 } else if ($_GET['dir'] == 'down')
@@ -386,8 +387,9 @@ if (isLoggedIn())
386 { 387 {
387 $otherPending = $get2pending3; 388 $otherPending = $get2pending3;
388 } else { 389 } else {
389 $template = new FITemplate('msg'); 390 $template = new FITemplate('msg2');
390 $template->add('BACK', 'the previous page'); 391 $template->add('BACK', 'Back to the pending queue');
392 $template->add('LINK', 'managePending.php');
391 $template->add('MSG', 'I\'m sorry, that pending post is already the last.'); 393 $template->add('MSG', 'I\'m sorry, that pending post is already the last.');
392 } 394 }
393 } 395 }
@@ -410,22 +412,13 @@ if (isLoggedIn())
410 addTags($_GET['id'], $tags2, 'pending'); 412 addTags($_GET['id'], $tags2, 'pending');
411 addTags($otherPending['id'], $tags1, 'pending'); 413 addTags($otherPending['id'], $tags1, 'pending');
412 414
413 $template = new FITemplate('admin/managePending'); 415 header('Location: managePending.php');
414 416 exit;
415 $getpending = "SELECT * FROM pending ORDER BY id ASC";
416 $getpending2 = mysql_query($getpending);
417 $i=0;
418 while ($getpending3[$i] = mysql_fetch_array($getpending2))
419 {
420 $template->adds_block('PENDING', array( 'TITLE' => $getpending3[$i]['title'],
421 'AUTHOR' => $getpending3[$i]['author'],
422 'ID' => $getpending3[$i]['id']));
423 $i++;
424 }
425 } 417 }
426 } else { 418 } else {
427 $template = new FITemplate('msg'); 419 $template = new FITemplate('msg2');
428 $template->add('BACK', 'the previous page'); 420 $template->add('BACK', 'Back to the pending queue');
421 $template->add('LINK', 'managePending.php');
429 $template->add('MSG', 'I\'m sorry, that pending post doesn\'t exist.'); 422 $template->add('MSG', 'I\'m sorry, that pending post doesn\'t exist.');
430 } 423 }
431 } else if ($_GET['page'] == 'managePosts') 424 } else if ($_GET['page'] == 'managePosts')