index.php
changeset 249 95dc632bf084
parent 229 b2f985e4cef3
child 252 a007145a0ff6
equal deleted inserted replaced
248:8e898ab809b5 249:95dc632bf084
    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;