]> saetta.ns0.it Git - libzakcgi/log
libzakcgi
8 years agoConflict on merge branch 'develop' into form_libzakform form_libzakform
Andrea Zagli [Sat, 21 May 2016 07:20:36 +0000 (09:20 +0200)]
Conflict on merge branch 'develop' into form_libzakform

8 years agoZakCgiSession: right session file permissions.
Andrea Zagli [Sat, 21 May 2016 07:17:58 +0000 (09:17 +0200)]
ZakCgiSession: right session file permissions.

New file extension.
New default directory.

8 years agoConflicts from merging branch 'develop' into form_libzakform
Andrea Zagli [Wed, 18 May 2016 16:43:07 +0000 (18:43 +0200)]
Conflicts from merging branch 'develop' into form_libzakform

8 years agoZakCgiSession: file create immediately in costructor (closes #1024).
Andrea Zagli [Wed, 18 May 2016 15:11:46 +0000 (17:11 +0200)]
ZakCgiSession: file create immediately in costructor (closes #1024).

8 years agoAdded ZakCgiSession property "minutes" and new constructor ::new_minutes (closes...
Andrea Zagli [Wed, 18 May 2016 15:05:15 +0000 (17:05 +0200)]
Added ZakCgiSession property "minutes" and new constructor ::new_minutes (closes #957).

8 years agoAdded private function ZakCgiSession::create_file.
Andrea Zagli [Wed, 18 May 2016 14:27:39 +0000 (16:27 +0200)]
Added private function ZakCgiSession::create_file.

8 years agoAdded private function ZakCgiSession::build_filename.
Andrea Zagli [Wed, 18 May 2016 14:10:14 +0000 (16:10 +0200)]
Added private function ZakCgiSession::build_filename.

8 years agoAdded function ZakCgiSession::is_valid.
Andrea Zagli [Wed, 18 May 2016 14:05:14 +0000 (16:05 +0200)]
Added function ZakCgiSession::is_valid.

8 years agoLittle code adjustment.
Andrea Zagli [Mon, 16 May 2016 16:27:17 +0000 (18:27 +0200)]
Little code adjustment.

8 years agoAdded function ZakCgiFormElement::bind (closes #1021).
Andrea Zagli [Mon, 16 May 2016 14:52:15 +0000 (16:52 +0200)]
Added function ZakCgiFormElement::bind (closes #1021).

8 years agoUse of function ZakFormElement::unformat in ZakCgiForm::bind.
Andrea Zagli [Sun, 15 May 2016 09:44:24 +0000 (11:44 +0200)]
Use of function ZakFormElement::unformat in ZakCgiForm::bind.

8 years agoWrong render of form checkbox (closes #1015).
Andrea Zagli [Sun, 15 May 2016 09:09:52 +0000 (11:09 +0200)]
Wrong render of form checkbox (closes #1015).

8 years agoAdded functions Session::set_from_form and ::fill_form (closes #994).
Andrea Zagli [Thu, 12 May 2016 10:03:45 +0000 (12:03 +0200)]
Added functions Session::set_from_form and ::fill_form (closes #994).

8 years agoConflict on merge from develop.
Andrea Zagli [Wed, 4 May 2016 14:14:45 +0000 (16:14 +0200)]
Conflict on merge from develop.

8 years agoZakCgiSession: use of GKeyFile::get_string to handle escaped characters.
Andrea Zagli [Wed, 4 May 2016 14:13:26 +0000 (16:13 +0200)]
ZakCgiSession: use of GKeyFile::get_string to handle escaped characters.

8 years agoConflict in merge from develop.
Andrea Zagli [Wed, 4 May 2016 13:18:40 +0000 (15:18 +0200)]
Conflict in merge from develop.

8 years agoZakCgiSession: use of GKeyFile::set_string to manage characters that must be escaped.
Andrea Zagli [Wed, 4 May 2016 13:16:40 +0000 (15:16 +0200)]
ZakCgiSession: use of GKeyFile::set_string to manage characters that must be escaped.

9 years agoMerge branch 'develop' into form_libzakform
Andrea Zagli [Sat, 26 Mar 2016 16:14:42 +0000 (17:14 +0100)]
Merge branch 'develop' into form_libzakform

9 years agoAdded function ZakCgiUrl::connect_not_found (closes #948).
Andrea Zagli [Sat, 26 Mar 2016 16:07:48 +0000 (17:07 +0100)]
Added function ZakCgiUrl::connect_not_found (closes #948).

9 years agoMerge branch 'develop' into form_libzakform
Andrea Zagli [Sat, 26 Mar 2016 15:42:34 +0000 (16:42 +0100)]
Merge branch 'develop' into form_libzakform

9 years agoAdded functions ZakCgiSession::[gs]et_value_full_* (closes #992).
Andrea Zagli [Sat, 26 Mar 2016 14:06:40 +0000 (15:06 +0100)]
Added functions ZakCgiSession::[gs]et_value_full_* (closes #992).

9 years agoAdded property ZakCgiUrl::remove_trailing_slashes.
Andrea Zagli [Sat, 26 Mar 2016 15:13:06 +0000 (16:13 +0100)]
Added property ZakCgiUrl::remove_trailing_slashes.

9 years agoRemoved syslog (closes #973).
Andrea Zagli [Sat, 26 Mar 2016 11:22:53 +0000 (12:22 +0100)]
Removed syslog (closes #973).

9 years agoAdded functions ZakCgiSession::set_value_full and ::get_value_full (closes #993).
Andrea Zagli [Sat, 26 Mar 2016 11:11:30 +0000 (12:11 +0100)]
Added functions ZakCgiSession::set_value_full and ::get_value_full (closes #993).

9 years agoIn ZakCgiSession::set_value if value is null the value is unsetted (closes #1004).
Andrea Zagli [Sat, 26 Mar 2016 10:57:47 +0000 (11:57 +0100)]
In ZakCgiSession::set_value if value is null the value is unsetted (closes #1004).

9 years agoMerge branch 'develop' into form_libzakform
Andrea Zagli [Sat, 13 Feb 2016 08:57:09 +0000 (09:57 +0100)]
Merge branch 'develop' into form_libzakform

9 years agoAdded function ZakCgiMain::out_not_null_term.
Andrea Zagli [Sat, 13 Feb 2016 08:56:29 +0000 (09:56 +0100)]
Added function ZakCgiMain::out_not_null_term.

9 years agoMissing xml parsing from parent ZakFormElement.
Andrea Zagli [Sun, 7 Feb 2016 16:59:56 +0000 (17:59 +0100)]
Missing xml parsing from parent ZakFormElement.

9 years agoSetted name and long name of ZakFormElement.
Andrea Zagli [Sun, 7 Feb 2016 12:55:20 +0000 (13:55 +0100)]
Setted name and long name of ZakFormElement.

9 years agoAdded ZakCgiFormElementEmail.
Andrea Zagli [Sun, 7 Feb 2016 10:42:23 +0000 (11:42 +0100)]
Added ZakCgiFormElementEmail.

9 years agoLittles adjustments to code.
Andrea Zagli [Sat, 30 Jan 2016 15:45:25 +0000 (16:45 +0100)]
Littles adjustments to code.

9 years agoRemoved use of syslog.
Andrea Zagli [Sat, 30 Jan 2016 15:18:20 +0000 (16:18 +0100)]
Removed use of syslog.

9 years agoAdjustments from deprecations and use of GLog instead of syslog.
Andrea Zagli [Sat, 30 Jan 2016 15:14:45 +0000 (16:14 +0100)]
Adjustments from deprecations and use of GLog instead of syslog.

9 years agoRegex for url matching must the whole url.
Andrea Zagli [Sat, 30 Jan 2016 10:27:57 +0000 (11:27 +0100)]
Regex for url matching must the whole url.

9 years ago_zak_cgi_main_get_env returns GValue.
Andrea Zagli [Sat, 30 Jan 2016 10:22:19 +0000 (11:22 +0100)]
_zak_cgi_main_get_env returns GValue.

9 years agoMissing headers in global header.
Andrea Zagli [Sat, 30 Jan 2016 09:00:57 +0000 (10:00 +0100)]
Missing headers in global header.

9 years agoAdjustements from ZakForm.
Andrea Zagli [Sat, 30 Jan 2016 08:55:14 +0000 (09:55 +0100)]
Adjustements from ZakForm.

9 years agoLoading of filters and validators from xml.
Andrea Zagli [Sat, 7 Nov 2015 21:11:18 +0000 (22:11 +0100)]
Loading of filters and validators from xml.

9 years agoStarted of loading ZakFormForm from xml file.
Andrea Zagli [Thu, 5 Nov 2015 19:38:05 +0000 (20:38 +0100)]
Started of loading ZakFormForm from xml file.

9 years agoMigrated ZakFormElementFilter from interface to abstract class.
Andrea Zagli [Mon, 2 Nov 2015 21:08:27 +0000 (22:08 +0100)]
Migrated ZakFormElementFilter from interface to abstract class.

9 years agoUse of messages from ZakFormElementValidator.
Andrea Zagli [Sun, 1 Nov 2015 16:12:05 +0000 (17:12 +0100)]
Use of messages from ZakFormElementValidator.

9 years agoMigrated ZakFormElementIValidator from interface to abstract class.
Andrea Zagli [Sun, 1 Nov 2015 09:22:39 +0000 (10:22 +0100)]
Migrated ZakFormElementIValidator from interface to abstract class.

9 years agoUse of libzakform.
Andrea Zagli [Sat, 31 Oct 2015 15:48:47 +0000 (16:48 +0100)]
Use of libzakform.

9 years agoAdded ZakCgiFormValidatorRegex. form
Andrea Zagli [Thu, 8 Oct 2015 22:39:56 +0000 (00:39 +0200)]
Added ZakCgiFormValidatorRegex.

9 years agoAdded and implemented ZakCgiFormElementIValidator.
Andrea Zagli [Thu, 8 Oct 2015 22:25:23 +0000 (00:25 +0200)]
Added and implemented ZakCgiFormElementIValidator.

9 years agoImplemented filtering on ZakCgiForm.
Andrea Zagli [Thu, 8 Oct 2015 20:49:00 +0000 (22:49 +0200)]
Implemented filtering on ZakCgiForm.

9 years agoAdded ZakCgiFormElementFilterTrim.
Andrea Zagli [Mon, 5 Oct 2015 17:42:56 +0000 (19:42 +0200)]
Added ZakCgiFormElementFilterTrim.

9 years agoAdded ZakCgiFormElementIFilter.
Andrea Zagli [Mon, 5 Oct 2015 15:24:13 +0000 (17:24 +0200)]
Added ZakCgiFormElementIFilter.

9 years agoIn ZakCgiForm replace internal GHashTable with GPtrArray.
Andrea Zagli [Mon, 14 Sep 2015 16:47:12 +0000 (18:47 +0200)]
In ZakCgiForm replace internal GHashTable with GPtrArray.

Because GHashTable doesn't respect the inserting order.

9 years agoForm in Bootstrap style.
Andrea Zagli [Mon, 14 Sep 2015 16:07:14 +0000 (18:07 +0200)]
Form in Bootstrap style.

9 years agoAdded ZakCgiFormElementSelect.
Andrea Zagli [Sun, 13 Sep 2015 10:07:42 +0000 (12:07 +0200)]
Added ZakCgiFormElementSelect.

9 years agoAdded ZakCgiFormElementTextArea.
Andrea Zagli [Sat, 12 Sep 2015 11:06:21 +0000 (13:06 +0200)]
Added ZakCgiFormElementTextArea.

9 years agoAdded ZakCgiFormElementHidden.
Andrea Zagli [Sat, 12 Sep 2015 10:40:12 +0000 (12:40 +0200)]
Added ZakCgiFormElementHidden.

9 years agoAdded ZakCgiFormElementCheck.
Andrea Zagli [Sat, 12 Sep 2015 10:36:09 +0000 (12:36 +0200)]
Added ZakCgiFormElementCheck.

9 years agoAdded ZakCgiFormElementPassword.
Andrea Zagli [Sat, 12 Sep 2015 10:15:23 +0000 (12:15 +0200)]
Added ZakCgiFormElementPassword.

9 years agoAdded ZakCgiFormElement::set_label.
Andrea Zagli [Sat, 12 Sep 2015 09:57:09 +0000 (11:57 +0200)]
Added ZakCgiFormElement::set_label.

Changed content special attribute in zak-cgi-content for tags.

9 years agoAdded function Form::is_valid.
Andrea Zagli [Sat, 29 Aug 2015 10:36:19 +0000 (12:36 +0200)]
Added function Form::is_valid.

9 years agoAdded function ZakCgiForm::bind.
Andrea Zagli [Sat, 29 Aug 2015 09:46:30 +0000 (11:46 +0200)]
Added function ZakCgiForm::bind.

9 years agoAdded ZakCgiForm::add_str.
Andrea Zagli [Wed, 26 Aug 2015 16:21:48 +0000 (18:21 +0200)]
Added ZakCgiForm::add_str.

9 years agoAdded ZakCgiFormElementSubmit.
Andrea Zagli [Wed, 26 Aug 2015 15:54:44 +0000 (17:54 +0200)]
Added ZakCgiFormElementSubmit.

9 years agoAdded Form::render_start.
Andrea Zagli [Wed, 26 Aug 2015 15:40:23 +0000 (17:40 +0200)]
Added Form::render_start.

9 years agoForm: rendering of attributes.
Andrea Zagli [Wed, 26 Aug 2015 15:33:08 +0000 (17:33 +0200)]
Form: rendering of attributes.

Added ZakCgiCommons::ghashtable_to_str_attrs.

9 years agoForm: started rendering.
Andrea Zagli [Wed, 26 Aug 2015 13:35:30 +0000 (15:35 +0200)]
Form: started rendering.

9 years agoMerge branch 'develop' into form
Andrea Zagli [Mon, 24 Aug 2015 19:05:02 +0000 (21:05 +0200)]
Merge branch 'develop' into form

9 years agoAdded functions ZakCgiTag::*_ht.
Andrea Zagli [Mon, 24 Aug 2015 18:57:26 +0000 (20:57 +0200)]
Added functions ZakCgiTag::*_ht.

9 years agoForm: use of ZakCgiCommons.
Andrea Zagli [Mon, 24 Aug 2015 17:43:31 +0000 (19:43 +0200)]
Form: use of ZakCgiCommons.

9 years agoMerged develop branch.
Andrea Zagli [Mon, 24 Aug 2015 17:38:34 +0000 (19:38 +0200)]
Merged develop branch.

9 years agoMoved function ZakCgiTag::valist_to_ghashtable in ZakCgiCommons.
Andrea Zagli [Mon, 24 Aug 2015 17:36:28 +0000 (19:36 +0200)]
Moved function ZakCgiTag::valist_to_ghashtable in ZakCgiCommons.

9 years agoChanged private ZakCgiTag::valist_to_gptrarray in ::valist_to_ghashtable.
Andrea Zagli [Mon, 24 Aug 2015 17:30:56 +0000 (19:30 +0200)]
Changed private ZakCgiTag::valist_to_gptrarray in ::valist_to_ghashtable.

9 years agoAdded functions Form::add_element and FormElement::get_id.
Andrea Zagli [Mon, 24 Aug 2015 17:10:03 +0000 (19:10 +0200)]
Added functions Form::add_element and FormElement::get_id.

9 years agoForm: saved element attributes as hash table.
Andrea Zagli [Mon, 24 Aug 2015 16:59:44 +0000 (18:59 +0200)]
Form: saved element attributes as hash table.

9 years agoAdded FormElementText.
Andrea Zagli [Sun, 2 Aug 2015 09:09:12 +0000 (11:09 +0200)]
Added FormElementText.

9 years agoStarted form implementation.
Andrea Zagli [Sun, 2 Aug 2015 08:00:18 +0000 (10:00 +0200)]
Started form implementation.

9 years agoDeprecated GHashTable (refs #962).
Andrea Zagli [Sun, 9 Aug 2015 09:21:59 +0000 (11:21 +0200)]
Deprecated GHashTable (refs #962).

9 years agoSome functions declared as deprecated. no_hash_table
Andrea Zagli [Sun, 9 Aug 2015 09:13:51 +0000 (11:13 +0200)]
Some functions declared as deprecated.

9 years agoAdded ZakCgiMain::get_stdin_field and ::stdin_foreach (refs #962).
Andrea Zagli [Sun, 9 Aug 2015 09:02:48 +0000 (11:02 +0200)]
Added ZakCgiMain::get_stdin_field and ::stdin_foreach (refs #962).

9 years agoAdded ZakCgiMain::get_parameter and ::parameters_foreach (refs #962).
Andrea Zagli [Sun, 9 Aug 2015 08:37:42 +0000 (10:37 +0200)]
Added ZakCgiMain::get_parameter and ::parameters_foreach (refs #962).

9 years agoAdded ZakCgiMain::get_cookie and :cookes_foreach (refs #962).
Andrea Zagli [Sun, 9 Aug 2015 06:55:52 +0000 (08:55 +0200)]
Added ZakCgiMain::get_cookie and :cookes_foreach (refs #962).

9 years agoZakCgiMain::get_cookies now returns GValue.
Andrea Zagli [Sun, 9 Aug 2015 06:35:37 +0000 (08:35 +0200)]
ZakCgiMain::get_cookies now returns GValue.

9 years agoAdded ZakCgiMain::get_env_field and ::env_foreach (refs #962).
Andrea Zagli [Sun, 9 Aug 2015 06:30:25 +0000 (08:30 +0200)]
Added ZakCgiMain::get_env_field and ::env_foreach (refs #962).

9 years agoZakCgiMain::get_env now returns GValue (closes #939).
Andrea Zagli [Sat, 8 Aug 2015 15:33:17 +0000 (17:33 +0200)]
ZakCgiMain::get_env now returns GValue (closes #939).

9 years agoZakCgiMain::get_parameters didn't return if already called (closes #960). v0.0.1
Andrea Zagli [Sat, 8 Aug 2015 07:33:28 +0000 (09:33 +0200)]
ZakCgiMain::get_parameters didn't return if already called (closes #960).

9 years agoSession: now expires after 5 minutes of inactivity or if from different ip (closes...
Andrea Zagli [Sat, 1 Aug 2015 15:43:42 +0000 (17:43 +0200)]
Session: now expires after 5 minutes of inactivity or if from different ip (closes #950).

9 years agoAdded ZakCgiSession::close.
Andrea Zagli [Sat, 1 Aug 2015 13:20:31 +0000 (15:20 +0200)]
Added ZakCgiSession::close.

Saved REMOTE_ADDR and timestamp on session creation (refs #950).

9 years agoAdded query string deconding (from libsoup) (closes #953).
Andrea Zagli [Sat, 1 Aug 2015 08:19:24 +0000 (10:19 +0200)]
Added query string deconding (from libsoup) (closes #953).

9 years agoBugfix in Session::get_header: ZakCgiMain::get_env returns string and not gvalue...
Andrea Zagli [Wed, 29 Jul 2015 14:40:34 +0000 (16:40 +0200)]
Bugfix in Session::get_header: ZakCgiMain::get_env returns string and not gvalue (closes #952).

9 years agoZakCgiMain::set_cookie setted up only name, value and expires (closes #951).
Andrea Zagli [Wed, 29 Jul 2015 14:31:30 +0000 (16:31 +0200)]
ZakCgiMain::set_cookie setted up only name, value and expires (closes #951).

9 years agoAdded a script to debug.
Andrea Zagli [Wed, 29 Jul 2015 14:13:14 +0000 (16:13 +0200)]
Added a script to debug.

9 years agoRedirect now works with relative urls (not with domain) (closes #942).
Andrea Zagli [Wed, 29 Jul 2015 14:12:41 +0000 (16:12 +0200)]
Redirect now works with relative urls (not with domain) (closes #942).

9 years agoSesssion: added path where to save session files (closes #944).
Andrea Zagli [Tue, 28 Jul 2015 19:57:56 +0000 (21:57 +0200)]
Sesssion: added path where to save session files (closes #944).

9 years agoSession cookie is now create with path base_uri or CONTEXT_PREFIX (closes #949).
Andrea Zagli [Tue, 28 Jul 2015 19:53:21 +0000 (21:53 +0200)]
Session cookie is now create with path base_uri or CONTEXT_PREFIX (closes #949).

9 years agoZakCgiTag: now id can be null.
Andrea Zagli [Mon, 27 Jul 2015 19:26:07 +0000 (21:26 +0200)]
ZakCgiTag: now id can be null.

Added a sample how to make a select element with options.

9 years agoAdded ZakCgiTag::submit (refs #945).
Andrea Zagli [Mon, 27 Jul 2015 19:18:38 +0000 (21:18 +0200)]
Added ZakCgiTag::submit (refs #945).

9 years agoAdded ZakCgiTag::text and ::file (refs #945).
Andrea Zagli [Mon, 27 Jul 2015 19:09:07 +0000 (21:09 +0200)]
Added ZakCgiTag::text and ::file (refs #945).

9 years agoAdded ZakCgiTag::img (refs #945).
Andrea Zagli [Mon, 27 Jul 2015 16:08:44 +0000 (18:08 +0200)]
Added ZakCgiTag::img (refs #945).

9 years agoAdded ZakCgiTag::tag (refs #945).
Andrea Zagli [Mon, 27 Jul 2015 16:04:32 +0000 (18:04 +0200)]
Added ZakCgiTag::tag (refs #945).

9 years agoAdded function ZakCgiMain::is_request_method.
Andrea Zagli [Sun, 26 Jul 2015 09:20:51 +0000 (11:20 +0200)]
Added function ZakCgiMain::is_request_method.

9 years agoAdded functions ZakCgiMain::isGet and ::isPost (closes #946).
Andrea Zagli [Sun, 26 Jul 2015 09:15:57 +0000 (11:15 +0200)]
Added functions ZakCgiMain::isGet and ::isPost (closes #946).

9 years agoZakCgi::parse_stdin now supports variables with multiple values (closes #943).
Andrea Zagli [Sun, 26 Jul 2015 09:03:08 +0000 (11:03 +0200)]
ZakCgi::parse_stdin now supports variables with multiple values (closes #943).

9 years agoAdded struct ZakCgiFile for file upload.
Andrea Zagli [Sun, 26 Jul 2015 06:21:50 +0000 (08:21 +0200)]
Added struct ZakCgiFile for file upload.