ViewVC Help
View Directory | Revision Log | View Changeset | Root Listing
root/publicrep/winix/trunk
Sticky Revision:
Sort logs by:
Revision 1223 - Directory Listing
Modified Thu Sep 26 18:25:21 2019 UTC (6 months, 1 week ago) by tomek
Makefile.dep


Revision 1219 - Directory Listing
Modified Wed Sep 25 16:25:44 2019 UTC (6 months, 1 week ago) by tomek
Makefile deps


Revision 1218 - Directory Listing
Modified Wed Sep 25 16:25:20 2019 UTC (6 months, 1 week ago) by tomek
fixed: FileLog::get_local_date we need to synchronize when using time_zones pointer
       (FileLog::get_local_date is used by Log::PrintDate() and Log of course can be used from different threads)


Revision 1199 - Directory Listing
Modified Tue Aug 20 12:24:22 2019 UTC (7 months, 2 weeks ago) by tomek
Makefiles deps


Revision 1183 - Directory Listing
Modified Mon Mar 25 00:51:51 2019 UTC (12 months, 2 weeks ago) by tomek
changed: if there is no body we do not parse application/json to space


Revision 1182 - Directory Listing
Modified Tue Mar 19 18:08:09 2019 UTC (12 months, 3 weeks ago) by tomek
fixed: permissions to symlinks and directories with redirect flag were incorrectly checked
       (there was no session set and the request was treated the same as from a not logged user)
fixed: in BaseThread there was used 'log' in the main thread (this logger is only for the other thread)
added: in BaseThread we have a main_log now - logger which puts to the main log buffer from the main thread



Revision 1180 - Directory Listing
Modified Thu Mar 14 13:46:40 2019 UTC (12 months, 3 weeks ago) by tomek
seo plugin: added calling WINIX_FILE_CHANGED


Revision 1179 - Directory Listing
Modified Thu Mar 14 13:33:40 2019 UTC (12 months, 3 weeks ago) by tomek
added: a new plugin: seo
new winix function: "seo", it allowes to edit subject, description and keywords for a page
description and keywords are stored in meta


Revision 1178 - Directory Listing
Modified Thu Mar 14 13:31:35 2019 UTC (12 months, 3 weeks ago) by tomek
changed: templates/item.cpp to use last_item instead of item


Revision 1176 - Directory Listing
Modified Thu Mar 7 18:02:52 2019 UTC (13 months ago) by tomek
Makefile.dep


Revision 1172 - Directory Listing
Modified Wed Mar 6 18:19:29 2019 UTC (13 months ago) by tomek
Makefile.dep


Revision 1171 - Directory Listing
Modified Wed Mar 6 11:53:28 2019 UTC (13 months ago) by tomek
merge from branch 0.7.x:
- initial support for morm
- added: WinixBase, WinixModel, WinixSystem, WinixRequest
- logger moved to pikotools



Revision 1143 - Directory Listing
Modified Thu Nov 15 17:01:40 2018 UTC (16 months, 3 weeks ago) by tomek
updated: html files for jquery-file-upload


Revision 1141 - Directory Listing
Modified Wed Nov 14 17:15:03 2018 UTC (16 months, 3 weeks ago) by tomek
changed Makefile.dep


Revision 1138 - Directory Listing
Modified Thu Nov 1 00:46:44 2018 UTC (17 months, 1 week ago) by tomek
using PT::IsSubString* methods from pikotools



Revision 1135 - Directory Listing
Modified Mon Oct 29 23:51:11 2018 UTC (17 months, 1 week ago) by tomek
removed some IsSubstring* functions
(they are in Pikotools in text/convert.h now)


Revision 1132 - Directory Listing
Modified Wed Oct 24 16:31:42 2018 UTC (17 months, 2 weeks ago) by tomek
added to HTMLFilter:
- possibility to remove html entities
  method: SkipEntity(bool)



Revision 1129 - Directory Listing
Modified Tue Oct 23 23:28:45 2018 UTC (17 months, 2 weeks ago) by tomek
added to HTMLFilter:
- now we can parse " and ' in html attributes
- we can skip html tags and commentaries, added method:
  void SkipAllTags(bool skip_all_tags, bool skip_commentaries);
- there is virtual method: virtual void ItemFound();
  which is called when a html tag is parsed



Revision 1128 - Directory Listing
Modified Tue Oct 23 21:00:36 2018 UTC (17 months, 2 weeks ago) by tomek
backend winix
dodanie opisu strefy czasowej dla Warszawy na 2018 rok



Revision 1123 - Directory Listing
Modified Thu Jul 5 11:15:42 2018 UTC (21 months ago) by tomek
Makefile.dep



Revision 1117 - Directory Listing
Modified Mon Jul 2 12:02:19 2018 UTC (21 months, 1 week ago) by tomek
fixed: a default winix function was selected before the mount point was calculated
       also a mount point should be cleared (set to an empty mount point) at the
       end of a request



Revision 1116 - Directory Listing
Modified Mon Jul 2 11:16:36 2018 UTC (21 months, 1 week ago) by tomek
added: antispam mechanism
each html form has a hidden form_id and counter_id
counter_id on the client side is generated through javascript code
on the server the form_id and counter_id is stored in the session
after sending the html form the server checks the form_id and counter_id



Revision 1115 - Directory Listing
Modified Wed Jun 20 15:00:02 2018 UTC (21 months, 2 weeks ago) by tomek
changed the algorithm how sessions work:
- if the IP is banned or there is no a winix function then we set a temporary session
- else
  if there is a session's cookie sent by the client then:
   - if the cookie is a correct session's cookie then we set the session from the cookie
   - or if the cookie is not a correct session's cookie (e.g. session expired) and the winix function
     requires a cookie then we set a new session
   - or if there is no cookie sent then if a winix function requires a session we create a new session

  if there was an error creating a new session or event counters reach a ban limit then a temporary session will be used




Revision 1114 - Directory Listing
Modified Tue Jun 19 13:52:08 2018 UTC (21 months, 2 weeks ago) by tomek
changed: now we are parsing directories and functions before checking a session
added:   need_session to FunctionBase (true if the functions requires a session)
         default: true
         


Revision 1112 - Directory Listing
Modified Fri May 25 17:22:12 2018 UTC (22 months, 2 weeks ago) by tomek
changed: using PT::ToLower instead of ToSmall
         using PT::ToUpper instead of ToCapital
         using PT::EqualNoCase instead of EqualNoCase
         


Revision 1109 - Directory Listing
Modified Thu May 10 17:21:39 2018 UTC (22 months, 4 weeks ago) by tomek
some work on integrating ckeditor4
added ezc blocks: ckeditor_old_browsers_support, ckeditor, ckeditor_small
defined in ckeditor.html


Revision 1108 - Directory Listing
Modified Wed May 9 22:48:14 2018 UTC (23 months ago) by tomek
added: start integrating CKEditor4



Revision 1105 - Directory Listing
Modified Tue May 1 11:22:55 2018 UTC (23 months, 1 week ago) by tomek
changed: config parameters: log_check_proxy_ip_header -> check_proxy_ip_header and log_proxy_ip_header -> proxy_ip_header
added: Request::ip_str (std::wstring) (string of the client's IP address)


Revision 1104 - Directory Listing
Modified Tue May 1 10:43:20 2018 UTC (23 months, 1 week ago) by tomek
added: config parameters:
       bool log_check_proxy_ip_header;
       // check whether there is a 'log_proxy_ip_header' header
       // and if so then log the IP address from it
       // default: false

       std::wstring log_proxy_ip_header;
       // proxy header representing the real IP address of a client
       // default: X-Real-IP




Revision 1102 - Directory Listing
Modified Thu Apr 26 18:56:31 2018 UTC (23 months, 1 week ago) by tomek
added: Request::post_in (PT::Space) for input when application/json content type is used
       from the client



Revision 1100 - Directory Listing
Modified Wed Apr 25 19:48:47 2018 UTC (23 months, 2 weeks ago) by tomek
added: Request::header_in (Space) http input headers (without cookies)
added: config parameter: log_env_http_variables (bool) (for logging http headers)
added: support for DELETE http method, added method FunctionBase::MakeDelete()
changed: winix version incremented to 0.6.6



Revision 1099 - Directory Listing
Modified Wed Apr 25 09:37:56 2018 UTC (23 months, 2 weeks ago) by tomek
added config parameter: db_postgresql_smaller_than_10
default false
if true then we are not using ROW() statements in sql queries



Revision 1096 - Directory Listing
Modified Mon Apr 23 14:29:58 2018 UTC (23 months, 2 weeks ago) by tomek
changed: Makefile (added Logger from pikotools)


Revision 1094 - Directory Listing
Modified Sun Apr 22 21:26:56 2018 UTC (23 months, 2 weeks ago) by tomek
added: std::wstring * Request::ParamValuep(const wchar_t * param_name)
       for taking a pointer (can be null) to a parameter value
added: bool System::IsSSLRequired(bool try_to_use_ssl)
       returns true if we should use ssl
       try_to_use_ssl is to be meant: config->use_ssl, config->use_ssl_static, config->use_ssl_common
       


Revision 1080 - Directory Listing
Modified Mon Apr 16 22:44:59 2018 UTC (23 months, 3 weeks ago) by tomek
added: a virtual dctor() for BaseThread class


Revision 1076 - Directory Listing
Modified Fri Mar 23 19:27:32 2018 UTC (2 years ago) by tomek
changed: makefile dep



Revision 1074 - Directory Listing
Modified Tue Mar 13 22:34:59 2018 UTC (2 years ago) by tomek
added: dependency on the morm project


Revision 1071 - Directory Listing
Modified Sat Jan 6 18:12:53 2018 UTC (2 years, 3 months ago) by tomek
updated to the new Pikotools API



Revision 1069 - Directory Listing
Modified Mon Jan 1 00:14:02 2018 UTC (2 years, 3 months ago) by tomek
added: "assume_connection_is_through_ssl" config parameter
       winix is testing an environment variable "HTTPS" for the value "on"
       to think that the connection is made via SSL
       you can set assume_connection_is_through_ssl to true for the winix
       to not testing any environment variables but just think the connection
       was made by https (useful when using proxy)
       default: false



Revision 1068 - Directory Listing
Modified Mon Jan 1 00:12:33 2018 UTC (2 years, 3 months ago) by tomek
fixed: in progresql 10 we have to use ROW() expression to construct
       a row where only one item is given


Revision 1040 - Directory Listing
Modified Wed Jul 13 13:13:56 2016 UTC (3 years, 8 months ago) by tomek
fixed: static files loaded to /var such as /var/ckeditor_winix.js were not properly returned
       (html filter was used but they are mostly javascript files)
added: new Item::ContentType: ct_other
       if an item has ct_other then the html filter is not used for the content




Revision 1039 - Directory Listing
Modified Mon Apr 4 16:02:36 2016 UTC (4 years ago) by tomek
changed: the way how raw template is set
         option for setting raw template from 'emacs' function has been removed
         now we have index_raw.html template and it can be set from 'template' function
removed: template index_fullscreen.html
changed: some work in miscspace (changed: space_list_tab, space_list_tab_value and space_list_tab_has_next)
fixed:   main index template could not be set through 'template' function




Revision 1036 - Directory Listing
Modified Wed Mar 23 15:20:42 2016 UTC (4 years ago) by tomek
changed: some refactoring in miscspace


Revision 1035 - Directory Listing
Modified Tue Mar 22 14:53:43 2016 UTC (4 years ago) by tomek
some refactoring in miscspace(.h|.cpp)
space() renamed to space_value() and takes a third parameter: escape (bool)
space_noescape() removed

space_tab() renamed to space_list_tab()
space_tab_value() renamed to space_list_tab_value()
space_tab_has_next() renamed to space_list_tab_has_next()




Revision 1031 - Directory Listing
Modified Fri Mar 18 08:56:19 2016 UTC (4 years ago) by tomek
fixed: some paths in Makefile.dep were not relative


Revision 1030 - Directory Listing
Modified Thu Mar 17 13:46:20 2016 UTC (4 years ago) by tomek
changed: winix project has been moved to 'winixd' subdirectory
         in Makefiles we are caltulating relative paths now (by using relative_path program)
	 


Revision 1028 - Directory Listing
Modified Thu Mar 17 08:26:02 2016 UTC (4 years ago) by tomek
moved winix directories to winixdsubdirectory



Revision 1027 - Directory Listing
Modified Thu Mar 17 08:24:59 2016 UTC (4 years ago) by tomek
moved winix directories to winixd subdirectory



Revision 1026 - Directory Listing
Modified Wed Mar 16 14:11:47 2016 UTC (4 years ago) by tomek
added: log info about what html template is used


Revision 1024 - Directory Listing
Modified Wed Feb 3 18:10:40 2016 UTC (4 years, 2 months ago) by tomek
added: some work in RegisterMail plugin
(added looking for files in a config directory)


Revision 1023 - Directory Listing
Modified Mon Feb 1 11:12:54 2016 UTC (4 years, 2 months ago) by tomek
changed: Makefile


Revision 1021 - Directory Listing
Modified Mon Feb 1 10:15:23 2016 UTC (4 years, 2 months ago) by tomek
fixed: in FunctionParser we do not treat '+' as a space
added: some work in MailRegister plugin
       (adding mails to db, showing mails)


Revision 1020 - Directory Listing
Modified Sun Jan 31 19:52:17 2016 UTC (4 years, 2 months ago) by tomek
start working on a new plugin: mailregister



Revision 1017 - Directory Listing
Modified Sun Nov 15 22:23:36 2015 UTC (4 years, 4 months ago) by tomek
updated to the new Ezc API
[ezc stream] has gone, now we have [ezc out] and [out]
the output streams have names now: it's a std::map, before we have a std::vector
and the streams are serialized to "out" space in json
Request::out_streams[] are split into Request::out_main_stream and Request::out_streams class


Revision 1013 - Directory Listing
Modified Tue Jun 16 02:37:07 2015 UTC (4 years, 9 months ago) by tomek
fixed: meta and admin meta information were not saved in memory (in system.dirs)
       when 'meta' winix function was used
added: to DbItemsQuery
       sort_index_asc and sort_index_date
       different sort type can be made by 'index' and by 'date'
		     


Revision 1012 - Directory Listing
Modified Sun Jun 14 18:24:08 2015 UTC (4 years, 9 months ago) by tomek
updated: to the new EZC api (ezc functions can be methods of some special objects)


Revision 1010 - Directory Listing
Modified Fri May 29 09:46:29 2015 UTC (4 years, 10 months ago) by tomek
fixed: checking for ssl redirect
       we should take into account cur.request->function->need_ssl too


Revision 1009 - Directory Listing
Modified Fri May 29 09:24:43 2015 UTC (4 years, 10 months ago) by tomek
fixed: in App::CheckIfNeedSSLredirect()
       winix made an incorrect redirect from/to SSL


Revision 1008 - Directory Listing
Modified Sat Apr 18 18:50:39 2015 UTC (4 years, 11 months ago) by tomek
changed: now 'emacs' winix function uses CodeMirror editor
         currently only htmlmixed mode is implemented

Revision 1007 - Directory Listing
Modified Thu Apr 16 14:43:52 2015 UTC (4 years, 11 months ago) by tomek
added: "server_mode" config option (std::wstring)
       you can assign any string to it such as "production" "dev"
       this value is not used by winix itself
       you can refer to it from [server_mode] and [server_mode_is] ezc functions




Revision 1006 - Directory Listing
Modified Fri Mar 20 11:00:22 2015 UTC (5 years ago) by tomek
fixed: rm winix function returned incorrectly formated json when using jquery upload (delete file button)


Revision 1005 - Directory Listing
Modified Sun Mar 8 23:22:05 2015 UTC (5 years, 1 month ago) by tomek
updated: to the new ezc api
added:   following ezc functions: ezc_and_not, ezc_any_not, ezc_or_not, ezc_one_not, is, is_not, is_empty, is_not_empty




Revision 1003 - Directory Listing
Modified Mon Mar 2 21:23:29 2015 UTC (5 years, 1 month ago) by tomek
changed: editors (emacs, ckeditor...) doesn't set an item's title now (if it was empty)


Revision 1002 - Directory Listing
Modified Sun Feb 22 10:23:52 2015 UTC (5 years, 1 month ago) by tomek
added: some ezc functions for displaying current date
       current_sec, current_min, current_hour, current_year, ...


Revision 1001 - Directory Listing
Modified Fri Jan 2 08:18:06 2015 UTC (5 years, 3 months ago) by tomek
changed: some refactoring in System: in IsMemberOfGroup method
changed: some log messages at startup (about non existing empty group for uploads directory)



Revision 1000 - Directory Listing
Modified Fri Jan 2 07:15:22 2015 UTC (5 years, 3 months ago) by tomek
fixed: compiling on Debian (it has no MSG_EOF flag)


Revision 999 - Directory Listing
Modified Fri Jan 2 07:14:15 2015 UTC (5 years, 3 months ago) by tomek
fixed: compiling od Debian 
       sockaddr_un has no sun_len member


Revision 998 - Directory Listing
Modified Fri Jan 2 07:01:08 2015 UTC (5 years, 3 months ago) by tomek
fixed: the way how winix is closing
       beforehand we made a http connection from the special thread
       now we just send a fastcgi packet to the unix socket

       the old way was broken because it requires the http server to work
       and if the operating system is going to shutdown/reboot then the http server
       can be first closed and consequently the winix cannot wake up from
       the main thread (and will be terminated SIGKILL by the os)
       


Revision 996 - Directory Listing
Modified Tue Nov 25 12:02:22 2014 UTC (5 years, 4 months ago) by tomek
changed: when a client doesn't send a session cookie we can instead of ban just use a temporary session
added: config option:
	// the way we behave when no_session_cookie_treshold limit is exceeded
 	// 0 - if a client doesn't send a session cookie again then use a temporary session
 	//     (other sessions from this IP address are not affected)
 	// 1 - add this IP address to ban list and create a temporary session
 	//     (this will block other sessions from this IP address too)
 	// default: 0
 	int no_session_cookie_ban_mode;



Revision 995 - Directory Listing
Modified Mon Nov 24 20:22:30 2014 UTC (5 years, 4 months ago) by tomek
added:   possibility to ban if a session cookie is incorrect (when we are using encoded cookies)
added:   possibility to ban if a client tries to hijack the session cookie
added:   possibility to ban if a client did not send a session cookie
renamed: ezc functions:
         login_cannot_login -> ipban_is_login_allowed_from_this_ip  (and the return value was changed)
         login_when_available_login -> ipban_current_ip_expires_time
added: config options:
       // after how many broken encoded cookie we should ban the current IP
       // default: 2 (value in the range <0 - 65535>)
       size_t broken_encoded_cookie_treshold;

       // after how many incorrect session identifiers (or session indices) we should ban the current IP
       // do not set this value too low, as people connecting from the same IP address (from behind a NAT)
       // would be banned if they have an old session cookie remembered in the browser
       // default: 128 (value in the range <0 - 65535>)
       size_t session_hijacking_treshold;

       // after how many times a client will be banned if it did not send a session cookie
       // default: 1000 (value in the range <0 - 65535>)
       size_t no_session_cookie_treshold;







Revision 994 - Directory Listing
Modified Sat Nov 22 15:30:56 2014 UTC (5 years, 4 months ago) by tomek
added: possibility to encode the session cookie (added files core/sessionidmanager.h and core/sessionidmanager.cpp)
added: config options:
       // whether or not we should encode the session cookie
       // (we have a special algorithm)
       // default: false
       bool session_cookie_encode;

       // if session_cookie_encode is true then you should provide
       // a file where AES keys will be stored
       std::wstring session_keys_file;

       // each session has an index -- an unsigned int value
       // this value is sent in the cookie string (is encoded)
       // and is incremented when session_index_time_increment time is passed since the last incrementing
       // if a client sent the cookie back the difference between
       // current index and the index in the cookie should be less than or equal to session_allow_index_difference
       // default: 8
       size_t session_allow_index_difference;

       // the time which should pass after the session index is incremented
       // default: 30
       // (session_allow_index_difference + 1) * session_index_time_increment should be less than a time
       // load of a page and all elements on it such as images (of course it depends on client's download too)
       time_t session_index_time_increment;

       // time in seconds after a new AES key pair should be generated
       // we have 256 pairs of keys so this time multiplied by 256 should not be less than
       // the max time of a session (session_remember_max_idle),
       // by default: 256 * 2 days = 512 days = 1.4 year > 3 months (session_remember_max_idle)
       // default: 172800 = 2 days (max: 2678400 = 1 month, min: 10)
       size_t session_key_renew_time;

changed: when printing the time of a request we print only two non-zero digits





Revision 993 - Directory Listing
Modified Wed Nov 12 04:14:16 2014 UTC (5 years, 4 months ago) by tomek
define AR macro in the main Makefile
this is for pikotools and tito libraries


Revision 990 - Directory Listing
Modified Thu Nov 6 21:17:41 2014 UTC (5 years, 5 months ago) by tomek
added: to HtmlTextStream: Escape(bool) method
       now the output html streams can be turn into no-escaping mode
       default true (set when a request is clearing)



Revision 989 - Directory Listing
Modified Sun Nov 2 17:47:34 2014 UTC (5 years, 5 months ago) by tomek
updated: to the new Ezc API
         removed statements: [if-index ...] [is ...] [is-no ...]
added:   generic ezc functions:
         and, any (the same as and), or, one (the same as or), not, cmp, trim
         to_lower, to_upper, index
changed: in misc:
         added treat_new_line_as_white flag to IsWhite() SkipWhite() and TrimWhite()
         TrimWhite(), TrimFirst(), TrimLast(), Trim() are using only wide characters now
         (they were templates before)
         added: IsInt(), IsSize(), IsFloat()
changed: version to 0.6.4





Revision 984 - Directory Listing
Modified Sat Nov 1 17:05:20 2014 UTC (5 years, 5 months ago) by tomek
removed: svn:executable attribute from files


Revision 983 - Directory Listing
Modified Tue Oct 28 19:14:46 2014 UTC (5 years, 5 months ago) by tomek
updated: to the new Ezc API


Revision 980 - Directory Listing
Modified Tue Oct 21 07:27:21 2014 UTC (5 years, 5 months ago) by tomek
fixed: PatternCacher incorrectly rebuilt the cache
       some new Ezc::Pattern objects were inserted
       the storage container is std::map<long,...>
       but we traverse it as a std::vector e.g.:
       for(size_t i=0 ; i<pattern_tab.size() ; ++i)
           RebuildCache(pattern_tab[i].pattern);
       so eventually new patterns were added to the map
       (operator [])



Revision 978 - Directory Listing
Modified Sun Oct 19 21:20:09 2014 UTC (5 years, 5 months ago) by tomek
added:  two options to the config:
        ezc_error_prefix (string)
        ezc_error_postfix (string)
        // prefix and postfix used when there is an error in Ezc patterns
        // default:
        // prefix:  "<!-- "
        // postfix: " -->"
added:  Ezc::Blocks to templates
added:  although patterns have pointers to functions and blocks cached
        the Ezc::Generator should use SetFunctions() and SetBlocks() method
        in order to correctly recognize variables (aliases)



Revision 974 - Directory Listing
Modified Sat Oct 18 18:12:04 2014 UTC (5 years, 5 months ago) by tomek
updated: to the new Ezc API


Revision 965 - Directory Listing
Modified Thu Oct 9 20:44:56 2014 UTC (5 years, 6 months ago) by tomek
changed: now we do not use std::string and char* in the Winix API
         everywhere we are using std::wstring and wchar_t*
         (std::string and char* is used only locally in some places
         especially when creating a path to OS file system etc.)
added:   to the special thread when winix closes:
         a write function for curl: FetchPageOnExitCurlCallback()
         without this function the curl library will print
         the page's content to the standart output
changed: TextStream<> class from core can make
         UTF8<->wide strings conversions
removed: from config: utf8 option
         now winix expects UTF8 from the user's input (html forms, url-es)
         and outputs strings in the UTF8 format



Revision 963 - Directory Listing
Modified Sat Oct 4 18:04:03 2014 UTC (5 years, 6 months ago) by tomek
setting a Winix Licence: 2 Clause BSD Licence
changed: version to 0.6.2


Revision 961 - Directory Listing
Modified Sun Sep 28 17:30:05 2014 UTC (5 years, 6 months ago) by tomek
fixed: winix incorrectly used config options: upload_dirs_chmod and upload_files_chmod
added: to config: upload_group
       a group name for newly uploaded files (and created necessary directories in the file system)



Revision 959 - Directory Listing
Modified Mon Sep 22 23:54:24 2014 UTC (5 years, 6 months ago) by tomek
added: htmltextstream escapes more characters now:
          added characters:
          "  -> &#quot;
          '  -> &#39; (&apos; but IE8 has a problem with &apos;)
          10 -> &#10;
          13 -> &#13;
added: two ezc filters:
       fil_html_quote
          "  -> &#quot;
          '  -> &#39; (&apos; but IE8 has a problem with &apos;)
       fil_html_newline
          10 -> &#10;
          13 -> &#13;
changed: fun_subject.html uses <div class="winix_input_a"> now




Revision 958 - Directory Listing
Modified Wed Aug 6 20:14:10 2014 UTC (5 years, 8 months ago) by tomek
changed: plugin jQuery File Upload has been updated to version 9.7.0
         (changed 'upload' and 'rm' winix functions)


Revision 957 - Directory Listing
Modified Mon Aug 4 21:11:14 2014 UTC (5 years, 8 months ago) by tomek
added: possibility to save a pid file
       new config option: pid_file (a full path to a pid file)


Revision 956 - Directory Listing
Modified Sun Aug 3 18:33:07 2014 UTC (5 years, 8 months ago) by tomek
fixed: item content should not be escaped in 'raw' mode
       (it was not escaped only when execute bits were set)


Revision 955 - Directory Listing
Modified Wed Jun 18 23:18:28 2014 UTC (5 years, 9 months ago) by tomek
added: to htmlfilter: the filter is able to recognize a special tag, default called: <nofilter>
       content between <nofilter>...</nofilter> will not be filtered


Revision 954 - Directory Listing
Modified Sat Jun 7 11:20:44 2014 UTC (5 years, 10 months ago) by tomek
added: flag has_pass to User structure
       if false that means the user has not set a password yet 
       (this can be used by a plugins to create a new account without a password set)
       in order to login the user first has to set a new password
       (this can be done from a some kind of activation link send via email etc)
       


Revision 953 - Directory Listing
Modified Fri Feb 14 11:20:22 2014 UTC (6 years, 1 month ago) by tomek
fixed: in Synchro: we should have a table (map) of reference counters 
       each one for each thread
fixed: on Linux: pthread mutexes by default behaves differently than on FreeBSD
       we have to set PTHREAD_MUTEX_ERRORCHECK attribute 
       when creating a mutex
       


Revision 952 - Directory Listing
Modified Wed Feb 12 22:32:06 2014 UTC (6 years, 1 month ago) by tomek
added: some debug logs to export plugin



Revision 951 - Directory Listing
Modified Wed Feb 12 20:49:50 2014 UTC (6 years, 1 month ago) by tomek
fixed: in Makefile: 'cp' in Linux behaves differently


Revision 950 - Directory Listing
Modified Wed Feb 12 17:21:42 2014 UTC (6 years, 1 month ago) by tomek
fixed: compiling on Debian with GCC 4.8


Revision 948 - Directory Listing
Modified Wed Feb 12 16:30:49 2014 UTC (6 years, 1 month ago) by tomek
added: namespace Winix over all *.h/*.cpp files


Revision 947 - Directory Listing
Modified Tue Feb 11 21:00:32 2014 UTC (6 years, 1 month ago) by tomek
changed: now we use curl to fetch a page from the special thread when winix quits
         (before we were using BSD's fetch)
fixed:   we didn't use FCGX_Finish_r() on the request made from the special thread
         so the thread hangs (now we can use pthread_join correctly from the main thread)


Revision 946 - Directory Listing
Modified Mon Dec 23 03:29:33 2013 UTC (6 years, 3 months ago) by tomek
changed: in ClearOutputStreams() referencing 'config' only if not null



Revision 945 - Directory Listing
Modified Thu Dec 19 17:19:47 2013 UTC (6 years, 3 months ago) by tomek
fixed: winix incorrectly sent the binary stream 
       headers and cookies were not sent
       (instead of headers the content was sent, so the client's browser was unable to open it correctly)
added: standard http headers are added by winix only if there are not such headers already
       e.g. if a plugin adds "Content-Type" header then winix will not overwrite it 
       (headers names are case sensitive)

Revision 944 - Directory Listing
Modified Wed Dec 18 12:13:28 2013 UTC (6 years, 3 months ago) by tomek
added: -O0 -g for CXXFLAGS for temporarily debugging


Revision 943 - Directory Listing
Modified Mon Dec 9 16:03:45 2013 UTC (6 years, 4 months ago) by tomek
fixed: problem with building
       added #include <utility> to App (for std::move)


Revision 942 - Directory Listing
Modified Wed Dec 4 01:21:57 2013 UTC (6 years, 4 months ago) by tomek
added:   generating Content-Length header when text answer is sent to the client
added:   now we are able to use the html filter for the whole out_streams (when ajax is used the output is filtered too)
         splitted FilterCompressSend() function -- first we are making the filtering
         (after filtering we know the size of the content to send)
added:   to Compress:
         Compressing(const char * source, size_t source_len, BinaryPage & out_stream, int encoding);
changed: some refactoring in App



Revision 941 - Directory Listing
Modified Tue Dec 3 12:33:41 2013 UTC (6 years, 4 months ago) by tomek
fixed: security vulnerability in 'ln' winix function
       a user could create a hardlink to any file and the new link 
       had user_id, group_id and permissions the same as for new generated files,
       this allowes to overwrite any existing file in the filesystem,
       now user_id, group_id, permissions are the same as from the oryginal file


Revision 940 - Directory Listing
Modified Fri Nov 29 21:39:23 2013 UTC (6 years, 4 months ago) by tomek
removed: Request::debug all stream used for debugging info
         some environment variables were put there
removed: config variable: debug_info
removed: Request::role (responder, authorizer)
         now we have only one role: responder
added:   new config variables:
         log_env_variables (default false) - when true then fastcgi environment
         variables are logged to the log file
         log_http_answer_headers (default false) - when true all http headers
         created by winix ale logged (note that the www server can add/adjust other headers)
changed: some refactoring in Request struct
changed: CookieTab to std::map<std::wstring, std::wstring>
         beforehand std::string was used
         (changed CookieParser as well)
changed: Request::SetCookie() to AddCookie()
added:   Request::out_headers (a PT::Space struct)
         http headers (without cookies) send back to the client
added:   Request::out_cookies (a PT::Space struct)
         cookies send to the client
changed: App class to use Request::out_headers and Request::out_cookies
         some SendHeaders...() methods were renamed to PrepareHeaders...()
         and they create output in Request::out_headers first (and out_cookies)
         and later it is sent
added:   two plugin messages:
         // http headers (without cookies) were created and are ready to send
         // here you can make some changes to them
         // in p1 you have a pointer to the PT::Space (Request::out_headers)
         #define WINIX_PREPARE_TO_SEND_HTTP_HEADERS		31070

         // http cookies were created and are ready to send
         // here you can make some changes to them
         // in p1 you have a pointer to the PT::Space (Request::out_cookies)
         #define WINIX_PREPARE_TO_SEND_HTTP_COOKIES		31080
added:   config variable:
         // how many output streams do we have in Request class
         // default: 16 (64 maximum)
         size_t ezc_out_streams_size;



Revision 939 - Directory Listing
Modified Mon Nov 25 23:44:01 2013 UTC (6 years, 4 months ago) by tomek
removed: -O0 -g from production Makefile



Revision 938 - Directory Listing
Modified Mon Nov 25 23:37:52 2013 UTC (6 years, 4 months ago) by tomek
added: -O0 -g to the production Makefile



Revision 937 - Directory Listing
Modified Thu Nov 14 20:59:23 2013 UTC (6 years, 4 months ago) by tomek
removed: ezn patterns for rawcontent and ajaxcontent:
         index_rawcontent.html, index_ajaxcontent.html
         now we have out_streams in Request and some special
         keyword in ezc templates for sending content to the 
         specified streams
changed: the way how winix answers to the client's browsers:
         info from Request class:
	                                   winix answer send to the client's browser
	                                                       |
	                                                       |
	                                          depending on send_bin_stream
	                               -------------------------------------------------
	                               |                                               |
	                          text answer                                     binary answer
	                               |                                               |
	                   depending on return_json                          sending out_bin_stream
	             ------------------------------------
	             |                                  |
	       normal request                     ajax request
	             |                                  |
	   sending out_streams[0]           depending on return_info_only
	                              ------------------------------------------------------
	                              |                                                    |
	                 generating JSON object from:                   generating JSON object only from info
	                 out_streams and info, e.g.:                    e.g.:
	                 {                                              { info object serialized here }
	                  "stream_1": "some html content",
	                  "stream_2": "some other html content",
	                  "info": { info object serialized here }
	                 }
	                 note that out_streams[0] is not sent
	                 in JSON answers
	
	



Revision 933 - Directory Listing
Modified Tue Oct 15 21:57:51 2013 UTC (6 years, 5 months ago) by tomek
changed: now we are using the C++ 11 language (-std=c++11) and we are using
         the clang compiler by default
changed: Makefile files have been a little cleaned
         the main Makefile now will not compile winix and winix.so if there
         were not any changes to source files (it's faster)
         (added Makefile.dep in the global directory with list of all source/header files)
changed: winix version to 0.5.5



Revision 932 - Directory Listing
Modified Thu Oct 10 11:59:21 2013 UTC (6 years, 5 months ago) by tomek
fixed: compiling in the clang (new version of c++ std lib)
       (added some header files)
added: three messsages in ticket plugin:
       // send by showtickets winix function when tickets are loaded (and sorted)
       // in p1 you have a pointer to the ticket tab: std::vector<Ticket::Ticket> (include "ticket.h")
       // in p2 you have a pointer to the sort tab:   std::vector<Item*>
       // those tables don't have to be equal in size (in the case when there is no some tickets in the database)
       #define WINIX_PL_TICKET_TICKETS_LOADED                 4106
       
       // a new ticket has been added
       // in p1 you have a pointer to the Ticket::Ticket structure (include "ticket.h")
       // in p2 you have a pointer to the Item structure
       #define WINIX_PL_TICKET_ADDED_NEW                              4107
       
       // a ticket has been changed
       // in p1 you have a pointer to the Ticket::Ticket structure (include "ticket.h")
       // in p2 you have a pointer to the Item structure
       #define WINIX_PL_TICKET_CHANGED                                        4108

added: two ezc functions for tickets:
       ticket_does_param_id_have_value()
       tickets_tab_does_param_id_have_value()
       (they take two integer arguments -- testing whether a specified param_id has the given value)
changed: some more minor additions in tickets templates



Revision 931 - Directory Listing
Modified Mon Jul 8 14:42:14 2013 UTC (6 years, 9 months ago) by tomek
changed: in 'showtickets' winix function
         now tickets are sorted by the sort_index and then by date
changed: html in 'sort' winix function (added items' subjects to the item lists)


Revision 930 - Directory Listing
Modified Tue Jul 2 07:14:19 2013 UTC (6 years, 9 months ago) by tomek
changed: html for 'upload' winix function
         all static files (css/js) are downloaded from our server now


Revision 929 - Directory Listing
Modified Thu May 16 21:02:17 2013 UTC (6 years, 10 months ago) by tomek
fixed: in notify/notify.cpp: a correct locale id should be taken
       (we were not able to send: a mail with an activation link and 
        a mail with the reset password link when we didn't have a locale with id 0 loaded)


Revision 928 - Directory Listing
Modified Thu May 16 20:11:27 2013 UTC (6 years, 10 months ago) by tomek
changed: in passwd: a redirect make only if a password has been changed


Revision 927 - Directory Listing
Modified Thu May 16 20:08:07 2013 UTC (6 years, 10 months ago) by tomek
fixed: a passwd winix function should allow a non loged person to reset his password (permission fix)


Revision 926 - Directory Listing
Modified Thu May 16 19:26:44 2013 UTC (6 years, 10 months ago) by tomek
added:   winix function 'account'
         code for activating an account has been moved here from Pw
changed: the form for reseting a user's password has been moved
         to 'passwd' winix function (it was in Pw before)



Revision 925 - Directory Listing
Modified Tue May 14 08:37:22 2013 UTC (6 years, 10 months ago) by tomek
changed: in fun_gallery.html: added js code to get the proper image id from url


Revision 924 - Directory Listing
Modified Mon May 6 07:23:44 2013 UTC (6 years, 11 months ago) by tomek
added: to Rm function:
       bool Rm::RemoveFileOrSymlink(long item_id, bool check_access)
added: in ticket plugin: possibility to remove a file/image
       (not finished yet)



Revision 923 - Directory Listing
Modified Wed Apr 24 01:21:19 2013 UTC (6 years, 11 months ago) by tomek
added: some ezc function to ticket plugin:
       ticket_param_value_for_param_id
       tickets_tab_param_value_for_param_id
       tickets_tab_conf_tab_param_name
       tickets_tab_conf_tab_file_tab
       tickets_tab_conf_tab_file_tab_index
       tickets_tab_conf_tab_file_tab_path
       tickets_tab_conf_tab_file_tab_itemid
       tickets_tab_conf_tab_file_tab_meta



Revision 922 - Directory Listing
Modified Wed Apr 17 00:37:39 2013 UTC (6 years, 11 months ago) by tomek
changed: plugin 'export': export winix function
         the checkbox is now selected when we want to export static files too 
         (default it is not checked)
         


Revision 921 - Directory Listing
Modified Tue Apr 16 09:51:36 2013 UTC (6 years, 11 months ago) by tomek
fixed: imgcrop winix function should load only images
       (when called in a directory)
added: to reload winix function:
       reloading (clearing) the cache from 'menu' plugin
added: to 'menu' plugin
       possibility to read 'meta' information from files 
       third argument 'withmeta' to menu_dir_tab ezc function
       e.g. [for menu_dir_tab "/directory" "..." "withmeta"]...[end]
       and some ezc functions to retrieve the meta values



Revision 920 - Directory Listing
Modified Tue Apr 2 22:24:30 2013 UTC (7 years ago) by tomek
added: to config: HasValue() methods
       for checking if a value exists (useful for checking lists -- they don't have to be copied out)



Revision 919 - Directory Listing
Modified Fri Mar 29 22:03:28 2013 UTC (7 years ago) by tomek
added: a new winix function: imgcrop
       for cropping images (and thumbnails)
       www.domain.com/dir/file.jpg/imgcrop  -- crop an image
       www.domain.com/dir/file.jpg/imgcrop/thumb  -- crop an image's thumbnail
       www.domain.com/dir/file.jpg/imgcrop/newthumb  -- crop and create a new thumbnail (from an original image)
       www.domain.com/dir/imgcrop -- show images' list with above options
added: to Image class: some methods for cropping



Revision 918 - Directory Listing
Modified Tue Mar 26 00:04:01 2013 UTC (7 years ago) by tomek
changed: when there is reqtype:json parameter and there is not set request.ajax_serializer
         then we are using a generic json serializer
changed: we are sending the application/json header when returning an json string
added:   to config: log_server_answer (default false)
         when true we put the whole string (server's answer) to the log file
added:   to Request: use_200_status_for_not_found_and_permission_denied
         if this is true then if the server http code would be 403 or 404
         then we return 200 OK (useful when using ajax)
changed: System::RedirectTo() methods take as the last parameter: use_reqtype
         if this is true (default) then reqtype:type parameter is automatically added to the redirecting path
         



Revision 917 - Directory Listing
Modified Tue Feb 26 11:49:22 2013 UTC (7 years, 1 month ago) by tomek
added: some ezc functions (item_tab_meta*)
added: some ezc functions (gallery_tab_meta*) to gallery plugin
added: to gallery plugin: a new gallery: Gallery version 1.2.9


Revision 916 - Directory Listing
Modified Fri Feb 1 21:14:56 2013 UTC (7 years, 2 months ago) by tomek
fixed: plugin 'group'
       Groups::ReindexGroups incorrectly read a field from a PT::Space (it used 'table' object directly)
       but the value was in 'table_single' 
       now we are using GetValue method


Revision 915 - Directory Listing
Modified Sat Jan 19 16:31:15 2013 UTC (7 years, 2 months ago) by tomek
updated: paths in Makefile (prog subdirectory)


Revision 913 - Directory Listing
Modified Sat Jan 19 10:10:17 2013 UTC (7 years, 2 months ago) by tomek
changed: added 'logsave' when we are waiting for the database to be ready


Revision 912 - Directory Listing
Modified Sun Dec 30 15:33:08 2012 UTC (7 years, 3 months ago) by tomek
fixed: in ticket plugin: editticket incorrectly used ticket_info->Clear() method
       it was called after some objects were set consequently we were not allowed to edit a ticket


Revision 911 - Directory Listing
Modified Wed Dec 26 23:08:57 2012 UTC (7 years, 3 months ago) by tomek
added: put the rebus answer into the log (when user has entered an incorrect answer)


Revision 910 - Directory Listing
Modified Sat Nov 17 01:10:00 2012 UTC (7 years, 4 months ago) by tomek
changed: Makefile dep


Revision 909 - Directory Listing
Modified Mon Nov 5 23:13:52 2012 UTC (7 years, 5 months ago) by tomek
changed: in editticket: closing ticket is better to do via POST request
added:   a new message sent by editticket when closing a ticket:
         #define WINIX_PL_TICKET_CLOSED                                 4105
         // a ticket has been closed (closed button pressed)
         // in p1 you have a pointer to the Item struct
         // in p2 you have a pointer to the Ticket struct




Revision 908 - Directory Listing
Modified Sun Nov 4 22:39:02 2012 UTC (7 years, 5 months ago) by tomek
changed: ticket plugin: redirect type in editticket winix function (when there is 'close' parameter)
fixed:   prototype doesn't work with jquery (in ticket winix function)
         (prototype was loaded for lightbox)


Revision 907 - Directory Listing
Modified Sun Nov 4 21:01:02 2012 UTC (7 years, 5 months ago) by tomek
added: to Item struct: ameta (PT::Space)
       admin meta information
added: option "a" to meta winix function
       editing admin meta information
changed: now if you don't have write access to an item
         you can't see the meta information
         previous if you had read access you could have seen them
added: in plugin ticket and thread
       support for 'closing' (ticket, thread)
       (this is only logic, we need some html yet)
added: some ezc function for getting meta/admin meta information
       (for the current item and the last directory)



Revision 906 - Directory Listing
Modified Thu Nov 1 17:56:00 2012 UTC (7 years, 5 months ago) by tomek
changed: html (slog.html)


Revision 905 - Directory Listing
Modified Sat Oct 27 11:17:52 2012 UTC (7 years, 5 months ago) by tomek
changed: added 'check_abuse' parameter to Login::LoginUser
         bool Login::LoginUser(const std::wstring & login, const std::wstring & password, bool remember_me,
                               bool use_ses_log, bool check_abuse)
         default 'false' -- it test the time between GET and POST and the rebus (if exists)


Revision 904 - Directory Listing
Modified Sat Oct 27 10:14:07 2012 UTC (7 years, 5 months ago) by tomek
added:   locales to fun_ipban.html
changed: cosmetic changes in IPBanContainer



Revision 903 - Directory Listing
Modified Sat Oct 27 09:03:49 2012 UTC (7 years, 5 months ago) by tomek
added: to 'ipban' winix function:
       possibility to remove a ban (or all bans)
added: to SessionManager: sorting of the ban list (in the second thread)


Revision 902 - Directory Listing
Modified Sat Oct 27 07:44:26 2012 UTC (7 years, 5 months ago) by tomek
added: IP ban mechanism (not finished yet -- we need a winix function to remove a ban)
       now after some incorrent login attempts your IP can be banned or blocked
       (see new config variables)

Revision 901 - Directory Listing
Modified Wed Oct 17 19:52:55 2012 UTC (7 years, 5 months ago) by tomek
added: plugin message: WINIX_CHECK_PLUGIN_ACCESS
       this message is sent before calling MakePost() or MakeGet()
       if you return false (which is default) you can prevent the access
       to the resource
       


Revision 900 - Directory Listing
Modified Wed Oct 17 06:48:48 2012 UTC (7 years, 5 months ago) by tomek
updated: html (login and passwd)


Revision 898 - Directory Listing
Modified Wed Oct 17 06:00:00 2012 UTC (7 years, 5 months ago) by tomek
updated: html/css (added div.winix to templates)
         now we have winix.css in common/winix directory
         it is automatically loaded by index_head_functions_add.html

Revision 895 - Directory Listing
Modified Wed Sep 26 07:18:32 2012 UTC (7 years, 6 months ago) by tomek
added: to misc:
       bool IsWhite(const wchar_t * str, bool treat_new_line_as_white)
       bool IsWhite(const std::wstring & str, bool treat_new_line_as_white)
       return true if the whole string is white (or an empty string)
added: global variable in admin environment for an user: "display_name"
       if defined it is used to display an user's name instead of its login
       it is used in: void print_user_name(Info & i, User & user);
       (tickets, threads, cat function etc)




Revision 894 - Directory Listing
Modified Mon Sep 24 20:31:01 2012 UTC (7 years, 6 months ago) by tomek
fixed: the way we check whether we need make the redirect from SSL to non SSL (or vice versa)
       beforehand we didn't take into accout default winix functions


Revision 893 - Directory Listing
Modified Mon Sep 24 18:59:08 2012 UTC (7 years, 6 months ago) by tomek
fixed: we should check cur.request->function is not null (in5D app when testing ssl/nossl redirect)


Revision 892 - Directory Listing
Modified Mon Sep 24 18:38:35 2012 UTC (7 years, 6 months ago) by tomek
added: need_ssl flag to FunctionBase
       // try to use SSL
       // if in the config 'use_ssl' is true and 'use_ssl_only_for_logged_users' is true
       // then ssl is used only for logged users but sometimes there is a need to use
       // SSL even if noone is logged (for example for such functions like 'login' or 'adduser')
       // default: false
       // (this option is ignored if 'use_ssl' in the config is false)
       bool need_ssl;



Revision 891 - Directory Listing
Modified Wed Sep 19 23:17:10 2012 UTC (7 years, 6 months ago) by tomek
changed: in Crypt:
	 renamed Hash() -> HashBin()
         HashBin() is using a binary output from OpenSSL now
	 previously we are using the hex output and with the new OpenSSL version
         the text has additional characters and causes some problems
	 added: HashHex() - it is using the HashBin() and then converts the output
	 to hex format itself
	 


Revision 890 - Directory Listing
Modified Sat Sep 15 23:34:25 2012 UTC (7 years, 6 months ago) by tomek
added: to ticket plugin:
some messges:
// 
#define WINIX_PL_TICKET_PREPARE_TO_ADD_TICKET  4103

// a next ticket will be displayed
// in p1 you have a pointer to the Item struct
// this is call from tickets_tab ezc function
#define WINIX_PL_TICKET_TICKETS_TAB_IS_NEXT            4104

methods:
void ticket_meta_value(Info & i)
void tickets_tab_meta_value(Info & i)





Revision 889 - Directory Listing
Modified Fri Sep 14 23:48:39 2012 UTC (7 years, 6 months ago) by tomek
added: to plugin ticket: message WINIX_PL_TICKET_LOAD_TICKETS
       someone can send this message with a directory id
       and tickets will be loaded from the directory
       (and to display them you can use ezc functions)


Revision 888 - Directory Listing
Modified Fri Sep 14 07:14:54 2012 UTC (7 years, 6 months ago) by tomek
added: to plugin thread: message WINIX_PL_THREAD_CAN_MAKE_REDIRECT
       (similar as for ticket)


Revision 887 - Directory Listing
Modified Thu Sep 13 23:12:48 2012 UTC (7 years, 6 months ago) by tomek
added:   some methods in Dystem::Dirs (takes wchar_t * as an argument, now only std::wstring were)
changed: in plugin ticket: added message: WINIX_PL_TICKET_CAN_MAKE_REDIRECT
         it is sent at the end of POST request (editticket, createticket)
         if we can make a redirect (useful with AJAX)




Revision 886 - Directory Listing
Modified Tue Sep 11 23:46:00 2012 UTC (7 years, 6 months ago) by tomek
added: Lock class -- locking resources by using Synchro object
       the destructor automatically calls Unlock()


Revision 885 - Directory Listing
Modified Tue Sep 11 21:41:10 2012 UTC (7 years, 6 months ago) by tomek
added: new ezc filter: fil_new_line_to_br
added: PutChar() methods to HtmlTextFilter and TexTextFilter


Revision 884 - Directory Listing
Modified Tue Sep 11 05:19:45 2012 UTC (7 years, 6 months ago) by tomek
added: a new way: HEX format to saving/reading from PostgreSQL bytea columns
added: to Request:
       // binary page
       BinaryPage binary_page;

       // a compressed page ready to send to the client
       BinaryPage compressed_page;

       // if true then either page or ajaxpage will be sent to the client
       // if false then binary_page is sent
       // default: true
       bool use_text_page;

       BinaryPage is defined as (in requesttypes.h):
       typedef PT::TextStreamBase<char, 1, 4096> BinaryPage;

added: to Compress: now it can gets BinaryPage as arguments (input, output)
changed: winix version to: 0.5.0
added: in templates: TexTextStream class
       for taking input to the TeX typesetting system




Revision 882 - Directory Listing
Modified Thu Sep 6 17:50:14 2012 UTC (7 years, 7 months ago) by tomek
added: to config: log_time_zone_id (size_t) identifier
       this is the time zone identifier used in log messages


Revision 881 - Directory Listing
Modified Tue Sep 4 20:24:42 2012 UTC (7 years, 7 months ago) by tomek
added: 'subject' winix function is using WINIX_FILE_CHANGED message now (when changing a file's subject)
added: 'postredirect' global parameter (it can be a param or post value)
       you can use this parameter in a html POST form
       after processing the POST request winix will make a redirect to the value


Revision 879 - Directory Listing
Modified Sun Sep 2 01:27:41 2012 UTC (7 years, 7 months ago) by tomek
added: ezc functions:
       void dir_tab_subject(Info & i);
       void dir_tab_is_root(Info & i);
changed: in dir_tab_link:
         now it doesn't print the proto and base address - you should use [doc_base_url]



Revision 878 - Directory Listing
Modified Sun Aug 26 22:30:25 2012 UTC (7 years, 7 months ago) by tomek
added: ezc functions:
       void dir_is_no(Info & i)
       void dir_level_is(Info & i)
       void dir_last_url_is_no(Info & i)
       void item_no_is(Info & i)
       void item_url_is_no(Info & i)



Revision 877 - Directory Listing
Modified Sun Aug 26 19:53:47 2012 UTC (7 years, 7 months ago) by tomek
added: to Request options used by ezc generators:
       bool gen_trim_white;
       bool gen_skip_new_line;
       bool gen_use_special_chars;
added: new ezc filter: fil_csv_escape
       for escaping csv fields




Revision 876 - Directory Listing
Modified Sun Aug 19 14:25:43 2012 UTC (7 years, 7 months ago) by tomek
fixed: WINIX_RAW_POST_STRING should have a different id


Revision 875 - Directory Listing
Modified Sun Aug 19 14:24:24 2012 UTC (7 years, 7 months ago) by tomek
added: WINIX_RAW_POST_STRING plugin message
       this is the raw string sent in POST method (in p1 pointer there is a pointer to std::string object)


Revision 874 - Directory Listing
Modified Sun Aug 19 13:50:58 2012 UTC (7 years, 7 months ago) by tomek
added: a new plugin message: WINIX_POST_PARAMS
       raw POST parameters
       in p1 there is a pointer to std::string meaning a parameter's name
       in p2 there is a pointer to std::string value
       this is sent only from PostParser
       PostMultiParser (multipart/form-data html forms) doesn't send this messsage
       there is no a session set (session pointer is null)



Revision 873 - Directory Listing
Modified Wed Aug 15 19:33:20 2012 UTC (7 years, 7 months ago) by tomek
added: to DbBase: 
       bool EndTrans(bool everything_ok);


Revision 872 - Directory Listing
Modified Sun Aug 12 18:23:48 2012 UTC (7 years, 7 months ago) by tomek
fixed: when using Request::ajax_serializer then we should not use html filter
       (the filter can be used before we make the json answer -- not implemented yet)


Revision 871 - Directory Listing
Modified Wed Aug 8 16:04:48 2012 UTC (7 years, 8 months ago) by tomek
added: to Request:
       // used as a JSON output (when ajax_serializer is defined)
       // it will be serialized and have at least:
       // 'content' string - the whole html content
       // 'http_status' integer - http status code (e.g. 200)
       PT::Space ajax;
 
       // if not null then the request will have a JSON as an output
       PT::SpaceToJSON * ajax_serializer;



Revision 870 - Directory Listing
Modified Fri Aug 3 10:55:14 2012 UTC (7 years, 8 months ago) by tomek
added: export plugin
       the possibility to export only non static files in a directory


Revision 869 - Directory Listing
Modified Fri Aug 3 10:24:24 2012 UTC (7 years, 8 months ago) by tomek
fixed: export plugin
       I forgotten to add exporting a directory


Revision 868 - Directory Listing
Modified Fri Aug 3 09:39:25 2012 UTC (7 years, 8 months ago) by tomek
I have forgotten to add: html/fun_export.html


Revision 867 - Directory Listing
Modified Fri Aug 3 09:25:17 2012 UTC (7 years, 8 months ago) by tomek
added: 'export' winix function (export plugin)
       exporting an item or the whole directory


Revision 866 - Directory Listing
Modified Tue Jul 31 03:29:16 2012 UTC (7 years, 8 months ago) by tomek
added: to Log:
       void LogBinary(const char * blob, size_t blob_len);
       void LogBinary(const std::string & blob);
       int LogLevel();


Revision 865 - Directory Listing
Modified Wed Jul 25 10:28:41 2012 UTC (7 years, 8 months ago) by tomek
added: to Log:
       operator<<(const PT::TextStreamBase<>())


Revision 864 - Directory Listing
Modified Sun Jul 15 18:20:22 2012 UTC (7 years, 8 months ago) by tomek
changed: upload html


Revision 862 - Directory Listing
Modified Sun Jul 15 15:57:45 2012 UTC (7 years, 8 months ago) by tomek
changed: css


Revision 861 - Directory Listing
Modified Sun Jul 15 15:49:48 2012 UTC (7 years, 8 months ago) by tomek
updated: jquery upload plugin (upload winix function)


Revision 860 - Directory Listing
Modified Tue Jul 10 16:50:59 2012 UTC (7 years, 9 months ago) by tomek
added: to misc: UrlEncode which takes PT::TextStreamBase as an argument
added: to misc: QEncode which takes PT::TextStreamBase as an argument
added: to Locale: methods: IsKey, Get which takes PT::TextStreamBase as an argument



Revision 859 - Directory Listing
Modified Mon Jul 2 19:15:50 2012 UTC (7 years, 9 months ago) by tomek
added: some ezc functions in menu plugin

Revision 858 - Directory Listing
Modified Sat Jun 30 23:20:18 2012 UTC (7 years, 9 months ago) by tomek
changed: config.space is available public now


Revision 856 - Directory Listing
Modified Sat Jun 30 18:37:52 2012 UTC (7 years, 9 months ago) by tomek
fixed: when there is no option "locale_files" in the config
       the "en" should be loaded by default
added: LDFLAGS option to Makefiles
added: compilation with CLANG (some const objects should have been created with default cctor)



Revision 854 - Directory Listing
Modified Wed Jun 27 23:21:43 2012 UTC (7 years, 9 months ago) by tomek
rewritten: public interface in TemplatesFunctions::Locale
           added a default parameter bool try_default_too = true to some methods: Get(), IsKey()
           added more methods for accessing by an internal index


Revision 852 - Directory Listing
Modified Tue Jun 26 23:19:19 2012 UTC (7 years, 9 months ago) by tomek
added: winix functions: locale, timezone
changed: time zones -- now we have the daylight saving time
       different for each year (start, end)
added: config option: time_zone_id (size_t)
       time zone identifier for not logged users
       or for newly created accounts
       those identifiers you can see in etc/time_zones.conf file
       or by using timezone winix function with 'a' parameter (timezone/a) (!!IMPROVE ME NOT IMPLEMENTED YET)
       default: 34 (Coordinated Universal Time UTC+00:00)
added: config option: locale_default_id (size_t)
       locale for not logged users
       or for newly created accounts
added: config option: locale_max_id (size_t)
       a maximum value of a locale identifier
       default: 100 (maximum: 1000)
       each locale files should have its own identifier (in "winix_locale_id" field)
       from zero to this value
added: config option: time_zone_max_id (size_t)
       maximum value of a time zone identifier
       time zones with an id greater than this will be skipped
       default: 130 (maximum: 1000)
removed: config option: locale_default


Revision 850 - Directory Listing
Modified Fri Jun 22 23:41:12 2012 UTC (7 years, 9 months ago) by tomek
added: etc directory to Makefile install


Revision 849 - Directory Listing
Modified Fri Jun 22 23:34:33 2012 UTC (7 years, 9 months ago) by tomek
added: a new directory "etc"
       there'll be some generic config files for winix
added: a new file in etc directory: time_zones_file
       list of time zones (not finished yet -- daylight saving time is needed)
added: option to config: etc_dir
       a directory in which there are some config files
       used mainly when winix starts
       default: empty (means not for using)
added: option to config: time_zones_file
       a file in etc_dir with time zones info
       default: time_zones.conf
       this is a Space structure with all time zones
added: to system: TimeZones struct
       list of time zones read from etc/time_zones.conf


Revision 848 - Directory Listing
Modified Fri Jun 22 19:18:03 2012 UTC (7 years, 9 months ago) by tomek
added: time zone's names to locales

Revision 847 - Directory Listing
Modified Thu Jun 7 00:26:37 2012 UTC (7 years, 10 months ago) by tomek
changed: making a redirect from SSL connection to non SSL
         if either use_ssl in the config if false
         or if use_ssl_only_for_logged_users is true
         and a user is not logged
added:   base url redirect HTTP codes to the config
         // if current connection is without SSL and should be made through SSL
         // or if is via SSL and should be done in plain text
         // then we make a redirect
         // default: 303
         int use_ssl_redirect_code;

         // when the HOST_HTTP environment variable is not equal to 'base_url'
         // (the part 'http://' and the last slash is removed)
         // the server will redirect into base_url + 'REQUEST_URI'
         // it's useful when you want to redirect from 'mydomain.tld' into 'www.mydomain.tld' etc.
         // set this option to false if you have multiple subdomains
         // default: false
         bool base_url_redirect;



Revision 846 - Directory Listing
Modified Tue Jun 5 21:31:12 2012 UTC (7 years, 10 months ago) by tomek
added: new function for ezc templating:
       void space_value_noescape(Info & i, PT::Space & space)


Revision 845 - Directory Listing
Modified Mon Jun 4 17:51:43 2012 UTC (7 years, 10 months ago) by tomek
added: to Requst:
       std::wstring * PostVarp(const std::wstring & var);
added: to misc:
       template<class CharType>
       bool Toa(unsigned/signed long/int value, CharType * buffer);
       some Toa methods which don't get the buffer len
       (the buffer has to be sufficient big)



Revision 844 - Directory Listing
Modified Sun Jun 3 02:14:33 2012 UTC (7 years, 10 months ago) by tomek
fixed: winix_subdomain ezc function
       didn't print the subdomain
added: to rm winix function:
       bool Rm::RemoveItemByPath(const std::wstring & path, bool check_access)
fixed: in Upload winix function
       when uploading an image we have to get
       a mount point where the image is placed (parent dir)
       (it was cur->mount beforehand)


Revision 843 - Directory Listing
Modified Wed May 30 21:14:03 2012 UTC (7 years, 10 months ago) by tomek
added: some ezc functions for subdomains:
       void winix_subdomain(Info & i);
       void winix_subdomain_is_empty(Info & i);
       void winix_subdomain_is_not_empty(Info & i);
       void winix_subdomain_is(Info & i);



Revision 842 - Directory Listing
Modified Wed May 30 19:04:18 2012 UTC (7 years, 10 months ago) by tomek
added: TimeZone struct (core)
       this class has information about a time zone (utf offset, daylight saving time)
       and methods for converting between UTC and local time
       structs User and Config has a TimeZone object
       System::ToLocal() and System::ToUTC() uses it for converting
       (depending whether a user is logged or not)

Revision 840 - Directory Listing
Modified Sun May 27 18:11:34 2012 UTC (7 years, 10 months ago) by tomek
removed: in some places a dependencies to tm struct has left
removed: operator<<(tm&) from streams: textstream, log, dbtextstream, htmltextstream


Revision 839 - Directory Listing
Modified Sat May 26 23:04:49 2012 UTC (7 years, 10 months ago) by tomek
removed: dependencies to 'tz' system structure
         now we are using PT::Date from pikotools


Revision 838 - Directory Listing
Modified Thu May 24 21:09:37 2012 UTC (7 years, 10 months ago) by tomek
changed: in Request:
         removed start_tm
         added start_date (PT::Date)
changed: in Session:
         removed: tm_time
         added: start_date (PT::Date)
         renamed: time -> start_time
         the same is for last_time
         now we have (last_time and last_date)


Revision 837 - Directory Listing
Modified Sat May 19 17:04:33 2012 UTC (7 years, 10 months ago) by tomek
added: to thread manager: names of the threads
       the names are shown in the log file

Revision 836 - Directory Listing
Modified Sat May 19 15:14:35 2012 UTC (7 years, 10 months ago) by tomek
fixed: when demonizing there were some logs info put twice in the log file
       now we first demonize (fork) and then open the log file
added: start adding support for PT::Date 
       we are using instead of tz system structure


Revision 835 - Directory Listing
Modified Sat May 12 20:30:34 2012 UTC (7 years, 10 months ago) by tomek
changed: misc::OnlyDigit()
         a comma is changed to a dot

Revision 833 - Directory Listing
Modified Sat May 12 16:37:44 2012 UTC (7 years, 10 months ago) by tomek
updated: to the new Space API (pikotools)
changed: in locale txt files:
         the '(' and ')' characters should be escaped '\(' and '\)'
         or the whole string should be quoted
added:   when parsing locale files we print the line number where there was a syntax error


Revision 832 - Directory Listing
Modified Tue May 1 17:58:42 2012 UTC (7 years, 11 months ago) by tomek
added: two plugin's messages
// a session is going to be removed
// it is called from session manager's thread (with lock/unlock)
#define WINIX_PREPARE_SESSION_TO_REMOVE          30027

// a session has been removed
// it is called from session manager's thread (with lock/unlock)
// in l1 you have the old session id
#define WINIX_SESSION_REMOVED                    30029



Revision 831 - Directory Listing
Modified Mon Apr 30 22:53:54 2012 UTC (7 years, 11 months ago) by tomek
updated: to the new Pikotools API
         ConfParser is now SpaceParser
added:   to SessionManager
         Session * SessionManager::FindSession(long id)


Revision 830 - Directory Listing
Modified Sat Apr 28 20:57:57 2012 UTC (7 years, 11 months ago) by tomek
added: a deadlock counter to Synchro class
       now we can use Lock() more than one in the same thread
       and next Unlock() will recognize it
       sample:
       Lock(); // first lock -- resources locked
       Lock(); // second lock -- skipped (counter incremented)
       ...
       Unlock(); // first unlock -- skipped (because counter greater than zero)
       Unlock(); // second unlock -- actually unlocking

Revision 829 - Directory Listing
Modified Wed Apr 25 22:24:37 2012 UTC (7 years, 11 months ago) by tomek
fixed: ThreadMenager should use Lock/Unlock in StartAll() method
added: Job class (system->job object)
       a general mechanism for jobs (by using PT::Space as a job structure)
       WINIX_JOB plugin message will be sent with a pointer to PT::Space


Revision 828 - Directory Listing
Modified Sun Apr 22 18:23:44 2012 UTC (7 years, 11 months ago) by tomek
added: std::wstring Request::subdomain
       support for subdomains


Revision 827 - Directory Listing
Modified Sun Apr 22 13:30:07 2012 UTC (7 years, 11 months ago) by tomek
fixed: base_url_redirect config option was not read from the config file
       and was not used when checking for base url redirect
fixed: return values from plugins should be given in a special structure
       they were remembered in plugin object (ret_false, ret_true)
       and consequently were not thread safe
       now all plugin.Call() methods return PluginRes structure 
       in which there are ret_false and ret_true variables       
changed: small refactoring in AddUser winix function


Revision 826 - Directory Listing
Modified Fri Apr 6 08:11:25 2012 UTC (8 years ago) by tomek
changed: permission to winix function 'who' and 'last'
         (only logged users can use these functions)

Revision 825 - Directory Listing
Modified Fri Mar 30 06:44:38 2012 UTC (8 years ago) by tomek
fixed: passwd winix funtion always changed a password for current user
       (even if it was an administrator and has selected other people)

Revision 824 - Directory Listing
Modified Wed Mar 28 00:09:27 2012 UTC (8 years ago) by tomek
added: two ezc functions:
       void winix_postvar_value_is(Info & i);
       void winix_postvar_value_is_not(Info & i);


Revision 823 - Directory Listing
Modified Sat Mar 17 05:11:23 2012 UTC (8 years ago) by tomek
rewritten: sessions management
           (Session, SessionContainer, SessionManager)
           now a Session object don't copy all fields in its copy constructor (only id)
           the rest fields are set after the object is inserted in SessionContainer
added:     after successfully login a session id is changed
added:     plugin.Call() methods with a first argument a pointer to a Session object


Revision 822 - Directory Listing
Modified Thu Mar 15 17:50:19 2012 UTC (8 years ago) by tomek
reverted last commit (secure flag to cookie) with some info

Revision 821 - Directory Listing
Modified Thu Mar 15 10:43:29 2012 UTC (8 years ago) by tomek
added: to cookies: flag "; secure" if a connection is through SSL

Revision 820 - Directory Listing
Modified Wed Mar 14 20:25:30 2012 UTC (8 years ago) by tomek
added:  new plugin message: WINIX_PREPARE_USER_TO_LOGIN
        a user will be logged in
        set PluginInfo::res to false (it is by default) to prevent logging the user
        directly after this message (if you do not return false)
        a WINIX_USER_LOGGED is sent
        in p1 you have a pointer to User struct
        (if at least one plugin returns false then the user will not be logged)


Revision 819 - Directory Listing
Modified Mon Mar 12 20:30:36 2012 UTC (8 years ago) by tomek
changed: Makefile dep (dependencies from pikotools and tito were missing)

Revision 818 - Directory Listing
Modified Sun Mar 11 16:21:52 2012 UTC (8 years ago) by tomek
added: to misc:
       void OnlyDigit(StringType & s, bool allow_comma = true)
       removes all non-digit characters from a string

Revision 817 - Directory Listing
Modified Fri Mar 9 22:56:54 2012 UTC (8 years, 1 month ago) by tomek
fixed: misc: ValidateEmail() buffer overflow
added: notifications for resetting a user's password
       (there is no a winix function for this yet)


Revision 816 - Directory Listing
Modified Fri Mar 9 02:36:25 2012 UTC (8 years, 1 month ago) by tomek
added:   winix function: rmuser
changed: UGContainer<> now uses std::list as a storage
         (previously it was using std::vector with pointers)
removed: now we don't have the operator[] for UGContainer<>


Revision 815 - Directory Listing
Modified Sat Mar 3 21:00:48 2012 UTC (8 years, 1 month ago) by tomek
added: html/fun_pw.html
       default view for pw winix function

Revision 814 - Directory Listing
Modified Thu Mar 1 15:39:13 2012 UTC (8 years, 1 month ago) by tomek
changed: export plugin:
         password is stored as a string (in database)

Revision 813 - Directory Listing
Modified Thu Mar 1 15:14:46 2012 UTC (8 years, 1 month ago) by tomek
fixed: plugin 'menu' incorrectly read directory items when the directory was en empty string
       (the current directory should be used)

Revision 812 - Directory Listing
Modified Wed Feb 29 22:52:55 2012 UTC (8 years, 1 month ago) by tomek
corrected: in some places declarations of classes where mixed with struct (class/struct)


Revision 810 - Directory Listing
Modified Tue Feb 28 21:09:44 2012 UTC (8 years, 1 month ago) by tomek
added: to IsWhite (core/misc)
       other unicode white characters
       25 characters -- without a new line character (10)
added: config option: account_need_email_verification
       if true then when creating an account a user has to provide
       his email address and a message with an activation link will be sent 
       back to him
added: 'pw' winix function (not finished yet)
       at the moment only one parameter 'activate'


Revision 809 - Directory Listing
Modified Mon Feb 27 17:43:59 2012 UTC (8 years, 1 month ago) by tomek
fixed:   in winix function 'mv':
         a recurrence loop - incorrect function was called (typo)
updated: to the new EZC api:
         templates from plugin menu
         templates from 'man' winix function

Revision 808 - Directory Listing
Modified Fri Feb 24 12:09:38 2012 UTC (8 years, 1 month ago) by tomek
rewritten: plugin 'menu'
           now we have a cache for the plugin
           (this limits the number of database requests)
added:     to plugin 'menu'
           menu_dir_tab can have a 'current' parameter (first argument)
           (it uses the last path from the previous menu_dir_tab) 
changed:   updated to the new EZC api
added:     new message to plugins: WINIX_DIR_ADDED

Revision 807 - Directory Listing
Modified Sun Feb 19 00:59:08 2012 UTC (8 years, 1 month ago) by tomek
added:   to misc:
         UrlEncode() for char->wstring
         UrlEncode() for wstring->wstring
removed: Request::redirect_url_encoded flag
         the Request::redirect_to string should always be url-encoded
changed: in UrnEncode()
         now characters like '#' and '/' are not allowed in an url
         (will be url-encoded)
         

Revision 806 - Directory Listing
Modified Fri Feb 17 05:19:24 2012 UTC (8 years, 1 month ago) by tomek
added: to config:
       parameter: ezc_max_elements
          maximum number for elements through the whole template (ezc)
          default: 50000
       parameter: ezc_max_loop_elements
          maximum number of each [for] loop
          default: 5000 (from ezc generator)
added: to Request class:
       time_t start_time;
       tm start_tm;
       they are set when a request starts
       

Revision 805 - Directory Listing
Modified Tue Feb 14 20:35:35 2012 UTC (8 years, 1 month ago) by tomek
added: to misc:
       void MaxSize(StringType & str, size_t max_size)
       if a string is larger than max_size then it is truncated to max_size characters

Revision 804 - Directory Listing
Modified Sun Feb 12 14:52:52 2012 UTC (8 years, 1 month ago) by tomek
fixed: in DbBase: removed:
       DbBase::AssertQuery(const std::wstring & q)
       there was a recurrence calling (the method called itself)
       we don't need a method which get a wstring as an argument
added: DbBase::AssertQuery(const char * q, ExecStatusType t)
       DbBase::AssertQuery(const DbTextStream & query, ExecStatusType t)
       (AssertQuery with a second argument -- the same as to AssertResult)
       we don't have to use AssertQuery and AssertResult
       only one AssertQuery now
added: to plugins: two messages:
       // preparing a current user to logout
       // send from 'logout' winix function
       // !! IMPROVE ME this message can be sent when winix is making the shutdown
       // (for sessions which are not mark as 'remember me')
       // and when the SessionManager deletes a session (from the special thread)
       #define WINIX_PREPARE_USER_LOGGED_OUT          30610

       // a user has been logged out
       // send from 'logout' winix function
       // in l1 you have the old user_id
       // !! IMPROVE ME this message can be sent when winix is making the shutdown
       // (for sessions which are not mark as 'remember me')
       // and when the SessionManager deletes a session (from the special thread)
       #define WINIX_USER_LOGGED_OUT                          30620


Revision 803 - Directory Listing
Modified Fri Feb 10 00:50:05 2012 UTC (8 years, 1 month ago) by tomek
fixed: uninitialized variable in 'rm' winix function (in HasAccess method)
       sometimes for directories the rm function could return 'access true' (even without 'r' parameter)


Revision 802 - Directory Listing
Modified Fri Feb 10 00:29:54 2012 UTC (8 years, 1 month ago) by tomek
removed: operator<<(const PT::Space * space)
         from textstream, log, dbtextstream, htmltextstream
added: compile option: -pthread


Revision 801 - Directory Listing
Modified Tue Jan 24 23:03:36 2012 UTC (8 years, 2 months ago) by tomek
added:     now we have a fourth part in permissions (guests)
           e.g.: 07555 means:
           7 for owner
           5 for group
           5 for others
           5 for guests (not logged users)
added:     the sticky bit for directories
           e.g. permissions to a directory with a sticky bit set
           can be set to: 017555
rewritten: rm/mv winix functions to correctly understand the sticky bit
added:     Dir::FollowLink() recognizes ".." and "." now
           consequently System::FollowAllLinks recognizes it too
added:     umask -- calculating privileges for new files/directories
           all users have their own umask (in meta)
           and there is one in the config
           (for guests and when a user has not definied its own one)
removed:   mount option: only_root_remove


Revision 800 - Directory Listing
Modified Sat Jan 21 20:51:13 2012 UTC (8 years, 2 months ago) by tomek
added: to locale: comparing lexicographically two characters/strings
       int Compare(wchar_t c1, wchar_t c2);
       int Compare(const std::wstring & str1, const std::wstring & str2);
       
	   

Revision 799 - Directory Listing
Modified Sat Jan 21 17:13:00 2012 UTC (8 years, 2 months ago) by tomek
added: new ezc filter: fil_first_wordup
       first character in a word is capitalized

Revision 798 - Directory Listing
Modified Sat Jan 21 12:29:44 2012 UTC (8 years, 2 months ago) by tomek
fixed: plugin ticket: when a session expires all files from editticket were removed 
       it should be removed only those new added

Revision 797 - Directory Listing
Modified Thu Jan 19 20:50:42 2012 UTC (8 years, 2 months ago) by tomek
added: to TextStream<> and Log:
       operator<<(const tm & tm_)


Revision 796 - Directory Listing
Modified Wed Jan 18 17:55:28 2012 UTC (8 years, 2 months ago) by tomek
updated plugins/ticket templates functions

Revision 795 - Directory Listing
Modified Tue Jan 17 22:54:41 2012 UTC (8 years, 2 months ago) by tomek
plugin ticket: rewritten templates ezc functions 
               (now images/files are working fine)

Revision 794 - Directory Listing
Modified Mon Jan 16 10:12:38 2012 UTC (8 years, 2 months ago) by tomek
added:   to templates: an interface for getting information from Space
         miscspace.h, miscspace.cpp
changed: plugin ticket
         now as a config we use a PT::Space struct
         (not finished yet, only 'integer', 'select' and 'progress' are done)

Revision 792 - Directory Listing
Modified Thu Jan 12 02:24:08 2012 UTC (8 years, 2 months ago) by tomek
now winix is using 'pikotools' (confparser, utf8, mainparser)

Revision 791 - Directory Listing
Modified Wed Jan 11 11:32:01 2012 UTC (8 years, 2 months ago) by tomek
removing: confparser.h confparser.cpp
          (moving to pikotools)

Revision 790 - Directory Listing
Modified Sun Jan 8 03:59:51 2012 UTC (8 years, 3 months ago) by tomek
added: TextStream<> DbTextStream<> and HtmlTextStream<> have operator<<(Space&) now
added: to db: bool DbBase::AssertValueSpace(PGresult * r, int row, int col, Space & space, bool split_single)
added: environment variables for users
       User::env (of type Space) and
       User::aenv (of type Space) for admin variables (can be changed only by a super user)
added: winix function 'env'
       for changing User::env and User::aenv ('env' winix function with a 'a' parameter)


Revision 789 - Directory Listing
Modified Fri Jan 6 12:55:08 2012 UTC (8 years, 3 months ago) by tomek
changed: rewritten templates/man

Revision 787 - Directory Listing
Modified Fri Jan 6 12:07:23 2012 UTC (8 years, 3 months ago) by tomek
added: winix function 'man'
       displaying all winix functions and ezc templates functions

Revision 786 - Directory Listing
Modified Mon Jan 2 02:05:12 2012 UTC (8 years, 3 months ago) by tomek
changed: plugin 'menu': ezc funtion: menu_dir_tab
         now we have two parameters: first is a path and second is: "images", "dirs", "files" or empty
          

Revision 785 - Directory Listing
Modified Sat Dec 17 22:02:49 2011 UTC (8 years, 3 months ago) by tomek
forgotten to add html/index_rawcontent.html

Revision 784 - Directory Listing
Modified Sat Dec 17 21:59:22 2011 UTC (8 years, 3 months ago) by tomek
added: to config: 'content_type_header' parameter
       the kind of "Content-Type" header send to the client
       if utf8 is enabled then 'charset=UTF-8' will also be appended
added: to templates: an index pattern for 'rawcontent'
       used when 'rawcontent' parameter is present
       by default the template has only one [content] ezc function
       useful in AJAX requests       

Revision 783 - Directory Listing
Modified Wed Dec 14 20:35:19 2011 UTC (8 years, 3 months ago) by tomek
changed: core/misc: date format in Time() methods

Revision 782 - Directory Listing
Modified Thu Dec 8 22:01:19 2011 UTC (8 years, 4 months ago) by tomek
added to db stream: DbTextStream::operator<<(const std::vector<long> & tabid)

Revision 781 - Directory Listing
Modified Mon Dec 5 18:20:48 2011 UTC (8 years, 4 months ago) by tomek
changed: html (upload winix function)

Revision 780 - Directory Listing
Modified Sun Dec 4 19:34:39 2011 UTC (8 years, 4 months ago) by tomek
added: to htmlfilter: html "col" tag is a 'simple' tag
added: ezc functions: winix_function_param_value_is and winix_function_param_value_is_not
       they take two arguments: param_name and param_value


Revision 779 - Directory Listing
Modified Sat Dec 3 19:34:58 2011 UTC (8 years, 4 months ago) by tomek
changed: plugin 'export'
         rewritten changing of strings in html output
         (added support for https:// prefix)

Revision 778 - Directory Listing
Modified Fri Dec 2 14:38:26 2011 UTC (8 years, 4 months ago) by tomek
changed: upload template

Revision 777 - Directory Listing
Modified Thu Dec 1 20:45:06 2011 UTC (8 years, 4 months ago) by tomek
added: 'export' plugin can make use of some meta informations (from items)
       additional export currently

Revision 776 - Directory Listing
Modified Thu Dec 1 18:54:09 2011 UTC (8 years, 4 months ago) by tomek
added: a new index template: index_fullscreen.html
       is chosen automatically when 'fullscreen' parameter is passed

Revision 775 - Directory Listing
Modified Fri Nov 25 04:51:55 2011 UTC (8 years, 4 months ago) by tomek
changed: in plugin 'menu'
         menu_dir_tab ezc functions can be nested now
         (not finished yet)
added:   'meta' winix function
         additional meta information for files and directories
         (not finished yet)


Revision 774 - Directory Listing
Modified Sun Oct 30 23:47:43 2011 UTC (8 years, 5 months ago) by tomek
added: to 'group' plugin: new ezc function: group_tab_is_current_link

Revision 773 - Directory Listing
Modified Sun Oct 16 21:33:45 2011 UTC (8 years, 5 months ago) by tomek
changed: GroupItem plugin has been renamed to Group
         it's nearly finished
         now we are using three levels from Space (ConfParser)
         - group set
         - group
         - values
         

Revision 772 - Directory Listing
Modified Fri Sep 30 01:33:42 2011 UTC (8 years, 6 months ago) by tomek
changed: plugin messages:
         WINIX_FILE_REMOVED and WINIX_DIR_PREPARE_TO_REMOVE
         now as a parameter we have a pointer to the Item struct
changed: export plugin now exports all files from a directory
         (in the future there'll be an option how the plugin should behave)


Revision 771 - Directory Listing
Modified Wed Sep 28 22:24:24 2011 UTC (8 years, 6 months ago) by tomek
fixed: FunctionParser skipped a function name after an item (file) if the name was not a name for a function
       it should report a 404 in such a case

Revision 770 - Directory Listing
Modified Mon Sep 26 06:56:35 2011 UTC (8 years, 6 months ago) by tomek
fixed: menu plugin: static files were not correctly skipped

Revision 769 - Directory Listing
Modified Mon Sep 26 06:39:05 2011 UTC (8 years, 6 months ago) by tomek
changed: menu plugin (static files are skipped)

Revision 768 - Directory Listing
Modified Mon Sep 26 05:40:26 2011 UTC (8 years, 6 months ago) by tomek
changed: ConfParser -- now we can have a tree (spaces can have more than one level)

Revision 767 - Directory Listing
Modified Fri Sep 16 22:46:42 2011 UTC (8 years, 6 months ago) by tomek
changed: we do not make a 'base redirect' when the request method is POST
changed: ConfParser -- now we have spaces (only one level)


Revision 766 - Directory Listing
Modified Wed Sep 14 09:56:00 2011 UTC (8 years, 6 months ago) by tomek
changed: we should use SSL connection for such functions as:
         adduser, login

Revision 764 - Directory Listing
Modified Tue Sep 13 06:08:34 2011 UTC (8 years, 6 months ago) by tomek
fixed:   UGContainer<Type> used a std::vector<Type> and when a new item was inserted
         then current iterators (and pointers) were invalidated
         now we are using std::vector<Type*>
         this caused some crashes when a new user was added by 'adduser' winix function
added:   plugin 'export' is able to upload files on a remote server now
         (not finished yet)
changed: Thumb class is now called: Image
         and we are able to resize images too
         (some new options in the config and in mount points)
added:   some new plugin messages


Revision 762 - Directory Listing
Modified Tue Sep 6 22:46:15 2011 UTC (8 years, 7 months ago) by tomek
added:   new flag: Request::using_ssl 
         true if the connections is encrypted by using SSL
changed: in BaseUrlRedirect
         we also check if the connection should use SSL 
         and if so then we make a redirect to "https://.."
changed: in 'static' mount points:
         if the request was e.g. "/styles/default.js?t=B49E5BQ"
         we should return a file "/styles/default.js" (without the "?..." part)
         additionally '#' character is checked


Revision 761 - Directory Listing
Modified Mon Sep 5 15:38:09 2011 UTC (8 years, 7 months ago) by tomek
added: some work in Export plugin
changed: in base redirect we are using 301 moved permanently status code now (was 303)

Revision 760 - Directory Listing
Modified Mon Aug 29 22:23:54 2011 UTC (8 years, 7 months ago) by tomek
added: two tables to locales/substitute: smallleters, capitalics
added: locale.ToSmall(wchar_t), locale.ToCapital(wchar_t)
       now we are able to recognize other than ASCII characters
added: static/basic/winix.css with basic styles
removed: [include "item_options.html"] from html templates (fun_cat.html and others)



Revision 759 - Directory Listing
Modified Sat Aug 27 03:12:33 2011 UTC (8 years, 7 months ago) by tomek
fixed: index templates and 'change' templates were not cleared when 'reload' function was called
       so wrong indexes have been assigned

Revision 758 - Directory Listing
Modified Fri Aug 26 20:45:58 2011 UTC (8 years, 7 months ago) by tomek
added: ezc function: dir_has_parents

Revision 757 - Directory Listing
Modified Thu Aug 25 23:53:49 2011 UTC (8 years, 7 months ago) by tomek
added: Patterns class (in templates)
       ezc patterns are managed by this class
added: some work in groupitem plugin (not finished yet)
changed: ConfParser can read a string from memory now
         (need some testing yet)


Revision 755 - Directory Listing
Modified Wed Aug 17 23:09:47 2011 UTC (8 years, 7 months ago) by tomek
added: some more orphans to polish default locale
added: new options to the config:
  url_proto: default: http://
  url_ssl_proto: default: https://
  use_ssl, use_ssl_static, use_ssl_common (whether or not to use SSL protocol)
  use_ssl_only_for_logged_users
  now we are able to use SSL encryption (https) together with normal connections
removed: config option: base_server



Revision 754 - Directory Listing
Modified Tue Aug 2 00:10:45 2011 UTC (8 years, 8 months ago) by tomek
added: new winix function: "sort"
       sorting items in a directory (Item::sort_index is used)

Revision 752 - Directory Listing
Modified Thu Jul 28 22:18:10 2011 UTC (8 years, 8 months ago) by tomek
added:   Export plugin (not finished yet)
added:   ThreadManager
         all threads are connected to the ThreadManager
         they are started/stopped by the manager
changed: FunctionParser
         now we are parsing directly what is in URI
         (we were using GetParser beforehand)
         we are able to recognize ordinary URI scheme (with '?' and '#' characters)
         sample:
         http://domain.com/dir1/dir2/item/function?par1=val2&par2=val2#htmlanchor
         is the same as:
         http://domain.com/dir1/dir2/item/function/par1:val2/par2:val2#htmlanchor
         'htmlanchor' is put in Request::anchor field,
         and the default function can be used like this:
         http://domain.com/dir1/dir2/item?par1=val2&par2=val2#htmlanchor
         but there is not an equivalent in winix form
         e.g. http://domain.com/dir1/dir2/item/par1:val2/par2:val2#htmlanchor
         because 'par1:val2' would be treated as a function name
removed: GetParser
         now we don't have Request::get_tab structure
removed: CKEditorGetParser
         it is not needed now


Revision 751 - Directory Listing
Modified Fri Jul 15 02:09:02 2011 UTC (8 years, 8 months ago) by tomek
fixed: as we have insert_page ezc function now 
       we cannot delete ezc patterns when PatternCacher::GetPattern() method is called
       because we can delete a pattern which is in use
       now deleting is performed at the end of a request

Revision 750 - Directory Listing
Modified Wed Jul 13 23:14:10 2011 UTC (8 years, 8 months ago) by tomek
added: new plugin: menu
fixed: System::FollowAllLinks didn't check permissions to a file (only to a simlink or a directory)
added: new ezc function: insert_page
       now we are able to nest pages in pages


Revision 749 - Directory Listing
Modified Thu Jul 7 17:02:14 2011 UTC (8 years, 9 months ago) by tomek
added: we can use different redirect codes now
       (int Request::redirect_type variable)
       we can set following integer values:
       300 - Multiple Choices
       301 - Moved Permanently
       302 - Found
       307 - Temporary Redirect
       303 - See Other
       default is 303 for all redirects


Revision 748 - Directory Listing
Modified Mon Jun 27 21:38:19 2011 UTC (8 years, 9 months ago) by tomek
added: a new winix function: passwd
       for changing your password
       or if you are a super user you can
       change a password for anyone
added: uname prints available plugins now


Revision 746 - Directory Listing
Modified Fri Jun 24 20:53:21 2011 UTC (8 years, 9 months ago) by tomek
changed: winix 'upload' function is a file manager now
         we're using an jquery upload plugin
added:   Item struct has new rows: hash, hash_type, file_size, sort_index
added:   css mount parameter
         you can specify css files there, and javascript wysiwyg editors
         (ckeditor, tinymce) can make use of it
changed: post parsers can parse post variables with the same name
         (a postfix is added in such a case)
added:   common_dir parameter to the config
         this is a path to common directory (directory with common static files)
         it is needed to the 'css' mount parameter
         

Revision 745 - Directory Listing
Modified Tue Jun 21 21:24:49 2011 UTC (8 years, 9 months ago) by tomek
added:   new winix function: mount
         displaying all mount points
changed: struct Cur has now 'mount' pointer
         we should not use system->mounts.pmount now
         (it will be removed in the future)
changed: all mount point parameters are now propagated to childs mount points
         (if not defined there)


Revision 742 - Directory Listing
Modified Sun Jun 19 21:07:23 2011 UTC (8 years, 9 months ago) by tomek
updated index.html

Revision 741 - Directory Listing
Modified Sun Jun 19 20:59:58 2011 UTC (8 years, 9 months ago) by tomek
added: SLog class -- session logger
       messages are displayed in the browser (with locales)
changed: MountParser
         now if there is an error in a line -- the line is simply skipped
         

Revision 740 - Directory Listing
Modified Sun Jun 19 10:40:09 2011 UTC (8 years, 9 months ago) by tomek
deleted some log info

Revision 738 - Directory Listing
Modified Tue Jun 14 23:45:42 2011 UTC (8 years, 9 months ago) by tomek
added: a new mount type: static
       some path in winix can be redirected to a specified static directory

Revision 737 - Directory Listing
Modified Mon Jun 13 01:06:10 2011 UTC (8 years, 9 months ago) by tomek
added: nicedit: a new wysiwyg javascript editor

Revision 736 - Directory Listing
Modified Thu Jun 9 23:00:00 2011 UTC (8 years, 10 months ago) by tomek
fixed: users: flag 'super_user' was not correctly read ftom the database

Revision 734 - Directory Listing
Modified Thu Jun 9 21:22:08 2011 UTC (8 years, 10 months ago) by tomek
changed: when winix demonizes it creates a three new descriptors (0, 1 and 3)
         pointing to /dev/null
added:   DbBase::AssertValueBin(PGresult * r, int row, int col, std::string & result)
         it reads binary (bytea) data
added:   DbTextStream can handle 'bool' types now
         (is puts 'true' of 'false' to the stream)
changed: now passwords can be stored either as plain text, a hash or can be encrypted
         with RSA
         currently we have following hashes:
         md4, md5, sha1, sha224, sha256, sha384, sha512
         we are using openssl to manage them
         (look at config options for more info)
changed: winix version to 0.4.7         
added:   class Run - you can run any program from os and send a buffer to its standard input
         and read what the program put on its standard output
added:   class Crypt (in System) - calculating hashes, and crypting/decrypting



Revision 733 - Directory Listing
Modified Mon Jun 6 22:47:34 2011 UTC (8 years, 10 months ago) by tomek
added:   now winix will not log post parameters with 'pass' in names (at the beginning)
changed: only first few characters are logged (from POST)

Revision 731 - Directory Listing
Modified Mon Jun 6 20:35:56 2011 UTC (8 years, 10 months ago) by tomek
small changes in Makefiles

Revision 730 - Directory Listing
Modified Tue Apr 26 17:19:08 2011 UTC (8 years, 11 months ago) by tomek
added:   "str" "strnc" ezc functions
changed: ezc functions:
         "winix_false" to "false"
         "winix_true"  to "true"

Revision 729 - Directory Listing
Modified Sat Apr 16 11:27:54 2011 UTC (8 years, 11 months ago) by tomek
fixed: BBCODEParser incorrectly worked with the latest changes in HTMLFilter

Revision 728 - Directory Listing
Modified Sat Apr 16 08:42:22 2011 UTC (8 years, 11 months ago) by tomek
renamed: config option 'html_filter_break_lines' to 'html_filter_break_word'
added:   config option 'html_filter_wrap_line'
         this wraps the whole line (line calculated with html tags as well)
changed: orphans (for html filter) are read from locale files now
         ('language_orphans' value )


Revision 727 - Directory Listing
Modified Sat Apr 2 00:10:16 2011 UTC (9 years ago) by tomek
added support for gzip compression
new config option: compression_encoding (integer)
 1  - use deflate if available (or raw deflate for Internet Explorer) or don't compress
 2  - use gzip if available or don't compress
 10 - prefer deflate -- use deflate (or raw deflate for IE) if both deflate and gzip are available
 20 - prefer gzip    -- use gzip if both deflate and gzip are available
 default: 20

		   

Revision 726 - Directory Listing
Modified Fri Apr 1 16:30:14 2011 UTC (9 years ago) by tomek
updated 'galleria' js plugin

Revision 725 - Directory Listing
Modified Wed Mar 23 17:54:53 2011 UTC (9 years ago) by tomek
fixed: thread plugin didn't correctly set the last item and replies (in 'thread' table)
       when deleting an answer
added: ThreadInfo::Repair() method
       will be used by 'fsck' winix function       
added: plugins/groupitem 
       directory for a new plugin: 'groupitem'
       

Revision 722 - Directory Listing
Modified Thu Feb 24 17:06:12 2011 UTC (9 years, 1 month ago) by tomek
changed: removed Languages::Land enum
now we set the languages in the config file: option locale_files, sample:
  locale_files = ( en, pl )
it represents the name of locale files (those from locale_dir directory)
renamed config option: locale to locale_default

Revision 721 - Directory Listing
Modified Tue Feb 22 04:14:26 2011 UTC (9 years, 1 month ago) by tomek
added ezc function: winix_function_param_is_not

Revision 720 - Directory Listing
Modified Fri Feb 18 09:35:35 2011 UTC (9 years, 1 month ago) by tomek
txt templates (a new line was missing)

Revision 719 - Directory Listing
Modified Fri Feb 18 09:33:15 2011 UTC (9 years, 1 month ago) by tomek
fixed: a new created session doesn't have a correct time set

Revision 718 - Directory Listing
Modified Tue Feb 15 23:20:12 2011 UTC (9 years, 1 month ago) by tomek
added: to gallery plugin: gallery_theme() mount option

Revision 717 - Directory Listing
Modified Fri Feb 11 21:37:28 2011 UTC (9 years, 1 month ago) by tomek
added: mount options: thumb_size(cx, cy)
       size of a generated thumbnail (size in pixels)
added: plugin gallery: mount option gallery_type
       it can be:
       "lightbox"
       "galleria"
       "galleriathumb"

Revision 716 - Directory Listing
Modified Mon Jan 31 15:51:53 2011 UTC (9 years, 2 months ago) by tomek
added a new plugin: "gallery"

Revision 715 - Directory Listing
Modified Thu Jan 27 14:35:25 2011 UTC (9 years, 2 months ago) by tomek
changed templates

Revision 714 - Directory Listing
Modified Thu Jan 27 12:24:45 2011 UTC (9 years, 2 months ago) by tomek
changed: ticket templates
added: new plugin message (WINIX_END_REQUEST)

Revision 712 - Directory Listing
Modified Wed Jan 26 12:45:38 2011 UTC (9 years, 2 months ago) by tomek
added: winix uses now [filter] statement from ezc
added: notifications to threads (were temporarily disabled)
changed: templates in notifications


Revision 711 - Directory Listing
Modified Tue Jan 25 11:54:46 2011 UTC (9 years, 2 months ago) by tomek
added: Q encoding in misc: QEncode()
for mails headers encoding


Revision 710 - Directory Listing
Modified Sun Jan 23 23:23:24 2011 UTC (9 years, 2 months ago) by tomek
fixed: find_ticket_value (in plugins/ticket/templates.cpp)
should find the first item (can be more than one item with the same 'param')

fixed: added sorting tickets params in ReadTicketParams() (in plugins/ticket/ticketinfo.cpp)

fixed: plugin should have its own 'PluginInfo info' struct
a plugin's function can call another plugin's functions

added: removing tickets files/images

added: removing threads

changed: rm function will call WINIX_FILE_REMOVED now when deleting directories




Revision 708 - Directory Listing
Modified Sun Jan 23 14:15:30 2011 UTC (9 years, 2 months ago) by tomek
changed: added Cur structure
we have there two pointers: 
 Request * request;
 Session * session;
these are the current request and the current session


the session GC was moved to SessionManager (was in SessionContainer)


Revision 707 - Directory Listing
Modified Fri Jan 21 16:16:52 2011 UTC (9 years, 2 months ago) by tomek
added in ticket/templates.cpp binary search for tickets and tickets parameters

Revision 706 - Directory Listing
Modified Thu Jan 20 18:37:51 2011 UTC (9 years, 2 months ago) by tomek
'tickets' can use 'threads' now

Revision 705 - Directory Listing
Modified Wed Jan 5 21:44:19 2011 UTC (9 years, 3 months ago) by tomek
moved some thread files to plugins/thread

Revision 704 - Directory Listing
Modified Wed Jan 5 21:24:11 2011 UTC (9 years, 3 months ago) by tomek
we can create links (hard links, symbolic links) now
added winix functions: ln

winix function 'default' can be used without redirecting now

added new tickets types: TypeProgress, TypeString, TypeMultistring, TypeImages, TypeFiles
now tickets are combined with files
added winix functions: showtickets

fixed mountpoints:
when the default root mount was created its parameter table was empty
and it caused accessing to a non-existing objects

fixed logger:
modifiers (log1, log2, log3) were incorrectly treated
added modifier: log4 (debug info)

now we are moving threads to a new plugin 'thread'
created directory: plugins/thread
(not finished yet)



Revision 703 - Directory Listing
Modified Sun Dec 12 09:41:20 2010 UTC (9 years, 3 months ago) by tomek
changed cat template

Revision 701 - Directory Listing
Modified Sun Dec 12 09:25:36 2010 UTC (9 years, 3 months ago) by tomek
Thumb thread should check the exit signal

Revision 700 - Directory Listing
Modified Sat Dec 11 22:55:48 2010 UTC (9 years, 3 months ago) by tomek
added a special thread for making thumbnails (thumb.h thumb.cpp)

Revision 698 - Directory Listing
Modified Fri Dec 10 21:20:01 2010 UTC (9 years, 4 months ago) by tomek
changed makefile

Revision 696 - Directory Listing
Modified Fri Dec 10 21:07:01 2010 UTC (9 years, 4 months ago) by tomek
changed organization of static files
removed: item.auth item.auth_path
added:   item.file_path, item.file_fs, item.file_type
now the path to a static file is a relative path
added: thumbnails (not finished yet)
fixed: db didn't correctly return the number of deleted items /DelItem() method/



Revision 695 - Directory Listing
Modified Tue Dec 7 18:18:45 2010 UTC (9 years, 4 months ago) by tomek
added a special default function: "-"
the proper default function will be selected automatically

Revision 694 - Directory Listing
Modified Tue Dec 7 17:41:28 2010 UTC (9 years, 4 months ago) by tomek
added to config: session_max
how many sessions can be: default 1000000 (one milion)

Revision 693 - Directory Listing
Modified Tue Dec 7 12:52:52 2010 UTC (9 years, 4 months ago) by tomek
added: gc for sessions (another thread)

Revision 691 - Directory Listing
Modified Mon Dec 6 01:37:30 2010 UTC (9 years, 4 months ago) by tomek
added ezc function: user_is_in_all_groups
changed: ezc function user_is_in_group (we can provide more than one group now)

Revision 690 - Directory Listing
Modified Mon Dec 6 00:32:12 2010 UTC (9 years, 4 months ago) by tomek
changed Makefile

Revision 688 - Directory Listing
Modified Mon Dec 6 00:25:46 2010 UTC (9 years, 4 months ago) by tomek
db: core/user table has only 'notify' column now (previous was cms_notify, thread_notify)
added: notifications for tickets (not finished yet)

Revision 687 - Directory Listing
Modified Thu Dec 2 02:36:49 2010 UTC (9 years, 4 months ago) by tomek
changed path templatesnotifiy/ to notify/
i forgot to add a file: notify/notify.cpp

Revision 686 - Directory Listing
Modified Thu Dec 2 02:16:11 2010 UTC (9 years, 4 months ago) by tomek
moved: templatesnotify -> notify

Revision 685 - Directory Listing
Modified Thu Dec 2 01:02:02 2010 UTC (9 years, 4 months ago) by tomek
- now the mess with threads has gone away
- we have a class BaseThread -- this is a base class -- we can inherit from it when
  creating a new thread
- others treads are correctly stopped (when signal comes) -- pthread_join
- we have a special thread only for signals


Revision 684 - Directory Listing
Modified Thu Nov 25 22:42:24 2010 UTC (9 years, 4 months ago) by tomek
changed: updated to the new ezc api, this with O(1) when looking for a specific ezc function
changed: sessions are deleted at the end of a request (and only a few sessions)
         other sessions will be deleted after a next request

Revision 682 - Directory Listing
Modified Thu Nov 25 01:34:46 2010 UTC (9 years, 4 months ago) by tomek
added:   uptime winix function prints how many sessions there are

changed: functions for text/numbers conversions
         int Toi(const std::string & str,  int base = 10);
         int Toi(const std::wstring & str, int base = 10);
         int Toi(const char * str,         int base = 10);
         int Toi(const wchar_t * str,      int base = 10);

         long Tol(const std::string & str,  int base = 10);
         long Tol(const std::wstring & str, int base = 10);
         long Tol(const char * str,         int base = 10);
         long Tol(const wchar_t * str,      int base = 10);

         template<class CharType>
         bool Toa(unsigned long value, CharType * buffer, size_t buf_len, int base = 10);

         template<class CharType>
         bool Toa(long value, CharType * buffer, size_t buf_len, int base = 10);

         template<class CharType>
         bool Toa(unsigned int value, CharType * buffer, size_t buf_len, int base = 10);

         template<class CharType>
         bool Toa(int value, CharType * buffer, size_t buf_len, int base = 10);

         const wchar_t * Toa(unsigned int value,  int base = 10);
         const wchar_t * Toa(unsigned long value, int base = 10);
         const wchar_t * Toa(int value,  int base = 10);
         const wchar_t * Toa(long value, int base = 10);

         void Toa(int  value, std::string & res,  int base = 10, bool clear = true);
         void Toa(long value, std::string & res,  int base = 10, bool clear = true);
         void Toa(int  value, std::wstring & res, int base = 10, bool clear = true);
         void Toa(long value, std::wstring & res, int base = 10, bool clear = true);

added:   HtmlTextStream class (files htmltextstream.cpp htmltextstream.h in templates)
         this is a special stream for automatically escaping html tags
	     


Revision 680 - Directory Listing
Modified Tue Nov 23 21:52:25 2010 UTC (9 years, 4 months ago) by tomek
fixed:   when signal comes winix properly exits
fixed:   when winix exits the session data were not properly destroyed (memory leak)
         we should set request.session pointer to each session when deleting sessions
         from session_container
         the session data were not properly destroyed when winix checked for 
         outdated sessions (and when it was removing them)
fixed:   performance (memcpy used too often)
         in some places there were reserve method used (on std::wstring/std::string objects)
         especially in AssignString() method and TextStream<> object
         if we add a new string we should check the new size
         and only call reserve() if the new size will be greater than existing one
         (plus some constant)
changed: fcgi objects moved to App class (from Request)
         now we use thread safe methods (e.g. FCGX_Accept_r)
added:   log_plugin_call option to the config
         default: false
         when true winix log when a plugin function is called
added:   winix parameter 'nostat' for not calculating statistics
         (useful when making performance tests)

Revision 679 - Directory Listing
Modified Mon Nov 22 01:12:46 2010 UTC (9 years, 4 months ago) by tomek
added ezc functions: winix_false, winix_true

Revision 677 - Directory Listing
Modified Sun Nov 21 00:19:17 2010 UTC (9 years, 4 months ago) by tomek
added support for UTF-8
now the UTF-8 is a default charset

Revision 676 - Directory Listing
Modified Thu Nov 4 17:13:13 2010 UTC (9 years, 5 months ago) by tomek
fixed: didn't compile

Revision 674 - Directory Listing
Modified Thu Nov 4 17:05:59 2010 UTC (9 years, 5 months ago) by tomek
added temporary debug info to Notify::ItemChanged() method

Revision 673 - Directory Listing
Modified Thu Nov 4 16:46:19 2010 UTC (9 years, 5 months ago) by tomek
added a new winix function "vim" - an editor based on the WYMeditor

Revision 672 - Directory Listing
Modified Mon Oct 25 18:00:23 2010 UTC (9 years, 5 months ago) by tomek
added: to htmlfilter: param tag has not an ending tag

Revision 671 - Directory Listing
Modified Sun Oct 24 19:31:43 2010 UTC (9 years, 5 months ago) by tomek
fixed: some log problems

Revision 669 - Directory Listing
Modified Sun Oct 24 19:26:54 2010 UTC (9 years, 5 months ago) by tomek
now winix can demonize itself
parameter in the config: demonize (default: true)
 

Revision 668 - Directory Listing
Modified Sun Oct 24 17:49:38 2010 UTC (9 years, 5 months ago) by tomek
winix can drop privileges now (if started as the root)
added parameters to the config:
 user (string)
 group (string)
 additional_groups (bool)


Revision 667 - Directory Listing
Modified Sat Oct 23 23:51:44 2010 UTC (9 years, 5 months ago) by tomek
rm function can remove tickets now

Revision 666 - Directory Listing
Modified Sat Oct 23 23:12:47 2010 UTC (9 years, 5 months ago) by tomek
fixed: there were mktime() used on some dirs Items 
       so sometimes the time of the dir was changed

now for converting tm into time_t use:
time_t Time(const tm & par);
time_t Time(const tm * par);
tm     Time(time_t par);
from core/misc.h

now winix internally use GMT time
only when printing it is converted to local user time
temporarily all users use the same local time (config: time_zone_offset)
(only logs are genereted with local system time)

added to system:
time_t LocalTime(time_t gmt_time);
tm     LocalTime(const tm * ptm);
tm     LocalTime(const tm & ptm);
they convert GMT time to local user time



Revision 665 - Directory Listing
Modified Sat Oct 23 14:54:44 2010 UTC (9 years, 5 months ago) by tomek
added 'stat' winix function

Revision 664 - Directory Listing
Modified Tue Oct 19 00:31:20 2010 UTC (9 years, 5 months ago) by tomek
added: now plugin ticket uses a new horizontal table (plugins.ticket)
columns: dir_id, param, value
we are able to build complicated tickets 


Revision 663 - Directory Listing
Modified Mon Oct 11 20:42:49 2010 UTC (9 years, 5 months ago) by tomek
added ticket parser: plugins/ticket/ticketparser.h plugins/ticket/ticketparser.cpp

Revision 662 - Directory Listing
Modified Sat Oct 9 20:27:45 2010 UTC (9 years, 6 months ago) by tomek
fixed: DbBase::ConvertTime(tm) should not have been used in this way as it was
       (it uses a static buffer)
       now DbTextStream can get tm struct so you don't have to use ConvertTime 

Revision 660 - Directory Listing
Modified Fri Oct 1 23:20:03 2010 UTC (9 years, 6 months ago) by tomek
added to core/misc:
  bool EqualNoCase(const std::string & str1, const std::string & str2)

Revision 659 - Directory Listing
Modified Thu Sep 30 20:58:20 2010 UTC (9 years, 6 months ago) by tomek
fixed: ticket sets a default function only for directories
fixed: reading a new url and subject in Functions::ReadItem()
added: tickets are sorted now (by date)


Revision 658 - Directory Listing
Modified Wed Sep 29 22:41:34 2010 UTC (9 years, 6 months ago) by tomek
moved: plugins/ticket/ticket.cpp -> plugins/ticket/templates.cpp

Revision 657 - Directory Listing
Modified Wed Sep 29 21:24:34 2010 UTC (9 years, 6 months ago) by tomek
tickets has been moved to a new plugin 'ticket'

Revision 655 - Directory Listing
Modified Sat Sep 18 00:51:12 2010 UTC (9 years, 6 months ago) by tomek
added: TextStream a class similar to std::ostringstream
       but with a Clear() method
       the dynamic allocated buffer can be easily reused
added: DbTextStream a special version of a stream
       used to create a database string query
       everything is escaped by default
added: DbBase a base class with some basic methods for communicating
       with the database
added: DbConn a class for managing connection to the database
changed: some refactoring in Db class       


Revision 654 - Directory Listing
Modified Thu Sep 16 10:20:20 2010 UTC (9 years, 6 months ago) by tomek
creating winix/db directory (for the database class)

Revision 652 - Directory Listing
Modified Sun Sep 12 23:33:27 2010 UTC (9 years, 6 months ago) by tomek
changed: mount points
mount type and mount fs are of type 'int' now
they can be added by plugins

Revision 650 - Directory Listing
Modified Tue Sep 7 23:54:01 2010 UTC (9 years, 7 months ago) by tomek
changed: notification's template
added: notifications in tickets

Revision 649 - Directory Listing
Modified Sun Sep 5 18:58:24 2010 UTC (9 years, 7 months ago) by tomek
fixed: there was missing html/fun_editticket.html template

Revision 648 - Directory Listing
Modified Sat Aug 28 21:19:30 2010 UTC (9 years, 7 months ago) by tomek
added: to stats plugin: microsoft bing searcher

Revision 647 - Directory Listing
Modified Tue Aug 17 23:48:42 2010 UTC (9 years, 7 months ago) by tomek
fixed: plugins path

Revision 645 - Directory Listing
Modified Tue Aug 17 23:33:27 2010 UTC (9 years, 7 months ago) by tomek
changed makefile

Revision 643 - Directory Listing
Modified Tue Aug 17 22:32:47 2010 UTC (9 years, 7 months ago) by tomek
added: plugins_dir to config
small changes in makefiles

Revision 642 - Directory Listing
Modified Mon Aug 16 14:15:37 2010 UTC (9 years, 7 months ago) by tomek
added: method ConfParser::UseEscapeChar(bool escape)

Revision 641 - Directory Listing
Modified Sat Aug 14 17:56:07 2010 UTC (9 years, 7 months ago) by tomek
html code in editors (emacs, ckeditor...) is filtered now for normal users
(root is allowed to use any html code)

Revision 640 - Directory Listing
Modified Sat Aug 14 17:07:13 2010 UTC (9 years, 7 months ago) by tomek
removed some debug logs from emacs

Revision 639 - Directory Listing
Modified Sat Aug 14 16:55:16 2010 UTC (9 years, 7 months ago) by tomek
emacs didn't correctly report errors from db

Revision 638 - Directory Listing
Modified Sat Aug 14 16:23:18 2010 UTC (9 years, 7 months ago) by tomek
now winix waites for the database to be ready (when the operating system starts)

Revision 637 - Directory Listing
Modified Sat Aug 14 14:45:25 2010 UTC (9 years, 7 months ago) by tomek
small changes in template winix function

Revision 636 - Directory Listing
Modified Fri Aug 13 20:04:57 2010 UTC (9 years, 7 months ago) by tomek
some improvement in templates
(now we have O(1) time for selecting the right html template)
added: winix function: template
for selecting a template for an item (file or dir)


Revision 635 - Directory Listing
Modified Thu Aug 12 19:10:12 2010 UTC (9 years, 7 months ago) by tomek
part II of rewriting

Revision 634 - Directory Listing
Modified Wed Aug 11 15:47:44 2010 UTC (9 years, 7 months ago) by tomek
changed method: void PostMultiParser::ReadContentToFileLoop()
previous version was not clean

Revision 633 - Directory Listing
Modified Wed Aug 11 10:00:23 2010 UTC (9 years, 8 months ago) by tomek
fixed: PostMultiParser incorrectly logged the size of input items (those which were not files)

Revision 631 - Directory Listing
Modified Tue Aug 10 20:43:38 2010 UTC (9 years, 8 months ago) by tomek
removed some thread and ticket information from request
they are in FunThread and FunTicket classes now
added funtion FunUptime (I forgot about it)


Revision 630 - Directory Listing
Modified Tue Aug 10 17:05:19 2010 UTC (9 years, 8 months ago) by tomek
I have forgotten to create classes: Ckeditor and Tinymce (in functions)

Revision 628 - Directory Listing
Modified Tue Aug 10 16:12:50 2010 UTC (9 years, 8 months ago) by tomek
the first part of reimplementing has been done
now we have app object and singletons are only: log logn plugin and app


Revision 626 - Directory Listing
Modified Mon Aug 2 18:36:17 2010 UTC (9 years, 8 months ago) by tomek
added: [dir_last_url_is] to templates

Revision 624 - Directory Listing
Modified Tue Jul 27 20:41:56 2010 UTC (9 years, 8 months ago) by tomek
changed: the way how plugins work
all your plugin functions can have signature either:
void my_function(PluginInfo & info); or
void my_function();
only the main Init should have:
extern "C" void Init(PluginFunction & info);

added: directory 'plugins' for plugins
added: 'stats' plugin
		  

Revision 623 - Directory Listing
Modified Wed Jul 21 17:24:16 2010 UTC (9 years, 8 months ago) by tomek
fixed: in htmlfilter: <area> should be treated as single tag
changed: ConfParser is abble to recognize lists

Revision 621 - Directory Listing
Modified Mon Jul 19 23:07:34 2010 UTC (9 years, 8 months ago) by tomek
updated to the new version of ezc

Revision 620 - Directory Listing
Modified Mon Jul 5 17:22:30 2010 UTC (9 years, 9 months ago) by tomek
added: progress bar (image) to tickets table

Revision 619 - Directory Listing
Modified Mon Jul 5 15:21:06 2010 UTC (9 years, 9 months ago) by tomek
small refactoring

Revision 618 - Directory Listing
Modified Sun Jul 4 20:27:14 2010 UTC (9 years, 9 months ago) by tomek
added: parameters consist of a name and a value now
       sample: /dir/dir2/function/paramname:paramvalue
removed: TemplatesMisc namespace


Revision 617 - Directory Listing
Modified Thu Jul 1 15:40:18 2010 UTC (9 years, 9 months ago) by tomek
fixed: a mount parameter html_template() was not properly read when mountpoints were reloaded

Revision 616 - Directory Listing
Modified Wed Jun 30 19:56:32 2010 UTC (9 years, 9 months ago) by tomek
added: "edit" button on threads

Revision 615 - Directory Listing
Modified Wed Jun 30 18:42:50 2010 UTC (9 years, 9 months ago) by tomek
added: bbcode
       files: core/bbcodeparser.h core/bbcodeparser.cpp

Revision 614 - Directory Listing
Modified Tue Jun 22 21:09:37 2010 UTC (9 years, 9 months ago) by tomek
struct Item has modification_user_id (long) now
this is the id of a user who has modified the item recently
this is only for information, persmissions don't use it

Revision 613 - Directory Listing
Modified Tue Jun 22 13:05:49 2010 UTC (9 years, 9 months ago) by tomek
debug

Revision 612 - Directory Listing
Modified Tue Jun 22 13:01:56 2010 UTC (9 years, 9 months ago) by tomek
debugging info

Revision 611 - Directory Listing
Modified Mon Jun 21 23:53:19 2010 UTC (9 years, 9 months ago) by tomek
added: mount option: html_template(file.html)
       files: indexpatterns.h indexpatterns.cpp
removed: templates/index_root.html
        its content was moved to index.html

Revision 610 - Directory Listing
Modified Mon Jun 21 13:10:53 2010 UTC (9 years, 9 months ago) by tomek
html templates

Revision 607 - Directory Listing
Modified Sun Jun 20 22:47:24 2010 UTC (9 years, 9 months ago) by tomek
added: a new editor: tinymce (function tinymce)
added: html filter can check orphans: "i", "a", "o" ... in a text

Revision 606 - Directory Listing
Modified Sat Jun 5 19:44:49 2010 UTC (9 years, 10 months ago) by tomek
added: cp function for directories
added: emacs/mkdir uses group_id of the parent directory when creating new items
added: parameter 'dirls' to ls function

Revision 605 - Directory Listing
Modified Thu Jun 3 17:38:18 2010 UTC (9 years, 10 months ago) by tomek
added: function cp (only for files)

Revision 604 - Directory Listing
Modified Mon May 31 20:42:13 2010 UTC (9 years, 10 months ago) by tomek
changed html templates

Revision 602 - Directory Listing
Modified Sun May 30 21:07:46 2010 UTC (9 years, 10 months ago) by tomek
updated to new version of Ezc

Revision 600 - Directory Listing
Modified Thu May 20 18:28:19 2010 UTC (9 years, 10 months ago) by tomek
added function: uname
added function: subject - for changing a subject

Revision 598 - Directory Listing
Modified Tue May 4 21:58:22 2010 UTC (9 years, 11 months ago) by tomek
added: sessions data for plugins (plugindata.h plugindata.cpp)

Revision 597 - Directory Listing
Modified Mon Mar 15 17:09:45 2010 UTC (10 years ago) by tomek
added: 'rm' function can remove auth content now

Revision 596 - Directory Listing
Modified Mon Mar 15 01:47:26 2010 UTC (10 years ago) by tomek
added: to the Item: auth_path - a path to a static file (if auth is different from auth_none)
added: function 'mv' (move)


Revision 594 - Directory Listing
Modified Sun Feb 28 21:33:06 2010 UTC (10 years, 1 month ago) by tomek
removed: Done class (core/done.h, core/done.cpp)
removed: from Session: done, done_status, timers


Revision 593 - Directory Listing
Modified Sun Feb 28 00:08:10 2010 UTC (10 years, 1 month ago) by tomek
added: function adduser
changed: errors (removed enum, there are macros now)
added: error messages to locales (winix_err_NN)
removed: templates: err_abuse.html err_others.html

Revision 589 - Directory Listing
Modified Mon Feb 22 22:52:09 2010 UTC (10 years, 1 month ago) by tomek
added: parameter 'l' to 'ls' function
added: Db::ItemQuery struct for querying items
changed: some refactoring (renamed some config variables)



Revision 588 - Directory Listing
Modified Thu Feb 18 23:30:22 2010 UTC (10 years, 1 month ago) by tomek
added: to mount points: file systems
       we have two file systems now:
       - simplefs - the files stored on the hard drive have the same structure as in the database (dir1/dir2/file)
       - hashfs - files are stored in special directories
extented: the mountparser can read file system 
added: function download
       this is a default function for items which have static content
  

Revision 587 - Directory Listing
Modified Tue Feb 16 18:34:41 2010 UTC (10 years, 1 month ago) by tomek
added: functions: chmod, chown

Revision 586 - Directory Listing
Modified Tue Feb 16 00:37:00 2010 UTC (10 years, 1 month ago) by tomek
added: parameter 'r' to priv function
       all directories and files can be changed

Revision 585 - Directory Listing
Modified Mon Feb 15 18:22:16 2010 UTC (10 years, 1 month ago) by tomek
modified templates

Revision 582 - Directory Listing
Modified Mon Feb 15 00:31:14 2010 UTC (10 years, 1 month ago) by tomek
fixed: Config::Text() returned a reference to a local variable (std::string)
added: 'static' directory with *.css and images
       we have a default layout
moved: locale from data to templates       
       notification templates have its own locale object
added: reload function reloades locale now too
added: 'nice' form of item_info in templates


Revision 581 - Directory Listing
Modified Sun Feb 14 14:28:43 2010 UTC (10 years, 1 month ago) by tomek
added static dir

Revision 579 - Directory Listing
Modified Sat Feb 13 20:14:44 2010 UTC (10 years, 1 month ago) by tomek
I forgot to commit loadavg.h and loadavg.cpp

Revision 577 - Directory Listing
Modified Sat Feb 13 20:12:15 2010 UTC (10 years, 1 month ago) by tomek
added: calculation of load averages and requests per second
       (uptime function shows it)

Revision 575 - Directory Listing
Modified Fri Feb 12 23:16:13 2010 UTC (10 years, 1 month ago) by tomek
changed: upload function
         select file type by the extension
         param: multi
fixed:   uptime function
         it showed incorrect uptime time (minuts were badly calculated)

Revision 572 - Directory Listing
Modified Fri Feb 12 17:05:32 2010 UTC (10 years, 1 month ago) by tomek
added to config: parameter static_auth_dir_tmp
with a path to directory for tmp files (for upload functino)


Revision 571 - Directory Listing
Modified Fri Feb 12 16:39:09 2010 UTC (10 years, 1 month ago) by tomek
added: loggin to upload.cpp

Revision 569 - Directory Listing
Modified Thu Feb 11 21:04:53 2010 UTC (10 years, 1 month ago) by tomek
fixed: sprintf %d in uptime function


Revision 567 - Directory Listing
Modified Thu Feb 11 20:56:52 2010 UTC (10 years, 1 month ago) by tomek
added: functions: ckeditor, uptime
added: for function: login - a html pattern for GET request

Revision 566 - Directory Listing
Modified Mon Feb 8 20:02:16 2010 UTC (10 years, 2 months ago) by tomek
added: to templates: item_url_is and dir_last_url


Revision 565 - Directory Listing
Modified Sat Feb 6 14:08:44 2010 UTC (10 years, 2 months ago) by tomek
added: 'rm' function can work with tickets

Revision 563 - Directory Listing
Modified Thu Jan 28 21:09:48 2010 UTC (10 years, 2 months ago) by tomek
changed: log is saved after some requests (config: log_request value) (performance)

Revision 560 - Directory Listing
Modified Thu Jan 28 15:39:01 2010 UTC (10 years, 2 months ago) by tomek
changed: rename cmslu to winix
changed: html templates are a part of winix now
         and the user can provide special html templates for its site
added:   locales
added:   html templates are using HtmlFilter now (locales)
changed: now we have html templates for each language


Revision 559 - Directory Listing
Modified Tue Jan 26 19:07:40 2010 UTC (10 years, 2 months ago) by tomek
renaming cmslu to winix

Revision 558 - Directory Listing
Modified Tue Jan 26 19:02:21 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
moving html templates to cmslu

Revision 557 - Directory Listing
Modified Mon Jan 25 07:27:18 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: not logged users cannot edit a ticket

Revision 556 - Directory Listing
Modified Mon Jan 25 07:04:34 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: not logged users are not allowed to remove anything
       (temporarily - we're waiting for the sticky bit)

Revision 554 - Directory Listing
Modified Mon Jan 25 04:52:17 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
added:   issues ticket system
         added functions: ticket, createticket, editticket
         (there is no 'rm' function working for tickets yet)
changed: mount parser and mount points
         now we have more parameters (arguments in parameters)
some refactoring in functions 'emacs' and 'mkdir'


Revision 553 - Directory Listing
Modified Mon Jan 11 16:41:23 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: there was a wrong template used for 404 header

Revision 552 - Directory Listing
Modified Mon Jan 11 15:09:31 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: access to content type should not be checked when generating a page

Revision 551 - Directory Listing
Modified Mon Jan 11 14:59:19 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: content type was always 'formatted text' (in emacs when creating a new item)

Revision 549 - Directory Listing
Modified Mon Jan 11 14:47:52 2010 UTC (10 years, 2 months ago) by tomek
Original Path: cmslu/trunk
added: item content type: raw

Revision 547 - Directory Listing
Modified Thu Jan 7 14:45:00 2010 UTC (10 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: default values for variables read from the config file

Revision 545 - Directory Listing
Modified Wed Jan 6 19:36:29 2010 UTC (10 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: static_auth_dir to config

Revision 543 - Directory Listing
Modified Wed Jan 6 19:17:53 2010 UTC (10 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: parser for multipart forms, files: postmultiparser.h postmultiparser.cpp 
added: function: upload



Revision 540 - Directory Listing
Modified Wed Dec 30 20:46:12 2009 UTC (10 years, 3 months ago) by tomek
Original Path: cmslu/trunk
fixed:   dots in url-es (now only one dot is available in the whole name and it cannot be only one dot ".")
added:   cmslu can act as an authorizer (fast cgi authorize role)
added:   Item::static_auth we can have additional static content on the file system
         this content is authorized through cmslu (fastcgi authorizer mode)
changed: some changes in config
changed: the way how the www server is using cmslu
         added new virtuals: static static_auth
changed: cmslu returns correct http headers (200, 404, 403)
changed: in cookie parser: we get the last cookie (if the server has more than one cookie with the same name)


Revision 539 - Directory Listing
Modified Sat Dec 19 19:46:15 2009 UTC (10 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: exception for the Konqueror browser
       it has a problem with deflate compression

Revision 536 - Directory Listing
Modified Wed Dec 9 00:52:00 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
changed: notification times

Revision 534 - Directory Listing
Modified Wed Dec 9 00:42:40 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
* added: class HTMLFilter
         files: htmlfilter.h htmlfilter.cpp
         this is an html filter used to make the html output looking better
         this is a very lightweight filter
         (without using any dynamic memory - some memory is allocated only at the beginning - in ctors)
         this filter has O(n) complexity over the whole html string
* added: antyspamming method
         if the POST request is sent too fast after the GET
         it is treated as a spam
         only for no logged users and only in 'emacs' and 'createthread' functions
       

Revision 532 - Directory Listing
Modified Fri Dec 4 05:03:44 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
small changes in Makefile
now the binaries are in local 'bin' directory
(use make install)

Revision 531 - Directory Listing
Modified Sat Nov 21 00:08:08 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
changed: SessionParser::ReadLong() can read negative values

Revision 529 - Directory Listing
Modified Fri Nov 20 23:09:52 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
added: 'remember me' flag when logging
added: the session file
       sessions can still be available between starting and stopping the cmslu system

Revision 527 - Directory Listing
Modified Wed Nov 18 01:58:38 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
removed: hidden variable 'old_url' in emacs template

Revision 525 - Directory Listing
Modified Tue Nov 17 01:07:29 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
I have forgotten to add templates/rebus.cpp to the repository

Revision 523 - Directory Listing
Modified Tue Nov 17 01:04:01 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
refactoring

Revision 521 - Directory Listing
Modified Mon Nov 16 23:36:38 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
added: Rebus
       (when no logged user wants to send a message then he is asked a question)

Revision 519 - Directory Listing
Modified Mon Nov 16 17:43:23 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
fixed: the core didn't test for special folder when system was running
       (now mkdir addes correctly special folders)
added: function 'reload'
       param: 'templates' - reloading templates

Revision 518 - Directory Listing
Modified Sun Nov 15 23:55:11 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
added: mount points are read from db: /etc/fstab
changed: mount points parser allows empty lines (with some white characters)

Revision 516 - Directory Listing
Modified Fri Nov 13 20:40:11 2009 UTC (10 years, 4 months ago) by tomek
Original Path: cmslu/trunk
added: plugin mechanism
       files: core/plugin.h core/plugin.cpp core/pluginmsg.h
added: directory 'main' with main.cpp (moved from 'core' directory)
changed: the way of building
       nearly everything is in cmslu.so
       only main() is in cmslu and is dynamically linked with cmslu.so


Revision 515 - Directory Listing
Modified Thu Oct 8 17:59:10 2009 UTC (10 years, 6 months ago) by tomek
Original Path: cmslu/trunk
added: acceptbaseparser.h acceptbaseparser.cpp
       class AcceptBaseParser for parsing http accept* headers
added: acceptencodingparser.h
       class AcceptEncodingParser for parsing HTTP_ACCEPT_ENCODING header
added: compresion only when HTTP_ACCEPT_ENCODING has 'deflate'
       and the browser is not the Internet Explorer

Revision 512 - Directory Listing
Modified Wed Sep 30 22:31:20 2009 UTC (10 years, 6 months ago) by tomek
Original Path: cmslu/trunk
added: notifications to users' emails
       (core/notify.h core/notify.cpp)
       templatesnotify directory
       all notifications are managed by a second thread

Revision 511 - Directory Listing
Modified Mon Sep 21 23:05:05 2009 UTC (10 years, 6 months ago) by tomek
Original Path: cmslu/trunk
added: support for output compression

Revision 508 - Directory Listing
Modified Sun Jun 7 22:17:07 2009 UTC (10 years, 10 months ago) by tomek
Original Path: cmslu/trunk
changed: mount points

Revision 506 - Directory Listing
Modified Sun Jun 7 02:40:27 2009 UTC (10 years, 10 months ago) by tomek
Original Path: cmslu/trunk
added: column 'guest_name' to 'item' table
       used when user_id is -1
added: mount parameters: thread_with_info, thread_with_header
added: function rm can remove threads


Revision 505 - Directory Listing
Modified Fri Jun 5 20:29:06 2009 UTC (10 years, 10 months ago) by tomek
Original Path: cmslu/trunk
added: forum
added: mount params can have arguments (in parentheses)
added: mount params: withheader, withinfo, restrictcreatethread, only_root_can_remove,
       can_use_emacs_on(level), can_use_mkdir_on(level), 
added: table Item has 'subject' column now
removed: column 'subject' from table Content



Revision 503 - Directory Listing
Modified Thu May 21 19:27:16 2009 UTC (10 years, 10 months ago) by tomek
Original Path: cmslu/trunk
added: macro APPPREPARE
       void AppFunction(int code);


Revision 501 - Directory Listing
Modified Tue Apr 21 20:50:55 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
changed: the way of building
         core.a content.a templates.a confparser.a have gone away
	 there is only: cmslu.a now (in the global directory 'cmslu')
changed: the way of building
         in Makefile(s) we dont longer use explicitly a variable 'o = file1.o file2.o...'
	 it was put into Makefile.o.dep and is generated automatically 
         when 'make depend' is invoked
changed: some #include "..." directives were put from *.h to *.cpp files
         fewer dependences

Revision 499 - Directory Listing
Modified Mon Apr 20 23:49:28 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
added: mount points have parameters now
added: to the database: table 'thread'


Revision 497 - Directory Listing
Modified Mon Apr 20 21:10:31 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
fixed: a small problem in mountparser (it coused core dumped when there was a wrong mount point supplied)
fixed: 'default' funtion can take a directory now (there was an error early)

Revision 496 - Directory Listing
Modified Mon Apr 20 20:22:35 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
added: put info about logging out a user (to 'last' table) (when a session expires)

Revision 495 - Directory Listing
Modified Sun Apr 19 22:13:21 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
added: mount points
       (reading /etc/fstab from db not working yet)
       core/mount.h
       core/mountparser.h
       core/mountparser.cpp
       core/mounts.h
       core/mounts.cpp
       content/thread.cpp
       content/createthread.cpp
       templates/thread.cpp       


Revision 492 - Directory Listing
Modified Thu Apr 16 01:59:42 2009 UTC (10 years, 11 months ago) by tomek
Original Path: cmslu/trunk
added: container LastContainer (lastcontainer.h lastcontainer.cpp)
       it consists of last logged users
added: function 'last'

Revision 489 - Directory Listing
Modified Sun Mar 22 23:54:15 2009 UTC (11 years ago) by tomek
Original Path: cmslu/trunk
added: date_creation and date_modification to items
changed: function 'run' is using a template: fun_run.html
         there is: [item_run] called from this template

Revision 487 - Directory Listing
Modified Fri Feb 6 13:12:03 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
changed: DirContainer - uses std::list instead of std::vector as the main container
         we do not have to rebuild indexes after deleting some items
added:   DirContainer::DelById(long id)
changed: Dirs::CheckRootDir() addes the root dir if there is no one
added:   Dirs::DeleteDir(long id) - deletes specified directory (and its contents)
         (from the cache and the database)
added:   Db::DelDirById(long id) - deletes a dir from the database 
         and its first children
added:   standard function rm can delete directories

Revision 483 - Directory Listing
Modified Sat Jan 31 06:53:36 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
added: SessionContainer special container used by SessionManager
       sessions are indexed by id and time (last used time)
changed: old sessions are deleted
       parameter: session_max_iddle in the config file
added: function 'who'

Revision 482 - Directory Listing
Modified Tue Jan 27 18:43:44 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
fixed: the way AppDb works (pg_conn and Connect method)

Revision 480 - Directory Listing
Modified Mon Jan 26 21:21:07 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
changed: not logging (headers and body)

Revision 479 - Directory Listing
Modified Mon Jan 26 21:08:42 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
default.item has to be default.cpp

Revision 475 - Directory Listing
Modified Mon Jan 26 20:49:28 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
changed: the way of building the cmslu
         main Makefile is in an application directory
         in cmslu/ there are only libraries:
         core.a content.a confparser.a templates.a
added:   macros APPTEMPLATES APPFUNCTIONS
         defined in the application's Makefile
added:   PatternCacher
added:   cmslu function 'run'
         files which have exec permissions
         can be run (run is a default function)
         after read from the database the content is parsed
         into Ezc::Pattern object, this object is then cached
         in PatternCacher
added:   FunctionCodeParser - will be used to parse the code
         from standard functions (ls/cat/...)

Revision 474 - Directory Listing
Modified Wed Jan 14 20:11:12 2009 UTC (11 years, 2 months ago) by tomek
Original Path: cmslu/trunk
changed: cmslu building
         Makefile from cmslu/ builds only: confparser.a content.a core.a templates.a
         the proper *.fcgi file is created from an application
changed: all cmslu functions have english names (ls, emacs, etc)
fixed:   function: login/logout are placed where there are permissions

Revision 473 - Directory Listing
Modified Wed Dec 31 18:28:12 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: function: default
       changes the default item in a directory

Revision 472 - Directory Listing
Modified Wed Dec 31 13:40:23 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
I forgot to commit content/mkdir.cpp

Revision 471 - Directory Listing
Modified Wed Dec 31 13:36:46 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: function: mkdir

Revision 469 - Directory Listing
Modified Tue Dec 30 01:05:03 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added:   created directory 'content' which has Content:: files
added:   created directory 'templates' which has Templates:: and TemplatesFunctions:: files
changed: content.cpp split into many files (directory 'content')
changed: templates.cpp split into many files (directory 'templates')
added:   full permissions
changed: building of the program (GNU make is used now)
         Makefile and Makefile.dep added into directories
added:   a parser 'FunctionParser'
         is used to parse the GET string
         it recognizes directories, items, functions, functions parameters
added:   other classes: Function, Functions 
added:   function: ls, privileges
changed: function 'id' to 'node'
changed: version: to 0.2.0
added/changed: a lot of work have been done

Revision 468 - Directory Listing
Modified Mon Dec 22 16:03:03 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
changed: there is one dir called root (has parent_id -1)
         (we have an owner, group, privileges etc of the root dir)
         the root.id of course is not -1 

Revision 467 - Directory Listing
Modified Sun Dec 21 21:17:09 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: privileges (user, groups, permissions)
       (not finished yet)
       classes: User, Group, Users, Groups, UGContainer
changed: Dir class into Dirs

Revision 466 - Directory Listing
Modified Sun Dec 14 05:28:28 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
changed: db: table item: url_subject into url
changed: item.url_subject into item.url
changed: a new table: content
         with: id, subject, content, content_type
         (those from the item table)
         it helps to create hard links

Revision 465 - Directory Listing
Modified Fri Dec 12 03:11:29 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
added: config: base_url_redirect
       when true the server checks whether HTTP_HOST environment variable
       is the same as base_url from the config (of course without the 'http://' part
       and the last slash) - if it's not the same then the server
       redirects you into a new location base_url+REQUEST_URI
changed: variables env_* from Request are never null (after Request::Read())
       if the server didn't set such a variable it will be pointing into an empty string "\0"

Revision 464 - Directory Listing
Modified Thu Dec 11 02:48:25 2008 UTC (11 years, 3 months ago) by tomek
Original Path: cmslu/trunk
I forgot to add config.h and config.cpp into the repository

Revision 463 - Directory Listing
Modified Thu Dec 11 02:46:16 2008 UTC (11 years, 4 months ago) by tomek
Original Path: cmslu/trunk
added: program reads its configuration from a config file
added: confparser directory and confparser.h and confparser.cpp
       class ConfParser used to parse a config file
       this is a generic parser, can be used by another project
added: config.h, config.cpp
       class Config used for assigning values from 
       a config file into the data object
added: function for signals: SIGINT, SIGHUP
       after receiving SIGHUP the program will read
       its config file again

Revision 460 - Directory Listing
Modified Wed Dec 10 04:42:49 2008 UTC (11 years, 4 months ago) by tomek
Original Path: cmslu/trunk
import the first version of cmslu

Revision 459 - Directory Listing
Added Wed Dec 10 04:41:09 2008 UTC (11 years, 4 months ago) by tomek
Original Path: cmslu/trunk
creating directory cmslu/trunk