<h1>B-City</h1>
+<div style="text-align: right;"><a href="/bcity/bcity_fe/login/logout">esci</a></div>
+
<h2>Selezionare la categoria della segnalazione</h2>
{categorie}
<h1>B-City</h1>
+<div style="text-align: right;"><a href="/bcity/bcity_fe/login/logout">esci</a></div>
+
<div id="map" style="width: 100%; height: 600px;"></div>
<form action="/bcity/bcity_fe/index/category" method="post">
<h1>B-City</h1>
+<div style="text-align: right;"><a href="/bcity/bcity_fe/login/logout">esci</a></div>
+
<h2>La segnalazione inserita รจ stata salvata correttamente e inviata all'ufficio competente</h2>
<form action="/bcity/bcity_fe/index/index" method="post">
- <button name="submit" id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Conferma</button>
+ <button name="submit" id="submit" class="btn btn-lg btn-primary btn-block" type="submit">Nuova segnalazione</button>
</form>
\ No newline at end of file
g_free (content);
}
+
+void
+login_logout (GMatchInfo *minfo, gpointer user_data)
+{
+ Commons *commons = (Commons *)user_data;
+
+ zak_cgi_session_close (commons->zcgi_session);
+ zak_cgi_main_redirect (commons->zcgi_main, "/bcity/bcity_fe/index/index");
+}
void login_index (GMatchInfo *minfo, gpointer user_data);
+void login_logout (GMatchInfo *minfo, gpointer user_data);
#endif /* __INDEX_H__ */
zak_cgi_url_connect (zcgi_url, "/login[/]?", (ZakCgiUrlConnectedFunction)login_index, commons);
zak_cgi_url_connect (zcgi_url, "/login/index", (ZakCgiUrlConnectedFunction)login_index, commons);
+ zak_cgi_url_connect (zcgi_url, "/login/logout", (ZakCgiUrlConnectedFunction)login_logout, commons);
zak_cgi_url_dispatch (zcgi_url);