OKlibrary  0.2.1.6
CgiHandling Namespace Reference

Classes

struct  Error
struct  serial_name_error
struct  type_error
struct  open_log_file_error
struct  write_log_file_error
struct  invalide_key
struct  missing_hidden_field
struct  missing_public_field
struct  unknown_transfer_error
struct  mail_error
struct  database_error
struct  save_program_file
struct  chmod_program_file
struct  open_program_file
struct  Libc
struct  system_call_error
struct  compilation_error
struct  different_outputs
struct  remove_program
struct  conversion_error
struct  open_test_directory
struct  read_correct_output
struct  missing_refresh_field
struct  unlock_impossible
struct  unknown_submission_type
struct  error_output
struct  error_handling_done
struct  error_from_own_library
struct  error_from_std_library
struct  unknown_error
struct  non_critical_program_abortion
struct  critical_program_abortion
struct  PublicFieldDeclarations
struct  Submission
struct  direct_access
struct  indirect_access
class  HTML_Output

Typedefs

typedef std::map< std::string,
std::string > 
ValueMap
typedef std::string Testfunction (const ValueMap &)
typedef std::string Identificationfunction (const ValueMap &)
typedef void Transferfunction (const ValueMap &, const std::string &)

Enumerations

enum  Return_Values { ok = 0, invalid_user_input = 1, transfer_error = 2 }

Functions

template<class Access , class It >
std::string read_variables (const cgicc::Cgicc &cgi, const It field_names_b, const It field_names_e, ValueMap &M)
void provide_variables (const ValueMap &M)
std::string compute_password (const std::string &secret_key, const std::string &identification)

Variables

const std::string self = "CgiHandling"
const std::string cgi_address = "/cgi-bin/ok_html/registration.cgi"
const std::string name_authentication_field = "SerialName"
const std::string name_type_field = "Type"
const std::string type_original = "original"
const std::string type_mirror = "mirror"
const std::string type_query = "query"
const std::string type_submission = "file submission"
const std::string header_reprise = "You have entered the following data:"
const std::string failed_test = "There has been a mistake:"
const std::string failed_advice = "Please use the back button of your browser to correct the entry."
const std::string seems_ok1 = "If you want to submit the data, then please press the button."
const std::string seems_ok2 = "Otherwise use the back button of your browser to correct the entries."
const std::string manipulation = "The form data have been manipulated!"
const std::string success = "You have successfully registered. You entered the following data:"
const std::string passwd_notification = "Your password is:"
const std::string success_headline = "You have successfully registered!"
const std::string further = "A confirmation has been sent to your e-mail address (including your password)."
const std::string further2 = "As long as registration is open, you can always override your data (except of the personal information)."
const std::string refresh_notification = "Your site needs to be refreshed! Please use the back button of your browser, and then the refresh button. (In case this doesn't help and you disabled all local caching by your web browser, likely it is your Internet Service Provider, which doesn't give you access to the current web page, but only to an old version cached by your Internet Service Provider.)"
const std::string invalid_page = "Your site is invalid!! Do not continue to use the current site provided by your browser!!! (If you are not trying to hack this site, then likely your browser uses an outdated version, and you need to REFRESH all your sites!)"
const int hexdigits_passwd = 6
const int max_file_length = 40000

Typedef Documentation

typedef std::string CgiHandling::Identificationfunction(const ValueMap &)

Definition at line 193 of file CgiHandling.hpp.

typedef std::string CgiHandling::Testfunction(const ValueMap &)

Definition at line 189 of file CgiHandling.hpp.

typedef void CgiHandling::Transferfunction(const ValueMap &, const std::string &)

Definition at line 195 of file CgiHandling.hpp.

typedef std::map<std::string, std::string> CgiHandling::ValueMap

Definition at line 187 of file CgiHandling.hpp.


Enumeration Type Documentation

Enumerator:
ok 
invalid_user_input 
transfer_error 

Definition at line 198 of file CgiHandling.hpp.


Function Documentation

std::string CgiHandling::compute_password ( const std::string &  secret_key,
const std::string &  identification 
) [inline]

Definition at line 324 of file CgiHandling.hpp.

References StringHandling::deleteHead(), and hashMD5().

Referenced by CgiHandling::Submission::Submission().

void CgiHandling::provide_variables ( const ValueMap &  M) [inline]

Definition at line 317 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

template<class Access , class It >
std::string CgiHandling::read_variables ( const cgicc::Cgicc &  cgi,
const It  field_names_b,
const It  field_names_e,
ValueMap &  M 
) [inline]

Definition at line 302 of file CgiHandling.hpp.


Variable Documentation

const std::string CgiHandling::cgi_address = "/cgi-bin/ok_html/registration.cgi"

Definition at line 45 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::failed_advice = "Please use the back button of your browser to correct the entry."

Definition at line 57 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::failed_test = "There has been a mistake:"

Definition at line 56 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::further = "A confirmation has been sent to your e-mail address (including your password)."

Definition at line 64 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::further2 = "As long as registration is open, you can always override your data (except of the personal information)."

Definition at line 65 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::header_reprise = "You have entered the following data:"

Definition at line 55 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

Definition at line 178 of file CgiHandling.hpp.

const std::string CgiHandling::invalid_page = "Your site is invalid!! Do not continue to use the current site provided by your browser!!! (If you are not trying to hack this site, then likely your browser uses an outdated version, and you need to REFRESH all your sites!)"

Definition at line 67 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::manipulation = "The form data have been manipulated!"

Definition at line 60 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const int CgiHandling::max_file_length = 40000

Definition at line 180 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::name_authentication_field = "SerialName"

Definition at line 47 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::name_type_field = "Type"

Definition at line 49 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::passwd_notification = "Your password is:"

Definition at line 62 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::refresh_notification = "Your site needs to be refreshed! Please use the back button of your browser, and then the refresh button. (In case this doesn't help and you disabled all local caching by your web browser, likely it is your Internet Service Provider, which doesn't give you access to the current web page, but only to an old version cached by your Internet Service Provider.)"

Definition at line 66 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::seems_ok1 = "If you want to submit the data, then please press the button."

Definition at line 58 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::seems_ok2 = "Otherwise use the back button of your browser to correct the entries."

Definition at line 59 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::self = "CgiHandling"

Definition at line 44 of file CgiHandling.hpp.

const std::string CgiHandling::success = "You have successfully registered. You entered the following data:"
const std::string CgiHandling::success_headline = "You have successfully registered!"

Definition at line 63 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::type_mirror = "mirror"

Definition at line 51 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::type_original = "original"

Definition at line 50 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::type_query = "query"

Definition at line 52 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().

const std::string CgiHandling::type_submission = "file submission"

Definition at line 53 of file CgiHandling.hpp.

Referenced by CgiHandling::Submission::Submission().