equal
deleted
inserted
replaced
48 |
48 |
49 require('includes/common.php'); |
49 require('includes/common.php'); |
50 |
50 |
51 global $db, $session, $paths, $template, $plugins; // Common objects |
51 global $db, $session, $paths, $template, $plugins; // Common objects |
52 |
52 |
53 if(!isset($_GET['do'])) $_GET['do'] = 'view'; |
53 if ( !isset($_GET['do']) ) |
|
54 { |
|
55 $_GET['do'] = 'view'; |
|
56 } |
54 switch($_GET['do']) |
57 switch($_GET['do']) |
55 { |
58 { |
56 default: |
59 default: |
57 die_friendly('Invalid action', '<p>The action "'.htmlspecialchars($_GET['do']).'" is not defined. Return to <a href="'.makeUrl($paths->page).'">viewing this page\'s text</a>.</p>'); |
60 die_friendly('Invalid action', '<p>The action "'.htmlspecialchars($_GET['do']).'" is not defined. Return to <a href="'.makeUrl($paths->page).'">viewing this page\'s text</a>.</p>'); |
58 break; |
61 break; |