Exemple #1
0
     $login->process();
     header("Location: index.php");
     return;
     break;
 case "Disconnect":
     $_SESSION['PDO_DATABASE'] = '';
     header("Location: index.php");
     return;
     break;
 case "SchemaInstall":
     $odatabase = new OnpubDatabase($pdo);
     $owebsites = new OnpubWebsites($pdo);
     $osections = new OnpubSections($pdo);
     $oarticles = new OnpubArticles($pdo);
     try {
         $odatabase->install();
     } catch (PDOException $e) {
         $widget = new OnpubWidgetPDOException($e);
         $widget->display();
         $pdo = NULL;
         exit($e->getCode());
     }
     $pdo = NULL;
     header("Location: index.php");
     return;
     break;
 case "NewArticle":
     $oarticle = new OnpubArticle();
     $oauthor = new OnpubAuthor();
     $create = new OnpubNewArticle($pdo, $oarticle, $oauthor);
     try {