#include "applicat.h" void Application::print_content() { cout << "Content-type: text/html" << endl ; // Force expiring action, since these are CGI outputs... // Guess this date... cout << "Expires: Tue, 10 Nov 1992 00:00:00 GMT" << endl << endl; } void Application::print_bin_content() { cout << "Content-type: application/octet-stream" << endl << endl; } void Application::print_database_error() { cout << "

Errore sul database



" << endl; cout << "

Connessione al database fallita.


" << endl; } void Application::print_header(const char* title) { print_content(); cout << "" << endl; cout << "" << endl; cout << "" << title << "" << endl; cout << "" << endl; cout << "" << endl; cout << "" << endl; } void Application::print_footer() { cout << "

" << endl; //cout << "Torna indietro" << endl; cout << "" << endl; } void Application::run(int argc, char* argv[]) { __argc = argc; __argv = (const char**)argv; if (create()) main_func(); destroy(); }