Log of /winix
Directory Listing
Revision
1218 -
Directory Listing
-
[select for diffs]
Modified
Wed Sep 25 16:25:20 2019 UTC
(3 years, 4 months ago)
by
tomek
Diff to
previous 1199
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
1182 -
Directory Listing
-
[select for diffs]
Modified
Tue Mar 19 18:08:09 2019 UTC
(3 years, 10 months ago)
by
tomek
Diff to
previous 1180
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
1179 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 14 13:33:40 2019 UTC
(3 years, 10 months ago)
by
tomek
Diff to
previous 1178
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
1171 -
Directory Listing
-
[select for diffs]
Modified
Wed Mar 6 11:53:28 2019 UTC
(3 years, 11 months ago)
by
tomek
Diff to
previous 1169
merge from branch 0.7.x:
- initial support for morm
- added: WinixBase, WinixModel, WinixSystem, WinixRequest
- logger moved to pikotools
Revision
1169 -
Directory Listing
-
[select for diffs]
Modified
Tue Feb 19 10:36:20 2019 UTC
(3 years, 11 months ago)
by
tomek
Diff to
previous 1164
- json_generic_serializer was not set when there was a redirect
- if there is a redirect and the json return answer is requested
then we send 'redirect_to' field in 'info' space
Revision
1164 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 7 03:32:17 2019 UTC
(4 years, 1 month ago)
by
tomek
Diff to
previous 1162
added to Locale:
const std::wstring & GetReplace(const wchar_t * key, Types ... types)
key is a string pattern which has %0, %1 parameters which will be replaced with 'types'
Revision
1162 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 2 11:33:19 2019 UTC
(4 years, 1 month ago)
by
tomek
Diff to
previous 1161
fixed: crash in thread plugin
ThreadInfo was not correctly initialized (plugin pointer was null)
added to PluginInfo: set_dependency_for(WinixModel * winix_model)
Revision
1151 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 23 17:53:43 2018 UTC
(4 years, 2 months ago)
by
tomek
Diff to
previous 1148
updated to the new pikotools api - we have a logger for morm and ezc
pikotools has now Log and FileLog classes
which are base classes for winix Log and FileLog classes
Revision
1148 -
Directory Listing
-
[select for diffs]
Modified
Wed Nov 21 22:53:24 2018 UTC
(4 years, 2 months ago)
by
tomek
Diff to
previous 1147
some work in the new api:
- log_level and save_each_line moved from Log to FileLog
- other fixes in loggers
- DirContainer from Dirs and LoadAvg had no dependencies set
Revision
1146 -
Directory Listing
-
[select for diffs]
Modified
Wed Nov 21 11:03:53 2018 UTC
(4 years, 2 months ago)
by
tomek
Diff to
previous 1145
start working on 0.7.x branch
- added FileLog which stores content to the file log
- now Log is only a wrapper - it puts messages to the local buffer and when logsave is used then the buffer is put to FileLog
- new base classes:
WinixBase (Log, Config*, Synchro*)
WinixModel : public WinixBase (morm::ModelConnector*, Plugin*)
WinixSystem : public WinixModel (System*)
WinixRequest : public WinixSystem (SLog, Cur*)
- singletons: log, slog, plugin are depracated - now references to them are in base classses (WinixBase, WinixModel)
- DbBase, DbConn and Db are depracated - now we are using Morm project (in WinixModel there is a model_connector pointer)
each thread will have its own ModelConnector
Revision
1129 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 23 23:28:45 2018 UTC
(4 years, 3 months ago)
by
tomek
Diff to
previous 1128
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
1117 -
Directory Listing
-
[select for diffs]
Modified
Mon Jul 2 12:02:19 2018 UTC
(4 years, 7 months ago)
by
tomek
Diff to
previous 1116
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
-
[select for diffs]
Modified
Mon Jul 2 11:16:36 2018 UTC
(4 years, 7 months ago)
by
tomek
Diff to
previous 1115
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
-
[select for diffs]
Modified
Wed Jun 20 15:00:02 2018 UTC
(4 years, 7 months ago)
by
tomek
Diff to
previous 1114
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
-
[select for diffs]
Modified
Tue Jun 19 13:52:08 2018 UTC
(4 years, 7 months ago)
by
tomek
Diff to
previous 1112
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
-
[select for diffs]
Modified
Fri May 25 17:22:12 2018 UTC
(4 years, 8 months ago)
by
tomek
Diff to
previous 1109
changed: using PT::ToLower instead of ToSmall
using PT::ToUpper instead of ToCapital
using PT::EqualNoCase instead of EqualNoCase
Revision
1109 -
Directory Listing
-
[select for diffs]
Modified
Thu May 10 17:21:39 2018 UTC
(4 years, 8 months ago)
by
tomek
Diff to
previous 1108
some work on integrating ckeditor4
added ezc blocks: ckeditor_old_browsers_support, ckeditor, ckeditor_small
defined in ckeditor.html
Revision
1105 -
Directory Listing
-
[select for diffs]
Modified
Tue May 1 11:22:55 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1104
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
-
[select for diffs]
Modified
Tue May 1 10:43:20 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1102
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
1100 -
Directory Listing
-
[select for diffs]
Modified
Wed Apr 25 19:48:47 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1099
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
-
[select for diffs]
Modified
Wed Apr 25 09:37:56 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1096
added config parameter: db_postgresql_smaller_than_10
default false
if true then we are not using ROW() statements in sql queries
Revision
1094 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 22 21:26:56 2018 UTC
(4 years, 9 months ago)
by
tomek
Diff to
previous 1080
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
1069 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 1 00:14:02 2018 UTC
(5 years, 1 month ago)
by
tomek
Diff to
previous 1068
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
1040 -
Directory Listing
-
[select for diffs]
Modified
Wed Jul 13 13:13:56 2016 UTC
(6 years, 6 months ago)
by
tomek
Diff to
previous 1039
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
-
[select for diffs]
Modified
Mon Apr 4 16:02:36 2016 UTC
(6 years, 10 months ago)
by
tomek
Diff to
previous 1036
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
1035 -
Directory Listing
-
[select for diffs]
Modified
Tue Mar 22 14:53:43 2016 UTC
(6 years, 10 months ago)
by
tomek
Diff to
previous 1031
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
1030 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 17 13:46:20 2016 UTC
(6 years, 10 months ago)
by
tomek
Diff to
previous 1028
changed: winix project has been moved to 'winixd' subdirectory
in Makefiles we are caltulating relative paths now (by using relative_path program)
Revision
1021 -
Directory Listing
-
[select for diffs]
Modified
Mon Feb 1 10:15:23 2016 UTC
(7 years ago)
by
tomek
Diff to
previous 1020
fixed: in FunctionParser we do not treat '+' as a space
added: some work in MailRegister plugin
(adding mails to db, showing mails)
Revision
1017 -
Directory Listing
-
[select for diffs]
Modified
Sun Nov 15 22:23:36 2015 UTC
(7 years, 2 months ago)
by
tomek
Diff to
previous 1013
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
-
[select for diffs]
Modified
Tue Jun 16 02:37:07 2015 UTC
(7 years, 7 months ago)
by
tomek
Diff to
previous 1012
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
1007 -
Directory Listing
-
[select for diffs]
Modified
Thu Apr 16 14:43:52 2015 UTC
(7 years, 9 months ago)
by
tomek
Diff to
previous 1006
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
1005 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 8 23:22:05 2015 UTC
(7 years, 11 months ago)
by
tomek
Diff to
previous 1003
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
1002 -
Directory Listing
-
[select for diffs]
Modified
Sun Feb 22 10:23:52 2015 UTC
(7 years, 11 months ago)
by
tomek
Diff to
previous 1001
added: some ezc functions for displaying current date
current_sec, current_min, current_hour, current_year, ...
Revision
1001 -
Directory Listing
-
[select for diffs]
Modified
Fri Jan 2 08:18:06 2015 UTC
(8 years, 1 month ago)
by
tomek
Diff to
previous 1000
changed: some refactoring in System: in IsMemberOfGroup method
changed: some log messages at startup (about non existing empty group for uploads directory)
Revision
998 -
Directory Listing
-
[select for diffs]
Modified
Fri Jan 2 07:01:08 2015 UTC
(8 years, 1 month ago)
by
tomek
Diff to
previous 996
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
-
[select for diffs]
Modified
Tue Nov 25 12:02:22 2014 UTC
(8 years, 2 months ago)
by
tomek
Diff to
previous 995
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
-
[select for diffs]
Modified
Mon Nov 24 20:22:30 2014 UTC
(8 years, 2 months ago)
by
tomek
Diff to
previous 994
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
-
[select for diffs]
Modified
Sat Nov 22 15:30:56 2014 UTC
(8 years, 2 months ago)
by
tomek
Diff to
previous 993
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
990 -
Directory Listing
-
[select for diffs]
Modified
Thu Nov 6 21:17:41 2014 UTC
(8 years, 3 months ago)
by
tomek
Diff to
previous 989
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
-
[select for diffs]
Modified
Sun Nov 2 17:47:34 2014 UTC
(8 years, 3 months ago)
by
tomek
Diff to
previous 984
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
980 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 21 07:27:21 2014 UTC
(8 years, 3 months ago)
by
tomek
Diff to
previous 978
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
-
[select for diffs]
Modified
Sun Oct 19 21:20:09 2014 UTC
(8 years, 3 months ago)
by
tomek
Diff to
previous 974
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
965 -
Directory Listing
-
[select for diffs]
Modified
Thu Oct 9 20:44:56 2014 UTC
(8 years, 3 months ago)
by
tomek
Diff to
previous 964
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
961 -
Directory Listing
-
[select for diffs]
Modified
Sun Sep 28 17:30:05 2014 UTC
(8 years, 4 months ago)
by
tomek
Diff to
previous 959
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
-
[select for diffs]
Modified
Mon Sep 22 23:54:24 2014 UTC
(8 years, 4 months ago)
by
tomek
Diff to
previous 958
added: htmltextstream escapes more characters now:
added characters:
" -> &#quot;
' -> ' (' but IE8 has a problem with ')
10 ->
13 ->
added: two ezc filters:
fil_html_quote
" -> &#quot;
' -> ' (' but IE8 has a problem with ')
fil_html_newline
10 ->
13 ->
changed: fun_subject.html uses <div class="winix_input_a"> now
Revision
958 -
Directory Listing
-
[select for diffs]
Modified
Wed Aug 6 20:14:10 2014 UTC
(8 years, 6 months ago)
by
tomek
Diff to
previous 957
changed: plugin jQuery File Upload has been updated to version 9.7.0
(changed 'upload' and 'rm' winix functions)
Revision
956 -
Directory Listing
-
[select for diffs]
Modified
Sun Aug 3 18:33:07 2014 UTC
(8 years, 6 months ago)
by
tomek
Diff to
previous 955
fixed: item content should not be escaped in 'raw' mode
(it was not escaped only when execute bits were set)
Revision
955 -
Directory Listing
-
[select for diffs]
Modified
Wed Jun 18 23:18:28 2014 UTC
(8 years, 7 months ago)
by
tomek
Diff to
previous 954
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
-
[select for diffs]
Modified
Sat Jun 7 11:20:44 2014 UTC
(8 years, 8 months ago)
by
tomek
Diff to
previous 953
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
-
[select for diffs]
Modified
Fri Feb 14 11:20:22 2014 UTC
(8 years, 11 months ago)
by
tomek
Diff to
previous 952
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
947 -
Directory Listing
-
[select for diffs]
Modified
Tue Feb 11 21:00:32 2014 UTC
(8 years, 11 months ago)
by
tomek
Diff to
previous 946
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
945 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 19 17:19:47 2013 UTC
(9 years, 1 month ago)
by
tomek
Diff to
previous 944
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
942 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 4 01:21:57 2013 UTC
(9 years, 2 months ago)
by
tomek
Diff to
previous 941
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
-
[select for diffs]
Modified
Tue Dec 3 12:33:41 2013 UTC
(9 years, 2 months ago)
by
tomek
Diff to
previous 940
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
-
[select for diffs]
Modified
Fri Nov 29 21:39:23 2013 UTC
(9 years, 2 months ago)
by
tomek
Diff to
previous 939
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
937 -
Directory Listing
-
[select for diffs]
Modified
Thu Nov 14 20:59:23 2013 UTC
(9 years, 2 months ago)
by
tomek
Diff to
previous 933
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
-
[select for diffs]
Modified
Tue Oct 15 21:57:51 2013 UTC
(9 years, 3 months ago)
by
tomek
Diff to
previous 932
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
-
[select for diffs]
Modified
Thu Oct 10 11:59:21 2013 UTC
(9 years, 3 months ago)
by
tomek
Diff to
previous 931
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
-
[select for diffs]
Modified
Mon Jul 8 14:42:14 2013 UTC
(9 years, 7 months ago)
by
tomek
Diff to
previous 930
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
929 -
Directory Listing
-
[select for diffs]
Modified
Thu May 16 21:02:17 2013 UTC
(9 years, 8 months ago)
by
tomek
Diff to
previous 928
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
926 -
Directory Listing
-
[select for diffs]
Modified
Thu May 16 19:26:44 2013 UTC
(9 years, 8 months ago)
by
tomek
Diff to
previous 925
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
924 -
Directory Listing
-
[select for diffs]
Modified
Mon May 6 07:23:44 2013 UTC
(9 years, 9 months ago)
by
tomek
Diff to
previous 923
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
-
[select for diffs]
Modified
Wed Apr 24 01:21:19 2013 UTC
(9 years, 9 months ago)
by
tomek
Diff to
previous 922
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
-
[select for diffs]
Modified
Wed Apr 17 00:37:39 2013 UTC
(9 years, 9 months ago)
by
tomek
Diff to
previous 921
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
-
[select for diffs]
Modified
Tue Apr 16 09:51:36 2013 UTC
(9 years, 9 months ago)
by
tomek
Diff to
previous 920
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
-
[select for diffs]
Modified
Tue Apr 2 22:24:30 2013 UTC
(9 years, 10 months ago)
by
tomek
Diff to
previous 919
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
-
[select for diffs]
Modified
Fri Mar 29 22:03:28 2013 UTC
(9 years, 10 months ago)
by
tomek
Diff to
previous 918
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
-
[select for diffs]
Modified
Tue Mar 26 00:04:01 2013 UTC
(9 years, 10 months ago)
by
tomek
Diff to
previous 917
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
-
[select for diffs]
Modified
Tue Feb 26 11:49:22 2013 UTC
(9 years, 11 months ago)
by
tomek
Diff to
previous 916
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
-
[select for diffs]
Modified
Fri Feb 1 21:14:56 2013 UTC
(10 years ago)
by
tomek
Diff to
previous 915
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
912 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 30 15:33:08 2012 UTC
(10 years, 1 month ago)
by
tomek
Diff to
previous 911
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
909 -
Directory Listing
-
[select for diffs]
Modified
Mon Nov 5 23:13:52 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 908
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
-
[select for diffs]
Modified
Sun Nov 4 22:39:02 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 907
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
-
[select for diffs]
Modified
Sun Nov 4 21:01:02 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 906
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
905 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 27 11:17:52 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 904
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
903 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 27 09:03:49 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 902
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
-
[select for diffs]
Modified
Sat Oct 27 07:44:26 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 901
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
-
[select for diffs]
Modified
Wed Oct 17 19:52:55 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 900
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
898 -
Directory Listing
-
[select for diffs]
Modified
Wed Oct 17 06:00:00 2012 UTC
(10 years, 3 months ago)
by
tomek
Diff to
previous 895
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
-
[select for diffs]
Modified
Wed Sep 26 07:18:32 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 894
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
-
[select for diffs]
Modified
Mon Sep 24 20:31:01 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 893
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
892 -
Directory Listing
-
[select for diffs]
Modified
Mon Sep 24 18:38:35 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 891
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
-
[select for diffs]
Modified
Wed Sep 19 23:17:10 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 890
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
-
[select for diffs]
Modified
Sat Sep 15 23:34:25 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 889
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
-
[select for diffs]
Modified
Fri Sep 14 23:48:39 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 888
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
887 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 13 23:12:48 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 886
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
-
[select for diffs]
Modified
Tue Sep 11 23:46:00 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 885
added: Lock class -- locking resources by using Synchro object
the destructor automatically calls Unlock()
Revision
884 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 11 05:19:45 2012 UTC
(10 years, 4 months ago)
by
tomek
Diff to
previous 882
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
-
[select for diffs]
Modified
Thu Sep 6 17:50:14 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 881
added: to config: log_time_zone_id (size_t) identifier
this is the time zone identifier used in log messages
Revision
881 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 4 20:24:42 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 879
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
-
[select for diffs]
Modified
Sun Sep 2 01:27:41 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 878
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
-
[select for diffs]
Modified
Sun Aug 26 22:30:25 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 877
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
-
[select for diffs]
Modified
Sun Aug 26 19:53:47 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 876
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
875 -
Directory Listing
-
[select for diffs]
Modified
Sun Aug 19 14:24:24 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 874
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
-
[select for diffs]
Modified
Sun Aug 19 13:50:58 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 873
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
872 -
Directory Listing
-
[select for diffs]
Modified
Sun Aug 12 18:23:48 2012 UTC
(10 years, 5 months ago)
by
tomek
Diff to
previous 871
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
-
[select for diffs]
Modified
Wed Aug 8 16:04:48 2012 UTC
(10 years, 6 months ago)
by
tomek
Diff to
previous 870
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
866 -
Directory Listing
-
[select for diffs]
Modified
Tue Jul 31 03:29:16 2012 UTC
(10 years, 6 months ago)
by
tomek
Diff to
previous 865
added: to Log:
void LogBinary(const char * blob, size_t blob_len);
void LogBinary(const std::string & blob);
int LogLevel();
Revision
860 -
Directory Listing
-
[select for diffs]
Modified
Tue Jul 10 16:50:59 2012 UTC
(10 years, 6 months ago)
by
tomek
Diff to
previous 859
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
856 -
Directory Listing
-
[select for diffs]
Modified
Sat Jun 30 18:37:52 2012 UTC
(10 years, 7 months ago)
by
tomek
Diff to
previous 854
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
-
[select for diffs]
Modified
Wed Jun 27 23:21:43 2012 UTC
(10 years, 7 months ago)
by
tomek
Diff to
previous 852
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
-
[select for diffs]
Modified
Tue Jun 26 23:19:19 2012 UTC
(10 years, 7 months ago)
by
tomek
Diff to
previous 850
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
849 -
Directory Listing
-
[select for diffs]
Modified
Fri Jun 22 23:34:33 2012 UTC
(10 years, 7 months ago)
by
tomek
Diff to
previous 848
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
847 -
Directory Listing
-
[select for diffs]
Modified
Thu Jun 7 00:26:37 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 846
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
845 -
Directory Listing
-
[select for diffs]
Modified
Mon Jun 4 17:51:43 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 844
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
-
[select for diffs]
Modified
Sun Jun 3 02:14:33 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 843
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
-
[select for diffs]
Modified
Wed May 30 21:14:03 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 842
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
-
[select for diffs]
Modified
Wed May 30 19:04:18 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 840
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
-
[select for diffs]
Modified
Sun May 27 18:11:34 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 839
removed: in some places a dependencies to tm struct has left
removed: operator<<(tm&) from streams: textstream, log, dbtextstream, htmltextstream
Revision
838 -
Directory Listing
-
[select for diffs]
Modified
Thu May 24 21:09:37 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 837
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
836 -
Directory Listing
-
[select for diffs]
Modified
Sat May 19 15:14:35 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 835
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
833 -
Directory Listing
-
[select for diffs]
Modified
Sat May 12 16:37:44 2012 UTC
(10 years, 8 months ago)
by
tomek
Diff to
previous 832
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
-
[select for diffs]
Modified
Tue May 1 17:58:42 2012 UTC
(10 years, 9 months ago)
by
tomek
Diff to
previous 831
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
-
[select for diffs]
Modified
Mon Apr 30 22:53:54 2012 UTC
(10 years, 9 months ago)
by
tomek
Diff to
previous 830
updated: to the new Pikotools API
ConfParser is now SpaceParser
added: to SessionManager
Session * SessionManager::FindSession(long id)
Revision
830 -
Directory Listing
-
[select for diffs]
Modified
Sat Apr 28 20:57:57 2012 UTC
(10 years, 9 months ago)
by
tomek
Diff to
previous 829
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
-
[select for diffs]
Modified
Wed Apr 25 22:24:37 2012 UTC
(10 years, 9 months ago)
by
tomek
Diff to
previous 828
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
827 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 22 13:30:07 2012 UTC
(10 years, 9 months ago)
by
tomek
Diff to
previous 826
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
825 -
Directory Listing
-
[select for diffs]
Modified
Fri Mar 30 06:44:38 2012 UTC
(10 years, 10 months ago)
by
tomek
Diff to
previous 824
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
-
[select for diffs]
Modified
Wed Mar 28 00:09:27 2012 UTC
(10 years, 10 months ago)
by
tomek
Diff to
previous 823
added: two ezc functions:
void winix_postvar_value_is(Info & i);
void winix_postvar_value_is_not(Info & i);
Revision
823 -
Directory Listing
-
[select for diffs]
Modified
Sat Mar 17 05:11:23 2012 UTC
(10 years, 10 months ago)
by
tomek
Diff to
previous 822
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
820 -
Directory Listing
-
[select for diffs]
Modified
Wed Mar 14 20:25:30 2012 UTC
(10 years, 10 months ago)
by
tomek
Diff to
previous 819
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
818 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 11 16:21:52 2012 UTC
(10 years, 10 months ago)
by
tomek
Diff to
previous 817
added: to misc:
void OnlyDigit(StringType & s, bool allow_comma = true)
removes all non-digit characters from a string
Revision
817 -
Directory Listing
-
[select for diffs]
Modified
Fri Mar 9 22:56:54 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 816
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
-
[select for diffs]
Modified
Fri Mar 9 02:36:25 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 815
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
813 -
Directory Listing
-
[select for diffs]
Modified
Thu Mar 1 15:14:46 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 812
fixed: plugin 'menu' incorrectly read directory items when the directory was en empty string
(the current directory should be used)
Revision
810 -
Directory Listing
-
[select for diffs]
Modified
Tue Feb 28 21:09:44 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 809
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
-
[select for diffs]
Modified
Mon Feb 27 17:43:59 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 808
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
-
[select for diffs]
Modified
Fri Feb 24 12:09:38 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 807
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
-
[select for diffs]
Modified
Sun Feb 19 00:59:08 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 806
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
-
[select for diffs]
Modified
Fri Feb 17 05:19:24 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 805
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
-
[select for diffs]
Modified
Tue Feb 14 20:35:35 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 804
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
-
[select for diffs]
Modified
Sun Feb 12 14:52:52 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 803
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
-
[select for diffs]
Modified
Fri Feb 10 00:50:05 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 802
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
-
[select for diffs]
Modified
Fri Feb 10 00:29:54 2012 UTC
(10 years, 11 months ago)
by
tomek
Diff to
previous 801
removed: operator<<(const PT::Space * space)
from textstream, log, dbtextstream, htmltextstream
added: compile option: -pthread
Revision
801 -
Directory Listing
-
[select for diffs]
Modified
Tue Jan 24 23:03:36 2012 UTC
(11 years ago)
by
tomek
Diff to
previous 800
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
-
[select for diffs]
Modified
Sat Jan 21 20:51:13 2012 UTC
(11 years ago)
by
tomek
Diff to
previous 799
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
798 -
Directory Listing
-
[select for diffs]
Modified
Sat Jan 21 12:29:44 2012 UTC
(11 years ago)
by
tomek
Diff to
previous 797
fixed: plugin ticket: when a session expires all files from editticket were removed
it should be removed only those new added
Revision
794 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 16 10:12:38 2012 UTC
(11 years ago)
by
tomek
Diff to
previous 792
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
790 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 8 03:59:51 2012 UTC
(11 years, 1 month ago)
by
tomek
Diff to
previous 789
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
786 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 2 02:05:12 2012 UTC
(11 years, 1 month ago)
by
tomek
Diff to
previous 785
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
784 -
Directory Listing
-
[select for diffs]
Modified
Sat Dec 17 21:59:22 2011 UTC
(11 years, 1 month ago)
by
tomek
Diff to
previous 783
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
780 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 4 19:34:39 2011 UTC
(11 years, 2 months ago)
by
tomek
Diff to
previous 779
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
-
[select for diffs]
Modified
Sat Dec 3 19:34:58 2011 UTC
(11 years, 2 months ago)
by
tomek
Diff to
previous 778
changed: plugin 'export'
rewritten changing of strings in html output
(added support for https:// prefix)
Revision
776 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 1 18:54:09 2011 UTC
(11 years, 2 months ago)
by
tomek
Diff to
previous 775
added: a new index template: index_fullscreen.html
is chosen automatically when 'fullscreen' parameter is passed
Revision
775 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 25 04:51:55 2011 UTC
(11 years, 2 months ago)
by
tomek
Diff to
previous 774
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
773 -
Directory Listing
-
[select for diffs]
Modified
Sun Oct 16 21:33:45 2011 UTC
(11 years, 3 months ago)
by
tomek
Diff to
previous 772
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
-
[select for diffs]
Modified
Fri Sep 30 01:33:42 2011 UTC
(11 years, 4 months ago)
by
tomek
Diff to
previous 771
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
-
[select for diffs]
Modified
Wed Sep 28 22:24:24 2011 UTC
(11 years, 4 months ago)
by
tomek
Diff to
previous 770
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
767 -
Directory Listing
-
[select for diffs]
Modified
Fri Sep 16 22:46:42 2011 UTC
(11 years, 4 months ago)
by
tomek
Diff to
previous 766
changed: we do not make a 'base redirect' when the request method is POST
changed: ConfParser -- now we have spaces (only one level)
Revision
764 -
Directory Listing
-
[select for diffs]
Modified
Tue Sep 13 06:08:34 2011 UTC
(11 years, 4 months ago)
by
tomek
Diff to
previous 762
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
-
[select for diffs]
Modified
Tue Sep 6 22:46:15 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 761
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
-
[select for diffs]
Modified
Mon Sep 5 15:38:09 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 760
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
-
[select for diffs]
Modified
Mon Aug 29 22:23:54 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 759
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
-
[select for diffs]
Modified
Sat Aug 27 03:12:33 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 758
fixed: index templates and 'change' templates were not cleared when 'reload' function was called
so wrong indexes have been assigned
Revision
757 -
Directory Listing
-
[select for diffs]
Modified
Thu Aug 25 23:53:49 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 755
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
-
[select for diffs]
Modified
Wed Aug 17 23:09:47 2011 UTC
(11 years, 5 months ago)
by
tomek
Diff to
previous 754
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
751 -
Directory Listing
-
[select for diffs]
Modified
Fri Jul 15 02:09:02 2011 UTC
(11 years, 6 months ago)
by
tomek
Diff to
previous 750
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
-
[select for diffs]
Modified
Wed Jul 13 23:14:10 2011 UTC
(11 years, 6 months ago)
by
tomek
Diff to
previous 749
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
-
[select for diffs]
Modified
Thu Jul 7 17:02:14 2011 UTC
(11 years, 7 months ago)
by
tomek
Diff to
previous 748
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
-
[select for diffs]
Modified
Mon Jun 27 21:38:19 2011 UTC
(11 years, 7 months ago)
by
tomek
Diff to
previous 746
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
-
[select for diffs]
Modified
Fri Jun 24 20:53:21 2011 UTC
(11 years, 7 months ago)
by
tomek
Diff to
previous 745
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
-
[select for diffs]
Modified
Tue Jun 21 21:24:49 2011 UTC
(11 years, 7 months ago)
by
tomek
Diff to
previous 742
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
741 -
Directory Listing
-
[select for diffs]
Modified
Sun Jun 19 20:59:58 2011 UTC
(11 years, 7 months ago)
by
tomek
Diff to
previous 740
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
734 -
Directory Listing
-
[select for diffs]
Modified
Thu Jun 9 21:22:08 2011 UTC
(11 years, 8 months ago)
by
tomek
Diff to
previous 733
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
-
[select for diffs]
Modified
Mon Jun 6 22:47:34 2011 UTC
(11 years, 8 months ago)
by
tomek
Diff to
previous 731
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
730 -
Directory Listing
-
[select for diffs]
Modified
Tue Apr 26 17:19:08 2011 UTC
(11 years, 9 months ago)
by
tomek
Diff to
previous 729
added: "str" "strnc" ezc functions
changed: ezc functions:
"winix_false" to "false"
"winix_true" to "true"
Revision
728 -
Directory Listing
-
[select for diffs]
Modified
Sat Apr 16 08:42:22 2011 UTC
(11 years, 9 months ago)
by
tomek
Diff to
previous 727
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
-
[select for diffs]
Modified
Sat Apr 2 00:10:16 2011 UTC
(11 years, 10 months ago)
by
tomek
Diff to
previous 726
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
725 -
Directory Listing
-
[select for diffs]
Modified
Wed Mar 23 17:54:53 2011 UTC
(11 years, 10 months ago)
by
tomek
Diff to
previous 722
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
-
[select for diffs]
Modified
Thu Feb 24 17:06:12 2011 UTC
(11 years, 11 months ago)
by
tomek
Diff to
previous 721
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
717 -
Directory Listing
-
[select for diffs]
Modified
Fri Feb 11 21:37:28 2011 UTC
(11 years, 11 months ago)
by
tomek
Diff to
previous 716
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
712 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 26 12:45:38 2011 UTC
(12 years ago)
by
tomek
Diff to
previous 711
added: winix uses now [filter] statement from ezc
added: notifications to threads (were temporarily disabled)
changed: templates in notifications
Revision
710 -
Directory Listing
-
[select for diffs]
Modified
Sun Jan 23 23:23:24 2011 UTC
(12 years ago)
by
tomek
Diff to
previous 708
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
-
[select for diffs]
Modified
Sun Jan 23 14:15:30 2011 UTC
(12 years ago)
by
tomek
Diff to
previous 707
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
704 -
Directory Listing
-
[select for diffs]
Modified
Wed Jan 5 21:24:11 2011 UTC
(12 years, 1 month ago)
by
tomek
Diff to
previous 703
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
696 -
Directory Listing
-
[select for diffs]
Modified
Fri Dec 10 21:07:01 2010 UTC
(12 years, 1 month ago)
by
tomek
Diff to
previous 695
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
691 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 6 01:37:30 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 690
added ezc function: user_is_in_all_groups
changed: ezc function user_is_in_group (we can provide more than one group now)
Revision
688 -
Directory Listing
-
[select for diffs]
Modified
Mon Dec 6 00:25:46 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 687
db: core/user table has only 'notify' column now (previous was cms_notify, thread_notify)
added: notifications for tickets (not finished yet)
Revision
685 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 2 01:02:02 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 684
- 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
-
[select for diffs]
Modified
Thu Nov 25 22:42:24 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 682
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
-
[select for diffs]
Modified
Thu Nov 25 01:34:46 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 680
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
-
[select for diffs]
Modified
Tue Nov 23 21:52:25 2010 UTC
(12 years, 2 months ago)
by
tomek
Diff to
previous 679
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
668 -
Directory Listing
-
[select for diffs]
Modified
Sun Oct 24 17:49:38 2010 UTC
(12 years, 3 months ago)
by
tomek
Diff to
previous 667
winix can drop privileges now (if started as the root)
added parameters to the config:
user (string)
group (string)
additional_groups (bool)
Revision
666 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 23 23:12:47 2010 UTC
(12 years, 3 months ago)
by
tomek
Diff to
previous 665
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
664 -
Directory Listing
-
[select for diffs]
Modified
Tue Oct 19 00:31:20 2010 UTC
(12 years, 3 months ago)
by
tomek
Diff to
previous 663
added: now plugin ticket uses a new horizontal table (plugins.ticket)
columns: dir_id, param, value
we are able to build complicated tickets
Revision
662 -
Directory Listing
-
[select for diffs]
Modified
Sat Oct 9 20:27:45 2010 UTC
(12 years, 4 months ago)
by
tomek
Diff to
previous 660
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
659 -
Directory Listing
-
[select for diffs]
Modified
Thu Sep 30 20:58:20 2010 UTC
(12 years, 4 months ago)
by
tomek
Diff to
previous 658
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
655 -
Directory Listing
-
[select for diffs]
Modified
Sat Sep 18 00:51:12 2010 UTC
(12 years, 4 months ago)
by
tomek
Diff to
previous 654
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
641 -
Directory Listing
-
[select for diffs]
Modified
Sat Aug 14 17:56:07 2010 UTC
(12 years, 5 months ago)
by
tomek
Diff to
previous 640
html code in editors (emacs, ckeditor...) is filtered now for normal users
(root is allowed to use any html code)
Revision
636 -
Directory Listing
-
[select for diffs]
Modified
Fri Aug 13 20:04:57 2010 UTC
(12 years, 5 months ago)
by
tomek
Diff to
previous 635
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
631 -
Directory Listing
-
[select for diffs]
Modified
Tue Aug 10 20:43:38 2010 UTC
(12 years, 6 months ago)
by
tomek
Diff to
previous 630
removed some thread and ticket information from request
they are in FunThread and FunTicket classes now
added funtion FunUptime (I forgot about it)
Revision
628 -
Directory Listing
-
[select for diffs]
Modified
Tue Aug 10 16:12:50 2010 UTC
(12 years, 6 months ago)
by
tomek
Diff to
previous 627
the first part of reimplementing has been done
now we have app object and singletons are only: log logn plugin and app
Revision
624 -
Directory Listing
-
[select for diffs]
Modified
Tue Jul 27 20:41:56 2010 UTC
(12 years, 6 months ago)
by
tomek
Diff to
previous 623
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
-
[select for diffs]
Modified
Wed Jul 21 17:24:16 2010 UTC
(12 years, 6 months ago)
by
tomek
Diff to
previous 621
fixed: in htmlfilter: <area> should be treated as single tag
changed: ConfParser is abble to recognize lists
Revision
618 -
Directory Listing
-
[select for diffs]
Modified
Sun Jul 4 20:27:14 2010 UTC
(12 years, 7 months ago)
by
tomek
Diff to
previous 617
added: parameters consist of a name and a value now
sample: /dir/dir2/function/paramname:paramvalue
removed: TemplatesMisc namespace
Revision
614 -
Directory Listing
-
[select for diffs]
Modified
Tue Jun 22 21:09:37 2010 UTC
(12 years, 7 months ago)
by
tomek
Diff to
previous 613
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
611 -
Directory Listing
-
[select for diffs]
Modified
Mon Jun 21 23:53:19 2010 UTC
(12 years, 7 months ago)
by
tomek
Diff to
previous 610
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
607 -
Directory Listing
-
[select for diffs]
Modified
Sun Jun 20 22:47:24 2010 UTC
(12 years, 7 months ago)
by
tomek
Diff to
previous 606
added: a new editor: tinymce (function tinymce)
added: html filter can check orphans: "i", "a", "o" ... in a text
Revision
606 -
Directory Listing
-
[select for diffs]
Modified
Sat Jun 5 19:44:49 2010 UTC
(12 years, 8 months ago)
by
tomek
Diff to
previous 605
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
596 -
Directory Listing
-
[select for diffs]
Modified
Mon Mar 15 01:47:26 2010 UTC
(12 years, 10 months ago)
by
tomek
Diff to
previous 594
added: to the Item: auth_path - a path to a static file (if auth is different from auth_none)
added: function 'mv' (move)
Revision
593 -
Directory Listing
-
[select for diffs]
Modified
Sun Feb 28 00:08:10 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 589
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
-
[select for diffs]
Modified
Mon Feb 22 22:52:09 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 588
added: parameter 'l' to 'ls' function
added: Db::ItemQuery struct for querying items
changed: some refactoring (renamed some config variables)
Revision
588 -
Directory Listing
-
[select for diffs]
Modified
Thu Feb 18 23:30:22 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 587
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
582 -
Directory Listing
-
[select for diffs]
Modified
Mon Feb 15 00:31:14 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 581
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
575 -
Directory Listing
-
[select for diffs]
Modified
Fri Feb 12 23:16:13 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 572
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
-
[select for diffs]
Modified
Fri Feb 12 17:05:32 2010 UTC
(12 years, 11 months ago)
by
tomek
Diff to
previous 571
added to config: parameter static_auth_dir_tmp
with a path to directory for tmp files (for upload functino)
Revision
560 -
Directory Listing
-
[select for diffs]
Modified
Thu Jan 28 15:39:01 2010 UTC
(13 years ago)
by
tomek
Diff to
previous 559
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
554 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 25 04:52:17 2010 UTC
(13 years ago)
by
tomek
Original Path:
cmslu
Diff to
previous 553
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
540 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 30 20:46:12 2009 UTC
(13 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 539
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
534 -
Directory Listing
-
[select for diffs]
Modified
Wed Dec 9 00:42:40 2009 UTC
(13 years, 2 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 532
* 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
529 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 20 23:09:52 2009 UTC
(13 years, 2 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 527
added: 'remember me' flag when logging
added: the session file
sessions can still be available between starting and stopping the cmslu system
Revision
519 -
Directory Listing
-
[select for diffs]
Modified
Mon Nov 16 17:43:23 2009 UTC
(13 years, 2 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 518
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
-
[select for diffs]
Modified
Sun Nov 15 23:55:11 2009 UTC
(13 years, 2 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 516
added: mount points are read from db: /etc/fstab
changed: mount points parser allows empty lines (with some white characters)
Revision
516 -
Directory Listing
-
[select for diffs]
Modified
Fri Nov 13 20:40:11 2009 UTC
(13 years, 2 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 515
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
-
[select for diffs]
Modified
Thu Oct 8 17:59:10 2009 UTC
(13 years, 4 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 514
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
-
[select for diffs]
Modified
Wed Sep 30 22:31:20 2009 UTC
(13 years, 4 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 511
added: notifications to users' emails
(core/notify.h core/notify.cpp)
templatesnotify directory
all notifications are managed by a second thread
Revision
506 -
Directory Listing
-
[select for diffs]
Modified
Sun Jun 7 02:40:27 2009 UTC
(13 years, 8 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 505
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
-
[select for diffs]
Modified
Fri Jun 5 20:29:06 2009 UTC
(13 years, 8 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 503
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
501 -
Directory Listing
-
[select for diffs]
Modified
Tue Apr 21 20:50:55 2009 UTC
(13 years, 9 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 499
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
497 -
Directory Listing
-
[select for diffs]
Modified
Mon Apr 20 21:10:31 2009 UTC
(13 years, 9 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 496
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
495 -
Directory Listing
-
[select for diffs]
Modified
Sun Apr 19 22:13:21 2009 UTC
(13 years, 9 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 492
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
-
[select for diffs]
Modified
Thu Apr 16 01:59:42 2009 UTC
(13 years, 9 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 489
added: container LastContainer (lastcontainer.h lastcontainer.cpp)
it consists of last logged users
added: function 'last'
Revision
489 -
Directory Listing
-
[select for diffs]
Modified
Sun Mar 22 23:54:15 2009 UTC
(13 years, 10 months ago)
by
tomek
Original Path:
cmslu
Diff to
previous 487
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
-
[select for diffs]
Modified
Fri Feb 6 13:12:03 2009 UTC
(14 years ago)
by
tomek
Original Path:
cmslu
Diff to
previous 483
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
-
[select for diffs]
Modified
Sat Jan 31 06:53:36 2009 UTC
(14 years ago)
by
tomek
Original Path:
cmslu
Diff to
previous 482
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
475 -
Directory Listing
-
[select for diffs]
Modified
Mon Jan 26 20:49:28 2009 UTC
(14 years ago)
by
tomek
Original Path:
cmslu
Diff to
previous 474
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
-
[select for diffs]
Modified
Wed Jan 14 20:11:12 2009 UTC
(14 years ago)
by
tomek
Original Path:
cmslu
Diff to
previous 473
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
469 -
Directory Listing
-
[select for diffs]
Modified
Tue Dec 30 01:05:03 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 468
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
-
[select for diffs]
Modified
Mon Dec 22 16:03:03 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 467
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
-
[select for diffs]
Modified
Sun Dec 21 21:17:09 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 466
added: privileges (user, groups, permissions)
(not finished yet)
classes: User, Group, Users, Groups, UGContainer
changed: Dir class into Dirs
Revision
466 -
Directory Listing
-
[select for diffs]
Modified
Sun Dec 14 05:28:28 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 465
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
-
[select for diffs]
Modified
Fri Dec 12 03:11:29 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 464
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
463 -
Directory Listing
-
[select for diffs]
Modified
Thu Dec 11 02:46:16 2008 UTC
(14 years, 1 month ago)
by
tomek
Original Path:
cmslu
Diff to
previous 462
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