Commit Graph

  • f381f24402 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 Tomasz Sowa 2012-02-12 14:52:52 +00:00
  • f6db85fcdb fixed: uninitialized variable in 'rm' winix function (in HasAccess method) sometimes for directories the rm function could return 'access true' (even without 'r' parameter) Tomasz Sowa 2012-02-10 00:50:05 +00:00
  • 9687d5cd66 removed: operator<<(const PT::Space * space) from textstream, log, dbtextstream, htmltextstream added: compile option: -pthread Tomasz Sowa 2012-02-10 00:29:54 +00:00
  • 6e2d00bc5b 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 Tomasz Sowa 2012-01-24 23:03:36 +00:00
  • 5aaab89cd8 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); Tomasz Sowa 2012-01-21 20:51:13 +00:00
  • 7407d24586 added: new ezc filter: fil_first_wordup first character in a word is capitalized Tomasz Sowa 2012-01-21 17:13:00 +00:00
  • c9931da5ba fixed: plugin ticket: when a session expires all files from editticket were removed it should be removed only those new added Tomasz Sowa 2012-01-21 12:29:44 +00:00
  • 4311f06ade added: to TextStream<> and Log: operator<<(const tm & tm_) Tomasz Sowa 2012-01-19 20:50:42 +00:00
  • 8b64b5d372 updated plugins/ticket templates functions Tomasz Sowa 2012-01-18 17:55:28 +00:00
  • 631ca4f8a3 plugin ticket: rewritten templates ezc functions (now images/files are working fine) Tomasz Sowa 2012-01-17 22:54:41 +00:00
  • 424618de38 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) Tomasz Sowa 2012-01-16 10:12:38 +00:00
  • b2d3ca9543 now winix is using 'pikotools' (confparser, utf8, mainparser) Tomasz Sowa 2012-01-12 02:24:08 +00:00
  • cb33f20a24 removing: confparser.h confparser.cpp (moving to pikotools) Tomasz Sowa 2012-01-11 11:32:01 +00:00
  • 973d804db2 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) Tomasz Sowa 2012-01-08 03:59:51 +00:00
  • 84eaa6b7b6 changed: rewritten templates/man Tomasz Sowa 2012-01-06 12:55:08 +00:00
  • f967a428ce added: winix function 'man' displaying all winix functions and ezc templates functions Tomasz Sowa 2012-01-06 12:07:23 +00:00
  • 543d464cbc 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 Tomasz Sowa 2012-01-02 02:05:12 +00:00
  • 43470b2a41 forgotten to add html/index_rawcontent.html Tomasz Sowa 2011-12-17 22:02:49 +00:00
  • fa05e25a9d 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 Tomasz Sowa 2011-12-17 21:59:22 +00:00
  • fe2f1605f1 changed: core/misc: date format in Time() methods Tomasz Sowa 2011-12-14 20:35:19 +00:00
  • 48b5c167bf added to db stream: DbTextStream::operator<<(const std::vector<long> & tabid) Tomasz Sowa 2011-12-08 22:01:19 +00:00
  • 08a0a36dfd changed: html (upload winix function) Tomasz Sowa 2011-12-05 18:20:48 +00:00
  • d135c31ca0 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 Tomasz Sowa 2011-12-04 19:34:39 +00:00
  • dce68221ad changed: plugin 'export' rewritten changing of strings in html output (added support for https:// prefix) Tomasz Sowa 2011-12-03 19:34:58 +00:00
  • 93273bd470 changed: upload template Tomasz Sowa 2011-12-02 14:38:26 +00:00
  • 92f7c11999 added: 'export' plugin can make use of some meta informations (from items) additional export currently Tomasz Sowa 2011-12-01 20:45:06 +00:00
  • 024ce8e73c added: a new index template: index_fullscreen.html is chosen automatically when 'fullscreen' parameter is passed Tomasz Sowa 2011-12-01 18:54:09 +00:00
  • 7902389ef1 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) Tomasz Sowa 2011-11-25 04:51:55 +00:00
  • 1e9ab2f805 added: to 'group' plugin: new ezc function: group_tab_is_current_link Tomasz Sowa 2011-10-30 23:47:43 +00:00
  • 0550212b64 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 Tomasz Sowa 2011-10-16 21:33:45 +00:00
  • c7b6ca67a2 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) Tomasz Sowa 2011-09-30 01:33:42 +00:00
  • 9dae2de2fa 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 Tomasz Sowa 2011-09-28 22:24:24 +00:00
  • 968593106e fixed: menu plugin: static files were not correctly skipped Tomasz Sowa 2011-09-26 06:56:35 +00:00
  • 302cb0130d changed: menu plugin (static files are skipped) Tomasz Sowa 2011-09-26 06:39:05 +00:00
  • 89efaa790f changed: ConfParser -- now we can have a tree (spaces can have more than one level) Tomasz Sowa 2011-09-26 05:40:26 +00:00
  • 60f0e62c23 changed: we do not make a 'base redirect' when the request method is POST changed: ConfParser -- now we have spaces (only one level) Tomasz Sowa 2011-09-16 22:46:42 +00:00
  • f113e2ef31 changed: we should use SSL connection for such functions as: adduser, login Tomasz Sowa 2011-09-14 09:56:00 +00:00
  • 39923d6617 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 Tomasz Sowa 2011-09-13 06:08:34 +00:00
  • 72be443414 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 Tomasz Sowa 2011-09-06 22:46:15 +00:00
  • 392e8060ba added: some work in Export plugin changed: in base redirect we are using 301 moved permanently status code now (was 303) Tomasz Sowa 2011-09-05 15:38:09 +00:00
  • 8c01b0f6c0 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) Tomasz Sowa 2011-08-29 22:23:54 +00:00
  • b984475e49 fixed: index templates and 'change' templates were not cleared when 'reload' function was called so wrong indexes have been assigned Tomasz Sowa 2011-08-27 03:12:33 +00:00
  • 4f114ea33c added: ezc function: dir_has_parents Tomasz Sowa 2011-08-26 20:45:58 +00:00
  • 5b8a9c0108 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) Tomasz Sowa 2011-08-25 23:53:49 +00:00
  • ee6500ac65 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 Tomasz Sowa 2011-08-17 23:09:47 +00:00
  • 3b2a1c3f25 added: new winix function: "sort" sorting items in a directory (Item::sort_index is used) Tomasz Sowa 2011-08-02 00:10:45 +00:00
  • 4d87359aca added: Export plugin (not finished yet) added: ThreadManager all threads are connected to the ThreadManager they are started/stopped by the manager changed: FunctionParser now we are parsing directly what is in URI (we were using GetParser beforehand) we are able to recognize ordinary URI scheme (with '?' and '#' characters) sample: http://domain.com/dir1/dir2/item/function?par1=val2&par2=val2#htmlanchor is the same as: http://domain.com/dir1/dir2/item/function/par1:val2/par2:val2#htmlanchor 'htmlanchor' is put in Request::anchor field, and the default function can be used like this: http://domain.com/dir1/dir2/item?par1=val2&par2=val2#htmlanchor but there is not an equivalent in winix form e.g. http://domain.com/dir1/dir2/item/par1:val2/par2:val2#htmlanchor because 'par1:val2' would be treated as a function name removed: GetParser now we don't have Request::get_tab structure removed: CKEditorGetParser it is not needed now Tomasz Sowa 2011-07-28 22:18:10 +00:00
  • c37c1ff812 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 Tomasz Sowa 2011-07-15 02:09:02 +00:00
  • 1812a2e9ad 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 Tomasz Sowa 2011-07-13 23:14:10 +00:00
  • ccc02f41bf 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 Tomasz Sowa 2011-07-07 17:02:14 +00:00
  • eaf10c70b7 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 Tomasz Sowa 2011-06-27 21:38:19 +00:00
  • 06f42dd9cb 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 Tomasz Sowa 2011-06-24 20:53:21 +00:00
  • 1d6ff73aad 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) Tomasz Sowa 2011-06-21 21:24:49 +00:00
  • 700a6fe643 updated index.html Tomasz Sowa 2011-06-19 21:07:23 +00:00
  • 0a7432b059 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 0.4.8 Tomasz Sowa 2011-06-19 20:59:58 +00:00
  • b369fda1d9 deleted some log info Tomasz Sowa 2011-06-19 10:40:09 +00:00
  • c49c35cfbd added: a new mount type: static some path in winix can be redirected to a specified static directory Tomasz Sowa 2011-06-14 23:45:42 +00:00
  • fb4742e165 added: nicedit: a new wysiwyg javascript editor Tomasz Sowa 2011-06-13 01:06:10 +00:00
  • fce45b93a2 fixed: users: flag 'super_user' was not correctly read ftom the database Tomasz Sowa 2011-06-09 23:00:00 +00:00
  • 18ecd46a01 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 0.4.7 Tomasz Sowa 2011-06-09 21:22:08 +00:00
  • af8fbdae72 added: now winix will not log post parameters with 'pass' in names (at the beginning) changed: only first few characters are logged (from POST) Tomasz Sowa 2011-06-06 22:47:34 +00:00
  • c84997be30 small changes in Makefiles Tomasz Sowa 2011-06-06 20:35:56 +00:00
  • 06551d6084 added: "str" "strnc" ezc functions changed: ezc functions: "winix_false" to "false" "winix_true" to "true" Tomasz Sowa 2011-04-26 17:19:08 +00:00
  • 84145d7cc8 fixed: BBCODEParser incorrectly worked with the latest changes in HTMLFilter Tomasz Sowa 2011-04-16 11:27:54 +00:00
  • 426beae796 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 ) Tomasz Sowa 2011-04-16 08:42:22 +00:00
  • aadf12c7b3 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 Tomasz Sowa 2011-04-02 00:10:16 +00:00
  • 1b60935d08 updated 'galleria' js plugin Tomasz Sowa 2011-04-01 16:30:14 +00:00
  • d68731fd55 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' Tomasz Sowa 2011-03-23 17:54:53 +00:00
  • ba63c8c661 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 Tomasz Sowa 2011-02-24 17:06:12 +00:00
  • 15487b347f added ezc function: winix_function_param_is_not Tomasz Sowa 2011-02-22 04:14:26 +00:00
  • e7e90c6527 txt templates (a new line was missing) Tomasz Sowa 2011-02-18 09:35:35 +00:00
  • ca5421347a fixed: a new created session doesn't have a correct time set Tomasz Sowa 2011-02-18 09:33:15 +00:00
  • c8a57f2046 added: to gallery plugin: gallery_theme() mount option Tomasz Sowa 2011-02-15 23:20:12 +00:00
  • 583df13139 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" Tomasz Sowa 2011-02-11 21:37:28 +00:00
  • 5049961e17 added a new plugin: "gallery" Tomasz Sowa 2011-01-31 15:51:53 +00:00
  • 18492e5d61 changed templates Tomasz Sowa 2011-01-27 14:35:25 +00:00
  • d4d9f89d1d changed: ticket templates added: new plugin message (WINIX_END_REQUEST) Tomasz Sowa 2011-01-27 12:24:45 +00:00
  • ecf19034ae added: winix uses now [filter] statement from ezc added: notifications to threads (were temporarily disabled) changed: templates in notifications Tomasz Sowa 2011-01-26 12:45:38 +00:00
  • 00521c490e added: Q encoding in misc: QEncode() for mails headers encoding Tomasz Sowa 2011-01-25 11:54:46 +00:00
  • 3071df227a fixed: find_ticket_value (in plugins/ticket/templates.cpp) should find the first item (can be more than one item with the same 'param') 0.4.6 Tomasz Sowa 2011-01-23 23:23:24 +00:00
  • 915cabdf97 changed: added Cur structure we have there two pointers: Request * request; Session * session; these are the current request and the current session Tomasz Sowa 2011-01-23 14:15:30 +00:00
  • 61ac29b2de added in ticket/templates.cpp binary search for tickets and tickets parameters Tomasz Sowa 2011-01-21 16:16:52 +00:00
  • ab84a5169e 'tickets' can use 'threads' now Tomasz Sowa 2011-01-20 18:37:51 +00:00
  • 3fad25b8c8 moved some thread files to plugins/thread Tomasz Sowa 2011-01-05 21:44:19 +00:00
  • 8154c403d8 we can create links (hard links, symbolic links) now added winix functions: ln 0.4.5 Tomasz Sowa 2011-01-05 21:24:11 +00:00
  • bb83aed20d changed cat template Tomasz Sowa 2010-12-12 09:41:20 +00:00
  • 600c9fc907 Thumb thread should check the exit signal Tomasz Sowa 2010-12-12 09:25:36 +00:00
  • 5d09eb149c added a special thread for making thumbnails (thumb.h thumb.cpp) Tomasz Sowa 2010-12-11 22:55:48 +00:00
  • e854fe3681 changed makefile Tomasz Sowa 2010-12-10 21:20:01 +00:00
  • 36c8822e6c 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/ Tomasz Sowa 2010-12-10 21:07:01 +00:00
  • 9b29cce1a4 added a special default function: "-" the proper default function will be selected automatically Tomasz Sowa 2010-12-07 18:18:45 +00:00
  • 508f06339e added to config: session_max how many sessions can be: default 1000000 (one milion) Tomasz Sowa 2010-12-07 17:41:28 +00:00
  • 0a9cdd2f15 added: gc for sessions (another thread) Tomasz Sowa 2010-12-07 12:52:52 +00:00
  • 7f77b6e3ec added ezc function: user_is_in_all_groups changed: ezc function user_is_in_group (we can provide more than one group now) Tomasz Sowa 2010-12-06 01:37:30 +00:00
  • 9507b0b1ba changed Makefile Tomasz Sowa 2010-12-06 00:32:12 +00:00
  • ad9d6f4301 db: core/user table has only 'notify' column now (previous was cms_notify, thread_notify) added: notifications for tickets (not finished yet) Tomasz Sowa 2010-12-06 00:25:46 +00:00
  • b721fb6860 changed path templatesnotifiy/ to notify/ i forgot to add a file: notify/notify.cpp Tomasz Sowa 2010-12-02 02:36:49 +00:00
  • 5f46cd2ea5 moved: templatesnotify -> notify Tomasz Sowa 2010-12-02 02:16:11 +00:00
  • 35efed9fef - 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 Tomasz Sowa 2010-12-02 01:02:02 +00:00
  • 08e53919e2 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 Tomasz Sowa 2010-11-25 22:42:24 +00:00