74 Commits

Author SHA1 Message Date
3d7ece15f8 changed version to 0.7.2 2021-02-18 21:07:05 +01:00
541597f355 fixed: in TimeZone::SetTzDst() was used operator && instead of || 2021-02-17 18:36:50 +01:00
5fe843d76b set -std=c++20 in Makefile 2021-02-17 18:07:05 +01:00
3191369ece added 'using PT::FileLog::init' to FileLog to suppress clang warning:
warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual]
2021-02-17 18:06:00 +01:00
a4de11d69c fixed: Image did not use 'savelog' when creating logs
before commit 4832c7db4b the logs were lost, but after 4832c7db4b
the logs were printed when winix shuts down

in 4832c7db4b at the end of BaseThread::StartRoutine()
has been added a call to save_log()
2021-02-17 16:17:36 +01:00
4832c7db4b fixed: clang address sanitizer reports that there is an use after free bug at the end when winix shuts down:
==3859==ERROR: AddressSanitizer: heap-use-after-free on address 0x61b0000053e0 at pc 0x000800697160 bp 0x7fffffffcfb0 sp 0x7fffffffcfa8
READ of size 8 at 0x61b0000053e0 thread T0
    #0 0x80069715f in PT::MemBuffer<wchar_t, 256ul, 4096ul>::empty() const /usr/home/tomek/roboczy/prog/web.ttmath.org/../pikotools/membuffer/membuffer.h:675:9
    #1 0x80069700d in PT::TextStreamBase<wchar_t, 256ul, 4096ul>::empty() const /usr/home/tomek/roboczy/prog/web.ttmath.org/../pikotools/textstream/textstream.h:161:16
    #2 0x8009af0e3 in PT::FileLog::save_log(PT::TextStreamBase<wchar_t, 256ul, 4096ul>*) /usr/home/tomek/roboczy/prog/pikotools/log/filelog.cpp:105:14
    #3 0x8009b3f8a in PT::Log::save_log() /usr/home/tomek/roboczy/prog/pikotools/log/log.cpp:461:13
    #4 0x8009b3d72 in PT::Log::save_log_and_clear() /usr/home/tomek/roboczy/prog/pikotools/log/log.cpp:448:2
    #5 0x8009b0627 in PT::Log::~Log() /usr/home/tomek/roboczy/prog/pikotools/log/log.cpp:62:2
    #6 0x8007288e7 in Winix::Log::~Log() /usr/home/tomek/roboczy/prog/winix/winixd/core/log.cpp:56:1
    #7 0x8007eac96 in Winix::WinixBase::~WinixBase() /usr/home/tomek/roboczy/prog/winix/winixd/core/winixbase.cpp:51:1
    #8 0x8007eb097 in Winix::WinixModel::~WinixModel() /usr/home/tomek/roboczy/prog/winix/winixd/core/winixmodel.cpp:52:1
    #9 0x80069e552 in Winix::BaseThread::~BaseThread() /usr/home/tomek/roboczy/prog/winix/winixd/core/basethread.cpp:54:1
    #10 0x2f8132 in Winix::Job::~Job() /usr/home/tomek/roboczy/prog/web.ttmath.org/../winix/winixd/core/job.h:54:7
    #11 0x2e0c8a in Winix::System::~System() /usr/home/tomek/roboczy/prog/web.ttmath.org/../winix/winixd/core/system.h:67:7
    #12 0x2df017 in Winix::App::~App() /usr/home/tomek/roboczy/prog/web.ttmath.org/../winix/winixd/core/app.h:70:7
    #13 0x800cc9f50 in __cxa_finalize /hddraidzfs/usr/src/lib/libc/stdlib/atexit.c:238:5
    #14 0x800c5ef10 in exit /hddraidzfs/usr/src/lib/libc/stdlib/exit.c:74:2
    #15 0x25c935 in _start /hddraidzfs/usr/src/lib/csu/amd64/crt1.c:76:2

0x61b0000053e0 is located 1632 bytes inside of 1656-byte region [0x61b000004d80,0x61b0000053f8)
freed by thread T0 here:
    #0 0x2dc07d in operator delete(void*) /hddraidzfs/usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:160:3
    #1 0x8007c3b2c in Winix::ThreadManager::StopAll() /usr/home/tomek/roboczy/prog/winix/winixd/core/threadmanager.cpp:189:3
    #2 0x800647474 in Winix::App::WaitForThreads() /usr/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:2122:24
    #3 0x800647311 in Winix::App::Close() /usr/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:340:2
    #4 0x2dec7c in main /usr/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:224:6
    #5 0x25c92e in _start /hddraidzfs/usr/src/lib/csu/amd64/crt1.c:76:7
    #6 0x80033efff  (<unknown module>)

previously allocated by thread T0 here:
    #0 0x2db81d in operator new(unsigned long) /hddraidzfs/usr/src/contrib/llvm-project/compiler-rt/lib/asan/asan_new_delete.cpp:99:3
    #1 0x8007c17c3 in Winix::ThreadManager::Add(Winix::BaseThread*, wchar_t const*) /usr/home/tomek/roboczy/prog/winix/winixd/core/threadmanager.cpp:77:26
    #2 0x8007b0b81 in Winix::System::Init() /usr/home/tomek/roboczy/prog/winix/winixd/core/system.cpp:170:17
    #3 0x8006468d4 in Winix::App::Init() /usr/home/tomek/roboczy/prog/winix/winixd/core/app.cpp:295:9
    #4 0x2deb7e in main /usr/home/tomek/roboczy/prog/winix/winixd/main/main.cpp:206:11
    #5 0x25c92e in _start /hddraidzfs/usr/src/lib/csu/amd64/crt1.c:76:7
    #6 0x80033efff  (<unknown module>)

in ThreadManager::StopAll() there is item.thread_item_data pointer which was freed (the pointer was pointing to an object with a log_buffer)
but internal Log buffer from item.object was pointing to that object and when thread_tab.clear() was called then the d-ctor was called
and then save_log_and_clear() method was called and tried to use the freed object.
2021-02-17 15:58:05 +01:00
be83d62f96 changed html in index templates: [include "index_head_functions_add.html"] -> [include "index_head_adder.html"] 2021-02-16 20:10:29 +01:00
3fd2ef1da4 renamed: html/index_head_functions_add.html -> html/index_head_adder.html 2021-02-16 20:01:38 +01:00
d861384889 Merge pull request 'uikit' (#3) from uikit into master
Reviewed-on: #3
2021-02-16 19:52:36 +01:00
cfd8e88e57 changed markup in fun_thread.html, removed item_options.html (was not used by winix)
WIP: #2
2021-02-16 19:44:57 +01:00
8169cb5a7e added uikit markup for uname winix function
WIP: #2
2021-02-16 19:28:42 +01:00
8c85cd7346 added uikit markup for stat winix function
WIP: #2
2021-02-16 19:25:36 +01:00
4e202833b2 added uikit markup for rmuser winix function
WIP: #2
2021-02-16 19:21:53 +01:00
4a163bd170 added uikit markup for pw winix function
WIP: #2
2021-02-16 19:12:15 +01:00
85fbc1b882 added uikit markup for man winix function
WIP: #2
2021-02-16 19:03:01 +01:00
61810ff6f9 added uikit markup for last winix function
WIP: #2
2021-02-16 18:56:18 +01:00
3a4a29f56d added uikit markup for ipban winix function
WIP: #2
2021-02-16 18:53:12 +01:00
1fb7ece1b3 fixed: in imgcrop: data-uk-lightbox interfere with menu buttons
WIP: #2
2021-02-16 18:46:39 +01:00
f3879dd3a4 added lightbox effect on images in imgcrop winix function
WIP: #2
2021-02-16 18:40:48 +01:00
561014886f added uikit markup for imgcrop winix function
WIP: #2
2021-02-16 18:35:55 +01:00
a2b19547a3 fixed: in Functions::CheckSpecialFile() after parsing new mount points
the cur->mount pointer was pointing at the old mount object
(which may no longer exists)
2021-02-16 17:23:36 +01:00
93477091d1 added uikit markup for gallery winix funcion (gallery plugin)
- the main gallery is now 'uikit'
- lightbox updated to version 2.11.3 (now it is using jQuery, beforehand prototype.js was used)
- aino-gallery is called galleriajs now (and updated to 1.6.1)
- themes from galleriajs were removed and some new themes has been added (azur, twelve, folio, fullscreen)
- removed some old mount types for galleries (galleriathumb, galleria1.2.9, galleriathumb1.2.9)

WIP: #2
2021-02-16 16:31:52 +01:00
64d3c62945 added uikit markup for export winix function (plugin export)
WIP: #2
2021-02-16 13:11:39 +01:00
134e27f70a modified login template - removed uk-border-pill class
WIP: #2
2021-02-16 12:56:15 +01:00
5205aa089b modified index templates
some meta information moved to index_head_functions_add.html

WIP: #2
2021-02-16 12:55:35 +01:00
b5b9655c1e modified buttons in thread winix function
WIP: #2
2021-02-16 12:54:05 +01:00
173d0894fa modified buttons in showthreads winix function
WIP: #2
2021-02-16 12:52:49 +01:00
de6b050fb5 fixed comment in ls html template 2021-02-16 12:51:06 +01:00
37da5e81c5 added uikit markup for createticket, showtickets, ticket winix functions (plugin ticket)
WIP: #2
2021-02-15 19:52:03 +01:00
ae8637d455 added uikit markup for: createthread, reply, showthreads and thread winix functions 2021-02-12 18:57:14 +01:00
22a45697fa added uikit markup for subject winix function 2021-02-09 18:48:48 +01:00
55462fca9f added uikit markup for uptime winix function 2021-02-09 18:26:30 +01:00
2799a66c16 added uikit markup for who winix function 2021-02-09 18:11:37 +01:00
9832b17fc2 updated uikit to 3.6.16 2021-02-09 18:10:01 +01:00
8146f42492 added uikit markup for seo winix function 2021-02-08 02:01:37 +01:00
9df146af3b added: to 'sort' winix function: 'renumerate' button if 'index' param is present
WIP: #2
2021-01-29 08:35:17 +01:00
a7629f638f added uikit markup for sort winix function
WIP: #2
2021-01-28 20:16:44 +01:00
e75918f5ed added uikit markup for rm winix function
WIP: #2
2021-01-28 15:36:39 +01:00
9698c25bc4 added uikit markup for ln winix function
WIP: #2
2021-01-28 12:41:43 +01:00
bbe2bd48d8 added uikit markup for meta winix function
WIP: #2
2021-01-28 11:49:10 +01:00
0cc565ae80 added uikit markup for env winix function
WIP: #2
2021-01-28 11:11:34 +01:00
aa74d96fed included index_bottom_adder.html in index.html and index_generic.html 2021-01-27 18:50:03 +01:00
ac6ede6aef added uikit markup for template winix function
WIP: #2
2021-01-27 18:44:58 +01:00
10e291bb39 added: generic html template: index_generic.html
(config option: templates_index_generic)
this is a generic template without additional site-css (only uikit),
at the moment used only in ckeditor file browser

added: to Request class: index_template (std::wstring) - a name of an index html template
2021-01-27 18:31:48 +01:00
7a25e333db added uikit markup for ls winix function
WIP: #2
2021-01-27 17:55:48 +01:00
a9b9d0badf fixed: mv winix function didn't move a file correctly
- if a file was moved (renamed) into the same directory and a file with the new name
already existed then nothing was done (now a message is shown that such a file already exists)
- if a file was moved to another directory and there was a file wich such a name there
then the moved file had its original name (now a message is shown that such a file already exists)
2021-01-27 17:30:55 +01:00
a69e160f85 added uikit markup for nicedit winix function and nicedit updated to 0.9_r25 version
WIP: #2
2021-01-26 17:24:48 +01:00
56d53a455d added uikit markup for cp winix function
WIP: #2
2021-01-26 16:52:11 +01:00
572afd360a added uikit markup for mv winix function
WIP: #2
2021-01-26 16:37:11 +01:00
ec6f946b97 added uikit markup for mkdir winix function
WIP: #2
2021-01-26 16:26:34 +01:00
acfd87e548 added uikit markup for 'default' winix function
WIP: #2
2021-01-26 16:19:20 +01:00
aa228732e3 added uk-table-responsive attribute to mount winix function markup
WIP: #2
2021-01-26 16:11:09 +01:00
840c222190 added uikit markup for mount winix function
WIP: #2
2021-01-26 16:05:15 +01:00
4408957770 changed form width for locale template
WIP: #2
2021-01-26 15:57:55 +01:00
89814cbc2e updated uikit to 3.6.14 version
WIP: #2
2021-01-26 15:51:57 +01:00
fdcefae264 added uikit markup for priv, chmod, chown winix functions
WIP: #2
2021-01-26 15:46:47 +01:00
0139919d14 added uikit markup for passwd winix function 2021-01-25 19:19:45 +01:00
9476bcc7b6 Merge branch 'master' into uikit 2021-01-25 18:45:07 +01:00
4625451c85 fixed: messages about password validity in adduser function were not shown,
slog and locale for functions->fun_passwd were not set
2021-01-25 18:41:28 +01:00
1e345f5010 changed: locale files 2021-01-25 18:19:30 +01:00
31befcba44 added uikit markup for slog.html 2021-01-25 18:15:26 +01:00
f6077da614 Merge branch 'master' into uikit 2021-01-25 17:59:14 +01:00
499db7e3eb fixed: session logger didn't have 'cur' and 'locale' pointers set
but this is a temporary fix, the session logger will be moved to Session class
2021-01-25 17:55:07 +01:00
50da49a3ed added uikit markup for adduser winix function 2021-01-25 17:17:54 +01:00
6afd5c637e added: in account winix function: links to locale and timezone 2021-01-25 16:23:13 +01:00
31a6aac9d3 added uikit markup for locale winix function 2021-01-25 16:15:55 +01:00
3c3660914f added uikit markup for timezone winix function 2021-01-25 16:10:42 +01:00
cd0ae231dc added uikit markup for account winix function 2021-01-25 15:57:37 +01:00
a8bc741883 added uikit markup for vim editor (wymeditor) 2021-01-25 14:34:35 +01:00
05b3525863 changed: version to 0.7.1 2021-01-25 13:14:16 +01:00
337f563bd4 changed html markup for tinymce and added support for 5.6.2 version 2021-01-22 16:56:51 +01:00
c9fe09ebe3 updated locale files 2021-01-22 14:18:50 +01:00
db1c63a350 added html/index_bottom_adder.html template - at the moment empty,
will be used at the bottom of an index template - before </body> tag
2021-01-22 11:50:37 +01:00
7cc2dcd1fc jquery-file-upload updated to 10.31.0 version 2021-01-22 11:50:28 +01:00
86 changed files with 2040 additions and 1532 deletions

View File

@@ -27,7 +27,7 @@ endif
# CXX = g++-4.8
ifndef CXXFLAGS
CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++17 -I/usr/local/include -I/usr/include/postgresql -DEZC_HAS_SPECIAL_STREAM
CXXFLAGS = -Wall -O0 -g -fPIC -pthread -std=c++20 -I/usr/local/include -I/usr/include/postgresql -DEZC_HAS_SPECIAL_STREAM
endif
ifndef AR

View File

@@ -254,6 +254,7 @@ void * BaseThread::StartRoutine(void * this_object)
}
}
base->save_log();
pthread_exit(0);
return 0;
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -186,6 +186,7 @@ void Config::AssignValues(bool stdout_is_closed)
templates_fun_prefix = Text(L"templates_fun_prefix", L"fun_");
templates_fun_postfix = Text(L"templates_fun_postfix", L".html");
templates_index = Text(L"templates_index", L"index.html");
templates_index_generic = Text(L"templates_index_generic", L"index_generic.html");
templates_index_raw = Text(L"templates_index_raw", L"index_raw.html");
template_only_root_use_template_fun = Bool(L"template_only_root_use_template_fun", false);

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -181,6 +181,10 @@ public:
// default: index.html
std::wstring templates_index;
// html template used to send generic content - without site-css styles and markup (only uikit)
// default: index_generic.html
std::wstring templates_index_generic;
// html template used to send raw content
// default: index_raw.html
std::wstring templates_index_raw;

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -58,6 +58,10 @@ public:
void set_synchro(Synchro * synchro);
// using PT::FileLog::init to suppress clang warning:
// warning: 'Winix::FileLog::init' hides overloaded virtual function [-Woverloaded-virtual]
using PT::FileLog::init;
void init(const std::wstring & log_file, bool log_stdout, int log_level, bool save_each_line, size_t log_time_zone_id);
void set_time_zones(TimeZones * time_zones);

View File

@@ -581,6 +581,8 @@ void Image::CreateImage()
<< ", 'convert' process returned: " << res << logend;
}
}
log << logsave;
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2009-2018, Tomasz Sowa
* Copyright (c) 2009-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -222,6 +222,11 @@ void Mounts::ReadMounts(const std::wstring & mounts)
mount_parser.Parse(mounts, mount_tab);
CalcCurMount();
// IMPROVE ME
// cur->mount is pointing to the empty mount (it is set in functions.cpp in CheckSpecialFile method)
// may would be better to call WINIX_FSTAB_CHANGED after the cur->mount is set?
// some plugins are using 'cur' object
plugin->Call((Session*)0, WINIX_FSTAB_CHANGED);
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2015, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -153,6 +153,8 @@ void Request::Clear()
ip = 0;
ip_str.clear();
use_200_status_for_not_found_and_permission_denied = false;
html_template.clear();
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -339,6 +339,8 @@ struct Request
bool gen_use_special_chars;
// index template name
std::wstring html_template;
/*

View File

@@ -186,6 +186,10 @@ void ThreadManager::StopAll()
item.object->WaitForThread();
log << log4 << "TM: thread " << id << " terminated" << logend;
// the thread is stopped and we can set the thread log buffer pointing to
// the main log buffer (from the main thread)
item.object->set_log_buffer(log.GetLogBuffer());
delete item.thread_item_data;
id += 1;
}

View File

@@ -259,7 +259,7 @@ bool TimeZone::SetTzDst(PT::Space & year)
int year_int = Toi(year.name);
if( year_int < 1970 && year_int > 10000 )
if( year_int < 1970 || year_int > 10000 )
return false;
dst.has_dst = year.Bool(L"has_dst", false);

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -42,7 +42,7 @@ namespace Winix
#define WINIX_VER_MAJOR 0
#define WINIX_VER_MINOR 7
#define WINIX_VER_REVISION 0
#define WINIX_VER_REVISION 2

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -90,6 +90,13 @@ void WinixBase::set_dependency(WinixBase * winix_base)
void WinixBase::save_log()
{
log << logsave;
}
}

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2018, Tomasz Sowa
* Copyright (c) 2018-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -65,6 +65,8 @@ public:
void set_dependency(WinixBase * winix_base);
void save_log();
protected:

View File

@@ -94,11 +94,9 @@ void WinixRequest::set_dependency(WinixSystem * winix_system)
void WinixRequest::set_dependency(WinixRequest * winix_request)
{
WinixSystem::set_dependency(winix_request);
cur = winix_request->cur;
locale = winix_request->locale;
session_manager = winix_request->session_manager;
// CHECK ME what about slog
set_cur(winix_request->cur);
set_locale(winix_request->locale);
set_session_manager(winix_request->session_manager);
}

View File

@@ -264,6 +264,11 @@ void AddUser::MakePost()
const std::wstring & email = cur->request->PostVar(L"email");
bool autoactivate = false;
// for slog and locale from fun_passwd to work correctly
// but in the future IsPasswordCorrect will be moved to User class
// or some other place
functions->fun_passwd.set_dependency(this);
if( !IsLoginCorrect(login, true) ||
!IsEmailCorrect(email, true) ||
!functions->fun_passwd.IsPasswordCorrect(pass, conf_pass, true) )

View File

@@ -51,6 +51,9 @@ Cat::Cat()
void Cat::MakeGet()
{
// IMPROVE ME this probably should be set for all winix functions
cur->request->html_template = cur->request->last_item->html_template;
if( !cur->request->is_item )
{
log << log1 << "Content: cat function requires an item" << logend;

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2010-2018, Tomasz Sowa
* Copyright (c) 2010-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -118,6 +118,13 @@ FunctionBase * Functions::Find(const std::wstring & function_name)
if( i == table.end() )
return 0;
FunctionBase * fun = i->second;
// this is to set 'cur' and 'locale' for slog, but in the future slog will be moved to Session
fun->set_cur(cur);
fun->set_locale(locale);
//
return i->second;
}
@@ -161,7 +168,9 @@ Error Functions::CheckSpecialFile(const Item & item)
{
log << log3 << "Functions: reloading mount points" << logend;
cur->mount = system->mounts.GetEmptyMount();
system->mounts.ReadMounts(item.content);
cur->mount = system->mounts.pmount;
templates->ReadNewIndexTemplates();
templates->ReadNewChangeTemplates();

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -52,6 +52,13 @@ Ls::Ls()
void Ls::MakeGet()
{
// !! IMPROVE ME
// this should be moved to ckeditor function (similarly the html content from fun_ls.html)
if( cur->request->IsParam(L"ckeditor_browse") )
{
cur->request->html_template = config->templates_index_generic;
}
if( !cur->request->is_item )
{
DbItemQuery iq;

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2011-2018, Tomasz Sowa
* Copyright (c) 2011-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -127,6 +127,8 @@ return false;
void Meta::ChangeAdminMeta()
{
// IMPROVE ME we need to show an error msg if the user is not an admin
if( cur->session->puser && cur->session->puser->super_user )
{
const std::wstring & meta_str = cur->request->PostVar(L"itemmeta");

View File

@@ -584,12 +584,16 @@ bool Mv::MoveFileOrSymlink2(Item & src_file, const std::wstring & dst_path, bool
if( !ParseDir(dst_path, check_access) )
return false;
if( src_file.parent_id == out_dir_tab.back()->id )
if( out_has_file && src_file.parent_id == out_dir_tab.back()->id && src_file.url == out_item.url )
{
// actually out_filename is here empty
// because ParseDir() have been read it to out_item
if( out_filename.empty() || src_file.url == out_filename )
return true; // the same file -- there is nothing to do
return true; // the same file -- there is nothing to do
}
if( out_has_file )
{
log << log3 << "Mv: such file already exists (skipping)" << logend;
slog << logerror << T("mv_file_exists") << logend;
return false;
}
return MoveFileOrSymlink(src_file, out_dir_tab, out_filename);

View File

@@ -60,6 +60,9 @@ void Run::MakePost()
void Run::MakeGet()
{
// IMPROVE ME this probably should be set for all winix functions
cur->request->html_template = cur->request->last_item->html_template;
if( !cur->request->is_item )
{
log << log1 << "Content: Run function requires an item" << logend;

View File

@@ -97,12 +97,17 @@ void Template::CreateTemplateFileName(const std::wstring & index_str)
}
else
if( index == 1 )
{
html_template = config->templates_index_generic;
}
else
if( index == 2 )
{
html_template = config->templates_index_raw;
}
else
{
index -= 2;
index -= 3;
Mount::ParamRow & par = system->mounts.pmount->param[system->mounts.MountParHtmlTemplate()];
if( !par.defined || (size_t)index >= par.arg.size() )

View File

@@ -1,4 +1,4 @@
<p class="winix_iteminfo">
<p class="uk-text-meta">
{added_by}: [dir_last_user], [dir_last_date_creation_nice]
[if not dir_last_dates_equal]

View File

@@ -1,20 +1,56 @@
<div class="winix">
<h1>Account</h1>
<h1>{account_header}</h1>
[if user_logged]
<p>You are logged as: [user_name]<br>
[if user_super_user]
You are the root
[end]
[# !! IMPROVE ME add info about groups, may other parameters like time zone, language?]
</p>
<table class="uk-table uk-table-divider uk-table-small uk-table-justify">
<tbody>
<tr>
<td class="uk-width-1-4">{account_logged_as}</td>
<td>[user_name]</td>
<td></td>
</tr>
[if user_super_user]
<tr>
<td>{account_admin}</td>
<td>{account_admin_yes}</td>
<td></td>
</tr>
[end]
[if false]
[# improve me]
<tr>
<td>{account_groups}</td>
<td>html, www, foo</td>
<td></td>
</tr>
[end]
<tr>
<td>{account_timezone}</td>
<td>[user_time_zone_name]</td>
<td>
<a href="[dir]timezone" class="uk-button uk-button-default uk-button-small">{change}</a>
</td>
</tr>
<tr>
<td>{account_language}</td>
<td>[user_locale_name]</td>
<td>
<a href="[dir]locale" class="uk-button uk-button-default uk-button-small">{change}</a>
</td>
</tr>
</tbody>
</table>
[else]
<p>You are not logged in.</p>
<p>{account_not_logged}</p>
[end]
</div>

View File

@@ -2,39 +2,62 @@
<h1>[if user_logged]{adduser_header_add}[else]{adduser_header_register}[end]</h1>
<form id="additem" method="post" action="[doc_base_url][dir]adduser">
<fieldset>
<legend>{adduser_form_legend}</legend>
<p class="withnext">{adduser_login}:</p>
<input class="edit" type="text" name="login" value="[adduser_last_login]">
<p class="withnext">{adduser_password}:</p>
<input class="edit" type="password" name="password" value="">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]adduser">
<p class="withnext">{adduser_confirm_password}:</p>
<input class="edit" type="password" name="passwordconfirm" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_login">{adduser_login}</label>
[if winix_account_need_email_verification]
<p class="withnext">{adduser_need_email}<br>{adduser_need_email2}:</p>
[else]
<p class="withnext">{adduser_email}:</p>
[end]
<input class="edit" type="text" name="email" value="[adduser_last_email]">
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_login" type="text" name="login" value="[adduser_last_login]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_password">{adduser_password}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_password" type="password" name="password" value="">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_adduser_confirm_password">{adduser_confirm_password}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_confirm_password" type="password" name="passwordconfirm" value="">
</div>
</div>
<div class="uk-margin">
[if winix_account_need_email_verification]
<label class="uk-form-label" for="winix_adduser_email">{adduser_need_email}</label>
[else]
<label class="uk-form-label" for="winix_adduser_email">{adduser_email}</label>
[end]
<div class="uk-form-controls">
<input class="uk-input" id="winix_adduser_email" type="text" name="email" value="[adduser_last_email]">
</div>
</div>
[if user_super_user]
<p>
<input type="checkbox" name="autoactivate" id="autoactivate"><label style="display: inline;" for="autoactivate">{adduser_auto_activate}</label>
</p>
<div class="uk-margin">
<div class="uk-form-controls">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="autoactivate" id="autoactivate">{adduser_auto_activate}</label>
</div>
</div>
[end]
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="[if user_logged]{adduser_submit}[else]{register_user_submit}[end]">
</fieldset>
<div class="uk-margin">
<div class="uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="[if user_logged]{adduser_submit}[else]{register_user_submit}[end]">
</div>
</div>
</form>
</div>

View File

@@ -6,14 +6,14 @@
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label>
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label>
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
@@ -40,7 +40,7 @@
[if not user_logged]
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label>
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>

View File

@@ -2,38 +2,52 @@
<h1>{cp_header}</h1>
<p>
[if item_is]{cp_page} [item_url] [else]{cp_dir} [dir_without_slash][end]
</p>
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]cp[if not item_is]/r[end]">
<fieldset>
<legend>{cp_form_legend}</legend>
<p>
[if item_is]{cp_page} "[item_url]":[else]{cp_dir} "[dir_without_slash]"[end]
</p>
<p class="withnext">{suggested_url}</p>
<input class="edit" type="text" name="to" value="[dir_without_slash][if item_is]/[item_url][end]">
<p>
<label><input type="checkbox" name="preserveattr">{cp_preserve_attr}</label>
[if not item_is]
<label><input type="checkbox" name="onlycontent">{cp_only_content}</label>
<label><input type="checkbox" name="removedefaults" checked="checked">{cp_remove_defaults}</label>
<label><input type="checkbox" name="followsymlinks" checked="checked">{cp_follow_symlinks}</label>
[end]
</p>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]cp[if not item_is]/r[end]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url" type="text" name="to" value="[dir_without_slash][if item_is]/[item_url][end]">
</div>
</div>
<div class="uk-margin">
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="preserveattr">{cp_preserve_attr}</label>
</div>
[if not item_is]
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="onlycontent">{cp_only_content}</label>
</div>
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="removedefaults" checked="checked">{cp_remove_defaults}</label>
</div>
<div class="uk-margin-small-top">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="followsymlinks" checked="checked">{cp_follow_symlinks}</label>
</div>
[end]
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{copy}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{copy}">
</div>
</form>
</div>

View File

@@ -3,27 +3,40 @@
<h1>{create_thread_header}</h1>
<form id="additem" method="post" action="[doc_base_url][dir]createthread">
<fieldset>
<legend>{form_thread_legend}</legend>
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]createthread">
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]">
</div>
</div>
[if thread_mount_arg_is "subject"]
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div>
[end]
[include "fun_emacs_post.html"]
[if not user_logged]
<p class="withnext">{nick}:</p>
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
<input class="edit" type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
[end]
@@ -31,9 +44,12 @@
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{button_thread_submit}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{button_thread_submit}">
</div>
</form>
</div>

View File

@@ -8,116 +8,180 @@
<form method="post" action="[doc_base_url][dir][if item_is][item_url]/editticket[else]createticket[end]" enctype="multipart/form-data">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/editticket[else]createticket[end]" enctype="multipart/form-data">
<div class="winix_input_a">
<label for="winix_title_id">{title}:</label>
<input id="winix_title_id" type="text" name="subject" value="[item_subject]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]">
</div>
</div>
[if ticket_tab]
<table class="winix_create_ticket">
[for ticket_tab]
<tr>
<th>[filter fil_firstup][ticket_tab_param_name]:[end]</th>
<td>
[if ticket_tab_type_is "select"]
<select name="ticketparam[ticket_tab_param_id]">
[for ticket_tab_select_tab]
<option [if ticket_tab_select_tab_is_selected]selected [end]value="[ticket_tab_select_tab_id]">[ticket_tab_select_tab_name]</option>
[end]
</select>
<div class="uk-margin">
<label class="uk-form-label" for="winix_ticket_select_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_ticket_select_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]">
[for ticket_tab_select_tab]
<option [if ticket_tab_select_tab_is_selected]selected [end]value="[ticket_tab_select_tab_id]">[ticket_tab_select_tab_name]</option>
[end]
</select>
</div>
</div>
[end]
[if one [ticket_tab_type_is "integer"] [ticket_tab_type_is "progress"] [ticket_tab_type_is "string"]]
<input type="text" name="ticketparam[ticket_tab_param_id]" value="[ticket_tab_value]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_ticket_input_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_ticket_input_id_[ticket_tab_param_id]" type="text" name="ticketparam[ticket_tab_param_id]" value="[ticket_tab_value]">
</div>
</div>
[end]
[if ticket_tab_type_is "multistring"]
<textarea name="ticketparam[ticket_tab_param_id]" rows="10" cols="60">[ticket_tab_value]</textarea>
<div class="uk-margin">
<label class="uk-form-label" for="winix_ticket_textarea_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
<div class="uk-form-controls">
<textarea class="uk-textarea" id="winix_ticket_textarea_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" rows="10" cols="60">[ticket_tab_value]</textarea>
</div>
</div>
[end]
[if ticket_tab_type_is "images"]
[for ticket_tab_file_tab]
<div class="winix_create_ticket_file_row">
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]" height="150">
<input type="submit" name="ticketdeletefile_[ticket_tab_file_tab_itemid]" value="{ticket_delete_file}">
<div class="uk-margin">
<label class="uk-form-label" for="winix_ticket_images_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
<div uk-form-custom="target: true">
<input type="file" id="winix_ticket_images_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" multiple>
<input class="uk-input" type="text" placeholder="{form_ticket_select_file}" disabled>
</div>
<button class="uk-button uk-button-default" type="submit" name="fileuploadsubmit">{add}</button>
</div>
[end]
<div class="uk-margin">
<div class="uk-child-width-1-3@m" uk-grid uk-lightbox="animation: slide">
[for ticket_tab_file_tab]
<div class="uk-inline">
<a class="uk-inline" href="[doc_base_url][ticket_tab_file_tab_path]" data-caption="[ticket_tab_file_tab_path]">
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]">
</a>
<button class="uk-button uk-button-default uk-button-small uk-position-small uk-position-top-right uk-overlay uk-overlay-default uk-padding-small uk-padding-remove-top uk-padding-remove-bottom"
type="submit"
name="ticketdeletefile_[ticket_tab_file_tab_itemid]"
data-uk-tooltip="title: {ticket_delete_file}">
<span uk-icon="trash"></span>
</button>
</div>
[end]
</div>
</div>
<input size="30" type="file" name="ticketparam[ticket_tab_param_id]" multiple>
<input type="submit" name="fileuploadsubmit" value="{add}">
[end]
[if ticket_tab_type_is "files"]
<div class="uk-margin">
<label class="uk-form-label" for="winix_ticket_files_id_[ticket_tab_param_id]">[filter fil_firstup][ticket_tab_param_name][end]</label>
<div uk-form-custom="target: true">
<input type="file" id="winix_ticket_files_id_[ticket_tab_param_id]" name="ticketparam[ticket_tab_param_id]" multiple>
<input class="uk-input" type="text" placeholder="{form_ticket_select_file}" disabled>
</div>
<button class="uk-button uk-button-default" type="submit" name="fileuploadsubmit">{add}</button>
</div>
[if ticket_tab_file_tab]
<div class="uk-margin">
<ul>
[for ticket_tab_file_tab]
<li>
<a href="[doc_base_url][ticket_tab_file_tab_path]/download">[ticket_tab_file_tab_path]</a>
[# !! CHECK ME how this look like -- css was not set]
<input type="submit" name="ticketdeletefile_[ticket_tab_file_tab_itemid]" value="{ticket_delete_file}">
<button class="uk-button uk-button-default uk-button-small"
type="submit"
name="ticketdeletefile_[ticket_tab_file_tab_itemid]"
value="{ticket_delete_file}"
data-uk-tooltip="title: {ticket_delete_file}">
<span uk-icon="trash"></span>
</button>
</li>
[end]
</ul>
</div>
[end]
<input size="30" type="file" name="ticketparam[ticket_tab_param_id]" multiple>
<input type="submit" name="fileuploadsubmit" value="{add}">
[end]
[if any_not [ticket_tab_type_is "images"] [ticket_tab_type_is "files"] ticket_is_creating_new ticket_tab_has_value]
{ticket_value_not_set}
<div class="uk-alert-warning" uk-alert>
<p>{ticket_value_not_set}</p>
</div>
[end]
</td>
</tr>
[end]
</table>
[end]
[# FIXME !! change names form_emacs_content_thread and form_emacs_content_ticket]
<div class="winix_input_a">
<label for="winix_content_id">{form_emacs_content_ticket}</label>
<textarea id="winix_content_id" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
<div class="uk-margin">
<label for="winix_content_id">{form_emacs_content_ticket}</label>
<div class="uk-form-controls">
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent">[item_content]</textarea>
</div>
</div>
<div class="winix_input_a">
<label for="winix_content_type_id">{form_emacs_content_type}</label>
<select id="winix_content_type_id" name="contenttype">
<option[if item_content_type_is "text"] selected[end] value="0">{form_emacs_content_type_text}</option>
<option[if item_content_type_is "formatted text"] selected[end] value="1">{form_emacs_content_type_formatted_text}</option>
[if user_can_use_html]<option[if item_content_type_is "html"] selected[end] value="2">{form_emacs_content_type_html}</option>[end]
[if user_can_use_bbcode]<option[if item_content_type_is "bbcode"] selected[end] value="3">{form_emacs_content_type_bbcode}</option>[end]
[if user_can_use_other]<option[if item_content_type_is "other"] selected[end] value="4">{form_emacs_content_type_other}</option>[end]
</select>
<div class="uk-margin">
<label for="winix_content_type_id">{form_emacs_content_type}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_content_type_id" name="contenttype">
<option[if item_content_type_is "text"] selected[end] value="0">{form_emacs_content_type_text}</option>
<option[if item_content_type_is "formatted text"] selected[end] value="1">{form_emacs_content_type_formatted_text}</option>
[if user_can_use_html]<option[if item_content_type_is "html"] selected[end] value="2">{form_emacs_content_type_html}</option>[end]
[if user_can_use_bbcode]<option[if item_content_type_is "bbcode"] selected[end] value="3">{form_emacs_content_type_bbcode}</option>[end]
[if user_can_use_other]<option[if item_content_type_is "other"] selected[end] value="4">{form_emacs_content_type_other}</option>[end]
</select>
</div>
</div>
[if not user_logged]
<div class="winix_input_a">
<label for="winix_nick_id">{nick}:</label>
<input id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="winix_input_a">
<label for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</p>
<input id="winix_rebus_id" type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
@@ -128,8 +192,9 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="[if item_is]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="[if item_is]{form_ticket_edit_submit}[else]{form_ticket_create_submit}[end]">
</div>
</form>

View File

@@ -3,22 +3,28 @@
<h1>{default_header}</h1>
<form id="additem" method="post" action="[doc_base_url][dir]default">
<fieldset>
<legend>{form_default_legend}</legend>
{url}:<br>
<input class="edit" type="text" name="linkto" value="[dir_last_link_to]">
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir]default">
<p>
<label><input class="" type="checkbox" name="makeredirect"[if dir_last_is_link_redirect] checked="checked"[end]>{default_make_redirect}</label>
</p>
<div class="uk-margin">
<label class="uk-form-label" for="winix_url">{url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url" type="text" name="linkto" value="[dir_last_link_to]">
</div>
</div>
<div class="uk-margin">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="makeredirect"[if dir_last_is_link_redirect] checked="checked"[end]>{default_make_redirect}</label>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>

View File

@@ -7,14 +7,14 @@
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]emacs">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}:</label>
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}:</label>
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
@@ -24,7 +24,7 @@
[if not user_logged]
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}:</label>
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>

View File

@@ -5,51 +5,61 @@
[if user_super_user]
[if winix_function_param_is "a"]
<p class="withnext">{env_change_admin_env_for_user}:</p>
[else]
<p class="withnext">{env_change_env_for_user}:</p>
[end]
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]env[if winix_function_param_is "a"]/a[end]">
<form class="envchangeuser" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]env[if winix_function_param_is "a"]/a[end]">
<fieldset>
<legend>{form_env_legend}</legend>
<select name="userid">
[for env_user_tab]
<option value="[env_user_tab_id]" [if env_user_tab_is_current]selected="selected"[end]>[env_user_tab_name]</option>
[end]
</select>
<div class="uk-margin">
<label class="uk-form-label" for="winix_env_user_select">
[if winix_function_param_is "a"]
{env_change_admin_env_for_user}
[else]
{env_change_env_for_user}
[end]
</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_env_user_select" name="userid">
[for env_user_tab]
<option value="[env_user_tab_id]" [if env_user_tab_is_current]selected="selected"[end]>[env_user_tab_name]</option>
[end]
</select>
</div>
</div>
<input type="hidden" name="changeuser">
<input class="submit" type="submit" value="{env_change_user}">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{env_change_user}">
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</fieldset>
</form>
[end]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]env[if winix_function_param_is "a"]/a[end]">
<fieldset>
<legend>{form_env_legend}</legend>
<textarea class="multitext" rows="30" cols="60" name="envvar">[if winix_function_param_is "a"][env_user_admin_env_str][else][env_user_env_str][end]</textarea>
<input type="hidden" name="userid" value="[env_user_id]">
<input class="submit" type="submit" value="{change}">
<form class="uk-margin-medium uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]env[if winix_function_param_is "a"]/a[end]">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-margin">
<div class="uk-form-controls">
<textarea class="uk-textarea" rows="20" name="envvar">[if winix_function_param_is "a"][env_user_admin_env_str][else][env_user_env_str][end]</textarea>
</div>
</div>
</fieldset>
<input type="hidden" name="userid" value="[env_user_id]">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>

View File

@@ -11,17 +11,20 @@
<form action="[doc_base_url][dir][if item_is][item_url]/[end]export" method="post">
<form class="uk-form-stacked" action="[doc_base_url][dir][if item_is][item_url]/[end]export" method="post">
<input type="checkbox" name="staticfilestoo" id="nonstaticfiles"><label for="nonstaticfiles">{export_checkbox_static_file_too}</label>
<br><br>
<input type="submit" value="Export">
<div class="uk-margin">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="staticfilestoo">{export_checkbox_static_file_too}</label>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-margin">
<button class="uk-button uk-button-primary" type="submit">{export_button}</button>
</div>
</form>

View File

@@ -4,12 +4,14 @@
[if mount_page_arg_is "info"][include "dir_last_info.html"][end]
[if one gallery_has_not_mount_type [gallery_mount_type_arg_is "lightbox"]]
[if one gallery_has_not_mount_type [gallery_mount_type_arg_is "uikit"]]
[if gallery_tab]
<ul class="galleryimages">
<ul class="uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-grid" data-uk-lightbox="animation: slide">
[for gallery_tab]
<li><a rel="lightbox\[gallery\]" href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
<li class="uk-margin-small">
<a href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a>
</li>
[end]
</ul>
[end]
@@ -17,7 +19,24 @@
[end]
[if gallery_mount_type_arg_is "galleria"]
[if gallery_mount_type_arg_is "lightbox"]
[# https://lokeshdhakar.com/projects/lightbox2/ ]
[if gallery_tab]
<ul class="uk-child-width-1-2@s uk-child-width-1-3@m uk-child-width-1-4@l uk-grid">
[for gallery_tab]
<li class="uk-margin-small">
<a href="[gallery_tab_link]" data-lightbox="gallery"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a>
</li>
[end]
</ul>
[end]
[end]
[if gallery_mount_type_arg_is "galleriajs"]
[# https://galleriajs.github.io/]
[if gallery_tab]
<ul class="galleryimages" style="width: [gallery_width]; height: [gallery_height];">
@@ -25,21 +44,30 @@
<li><a href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[if gallery_mount_theme_arg_is "transparent"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/transparent/galleria.transparent.js');</script>
[if gallery_mount_theme_arg_is "azur"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleriajs/1.6.1/dist/themes/azur/galleria.azur.min.js');</script>
[else]
[if gallery_mount_theme_arg_is "white"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/white/galleria.white.js');</script>
[if gallery_mount_theme_arg_is "twelve"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleriajs/1.6.1/dist/themes/twelve/galleria.twelve.min.js');</script>
[else]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/classic/galleria.classic.js');</script>
[if gallery_mount_theme_arg_is "folio"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleriajs/1.6.1/dist/themes/folio/galleria.folio.min.js');</script>
[else]
[if gallery_mount_theme_arg_is "fullscreen"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleriajs/1.6.1/dist/themes/fullscreen/galleria.fullscreen.min.js');</script>
[else]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleriajs/1.6.1/dist/themes/classic/galleria.classic.min.js');</script>
[end]
[else]
[end]
[end]
[if not [winix_function_param_is "image"]]
<script type="text/javascript">$('.galleryimages').galleria();</script>
[else]
[# !! IMPROVE ME add this javascript code to the rest of galleria types]
<script type="text/javascript">var url = window.document.URL.toString(); var num = 0; var re = /\/image:(\d+)/; var numarr = re.exec(url); if( numarr && numarr.length == 2 ) \{var num = numarr\[1\];\}; $('.galleryimages').galleria(\{show: num\});</script>
[end]
[end]
@@ -47,120 +75,4 @@
[end]
[if gallery_mount_type_arg_is "galleria1.2.9"]
[if gallery_tab]
<ul class="galleryimages" style="width: [gallery_width]; height: [gallery_height];">
[for gallery_tab]
<li><a href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[if gallery_mount_theme_arg_is "transparent"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleria/themes/transparent/galleria.transparent.js');</script>
[if not [winix_function_param_is "image"]]
<script type="text/javascript">Galleria.configure(\{showInfo:false\}); Galleria.run('.galleryimages');</script>
[else]
<script type="text/javascript">Galleria.configure(\{showInfo:false, show: [winix_function_param_value "image"]\}); Galleria.run('.galleryimages');</script>
[end]
[else]
[if gallery_mount_theme_arg_is "transparentinfo"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleria/themes/transparentinfo/galleria.transparent.js');</script>
[if not [winix_function_param_is "image"]]
<script type="text/javascript">Galleria.configure(\{\}); Galleria.run('.galleryimages');</script>
[else]
<script type="text/javascript">Galleria.configure(\{show: [winix_function_param_value "image"]\}); Galleria.run('.galleryimages');</script>
[end]
[else]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleria/themes/classic/galleria.classic.js');</script>
[if not [winix_function_param_is "image"]]
<script type="text/javascript">Galleria.configure(\{\}); Galleria.run('.galleryimages');</script>
[else]
<script type="text/javascript">Galleria.configure(\{show: [winix_function_param_value "image"]\}); Galleria.run('.galleryimages');</script>
[end]
[end]
[end]
[end]
[end]
[if gallery_mount_type_arg_is "galleriathumb"]
[if not [winix_function_param_is "image"]]
[if gallery_tab]
<ul class="galleryimages">
[for gallery_tab]
<li><a href="[doc_base_url][dir]-/image:[gallery_tab_index]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[end]
[else]
[if gallery_tab]
<ul class="galleryimages" style="width: [gallery_width]; height: [gallery_height];">
[for gallery_tab]
<li><a href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[if gallery_mount_theme_arg_is "white"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/white/galleria.white.js');</script>
[else]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/aino-galleria/themes/classic/galleria.classic.js');</script>
[end]
<script type="text/javascript">$('.galleryimages').galleria(\{show_info:false, show: [winix_function_param_value "image"]\});</script>
[end]
[end]
[end]
[if gallery_mount_type_arg_is "galleriathumb1.2.9"]
[if not [winix_function_param_is "image"]]
[if gallery_tab]
<ul class="galleryimages">
[for gallery_tab]
<li><a href="[doc_base_url][dir]-/image:[gallery_tab_index]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[end]
[else]
[if gallery_tab]
<ul class="galleryimages" style="width: [gallery_width]; height: [gallery_height];">
[for gallery_tab]
<li><a href="[gallery_tab_link]"><img src="[gallery_tab_link]/-/thumb" alt="[gallery_tab_subject]"></a></li>
[end]
</ul>
[if gallery_mount_theme_arg_is "transparent"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleria/themes/transparent/galleria.transparent.js');</script>
<script type="text/javascript">Galleria.configure(\{showInfo:false, show: [winix_function_param_value "image"]\}); Galleria.run('.galleryimages');</script>
[else]
[if gallery_mount_theme_arg_is "transparentinfo"]
<script type="text/javascript">Galleria.loadTheme('[doc_base_url_common]/galleria/themes/transparentinfo/galleria.transparent.js');</script>
<script type="text/javascript">Galleria.configure(\{show: [winix_function_param_value "image"]\}); Galleria.run('.galleryimages');</script>
[end]
[end]
[end]
[end]
[end]
</div>

View File

@@ -1,22 +1,22 @@
<div class="winix">
<h1>Kadrowanie obrazów</h1>
<h1>{imgcrop_header}</h1>
[if item_is]
[if winix_function_param_is "thumb"]
<p>Kadruj miniaturę zdjęcia, obraz oryginalny (duży) nie zostanie zmodyfikowany.</p>.
[else]
[if winix_function_param_is "newthumb"]
<p>Zaznacz myszką kadr na zdjęciu, z tej części zostanie stworzona nowa miniatura, obraz oryginalny (duży) nie zostanie zmodyfikowany.</p>.
[else]
<p>Kadruj oryginalny obraz (miniatura nie zostanie zmodyfikowana).</p>.
[end]
[end]
[if any item_is item_filetype_is_image]
[if winix_function_param_is "thumb"]
<p>{imgcrop_crop_only_thumb_info}</p>
[else]
[if winix_function_param_is "newthumb"]
<p>{imgcrop_create_new_thumb_info}</p>
[else]
<p>{imgcrop_crop_only_original_img_info}</p>
[end]
[end]
<script type="text/javascript">
var winix_jcrop;
</script>
@@ -31,12 +31,11 @@
[if any_not [winix_function_param_is "thumb"] [winix_function_param_is "newthumb"]]
[if false]
<div class="winix_input_b">
<input type="checkbox" name="createthumbtoo" id="winix_createthumbtooid">
<label for="winix_createthumbtooid">Stwórz także nową miniaturę</label>
</div>
[end]
[if false] [# !! IMPROVE ME not implemented yet]
<div class="uk-margin">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="createthumbtoo">{imgcrop_create_new_thumb_too_info}</label>
</div>
[end]
[end]
@@ -44,12 +43,15 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="Kadruj">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="Kadruj">
</div>
</form>
[else]
<p>To nie jest obrazek.</p>
<p>{imgcrop_no_image_info}</p>
[end]
@@ -72,33 +74,35 @@
[else]
[if item_tab]
<ul class="winix_imgcrop_list">
[for item_tab]
<table class="uk-table uk-table-responsive uk-table-divider uk-table-justify">
[for item_tab]
<tr>
<li>
<div class="winix_imgcrop_list_image">
<img src="[item_tab_link][if item_tab_has_thumb]/-/thumb[end]" alt="[item_tab_subject]">
</div>
<div class="winix_imgcrop_list_imageurl">
[item_tab_url]
</div>
<div class="winix_imgcrop_list_options">
<ul>
<li><a href="[item_tab_link]/imgcrop/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">Kadruj zdjęcie</a></li>
<li><a href="[item_tab_link]/imgcrop/thumb/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">Kadruj miniature</a></li>
<li><a href="[item_tab_link]/imgcrop/newthumb/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">Kadruj i stwórz nową miniature</a></li>
</ul>
</div>
<td data-uk-lightbox="animation: slide">
<a href="[item_tab_link]">
<img src="[item_tab_link][if item_tab_has_thumb]/-/thumb[end]" alt="[item_tab_subject]">
</a>
</td>
</li>
<td>
[item_tab_url]
</td>
[end]
</ul>
<td>
<ul class="uk-nav uk-width-medium">
<li class="uk-margin-small"><a class="uk-button uk-button-default uk-button-small uk-text-small" href="[item_tab_link]/imgcrop/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">{imgcrop_table_option_crop_image}</a></li>
<li class="uk-margin-small"><a class="uk-button uk-button-default uk-button-small uk-text-small" href="[item_tab_link]/imgcrop/thumb/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">{imgcrop_table_option_crop_thumb}</a></li>
<li class="uk-margin-small"><a class="uk-button uk-button-default uk-button-small uk-text-small" href="[item_tab_link]/imgcrop/newthumb/postredirect:[filter fil_urlencode][doc_base_url][dir]imgcrop[end]">{imgcrop_table_option_create_new_thumb}</a></li>
</ul>
</td>
</tr>
[end]
</table>
[end]

View File

@@ -4,7 +4,7 @@
[if ipban_tab]
<table class="ipban_table">
<table class="uk-table uk-table-divider uk-table-small">
<tr>
<th>{ipban_col_id}</th>
@@ -35,15 +35,15 @@
<td>[if ipban_tab_has_active_flag]{ipban_has_active_flag}[end]</td>
<td>[ipban_tab_last_used]</td>
<td>[ipban_tab_expires]</td>
<td><a href="[doc_base_url][dir][if item_is][item_url]/[end]ipban/removeip:[ipban_tab_ip]">{ipban_remove_ip}</a></td>
<td><a class="uk-button uk-button-default uk-button-small" href="[doc_base_url][dir][if item_is][item_url]/[end]ipban/removeip:[ipban_tab_ip]">{ipban_remove_ip}</a></td>
</tr>
[end]
</table>
<p>
<a href="[doc_base_url][dir][if item_is][item_url]/[end]ipban/removeip:all">{ipban_remove_all_ip}</a>
</p>
<div class="uk-margin">
<a class="uk-button uk-button-default" href="[doc_base_url][dir][if item_is][item_url]/[end]ipban/removeip:all">{ipban_remove_all_ip}</a>
</div>
[else]
<p>{ipban_ban_list_empty}</p>

View File

@@ -1,9 +1,9 @@
<div class="winix">
<h1 class="simple">{last_header}</h1>
<h1>{last_header}</h1>
[if last_tab]
<table>
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr><th>{last_tab_login}</th><th>{last_tab_ip}</th><th>{last_tab_login_date}</th><th>{last_tab_logout_date}</th></tr>
[for last_tab]
<tr><td>[last_tab_name]</td><td>[last_tab_ip]</td><td>[last_tab_start]</td><td>[last_tab_end]</td></tr>

View File

@@ -2,35 +2,50 @@
<h1>{ln_header}</h1>
<p>{ln_info}: [dir]</p>
<form id="additem" method="post" action="[doc_base_url][dir]ln">
<fieldset>
<legend>{form_ln_legend}</legend>
<p>{ln_info}: [dir]</p>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir]ln">
<p class="withnext">{suggested_url}</p>
<input class="edit" type="text" name="url" value="">
<p class="withnext">{ln_to}</p>
<input class="edit" type="text" name="linkto" value="[dir][if item_is][item_url][end]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_suggested_url">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_suggested_url" type="text" name="url" value="">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_link_to">{ln_to}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_link_to" type="text" name="linkto" value="[dir][if item_is][item_url][end]">
</div>
</div>
<div class="uk-margin-small">
<label><input class="uk-radio uk-margin-small-right" type="radio" name="linktype" checked="checked" value="0">{ln_hardlink}</label>
</div>
<p>
<label><input id="radiohard" type="radio" name="linktype" checked="checked" value="0">{ln_hardlink}</label>
<label><input id="radiosymb" type="radio" name="linktype" value="1">{ln_symlink}</label>
</p>
<div class="uk-margin-small">
<label><input class="uk-radio uk-margin-small-right" type="radio" name="linktype" value="1">{ln_symlink}</label>
</div>
<p>
<label><input class="" type="checkbox" name="makeredirect">{ln_make_redirect}</label>
</p>
<div class="uk-margin">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="makeredirect">{ln_make_redirect}</label>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>

View File

@@ -9,26 +9,27 @@
[end]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]locale">
<fieldset>
<legend>{locale_form_legend}</legend>
<p class="withnext">{locale_select}:</p>
[# add to styles]
<select name="localeid" style="width: 250px;">
[for winix_locale_tab]
<option value="[winix_locale_tab_id]" [if cmp user_locale_id winix_locale_tab_id]selected="selected"[end]>[winix_locale_tab_name]</option>
[end]
</select>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]locale">
<div class="uk-margin">
<label class="uk-form-label" for="winix_locale_select">{locale_select}:</label>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-form-controls">
<select id="winix_locale_select" name="localeid" class="uk-select">
[for winix_locale_tab]
<option value="[winix_locale_tab_id]" [if cmp user_locale_id winix_locale_tab_id]selected="selected"[end]>[winix_locale_tab_name]</option>
[end]
</select>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</div>
</form>

View File

@@ -9,7 +9,7 @@
</p>
<div class="uk-margin-top">
<a href="[doc_base_url][if dir_can_read_exec][dir][if any item_is item_can_read][item_url]/[end][else]/[end]logout" class="uk-button uk-button-primary uk-border-pill uk-width-small">{login_logout_button}</a>
<a href="[doc_base_url][if dir_can_read_exec][dir][if any item_is item_can_read][item_url]/[end][else]/[end]logout" class="uk-button uk-button-primary uk-width-small">{login_logout_button}</a>
</div>
</div>
[else]
@@ -21,45 +21,44 @@
</div>
[else]
[# login template: https://zzseba78.github.io/Kick-Off/login.html, a little modified: removed pills from borders ]
<div class="uk-width-medium uk-padding-small">
<!-- login -->
<form class="toggle-class" action="[login_path]login" method="POST">
<fieldset class="uk-fieldset">
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: user"></span>
<input class="uk-input uk-border-pill" required placeholder="{login_username}" type="text" name="login">
</div>
</div>
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: lock"></span>
<input class="uk-input uk-border-pill" required placeholder="{login_password}" type="password" name="password">
</div>
</div>
[if login_should_use_captcha]
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: lifesaver"></span>
<input class="uk-input uk-border-pill" required placeholder="{rebus_how_is_it} [rebus_question]?" type="text" name="rebus">
</div>
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: user"></span>
<input class="uk-input" required placeholder="{login_username}" type="text" name="login">
</div>
[end]
<div class="uk-margin-small">
<label><input class="uk-checkbox" type="checkbox" name="rememberme"> {login_remember_me}</label>
</div>
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: lock"></span>
<input class="uk-input" required placeholder="{login_password}" type="password" name="password">
</div>
<div class="uk-margin-bottom">
<button type="submit" class="uk-button uk-button-primary uk-border-pill uk-width-1-1">{login_button}</button>
</div>
[if login_should_use_captcha]
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: lifesaver"></span>
<input class="uk-input" required placeholder="{rebus_how_is_it} [rebus_question]?" type="text" name="rebus">
</div>
</div>
[end]
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-margin-small">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="rememberme">{login_remember_me}</label>
</div>
<div class="uk-margin-bottom">
<button type="submit" class="uk-button uk-button-primary uk-width-1-1">{login_button}</button>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</fieldset>
</form>
<!-- /login -->
@@ -69,11 +68,11 @@
<div class="uk-margin-small">
<div class="uk-inline uk-width-1-1">
<span class="uk-form-icon uk-form-icon-flip" data-uk-icon="icon: mail"></span>
<input class="uk-input uk-border-pill" placeholder="{login_forgot_password_email}" required type="text">
<input class="uk-input" placeholder="{login_forgot_password_email}" required type="text">
</div>
</div>
<div class="uk-margin-bottom">
<button type="submit" class="uk-button uk-button-primary uk-border-pill uk-width-1-1">{login_forgot_password_button}</button>
<button type="submit" class="uk-button uk-button-primary uk-width-1-1">{login_forgot_password_button}</button>
</div>
</form>
<!-- /recover password -->

View File

@@ -1,24 +1,40 @@
<div class="winix">
<div class="winix"[if winix_function_param_is "ckeditor_browse"] style="padding: 1.5em;"[end]>
[# !! IMPROVE ME: move this html code to a ckeditor template]
[if winix_function_param_is "ckeditor_browse"]
<script type="text/javascript">function select(link) \{ window.opener.CKEDITOR.tools.callFunction([ls_ckeditor_funnum_browse], link); window.close(); \} </script>
<div id="winix_ls_browse_leftcolumn">
<div class="uk-margin">
<ul class="uk-breadcrumb">
[for dir_tab]
<li>
<a href="[doc_base_url][dir_tab_link]ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">
[if cmp dir_tab_url ""]
[# !! IMPROVE ME it would be better to have a flag of some kind to indicate that this is a root dir]
{ls_root_dir_name}
[else]
[dir_tab_url]
[end]
</a>
</li>
[end]
</ul>
</div>
<div class="uk-flex uk-margin-medium">
<div class="uk-width-1-4">
[if dir_childs_tab "with_parent"]
<h2>[for dir_tab]<a href="[doc_base_url][dir_tab_link]ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_tab_url]/</a>[end]</h2>
<ul>
<ul class="uk-list uk-list-disc uk-list-collapse">
[for dir_childs_tab "with_parent"]
<li>
[if dir_childs_is_parent]
[# make sure the name of the textarea in fun_ckeditor.html is called: itemcontent]
[# is it needed?]
<a href="[doc_base_url][dir_parent]ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">../</a>
<a href="[doc_base_url][dir_parent]ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">../</a>
[else]
<a href="[doc_base_url][dir][dir_childs_tab_url]/ls/ckeditor_browse/fullscreen/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_childs_tab_url]/</a>
<a href="[doc_base_url][dir][dir_childs_tab_url]/ls/ckeditor_browse/CKEditor:itemcontent/CKEditorFuncNum:[ls_ckeditor_funnum_browse]">[dir_childs_tab_url]/</a>
[end]
</li>
[end]
@@ -27,15 +43,14 @@
</div>
<div id="winix_ls_browse_rightcolumn">
<div class="">
[if item_tab]
<h2>{ls_pictures_in_dir} [dir]</h2>
<ul>
<ul class="uk-list uk-list-collapse" data-uk-grid>
[for item_tab]
<li><a href="javascript:select('[item_tab_link]')"><img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]" height="120"></a></li>
<li><a href="javascript:select('[item_tab_link]')"><img data-src="[item_tab_link]/-/thumb" alt="[item_tab_subject]" height="120" data-uk-img></a></li>
[end]
</ul>
@@ -44,11 +59,12 @@
[end]
</div>
</div>
[else]
<h1>{ls_header}</h1>
[# !! improve me: we need a 'l' flag to a file too, now it's working for dirs only]
[if not item_is]
[if winix_function_param_is "l"]
@@ -59,7 +75,15 @@
[if one dir_childs_tab item_tab]
<table>
<table class="uk-table uk-table-divider uk-table-small uk-table-justify uk-table-responsive">
<tr>
<th>{ls_type}</th>
<th>{ls_permissions}</th>
<th>{ls_owner}</th>
<th>{ls_group}</th>
<th>{ls_name}</th>
</tr>
[for dir_childs_tab]
<tr>
<td>d</td>
@@ -95,7 +119,7 @@
[dir_childs_tab "with_parent"]
[if dir_childs_tab]
<ul>
<ul class="uk-list uk-list-disc uk-list-collapse">
[for dir_childs_tab]
<li>
[if dir_childs_is_parent]
@@ -107,9 +131,9 @@
[end]
</ul>
[end]
[# !! IMPROVE ME those two lists (above and below) can be combined together]
[if item_tab]
<ul>
<ul class="uk-list uk-list-disc uk-list-collapse">
[for item_tab]
<li><a href="[doc_base_url][dir][item_tab_url]">[item_tab_url]</a></li>
[end]
@@ -120,8 +144,9 @@
[else]
<ul>
<li><a href="[doc_base_url][dir][item_url]">[item_url]</a></li>
[#!! improve me: may it would be better to not use a list here?]
<ul class="uk-list uk-list-disc uk-list-collapse">
<li><a href="[doc_base_url][dir][item_url]">[item_url]</a></li>
</ul>
[end]

View File

@@ -4,29 +4,23 @@
<h2>{man_winix_funcions}</h2>
<table>
<ul class="uk-list uk-list-disc">
[for man_winixfun_tab]
<tr>
<td>[man_winixfun_tab_index]</td>
<td>[man_winixfun_tab_name]</td>
</tr>
<li>[man_winixfun_tab_name]</li>
[end]
</table>
</ul>
<h2>{man_ezc_functions}</h2>
<table>
<ul class="uk-list uk-list-disc">
[for man_ezcfun_tab]
<tr>
<td>[man_ezcfun_tab_index]</td>
<td>[man_ezcfun_tab_name]</td>
</tr>
<li>[man_ezcfun_tab_name]</li>
[end]
</table>
</ul>
</div>

View File

@@ -1,62 +1,52 @@
<div class="winix">
[if winix_function_param_is "a"]
<h1>{meta_admin_header}</h1>
[if item_is]
<form method="post" action="[doc_base_url][dir][item_url]/meta/a">
<textarea class="multitext" rows="30" cols="60" name="itemmeta">[item_admin_meta_str]</textarea>
<input class="submit" type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
<h1>
[if winix_function_param_is "a"]
{meta_admin_header}
[else]
<form method="post" action="[doc_base_url][dir]meta/a">
{meta_header}
[end]
</h1>
<textarea class="multitext" rows="30" cols="60" name="itemmeta">[dir_last_admin_meta_str]</textarea>
<input class="submit" type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]meta[if winix_function_param_is "a"]/a[end]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_meta_textarea">
[if winix_function_param_is "a"]
[if item_is]
{meta_admin_for_page}:
[else]
{meta_admin_for_dir}:
[end]
[else]
[if item_is]
{meta_for_page}:
[else]
{meta_for_dir}:
[end]
[end]
</form>
[# !! IMPROVE ME give some message if there is a root directory]
[item_url]
</label>
<div class="uk-form-controls">
<textarea class="uk-textarea" id="winix_meta_textarea" rows="20" name="itemmeta">[if winix_function_param_is "a"][if item_is][item_admin_meta_str][else][dir_last_admin_meta_str][end][else][if item_is][item_meta_str][else][dir_last_meta_str][end][end]</textarea>
</div>
</div>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
[else]
<h1>{meta_header}</h1>
[if item_is]
<form method="post" action="[doc_base_url][dir][item_url]/meta">
<textarea class="multitext" rows="30" cols="60" name="itemmeta">[item_meta_str]</textarea>
<input class="submit" type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
[else]
<form method="post" action="[doc_base_url][dir]meta">
<textarea class="multitext" rows="30" cols="60" name="itemmeta">[dir_last_meta_str]</textarea>
<input class="submit" type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
[end]
[end]
</div>

View File

@@ -2,22 +2,33 @@
<h1>{mkdir_header}</h1>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir]mkdir">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title" type="text" name="subject" value="">
</div>
</div>
<form id="additem" method="post" action="[doc_base_url][dir]mkdir">
<fieldset>
<legend>{mkdir_form_legend}</legend>
<p class="withnext">{title}</p>
<input class="edit" type="text" name="subject" value="">
<p class="withnext">{suggested_url}</p>
<input class="edit" type="text" name="url" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url" type="text" name="url" value="">
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{add}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{add}">
</div>
</form>
</div>

View File

@@ -3,9 +3,12 @@
<h1>{mount_header}</h1>
<h2>{mount_current}:</h2>
<h2>{mount_current}</h2>
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<table class="winix_mountpoints">
<tr>
<th>{mount_type}</th>
<th>{mount_dir}</th>
@@ -25,10 +28,11 @@
<h2>{mount_table}:</h2>
<h2>{mount_table}</h2>
[if mount_tab]
<table class="winix_mountpoints">
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr>
<th>{mount_type}</th>

View File

@@ -2,30 +2,36 @@
<h1>{mv_header}</h1>
<p>
[if item_is]{mv_page} [item_url]:[else]{mv_dir} [dir_without_slash][end]
</p>
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]mv">
<fieldset>
<legend>{mv_form_legend}</legend>
<p>
[if item_is]{mv_page} [item_url]:[else]{mv_dir} [dir][end]
</p>
<p class="withnext">{suggested_url}</p>
<input class="edit" type="text" name="dst_path" value="[dir_without_slash][if item_is]/[item_url][end]">
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]mv">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url" type="text" name="dst_path" value="[dir_without_slash][if item_is]/[item_url][end]">
</div>
</div>
[if not item_is]
<label><input type="checkbox" name="c"[if winix_function_param_is "c"]checked="checked"[end]>{mv_only_content}</label>
<div class="uk-margin">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="c"[if winix_function_param_is "c"] checked="checked"[end]>{mv_only_content}</label>
</div>
[end]
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{move}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{move}">
</div>
</form>
</div>

View File

@@ -3,51 +3,57 @@
[if item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]nicedit">
<fieldset>
<legend>{form_emacs_legend}</legend>
[if mount_type_is "cms"]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]nicedit">
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div>
[end]
<div class="uk-margin">
[if mount_type_is "cms"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_cms}</label>[end]
[if mount_type_is "thread"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_thread}</label>[end]
[if mount_type_is "ticket"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_ticket}</label>[end]
[if any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
[end]
[if mount_type_is "cms"]<p class="withnext">{form_emacs_content_cms}</p>[end]
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
[if mount_type_is "ticket"]<p class="withnext">{form_emacs_content_ticket}</p>[end]
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent" id="nicarea">[item_content]</textarea>
<input type="hidden" name="contenttype" value="2">
<div class="uk-form-controls">
<textarea class="uk-textarea" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent" id="winix_nicedit">[item_content]</textarea>
</div>
</div>
<div class="uk-form-controls">
<input type="hidden" name="contenttype" value="2">
</div>
<script type="text/javascript">
new nicEditor(\{fullPanel:true, iconsPath:'[doc_base_url_common]/nicedit/nicEditorIcons.gif', uploadURI:'[doc_base_url][dir]upload/' \}).panelInstance('nicarea');
new nicEditor(\{fullPanel:true, iconsPath:'[doc_base_url_common]/nicedit/0.9_r25/nicEditorIcons.gif', uploadURI:'[doc_base_url][dir]upload/' \}).panelInstance('winix_nicedit');
</script>
[if winix_function_param_is "full"]
[else]
[end]
[if not user_logged]
<p class="withnext">{nick}:</p>
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
<input class="edit" type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
[end]
@@ -56,8 +62,10 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="[if item_is]{change}[else]{add}[end]">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="[if item_is]{change}[else]{add}[end]">
</div>
</form>

View File

@@ -5,63 +5,92 @@
[if winix_function_param_is "resetpassword"]
<form id="additem" method="post" action="[doc_base_url][dir]passwd/resetpassword">
<fieldset>
<legend>{passwd_form_legend}</legend>
<input type="hidden" name="login" value="[passwd_resetpass_login]">
<input type="hidden" name="code" value="[passwd_resetpass_code]">
<p class="withnext">{passwd_new_password}:</p>
<input class="edit" type="password" name="passwordnew" value="">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]passwd/resetpassword">
<p class="withnext">{passwd_confirm_new_password}:</p>
<input class="edit" type="password" name="passwordconfirm" value="">
<div class="uk-margin">
<input type="hidden" name="login" value="[passwd_resetpass_login]">
<input type="hidden" name="code" value="[passwd_resetpass_code]">
<input class="submit" type="submit" value="{passwd_submit}">
<div class="uk-margin">
<label class="uk-form-label" for="winix_password_new">{passwd_new_password}</label>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-form-controls">
<input class="uk-input" id="winix_password_new" type="password" name="passwordnew" value="">
</div>
</div>
</fieldset>
<div class="uk-margin">
<label class="uk-form-label" for="winix_password_confirm">{passwd_confirm_new_password}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_password_confirm" type="password" name="passwordconfirm" value="">
</div>
</div>
<div class="uk-margin">
<div class="uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="{passwd_submit}">
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</div>
</form>
[else]
<form method="post" action="[doc_base_url][dir]passwd">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir]passwd">
[if user_super_user]
<div class="winix_input_a">
<label for="winix_users_id">{passwd_login}:</label>
<select name="login" id="winix_users_id">
[for user_tab]
<option [if user_tab_is_current]selected[end]>[user_tab_name]</option>
[end]
<div class="uk-margin">
<label class="uk-form-label" for="winix_user_login">{passwd_login}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_user_login" name="login">
[for user_tab]
<option [if user_tab_is_current]selected[end]>[user_tab_name]</option>
[end]
</select>
</div>
</div>
</select>
[else]
<div class="winix_input_a">
<label for="winix_current_pass_id">{passwd_current_password}:</label>
<input id="winix_current_pass_id" type="password" name="passwordcur" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_current_password">{passwd_current_password}:</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_current_password" type="password" name="passwordcur" value="">
</div>
</div>
[end]
<div class="winix_input_a">
<label for="winix_pass_new_id">{passwd_new_password}:</label>
<input id="winix_pass_new_id" type="password" name="passwordnew" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_new_password">{passwd_new_password}:</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_new_password" type="password" name="passwordnew" value="">
</div>
</div>
<div class="winix_input_a">
<label for="winix_pass_new_confirm_id">{passwd_confirm_new_password}:</label>
<input id="winix_pass_new_confirm_id" type="password" name="passwordconfirm" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_new_password_confirm">{passwd_confirm_new_password}:</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_new_password_confirm" type="password" name="passwordconfirm" value="">
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="{passwd_submit}">
<div class="uk-margin">
<div class="uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="{passwd_submit}">
</div>
</div>
</form>

View File

@@ -2,126 +2,172 @@
[# this template is for following functions: priv, chmod, chown]
<h1>{priv_header}</h1>
[if winix_function_param_is "r"]
<p>{priv_change_in_dir}: [dir]</p>
[end]
[if not [winix_function_param_is "r"]]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end][winix_function]">
<fieldset>
<legend>{priv_form_legend}</legend>
<table class="withoutborder">
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end][winix_function]">
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="user" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<tr><th>{group}: </th><td>
<select name="group" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_user_select">{user}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_user_select" name="user">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_group_select">{group}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_group_select" name="group">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</div>
</div>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privileges" value="[priv_privileges]"></td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_user_permissions">{permissions}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_user_permissions" type="text" name="privileges" value="[priv_privileges]">
</div>
</div>
[end]
</table>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>
[else]
<form id="additem" method="post" action="[doc_base_url][dir][winix_function]/r">
<fieldset>
<legend>{priv_form_legend}</legend>
<p class="withnext">{priv_change_in_dir}: [dir]</p>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][winix_function]/r">
<h2>{priv_for_all_files}:</h2>
<table class="withoutborder">
<h2>{priv_for_all_files}</h2>
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="userfile" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_files_user_select">{user}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_files_user_select" name="userfile">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</div>
</div>
<tr><th>{group}: </th><td>
<select name="groupfile" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_files_group_select">{group}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_files_group_select" name="groupfile">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</div>
</div>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesfile" value="[priv_privileges_for_files]"></td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_files_permissions">{permissions}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_files_permissions" type="text" name="privilegesfile" value="[priv_privileges_for_files]">
</div>
</div>
[end]
</table>
<h2>{priv_for_all_dirs}:</h2>
<table class="withoutborder">
<h2>{priv_for_all_dirs}</h2>
[if priv_show_form_chown]
<tr><th>{user}:</th><td>
<select name="userdir" class="users">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_dirs_user_select">{user}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_dirs_user_select" name="userdir">
[for priv_user_tab]
<option[if priv_user_tab_isdefault] selected[end]>[priv_user_tab_name]</option>
[end]
</select>
</div>
</div>
<tr><th>{group}: </th><td>
<select name="groupdir" class="groups">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_dirs_group_select">{group}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_dirs_group_select" name="groupdir">
[for priv_group_tab]
<option[if priv_group_tab_isdefault] selected[end]>[priv_group_tab_name]</option>
[end]
</select>
</div>
</div>
[end]
[if priv_show_form_chmod]
<tr><th>{permissions}:</th><td><input class="privileges" type="text" name="privilegesdir" value="[priv_privileges_for_dirs]"></td></tr>
<div class="uk-margin">
<label class="uk-form-label" for="winix_dirs_permissions">{permissions}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_dirs_permissions" type="text" name="privilegesdir" value="[priv_privileges_for_dirs]">
</div>
</div>
[end]
</table>
<label><input class="check" type="checkbox" name="changesubdirs">{priv_change_all}</label>
<label><input class="check" type="checkbox" name="changecurrentdir">{priv_change_current_dir}: [dir_without_slash]</label>
<div class="uk-margin-medium-top">
<div class="uk-form-controls">
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="changesubdirs">{priv_change_all}</label>
</div>
<div class="uk-form-controls uk-margin-small-top">
[# !! improve me: for root directory dir_without_slash returns nothing, may would be better to show a slash?]
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="changecurrentdir">{priv_change_current_dir}: [dir_without_slash]</label>
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
<div class="uk-margin-medium-top">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</fieldset>
</form>
[end]

View File

@@ -1,9 +1,9 @@
<div class="winix">
<h1>Pw</h1>
<h1>{pw_header}</h1>
[if user_tab]
<table class="tablec">
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr>
<th>{pw_table_no}</th>
<th>{pw_table_login}</th>
@@ -14,7 +14,7 @@
</tr>
[for user_tab]
<tr class="[if index "odd"]roweven[else]rowodd[end]">
<tr>
<td>[user_tab_index]</td>
<td>[user_tab_name]</td>
<td>[if user_tab_is_super_user]{pw_table_yes}[end]</td>

View File

@@ -3,30 +3,37 @@
<h1>{thread_header_reply}</h1>
<form method="post" action="[doc_base_url][dir][item_url]/reply">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][item_url]/reply">
[if thread_mount_arg_is "subject"]
<div class="winix_input_a">
<label for="">{title}:</label>
<input type="text" name="subject" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<div class="winix_input_a">
<label for="">{suggested_url}:</label>
<input type="text" name="url" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div>
[end]
<div class="winix_input_a">
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
<textarea id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
<div class="uk-margin">
[if mount_type_is "thread"]<label for="winix_content_id">{form_emacs_content_thread}</label>[end]
<div class="uk-form-controls">
<textarea class="uk-textarea" id="winix_content_id" rows="10" cols="60" name="itemcontent"></textarea>
</div>
</div>
<div class="winix_input_a">
<label for="">{form_emacs_content_type}</label>
<select name="contenttype">
<div class="uk-margin">
<label class="uk-form-label" for="winix_contenttype_id">{form_emacs_content_type}</label>
<select class="uk-select" name="contenttype" id="winix_contenttype_id">
<option value="0">{form_emacs_content_type_text}</option>
<option selected value="1">{form_emacs_content_type_formatted_text}</option>
[if user_can_use_html]<option value="2">{form_emacs_content_type_html}</option>[end]
@@ -34,20 +41,24 @@
[if user_can_use_other]<option value="4">{form_emacs_content_type_other}</option>[end]
</select>
</div>
[if not user_logged]
<div class="winix_input_a">
<label for="">{nick}:</label>
<input type="text" name="guestname" value="">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="winix_input_a">
<label for="">{rebus_how_is_it} [rebus_question]?</p>
<input type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
[end]
@@ -55,8 +66,10 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="{add}">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{add}">
</div>
</form>

View File

@@ -2,44 +2,44 @@
<h1>{rm_header}</h1>
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]rm[if not item_is]/r[end]">
<fieldset>
<legend>{rm_form_legend}</legend>
<p>
[if item_is]
[if item_type_is_symlink]
{rm_symlink}: [dir][item_url]
[else]
{rm_file}: [dir][item_url]
[end]
[else]
[if dir_is_root]
{rm_root}
[else]
{rm_dir}: [dir_without_slash]
[end]
[end]
</p>
<p>
[if item_is]
[if item_type_is_symlink]
{rm_symlink}: [dir][item_url]
[else]
{rm_file}: [dir][item_url]
[end]
[else]
[if dir_is_root]
[# !! IMPROVE ME for root dir one has to privide 'c' parameter in order to show the form]
{rm_root}
[else]
{rm_dir}: [dir_without_slash]
[end]
[end]
</p>
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]rm[if not item_is]/r[end]">
[if not item_is]
<p>
<label><input type="checkbox" name="c" [if winix_function_param_is "c"]checked="checked"[end]>{rm_only_content}</label>
</p>
<label><input class="uk-checkbox uk-margin-small-right" type="checkbox" name="c" [if winix_function_param_is "c"]checked="checked"[end]>{rm_only_content}</label>
[end]
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{rm_submit}">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{rm_submit}">
</div>
</fieldset>
</form>
</div>

View File

@@ -4,18 +4,20 @@
[if user_logged]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]rmuser">
<fieldset>
<legend>{rmuser_legend}</legend>
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]rmuser">
[if user_super_user]
<p class="withnext">{rmuser_selectuser}:</p>
<select name="userid">
[for user_tab]
<option value="[user_tab_id]">[user_tab_name]</option>
[end]
</select>
<div class="uk-margin">
<label class="uk-form-label" for="winix_select_user_id">{rmuser_selectuser}</label>
<div class="uk-form-controls">
<select class="uk-select uk-width-1-2@s" id="winix_select_user_id" name="userid">
[for user_tab]
<option value="[user_tab_id]">[user_tab_name]</option>
[end]
</select>
</div>
</div>
[else]
<p>{rmuser_removecurrent}</p>
@@ -26,8 +28,10 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="{rmuser_submit}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{rmuser_submit}">
</div>
</form>
[end]

View File

@@ -3,15 +3,7 @@
<div>
[if mount_page_arg_is "subject"]
[if mount_page_arg_is "info"]
<h1 class="withinfo">
[else]
<h1>
[end]
[item_subject]
</h1>
<h1>[item_subject]</h1>
[end]
[if mount_page_arg_is "info"]

View File

@@ -3,28 +3,36 @@
<h1>{seo_title}</h1>
<form method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]seo">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]seo">
<div class="winix_input_a">
<label for="winix_title_id">{title}:</label>
<input id="winix_title_id" type="text" name="subject" value="[item_subject]" autofocus>
</div>
<div class="winix_input_a">
<label for="winix_description_id">{seo_description}:</label>
<input id="winix_description_id" type="text" name="description" value="[item_meta "seo" "description"]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" autofocus>
</div>
</div>
<div class="winix_input_a">
<label for="winix_keywords_id">{seo_keywords}:</label>
<input id="winix_keywords_id" type="text" name="keywords" value="[item_meta "seo" "keywords"]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_description_id">{seo_description}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_description_id" type="text" name="description" value="[item_meta "seo" "description"]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_keywords_id">{seo_keywords}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_keywords_id" type="text" name="keywords" value="[item_meta "seo" "keywords"]">
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="{change}">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>

View File

@@ -5,22 +5,20 @@
[if thread_can_create]
<div class="winix_itemoptions_b">
<ul>
<li><a href="[doc_base_url][dir]createthread" rel="nofollow">{thread_create_new}</a></li>
</ul>
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir]createthread" rel="nofollow">{thread_create_new}</a>
</div>
[end]
[if thread_sort_tab]
<table class="winix_forum">
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive">
<tr><th>{thread_tab_title}</th><th>{thread_tab_author}</th><th>{thread_tab_replies}</th><th>{thread_tab_last_post}</th></tr>
[for thread_sort_tab]
<tr>
<td><a href="[doc_base_url][dir][thread_sort_tab_url]">[thread_sort_tab_subject]</a></td> [# dodac sprawdzanie subject empty]
<td class="smallfont">[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td>
<td class="smallfont">[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td>
<td>[thread_sort_tab_user]</td><td class="smallfont">[thread_sort_tab_replies]</td>
<td>[thread_sort_tab_last_item_date_modification_nice] ([thread_sort_tab_last_item_user])</td>
</tr>
[end]
</table>

View File

@@ -5,16 +5,15 @@
[if ticket_can_create]
<div class="winix_itemoptions_b">
<ul>
<li><a href="[doc_base_url][dir]createticket" rel="nofollow">{ticket_create_new}</a></li>
</ul>
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir]createticket" rel="nofollow">{ticket_create_new}</a>
</div>
[end]
[if tickets_tab]
<table class="winix_tickets_tab">
<div class="uk-overflow-auto">
<table class="uk-table uk-table-divider uk-table-small uk-table-responsive uk-text-small">
<tr>
<th>{tickets_header_name}</th>
@@ -33,7 +32,7 @@
[for tickets_tab]
<tr>
<td class="winix_tickets_tab_title"><a href="[doc_base_url][dir][tickets_tab_url]">[if not tickets_tab_subject_empty][tickets_tab_subject][else]&lt;[tickets_tab_url]&gt;[end]</a></td>
<td><a href="[doc_base_url][dir][tickets_tab_url]">[if not tickets_tab_subject_empty][tickets_tab_subject][else]&lt;[tickets_tab_url]&gt;[end]</a></td>
[for tickets_tab_conf_tab]
[if any_not [tickets_tab_conf_tab_type_is "images"] [tickets_tab_conf_tab_type_is "files"]]
[if tickets_tab_conf_tab_type_is "progress"]
@@ -54,6 +53,7 @@
[end]
</table>
</div>
[end]

View File

@@ -1,54 +1,71 @@
<div class="winix">
<h1>{sort_header}</h1>
[if item_is]
<form class="winix_sortable_form" action="[doc_base_url][dir][item_url]/sort" method="post">
<div class="winix_input_b">
<label for="">{sort_current_sortindex}:</p>
<input type="text" name="sortindex" value="[item_sort]">
</div>
<input type="submit" value="{change}">
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
[else]
<p>{sort_info_multi}</p>
[if item_tab]
<form class="winix_sortable_form" action="[doc_base_url][dir]sort" method="post">
<ul id="winix_sort_items">
[for item_tab]
<li id="winix_sort_item_[item_tab_index]">
<input type="text" name="sort[item_tab_id]" value="[item_tab_sort]">
[# is it correct? may give this 'if' only to /-/thumb param? ]
[if item_tab_has_thumb]<img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]">[end]
[item_tab_url] [if not [is item_tab_subject ""]]<span class="winix_sort_item_title">({sort_item_subject}: [item_tab_subject])</span>[end]
</li>
[end]
</ul>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input type="submit" value="{change}">
</form>
[end]
[end]
</div>
<div class="winix">
<h1>{sort_header}</h1>
[if item_is]
<form class="uk-form-stacked" id="winix_sortable_form" action="[doc_base_url][dir][item_url]/sort" method="post">
<div class="uk-margin">
<label class="uk-form-label" for="winix_sort_index">{sort_current_sortindex}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_sort_index" type="text" name="sortindex" value="[item_sort]">
</div>
</div>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
</form>
[else]
<p>
[if winix_function_param_is "index"]
{sort_info_multi_index}
[else]
{sort_info_multi}
[end]
</p>
[if item_tab]
<form class="uk-form-stacked" id="winix_sortable_form" action="[doc_base_url][dir]sort" method="post">
<ul class="uk-list" id="winix_sort_items" data-uk-sortable>
[for item_tab]
<li class="uk-tile uk-tile-muted uk-padding-small uk-padding-remove-top uk-padding-remove-bottom" id="winix_sort_item_[item_tab_index]" style="cursor: move;">
<input class="[if not [winix_function_param_is "index"]]uk-hidden [end]uk-input uk-width-1-6 uk-margin-small-right" type="text" name="sort[item_tab_id]" value="[item_tab_sort]">
[# is it correct? may give this 'if' only to /-/thumb param? ]
[if item_tab_has_thumb]<img src="[item_tab_link]/-/thumb" alt="[item_tab_subject]">[end]
[item_tab_url][if item_tab_type_is_dir]/[end] [if not [is item_tab_subject ""]]<span class="uk-text-meta">({sort_item_subject}: [item_tab_subject])</span>[end]
</li>
[end]
</ul>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
[if winix_function_param_is "index"]
<div class="uk-margin">
<button class="uk-button uk-button-default auk-button-primary" type="button" id="winix_sort_renumerate">renumeruj</button>
</div>
[end]
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>
[end]
[end]
</div>

View File

@@ -2,7 +2,7 @@
<h1 class="simple">{stat_header}</h1>
<table class="withoutborder">
<table class="uk-table uk-table-small uk-table-divider uk-width-1-2@m">
<tr><th>{stat_item_type}:</th> <td>
[if stat_item_type_is_file]{stat_item_type_file}[end]

View File

@@ -3,18 +3,22 @@
<h1>{subject_header}</h1>
<form method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]subject">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]subject">
<div class="winix_input_a">
<label for="winix_title_id">{title}</label>
<input id="winix_title_id" type="text" name="subject" value="[if item_is][item_subject][else][dir_last_subject][end]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[if item_is][item_subject][else][dir_last_subject][end]">
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>

View File

@@ -44,28 +44,33 @@
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]template">
<fieldset>
<legend>{template_form_legend}</legend>
{template_form_info}:
<select name="template" class="template">
[# the first should be an empty string (value="") which means: a first template from the mount point]
<option value="-1">({template_form_from_mount_point})</option>
[for template_tab]
<option value="[template_tab_index]"[if template_tab_isdefault] selected[end]>[template_tab_file_name]</option>
[end]
</select>
<form class="uk-form-stacked uk-width-1-2@s" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]template">
<div class="uk-margin">
<label class="uk-form-label" for="winix_select_template">{template_form_info}</label>
<div class="uk-form-controls">
<select class="uk-select" id="winix_select_template" name="template">
[# the first should be an empty string (value="") which means: a first template from the mount point]
<option value="-1">({template_form_from_mount_point})</option>
[for template_tab]
<option value="[template_tab_index]"[if template_tab_isdefault] selected[end]>[template_tab_file_name]</option>
[end]
</select>
</div>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</form>

View File

@@ -1,45 +1,56 @@
<div class="winix">
[if mount_page_arg_is "subject"]<h1[if mount_page_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h1>[end]
[if false]
[if mount_page_arg_is "info"][include "item_info.html"][end]
[if thread_can_reply]
<div class="winix_itemoptions_b">
<ul>
<li><a href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a></li>
</ul>
</div>
[end]
[if not [thread_mount_arg_is "sort_desc"]]
<div class="winix_threadbox">
[if item_can_write]<a class="winix_threadedit" href="[item_link]/emacs" rel="nofollow">\[{edit}\]</a>[end]
<div class="uk-margin">
[if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content]
</div>
[end]
[if thread_mount_arg_is "sort_desc"]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
[for thread_sort_tab]
<div class="winix_threadbox[if index "even"] winix_threadboxcolor[end]">
[if thread_sort_tab_can_write]<a class="winix_threadedit" href="[thread_sort_tab_link]/emacs" rel="nofollow">\[{edit}\]</a>[end]
<div class="uk-margin [if index "odd"]uk-tile-default[else]uk-tile-muted uk-padding-small[end]">
[if thread_sort_tab_can_write]<a class="uk-button uk-button-default uk-button-small" href="[thread_sort_tab_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end]
[thread_sort_tab_print_content]
</div>
[end]
[if thread_mount_arg_is "sort_desc"]
<div class="winix_threadbox">
[if item_can_write]<a class="winix_threadedit" href="[item_link]/emacs" rel="nofollow">\[{edit}\]</a>[end]
<div class="uk-margin">
[if item_can_write]<a class="uk-button uk-button-default uk-button-small" href="[item_link]/emacs" rel="nofollow">{edit}</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="winix_withinfo"[end]>[item_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "item_info.html"][end]
[item_print_content]
</div>
[end]
[if not [thread_mount_arg_is "sort_desc"]]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a>
</div>
[end]
[end]
</div>

View File

@@ -5,22 +5,24 @@
<div class="winix_ticket">
<div class="uk-section uk-section-muted uk-padding">
[if ticket_can_edit]<p class="winix_ticket_edit"><a href="[doc_base_url][dir][item_url]/editticket" rel="nofollow">\[{edit}\]</a></p>[end]
<table>
<table class="uk-table uk-table-small">
[for ticket_tab]
[if ticket_tab_has_value]
<tr>
<th>[filter fil_firstup][ticket_tab_param_name]:[end]</th>
<td>
<th class="uk-width-auto">[filter fil_firstup][ticket_tab_param_name]:[end]</th>
<td class="uk-width-expand">
[if ticket_tab_type_is "images"]
[for ticket_tab_file_tab]
<a href="[doc_base_url][ticket_tab_file_tab_path]" rel="lightbox\[a\]">
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]" height="150">
</a>
[end]
<div class="uk-child-width-1-3@m" uk-grid uk-lightbox="animation: slide">
[for ticket_tab_file_tab]
<a class="uk-inline" href="[doc_base_url][ticket_tab_file_tab_path]" data-caption="[ticket_tab_file_tab_path]">
<img src="[doc_base_url][ticket_tab_file_tab_path]/-/thumb" alt="[ticket_tab_file_tab_path]">
</a>
[end]
</div>
[end]
[if ticket_tab_type_is "files"]
@@ -47,16 +49,9 @@
[if winix_has_plugin "thread"]
[if thread_can_reply]
<ul class="winix_itemoptions_b">
<li><a href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a></li>
</ul>
[end]
[for thread_sort_tab]
<div class="threadbox[if index "odd"] threadboxcolor[end]">
<div class="uk-margin [if index "even"]uk-tile-default[else]uk-tile-muted uk-padding-small[end]">
[if thread_sort_tab_can_write]<a class="threadedit" href="[thread_sort_tab_link]/emacs" rel="nofollow">\[{edit}\]</a>[end]
[if thread_mount_arg_is "subject"]<h2[if thread_mount_arg_is "info"] class="withinfo"[end]>[thread_sort_tab_subject]</h2>[end]
[if thread_mount_arg_is "info"][include "thread_sort_tab_info.html"][end]
@@ -64,6 +59,12 @@
</div>
[end]
[if thread_can_reply]
<div class="uk-margin">
<a class="uk-button uk-button-primary" href="[doc_base_url][dir][item_url]/reply" rel="nofollow">{thread_reply_in_this_thread}</a>
</div>
[end]
[end]

View File

@@ -9,25 +9,26 @@
[end]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]timezone">
<fieldset>
<legend>{timezone_form_legend}</legend>
<p class="withnext">{timezone_select}:</p>
[# add to styles]
<select name="timezoneid" style="width: 250px;">
[for winix_tz_tab]
<option value="[winix_tz_tab_id]" [if cmp user_time_zone_id winix_tz_tab_id]selected="selected"[end]>UTC[winix_tz_tab_offset_hour_min] [winix_tz_tab_name]</option>
[end]
</select>
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]timezone">
<div class="uk-margin">
<label class="uk-form-label" for="winix_timezone_select">{timezone_select}:</label>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<div class="uk-form-controls">
<select id="winix_timezone_select" name="timezoneid" class="uk-select">
[for winix_tz_tab]
<option value="[winix_tz_tab_id]" [if cmp user_time_zone_id winix_tz_tab_id]selected="selected"[end]>UTC[winix_tz_tab_offset_hour_min] [winix_tz_tab_name]</option>
[end]
</select>
</div>
[if winix_function_param_is "postredirect"]
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="{change}">
</fieldset>
<div class="uk-margin uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="{change}">
</div>
</div>
</form>

View File

@@ -2,43 +2,52 @@
[if item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
<form class="uk-form-stacked">
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]tinymce">
<fieldset>
<legend>{form_emacs_legend}</legend>
[if mount_type_is "cms"]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div>
[end]
[if any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
[end]
<div class="uk-margin">
[if mount_type_is "cms"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_cms}</label>[end]
[if mount_type_is "thread"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_thread}</label>[end]
[if mount_type_is "ticket"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_ticket}</label>[end]
[if mount_type_is "cms"]<p class="withnext">{form_emacs_content_cms}</p>[end]
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
[if mount_type_is "ticket"]<p class="withnext">{form_emacs_content_ticket}</p>[end]
<div class="uk-form-controls">
<div style="border-top: 1px solid #dadada; border-bottom: 1px solid #dadada; padding: 0.2em 0 0.2em 0; margin: 1em 0 1em 0;" id="winix-editor-content" data-winix-post-name="itemcontent">[item_print_content]</div>
</div>
</div>
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent">[item_content]</textarea>
<input type="hidden" name="contenttype" value="2">
<div class="uk-form-controls">
<input id="contenttype" type="hidden" name="contenttype" value="2">
</div>
[if not user_logged]
<p class="withnext">{nick}:</p>
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
<input class="edit" type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
[end]
@@ -47,8 +56,35 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="[if item_is]{change}[else]{add}[end]">
</fieldset>
<div class="uk-margin">
<div class="uk-form-controls uk-inline">
<button class="uk-button uk-button-primary winix_update_button"
data-winix-function-path="[doc_base_url][dir][if item_is][item_url]/[end]tinymce"
data-winix-content-tinymce-instances="winix-editor-content"
data-winix-content-inputs="winix_url_id,winix_title_id,contenttype"
data-winix-progressbar-id="winix-editor-progressbar"
data-winix-messages-status-success-id="winix-editor-messages-status-success"
data-winix-messages-status-error-id="winix-editor-messages-status-error"
>
{tinymce_update_button}
</button>
<div id="winix-editor-progressbar" class="uk-invisible uk-position-center-right-out uk-margin-small-left">
<img src="[doc_base_url_common]/progressbars/progressbar_fading_lines_16x16.gif" alt="{tinymce_update_progressbar_img_alt}">
</div>
</div>
<div id="winix-editor-messages-status-success" class="winix-editor-messages-status-success">
</div>
<div id="winix-editor-messages-status-error" class="winix-editor-messages-status-error">
</div>
</div>
</form>

View File

@@ -6,11 +6,12 @@
[if sys_plugin_tab]
{uname_available_plugins}:
<ul>
<h2>{uname_available_plugins}</h2>
<ul class="uk-list">
[for sys_plugin_tab]
<li>[if sys_plugin_tab_has_name][sys_plugin_tab_name][else]&lt;{uname_plugin_unknown}&gt;[end]</li>
<li>[if sys_plugin_tab_has_name][sys_plugin_tab_name][else]&lt;{uname_plugin_unknown}&gt;[end]</li>
[end]
</ul>

View File

@@ -19,98 +19,188 @@
<noscript><input type="hidden" name="redirect" value="https://blueimp.github.io/jQuery-File-Upload/"></noscript>
[end]
[# The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload]
<div class="fileupload-buttonbar">
<div class="fileupload-buttons">
[# The fileinput-button span is used to style the file input field as button]
<span class="fileinput-button">
<span>{upload_button_add_files}</span>
<input type="file" name="files\[\]" multiple>
<div class="row fileupload-buttonbar">
<div class="col-lg-7">
<!-- The fileinput-button span is used to style the file input field as button -->
<span class="btn btn-success fileinput-button">
<i class="glyphicon glyphicon-plus"></i>
<span>{upload_button_add_files}</span>
<input type="file" name="files\[\]" multiple />
</span>
<button type="submit" class="start">{upload_button_start_upload}</button>
<button type="reset" class="cancel">{upload_button_cancel_upload}</button>
<button type="button" class="delete">{upload_button_delete}</button>
<input type="checkbox" class="toggle">
[# The global file processing state]
<button type="submit" class="btn btn-primary start">
<i class="glyphicon glyphicon-upload"></i>
<span>{upload_button_start_upload}</span>
</button>
<button type="reset" class="btn btn-warning cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>{upload_button_cancel_upload}</span>
</button>
<button type="button" class="btn btn-danger delete">
<i class="glyphicon glyphicon-trash"></i>
<span>{upload_button_delete}</span>
</button>
[# to the checkbox added form-check-input class and style element]
<input type="checkbox" class="toggle form-check-input" style="transform: none;">
<!-- The global file processing state -->
<span class="fileupload-process"></span>
</div>
[# The global progress state]
<div class="fileupload-progress fade" style="display:none">
[# The global progress bar]
<div class="progress" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
[# The extended global progress state]
</div>
<!-- The global progress state -->
<div class="col-lg-5 fileupload-progress fade">
<!-- The global progress bar -->
<div
class="progress progress-striped active"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
>
<div
class="progress-bar progress-bar-success"
style="width: 0%;"
></div>
</div>
<!-- The extended global progress state -->
<div class="progress-extended">&nbsp;</div>
</div>
</div>
</div>
[# The table listing the files available for upload/download]
<table role="presentation"><tbody class="files"></tbody></table>
<!-- The table listing the files available for upload/download -->
<table role="presentation" class="table table-striped">
<tbody class="files"></tbody>
</table>
</form>
[# The blueimp Gallery widget]
<div id="blueimp-gallery" class="blueimp-gallery blueimp-gallery-controls" data-filter=":even">
<div class="slides"></div>
<h3 class="title"></h3>
<a class="prev"></a>
<a class="next"></a>
<a class="close">×</a>
<a class="play-pause"></a>
<ol class="indicator"></ol>
<div
id="blueimp-gallery"
class="blueimp-gallery blueimp-gallery-controls"
aria-label="image gallery"
aria-modal="true"
role="dialog"
data-filter=":even"
>
<div class="slides" aria-live="polite"></div>
<h3 class="title"></h3>
<a
class="prev"
aria-controls="blueimp-gallery"
aria-label="previous slide"
aria-keyshortcuts="ArrowLeft"
></a>
<a
class="next"
aria-controls="blueimp-gallery"
aria-label="next slide"
aria-keyshortcuts="ArrowRight"
></a>
<a
class="close"
aria-controls="blueimp-gallery"
aria-label="close"
aria-keyshortcuts="Escape"
></a>
<a
class="play-pause"
aria-controls="blueimp-gallery"
aria-label="play slideshow"
aria-keyshortcuts="Space"
aria-pressed="false"
role="button"
></a>
<ol class="indicator"></ol>
</div>
[# The template to display files available for upload]
<script id="template-upload" type="text/x-tmpl">
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-upload fade">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">\{%=file.name%\}</p>
<strong class="error"></strong>
</td>
<td>
<p class="size">Processing...</p>
<div class="progress"></div>
</td>
<td>
\{% if (!i && !o.options.autoUpload) \{ %\}
<button class="start" disabled>Start</button>
\{% \} %\}
\{% if (!i) \{ %\}
<button class="cancel">Cancel</button>
\{% \} %\}
</td>
</tr>
\{% \} %\}</script>
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-upload fade\{%=o.options.loadImageFileTypes.test(file.type)?' image':''%\}">
<td>
<span class="preview"></span>
</td>
<td>
<p class="name">\{%=file.name%\}</p>
<strong class="error text-danger"></strong>
</td>
<td>
<p class="size">{upload_processing}</p>
<div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
</td>
<td>
\{% if (!o.options.autoUpload && o.options.edit && o.options.loadImageFileTypes.test(file.type)) \{ %\}
<button class="btn btn-success edit" data-index="\{%=i%\}" disabled>
<i class="glyphicon glyphicon-edit"></i>
<span>{upload_button_edit}</span>
</button>
\{% \} %\}
\{% if (!i && !o.options.autoUpload) \{ %\}
<button class="btn btn-primary start" disabled>
<i class="glyphicon glyphicon-upload"></i>
<span>{upload_button_start_upload}</span>
</button>
\{% \} %\}
\{% if (!i) \{ %\}
<button class="btn btn-warning cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>{upload_button_cancel_upload}</span>
</button>
\{% \} %\}
</td>
</tr>
\{% \} %\}</script>
[# The template to display files available for download]
<script id="template-download" type="text/x-tmpl">
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-download fade">
<td>
<span class="preview">
\{% if (file.thumbnailUrl) \{ %\}
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" data-gallery><img src="\{%=file.thumbnailUrl%\}"></a>
\{% \} %\}
</span>
</td>
<td>
<p class="name">
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" \{%=file.thumbnailUrl?'data-gallery':''%\}>\{%=file.name%\}</a>
</p>
\{% if (file.error) \{ %\}
<div><span class="error">Error</span> \{%=file.error%\}</div>
\{% \} %\}
</td>
<td>
<span class="size">\{%=o.formatFileSize(file.size)%\}</span>
</td>
<td>
<button class="delete" data-type="\{%=file.deleteType%\}" data-url="\{%=file.deleteUrl%\}"\{% if (file.deleteWithCredentials) \{ %\} data-xhr-fields='\{"withCredentials":true\}'\{% \} %\}>Delete</button>
<input type="checkbox" name="delete" value="1" class="toggle">
</td>
</tr>
\{% \} %\}</script>
\{% for (var i=0, file; file=o.files\[i\]; i++) \{ %\}
<tr class="template-download fade\{%=file.thumbnailUrl?' image':''%\}">
<td>
<span class="preview">
\{% if (file.thumbnailUrl) \{ %\}
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" data-gallery><img src="\{%=file.thumbnailUrl%\}"></a>
\{% \} %\}
</span>
</td>
<td>
<p class="name">
\{% if (file.url) \{ %\}
<a href="\{%=file.url%\}" title="\{%=file.name%\}" download="\{%=file.name%\}" \{%=file.thumbnailUrl?'data-gallery':''%\}>\{%=file.name%\}</a>
\{% \} else \{ %\}
<span>\{%=file.name%\}</span>
\{% \} %\}
</p>
\{% if (file.error) \{ %\}
<div><span class="label label-danger">{upload_error}</span> \{%=file.error%\}</div>
\{% \} %\}
</td>
<td>
<span class="size">\{%=o.formatFileSize(file.size)%\}</span>
</td>
<td>
\{% if (file.deleteUrl) \{ %\}
[# added one div to inline the button with the checkbox]
[# to the checkbox added form-check-input class and style element]
<div class="form-inline" style="white-space: nowrap;">
<button class="btn btn-danger delete" data-type="\{%=file.deleteType%\}" data-url="\{%=file.deleteUrl%\}"\{% if (file.deleteWithCredentials) \{ %\} data-xhr-fields='\{"withCredentials":true\}'\{% \} %\}>
<i class="glyphicon glyphicon-trash"></i>
<span>{upload_button_delete}</span>
</button>
<input type="checkbox" name="delete" value="1" class="toggle form-check-input" style="transform: none;">
</div>
\{% \} else \{ %\}
<button class="btn btn-warning cancel">
<i class="glyphicon glyphicon-ban-circle"></i>
<span>{upload_button_cancel}</span>
</button>
\{% \} %\}
</td>
</tr>
\{% \} %\}</script>
<script type="text/javascript">
@@ -129,8 +219,6 @@
'/cors/result.html?%s'
));
$("div.winix #fileupload button.cancel").css('display','inline');
[# loading existing files]
[# copied from common/fileupload/js/main.js]
$('#fileupload').addClass('fileupload-processing');

View File

@@ -2,20 +2,40 @@
<h1>{uptime_header}</h1>
<p>{uptime_current_time}: [winix_cur_time]<br>
{uptime_up}:
<table class="uk-table uk-table-divider uk-table-small uk-table-justify uk-width-2-3@s uk-width-1-2@m">
<tr>
<th>{uptime_current_time}</th><td>[winix_cur_time]</td>
</tr>
<tr>
<th>{uptime_up}</th>
<td>
[if uptime_more_than_one_day]
[uptime_days] {uptime_days}
[else]
[uptime_hours]
[end]
<br>
{uptime_how_many_sessions}: [winix_how_many_sessions]<br>
{uptime_users_logged}: [winix_users_logged]<br>
{load_avg}: [winix_loadavg_now], [winix_loadavg_1], [winix_loadavg_5], [winix_loadavg_15]<br>
{req_per_sec}: [winix_req_per_sec_now], [winix_req_per_sec_1], [winix_req_per_sec_5], [winix_req_per_sec_15]
</p>
</td>
</tr>
<tr>
<th>{uptime_how_many_sessions}</th><td>[winix_how_many_sessions]</td>
</tr>
<tr>
<th>{uptime_users_logged}</th><td>[winix_users_logged]</td>
</tr>
<tr>
<th>{load_avg}</th><td>[winix_loadavg_now], [winix_loadavg_1], [winix_loadavg_5], [winix_loadavg_15]</td>
</tr>
<tr>
<th>{req_per_sec}</th><td>[winix_req_per_sec_now], [winix_req_per_sec_1], [winix_req_per_sec_5], [winix_req_per_sec_15]</td>
</tr>
</table>
</div>

View File

@@ -3,44 +3,55 @@
[if item_is]<h1>{edit}</h1>[else]<h1>{add}</h1>[end]
<form id="additem" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]vim">
<fieldset>
<legend>{form_emacs_legend}</legend>
[if mount_type_is "cms"]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
<form class="uk-form-stacked" method="post" action="[doc_base_url][dir][if item_is][item_url]/[end]vim">
[if one [mount_type_is "cms"] [any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]]
<div class="uk-margin">
<label class="uk-form-label" for="winix_title_id">{title}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_title_id" type="text" name="subject" value="[item_subject]" [if not item_is]autofocus [end]>
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_url_id">{suggested_url}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_url_id" type="text" name="url" value="[item_url]">
</div>
</div>
[end]
<div class="uk-margin">
[if mount_type_is "cms"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_cms}</label>[end]
[if mount_type_is "thread"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_thread}</label>[end]
[if mount_type_is "ticket"]<label class="uk-form-label" for="winix_content_id">{form_emacs_content_ticket}</label>[end]
[if any [mount_type_is "thread"] [thread_mount_arg_is "subject"]]
<p class="withnext">{title}:</p>
<input class="edit" type="text" name="subject" value="[item_subject]">
<p class="withnext">{suggested_url}:</p>
<input class="edit" type="text" name="url" value="[item_url]">
[end]
<div class="uk-form-controls">
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent">[item_content]</textarea>
</div>
</div>
[if mount_type_is "cms"]<p class="withnext">{form_emacs_content_cms}</p>[end]
[if mount_type_is "thread"]<p class="withnext">{form_emacs_content_thread}</p>[end]
[if mount_type_is "ticket"]<p class="withnext">{form_emacs_content_ticket}</p>[end]
<textarea class="multitext" rows="[if mount_type_is "cms"]30[else]10[end]" cols="60" name="itemcontent">[item_content]</textarea>
<input type="hidden" name="contenttype" value="2">
[if winix_function_param_is "full"]
[else]
[end]
<div class="uk-form-controls">
<input type="hidden" name="contenttype" value="2">
</div>
[if not user_logged]
<p class="withnext">{nick}:</p>
<input class="edit" type="text" name="guestname" value="[item_guest_name]">
<p class="withnext">{rebus_how_is_it} [rebus_question]?</p>
<input class="edit" type="text" name="rebus">
<div class="uk-margin">
<label class="uk-form-label" for="winix_nick_id">{nick}</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_nick_id" type="text" name="guestname" value="[item_guest_name]">
</div>
</div>
<div class="uk-margin">
<label class="uk-form-label" for="winix_rebus_id">{rebus_how_is_it} [rebus_question]?</label>
<div class="uk-form-controls">
<input class="uk-input" id="winix_rebus_id" type="text" name="rebus">
</div>
</div>
[include "antispam.html"]
[end]
@@ -49,8 +60,10 @@
<input type="hidden" name="postredirect" value="[winix_function_param_value "postredirect"]">
[end]
<input class="submit" type="submit" value="[if item_is]{change}[else]{add}[end]">
</fieldset>
<div class="uk-form-controls">
<input class="uk-button uk-button-primary" type="submit" value="[if item_is]{change}[else]{add}[end]">
</div>
</form>

View File

@@ -4,7 +4,7 @@
[if who_tab]
<table class="who">
<table class="uk-table uk-table-divider uk-table-small uk-table-justify uk-table-responsive">
<tr><th>{who_tab_index}</th><th>{user}</th><th>{who_tab_start}</th><th>{who_tab_last_active}</th></tr>
[for who_tab]
<tr><td>[who_tab_lp]</td><td>[who_tab_user]</td><td>[who_tab_time]</td><td>[who_tab_last_time]</td></tr>

View File

@@ -1,39 +1,31 @@
<!DOCTYPE html>
[# minimalistic template]
<html lang="{language}">
<html lang="{winix_html_lang_attr}">
<head>
[include "index_head_functions_add.html"]
<meta charset="UTF-8">
[include "index_head_adder.html"]
<title>[doc_title]</title>
</head>
[if winix_function_is "login"]
[# login template: https://zzseba78.github.io/Kick-Off/login.html ]
<body class="uk-flex uk-flex-center uk-flex-middle uk-background-muted uk-height-viewport" data-uk-height-viewport>
<div>
[else]
<body class="uk-flex uk-flex-center">
<div class="uk-width-2xlarge">
[end]
<body>
<div class="uk-container uk-container-small">
<div class="uk-margin-top" data-uk-height-viewport="expand: true">
[include "slog.html"]
[content]
</div>
<div class="uk-margin-top uk-margin-bottom uk-text-center">
<span class="uk-text-small uk-text-muted">
© [current_year] [doc_base_url] - <a href="https://gitea.ttmath.org/tomasz.sowa/winix" title="{winix_backend_tooltip}" target="_blank" data-uk-tooltip>{winix_backend_info} [sys_ver_major].[sys_ver_minor].[sys_ver_revision]</a>
| {winix_frontend_info} <a href="http://getuikit.com" title="{winix_frontend_tooltip}" target="_blank" data-uk-tooltip><span data-uk-icon="uikit"></span></a>
</span>
</div>
<div class="uk-position-fixed uk-position-bottom-center uk-position-small uk-visible@m uk-position-z-index">
<span class="uk-text-small uk-text-muted">
© [current_year] [doc_base_url] - <a href="https://gitea.ttmath.org/tomasz.sowa/winix" title="Winix - a web framework" target="_blank" data-uk-tooltip>Powered by winix [sys_ver_major].[sys_ver_minor].[sys_ver_revision]</a>
| Built with <a href="http://getuikit.com" title="Visit UIkit 3 site" target="_blank" data-uk-tooltip><span data-uk-icon="uikit"></span></a>
</span>
</div>
[include "slog.html"]
[# each winix function has div.winix in its template defined -- only functions: cat and run don't have div.winix]
[# so you can easly use 'content' with your own template]
[# and when using other winix functions you automatically get proper styling]
[content]
</div>
[include "index_bottom_adder.html"]
</body>
</html>

View File

@@ -0,0 +1,2 @@

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
[# minimalistic template]
<html lang="{winix_html_lang_attr}">
<head>
[include "index_head_adder.html"]
<title>[doc_title]</title>
</head>
<body>
[include "slog.html"]
[content]
[include "index_bottom_adder.html"]
</body>
</html>

View File

@@ -0,0 +1,272 @@
[def winix_has_uikit "true"]
[def winix_has_jquery "false"]
[# IMPROME ME we can add some conditionales such as 'do_not_set_charset']
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
[# UIkit CSS]
<link rel="stylesheet" href="[doc_base_url_common]/uikit/uikit-3.6.16/css/uikit.min.css">
[# UIkit JS]
<script src="[doc_base_url_common]/uikit/uikit-3.6.16/js/uikit.min.js"></script>
<script src="[doc_base_url_common]/uikit/uikit-3.6.16/js/uikit-icons.min.js"></script>
[if winix_function_is "emacs"]
<script type="text/javascript" src="[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.css" type="text/css">
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/css/css.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/javascript/javascript.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/xml/xml.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/htmlmixed/htmlmixed.js"></script>
<!--<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/theme/base16-light.css" type="text/css">-->
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.css" type="text/css">
[if false]
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/search/search.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/addon/search/matchesonscrollbar.css" type="text/css">
[end]
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/fold/xml-fold.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/edit/matchtags.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/selection/active-line.js"></script>
<style>
.CodeMirror-matchingtag \{
font-weight: bold;
background: none;
\}
.CodeMirror-activeline-background \{
background: #f3f3f3;
\}
.CodeMirror \{
border: 1px solid #dedede;
\}
</style>
<script type="text/javascript">
var winix_code_mirror_editor;
function winix_initialize_editor()
\{
var text_area = document.getElementById("winix_content_id");
if( text_area )
\{
winix_code_mirror_editor = CodeMirror.fromTextArea(text_area, \{
mode: "htmlmixed",
theme: "default",
indentUnit: 4,
smartIndent: true,
tabSize: 4,
indentWithTabs: true,
extraKeys: \{
"F11": function(cm) \{ cm.setOption("fullScreen", !cm.getOption("fullScreen")); \},
"Esc": function(cm) \{ if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false); \}
\},
lineNumbers: true,
lineWiseCopyCut: false,
dragDrop: false,
matchTags: true,
styleActiveLine: true
\});
\}
\}
[if false]
this will probably be used to change the mode in the fly
winix_code_mirror_editor.setOption("mode", "");
before saving (update button by ajax) this method should be used:
cm.save()
Copy the content of the editor into the textarea.
[end]
if( window.addEventListener )
window.addEventListener("load", winix_initialize_editor, false);
else
if( window.attachEvent )
window.attachEvent("onload", winix_initialize_editor);
</script>
[end]
[if winix_function_is "ckeditor"]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/ckeditor_4.9.2/ckeditor.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/winix/update_button.js"></script>
[end]
[if winix_function_is "tinymce"]
<script type="text/javascript" src="[doc_base_url]/common/tiny_mce/5.6.2/tinymce.min.js"></script>
[# tinymce can use a special theme called 'mobile' - it is used when /mobile param is provided]
<script type="text/javascript" src="[doc_base_url]/var/tinymce.js[if winix_function_param_is "mobile"]/-/mobile[end]"></script>
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/winix/update_button.js"></script>
[end]
[if winix_function_is "nicedit"]
<script type="text/javascript" src="[doc_base_url_common]/nicedit/0.9_r25/nicEdit.js"></script>
[end]
[if winix_function_is "vim"]
[# info from version 0.5-rc1: this editor doesn't work on different domains by default, solution: http://forum.wymeditor.org/forum/viewtopic.php?f=2&t=731&p=2507#p2504 ]
[# you should add one file to winix: wymiframe.html ]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/wymeditor/1.1.1/wymeditor/jquery.wymeditor.min.js"></script>
<link rel="stylesheet" type="text/css" href="[doc_base_url_common]/wymeditor/1.1.1/wymeditor/skins/default/skin.css">
<script type="text/javascript">jQuery(function() \{ jQuery("textarea").wymeditor(\{ basePath: "[doc_base_url_common]/wymeditor/", iframeBasePath: "[doc_base_url]/var/", updateSelector : "form", updateEvent: 'submit' \}); \});</script>
[end]
[if winix_function_is "gallery"]
[if gallery_mount_type_arg_is "lightbox"]
[# https://lokeshdhakar.com/projects/lightbox2/ ]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/lightbox/2.11.3/dist/css/lightbox.min.css" type="text/css">
<script src="[doc_base_url_common]/lightbox/2.11.3/dist/js/lightbox.min.js" type="text/javascript"></script>
[end]
[if gallery_mount_type_arg_is "galleriajs"]
[# https://galleriajs.github.io/ ]
[# formerly called aino-gallery ]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<script src="[doc_base_url_common]/galleriajs/1.6.1/dist/galleria.min.js" type="text/javascript"></script>
[end]
[end]
[if winix_function_is "upload"]
[# https://blueimp.github.io/jQuery-File-Upload/]
[# https://github.com/blueimp/jQuery-File-Upload]
[# Force latest IE rendering engine or ChromeFrame if installed]
<!--\[if IE\]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!\[endif\]-->
<link rel="stylesheet" href="[doc_base_url_common]/bootstrap/3.3.7/css/bootstrap.min.css">
[# in doc_base_url_common/jquery-file-upload/10.31.0_extra/blueimp-gallery/ is download_all_files.sh script in order to download all necessary files]
<!-- blueimp Gallery styles -->
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/10.31.0_extra/blueimp-gallery/blueimp-gallery.min.css">
[# CSS to style the file input field as button and adjust the Bootstrap progress bars]
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload.css">
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-ui.css">
[# CSS adjustments for browsers with JavaScript disabled]
<noscript>
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-noscript.css">
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/10.31.0/css/jquery.fileupload-ui-noscript.css">
</noscript>
[def winix_has_jquery "true"]
<script src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<!-- The jQuery UI widget factory, can be omitted if jQuery UI is already included -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/vendor/jquery.ui.widget.js"></script>
<!-- The Templates plugin is included to render the upload/download listings -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0_extra/tmpl.min.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0_extra/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0_extra/canvas-to-blob.min.js"></script>
<!-- blueimp Gallery script -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0_extra/jquery.blueimp-gallery.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload user interface plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/jquery.fileupload-ui.js"></script>
[if false]
[# the code to run the plugin we have in fun_upload.html]
<!-- The main application script -->
<!--
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/demo.js"></script>
-->
[end]
<!-- The XDomainRequest Transport is included for cross-domain file deletion for IE 8 and IE 9 -->
<!--\[if (gte IE 8)&(lt IE 10)\]>
<script src="[doc_base_url_common]/jquery-file-upload/10.31.0/js/cors/jquery.xdr-transport.js"></script>
<!\[endif\]-->
[end]
[if winix_function_is "sort"]
[if not item_is]
<script type="text/javascript" src="[doc_base_url_common]/winix/winix_sort.js"></script>
[end]
[end]
[if winix_function_is "imgcrop"]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/jcrop/0.9.15/js/jquery.Jcrop.min.js"></script>
<link type="text/css" rel="stylesheet" href="[doc_base_url_common]/jcrop/0.9.15/css/jquery.Jcrop.min.css">
[end]
[if false]
[# temporarily blocked]
[if winix_has_plugin "stats"]
[include "stats_info.html"]
[end]
[end]

View File

@@ -1,292 +0,0 @@
[def winix_has_uikit "true"]
[def winix_has_jquery "false"]
[# UIkit CSS]
<link rel="stylesheet" href="[doc_base_url_common]/uikit/uikit-3.6.13/css/uikit.min.css" />
[# UIkit JS]
<script src="[doc_base_url_common]/uikit/uikit-3.6.13/js/uikit.min.js"></script>
<script src="[doc_base_url_common]/uikit/uikit-3.6.13/js/uikit-icons.min.js"></script>
[if winix_function_is "emacs"]
<script type="text/javascript" src="[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/lib/codemirror.css" type="text/css">
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/css/css.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/javascript/javascript.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/xml/xml.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/mode/htmlmixed/htmlmixed.js"></script>
<!--<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/theme/base16-light.css" type="text/css">-->
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/addon/display/fullscreen.css" type="text/css">
[if false]
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/search/search.js"></script>
<link rel="stylesheet" href="[doc_base_url_common]/codemirror/5.59.2/addon/search/matchesonscrollbar.css" type="text/css">
[end]
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/fold/xml-fold.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/edit/matchtags.js"></script>
<script src="[doc_base_url_common]/codemirror/5.59.2/addon/selection/active-line.js"></script>
<style>
.CodeMirror-matchingtag \{
font-weight: bold;
background: none;
\}
.CodeMirror-activeline-background \{
background: #f3f3f3;
\}
.CodeMirror \{
border: 1px solid #dedede;
\}
</style>
<script type="text/javascript">
var winix_code_mirror_editor;
function winix_initialize_editor()
\{
var text_area = document.getElementById("winix_content_id");
if( text_area )
\{
winix_code_mirror_editor = CodeMirror.fromTextArea(text_area, \{
mode: "htmlmixed",
theme: "default",
indentUnit: 4,
smartIndent: true,
tabSize: 4,
indentWithTabs: true,
extraKeys: \{
"F11": function(cm) \{ cm.setOption("fullScreen", !cm.getOption("fullScreen")); \},
"Esc": function(cm) \{ if (cm.getOption("fullScreen")) cm.setOption("fullScreen", false); \}
\},
lineNumbers: true,
lineWiseCopyCut: false,
dragDrop: false,
matchTags: true,
styleActiveLine: true
\});
\}
\}
[if false]
this will probably be used to change the mode in the fly
winix_code_mirror_editor.setOption("mode", "");
before saving (update button by ajax) this method should be used:
cm.save()
Copy the content of the editor into the textarea.
[end]
if( window.addEventListener )
window.addEventListener("load", winix_initialize_editor, false);
else
if( window.attachEvent )
window.attachEvent("onload", winix_initialize_editor);
</script>
[end]
[if winix_function_is "ckeditor"]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/ckeditor_4.9.2/ckeditor.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/winix/update_button.js"></script>
[end]
[if winix_function_is "tinymce"]
<!--<script type="text/javascript">document.domain = "www.slimaczek.pl";</script>-->
<script type="text/javascript" src="[doc_base_url]/common/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="[doc_base_url]/var/tinymce.js"></script>
[end]
[if winix_function_is "nicedit"]
<script type="text/javascript" src="[doc_base_url_common]/nicedit/nicEdit.js"></script>
[end]
[if winix_function_is "vim"]
[# this editor doesn't work on different domains by default, solution: http://forum.wymeditor.org/forum/viewtopic.php?f=2&t=731&p=2507#p2504 ]
[# you should add one file to winix: wymiframe.html ]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/wymeditor/jquery.wymeditor.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/wymeditor/lang/en.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/wymeditor/skins/default/skin.js"></script>
<link rel="stylesheet" type="text/css" href="[doc_base_url_common]/wymeditor/skins/default/skin.css">
<script type="text/javascript">jQuery(function() \{ jQuery("textarea").wymeditor(\{ basePath: "[doc_base_url_common]/wymeditor/", iframeBasePath: "[doc_base_url]/var/", updateSelector : "form", updateEvent: 'submit' \}); \});</script>
[end]
[if winix_function_is "ticket"]
[# !! dodac lightboxa tylko jesli tickety zawieraja obrazki ]
<!--
[# warning: prototype doesn't work with jquery in clock tickets (in client panel)]
<link rel="stylesheet" href="[doc_base_url_common]/lightbox/lightbox.css" type="text/css" media="screen">
<script src="[doc_base_url_common]/lightbox/js/prototype.js" type="text/javascript"></script>
<script src="[doc_base_url_common]/lightbox/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="[doc_base_url_common]/lightbox/js/lightbox.js" type="text/javascript"></script>
-->
[end]
[if winix_function_is "gallery"]
[if one gallery_has_not_mount_type [gallery_mount_type_arg_is "lightbox"]]
<link rel="stylesheet" href="[doc_base_url_common]/lightbox/lightbox.css" type="text/css" media="screen">
<script src="[doc_base_url_common]/lightbox/js/prototype.js" type="text/javascript"></script>
<script src="[doc_base_url_common]/lightbox/js/scriptaculous.js?load=effects,builder" type="text/javascript"></script>
<script src="[doc_base_url_common]/lightbox/js/lightbox.js" type="text/javascript"></script>
[end]
[if one [gallery_mount_type_arg_is "galleria"] [gallery_mount_type_arg_is "galleriathumb"]]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.4.4.min.js"></script>
<script src="[doc_base_url_common]/aino-galleria/galleria-1.2.2.min.js" type="text/javascript"></script>
[end]
[if one [gallery_mount_type_arg_is "galleria1.2.9"] [gallery_mount_type_arg_is "galleriathumb1.2.9"]]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.9.1.min.js"></script>
<script src="[doc_base_url_common]/galleria/galleria-1.2.9.min.js" type="text/javascript"></script>
[end]
[end]
[if winix_function_is "upload"]
[# http://blueimp.github.io/jQuery-File-Upload/jquery-ui.html]
[# https://github.com/blueimp/jQuery-File-Upload]
[# we are using the *jQuery UI version* of the plugin]
[# Force latest IE rendering engine or ChromeFrame if installed]
<!--\[if IE\]>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<!\[endif\]-->
<!-- jQuery UI styles -->
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/others/jquery-ui.css">
<!-- Generic page styles -->
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/css/style.css">
[if false]
<style>
/* Adjust the jQuery UI widget font-size: */
.ui-widgetREMOVEME \{
font-size: 0.95em;
\}
</style>
[end]
<!-- blueimp Gallery styles -->
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/others/blueimp-gallery.min.css">
<!-- CSS to style the file input field as button and adjust the Bootstrap progress bars -->
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/css/jquery.fileupload.css">
<link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/css/jquery.fileupload-ui.css">
<!-- CSS adjustments for browsers with JavaScript disabled -->
<noscript><link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/css/jquery.fileupload-noscript.css"></noscript>
<noscript><link rel="stylesheet" href="[doc_base_url_common]/jquery-file-upload/9.28.0/css/jquery.fileupload-ui-noscript.css"></noscript>
<!--
[# it doesn't work with this jquery]
<script src="[doc_base_url_common]/jquery/jquery-3.2.1.slim.min.js"></script>
-->
[def winix_has_jquery "true"]
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/jquery.min.js"></script>
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/jquery-ui.min.js"></script>
<!-- The Templates plugin is included to render the upload/download listings -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/tmpl.min.js"></script>
<!-- The Load Image plugin is included for the preview images and image resizing functionality -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/load-image.all.min.js"></script>
<!-- The Canvas to Blob plugin is included for image resizing functionality -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/canvas-to-blob.min.js"></script>
<!-- blueimp Gallery script -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/others/jquery.blueimp-gallery.min.js"></script>
<!-- The Iframe Transport is required for browsers without support for XHR file uploads -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.iframe-transport.js"></script>
<!-- The basic File Upload plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload.js"></script>
<!-- The File Upload processing plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-process.js"></script>
<!-- The File Upload image preview & resize plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-image.js"></script>
<!-- The File Upload audio preview plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-audio.js"></script>
<!-- The File Upload video preview plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-video.js"></script>
<!-- The File Upload validation plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-validate.js"></script>
<!-- The File Upload user interface plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-ui.js"></script>
<!-- The File Upload jQuery UI plugin -->
<script src="[doc_base_url_common]/jquery-file-upload/9.28.0/js/jquery.fileupload-jquery-ui.js"></script>
[end]
[if winix_function_is "sort"]
[if not item_is]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/jquery-ui-1.8.13/js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/sort.js"></script>
[end]
[end]
[if winix_function_is "imgcrop"]
[def winix_has_jquery "true"]
<script type="text/javascript" src="[doc_base_url_common]/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="[doc_base_url_common]/jcrop-0.9.12/js/jquery.Jcrop.js"></script>
<link type="text/css" rel="stylesheet" href="[doc_base_url_common]/jcrop-0.9.12/css/jquery.Jcrop.css">
[end]
[if false]
[# temporarily blocked]
[if winix_has_plugin "stats"]
[include "stats_info.html"]
[end]
[end]

View File

@@ -1,4 +1,4 @@
<p class="winix_iteminfo">
<p class="uk-text-meta">
{added_by}: [item_user], [item_date_creation_nice][if not item_dates_equal],
{last_modified}[if item_users_different] {by}: [item_modification_user],[else]:[end]
[item_date_modification_nice][end]

View File

@@ -1,39 +0,0 @@
[if not [winix_function_param_is "fullscreen"]]
[if dir_can_write item_can_write]
<div class="winix_itemoptions_a">
[if dir_can_write]
<h2>{add_page}</h2>
<ul>
<li><a href="[doc_base_url][dir]emacs">{admin_emacs_add}</a></li>
[if user_can_use_html]
<li><a href="[doc_base_url][dir]ckeditor">{admin_ckeditor_add}</a></li>
<li><a href="[doc_base_url][dir]nicedit">{admin_nicedit_add}</a></li>
<li><a href="[doc_base_url][dir]tinymce">{admin_tinymce_add}</a></li>
[end]
</ul>
[end]
[if item_is item_can_write]
<h2>{edit_page}</h2>
<ul>
<li><a href="[doc_base_url][dir][item_url]/emacs">{admin_emacs_edit}</a></li>
[if user_can_use_html]
<li><a href="[doc_base_url][dir][item_url]/ckeditor">{admin_ckeditor_edit}</a></li>
<li><a href="[doc_base_url][dir][item_url]/nicedit">{admin_nicedit_edit}</a></li>
<li><a href="[doc_base_url][dir][item_url]/tinymce">{admin_tinymce_edit}</a></li>
[end]
</ul>
[end]
<h2>{admin_options}:</h2>
<ul>
<li><a href="[doc_base_url][dir]ls">{admin_ls}</a></li>
[if dir_can_write]<li><a href="[doc_base_url][dir]mkdir">{admin_mkdir}</a></li>[end]
[if dir_can_write]<li><a href="[doc_base_url][dir]upload">{admin_upload}</a></li>[end]
[if not item_is]<li><a href="[doc_base_url][dir]sort">{admin_sort}</a></li>[end]
[if any item_is item_can_remove]<li><a href="[doc_base_url][dir][item_url]/rm">{admin_rm}</a></li>[end]
</ul>
</div>
[end]
[end]

View File

@@ -1,4 +1,4 @@
<p class="[if index "odd"]winix_itemtabinfo[else][if thread_mount_arg_is "subject"]winix_itemtabinfo[else]winix_itemtabinfo2[end][end]">
<p class="uk-text-meta">
{added_by}: [item_tab_user], [item_tab_date_creation_nice][if not item_tab_dates_equal],
{last_modified}[if item_tab_users_different] {by}: [item_tab_modification_user],[else]:[end]

View File

@@ -1,30 +1,27 @@
[if slog_tab]
<table class="winix_slog">
[for slog_tab]
<tr>
<th class="[if slog_tab_is_error]winix_slogerror[end][if slog_tab_is_warning]winix_slogwarning[end][if slog_tab_is_info]winix_sloginfo[end]">
[if slog_tab_is_info]
{slog_info}:
[end]
<div class="uk-margin [if slog_tab_is_error] uk-alert-danger[end][if slog_tab_is_warning] uk-alert-warning[end][if slog_tab_is_info] uk-alert-success[end]" data-uk-alert>
[if slog_tab_is_warning]
{slog_warning}:
[end]
<a class="uk-alert-close" data-uk-close></a>
[if slog_tab_is_error]
{slog_error}:
[end]
[if slog_tab_is_info]
{slog_info}:
[end]
</th>
<td>
[slog_tab_print]
</td>
</tr>
[if slog_tab_is_warning]
{slog_warning}:
[end]
[if slog_tab_is_error]
{slog_error}:
[end]
[slog_tab_print]
</div>
[end]
</table>
[end]

View File

@@ -1,4 +1,4 @@
<p class="[if index "even"]winix_itemtabinfo[else][if thread_mount_arg_is "subject"]winix_itemtabinfo[else]winix_itemtabinfo2[end][end]">
<p class="uk-text-meta">
{added_by}: [thread_sort_tab_user], [thread_sort_tab_date_creation_nice][if not thread_sort_tab_dates_equal],
{last_modified}[if thread_sort_tab_users_different] {by}: [thread_sort_tab_modification_user],[else]:[end]

View File

@@ -1,8 +1,12 @@
winix_locale_id = "0"
locale_name = "english"
language = en
charset = UTF-8
winix_html_lang_attr = en
winix_backend_info = Powered by winix
winix_backend_tooltip = Winix - a web framework
winix_frontend_info = Built with
winix_frontend_tooltip = Visit UIkit 3 site
logged_as = logged as
@@ -23,11 +27,21 @@ account_already_activated = This account is already activated
account_cannot_be_activated = This account cannot be activated, please contact with the system administrator
account_email_sent = An email with an activation link has been sent to you
account_header = My Account
account_logged_as = You are logged as:
account_not_logged = You are not logged in.
account_admin = Root
account_admin_yes = yes
account_groups = Groups
account_timezone = Time zone
account_language = Language
export_header = Export
export_transer_file_info = Press Export to transfer the file to an external ftp server
export_transer_dir_info = Press Export to transfer the directory to an external ftp server
export_checkbox_static_file_too = "Export static files too (images etc.)"
export_button = Export
code_expired = The code has expired
password_cannot_be_changed = The password cannot be changed, please contact with the system administrator
@@ -72,7 +86,6 @@ cat_file_url = File url
create_thread_header = Create thread
form_thread_legend = Thread form
button_thread_submit = Create thread
url = Url
@@ -118,16 +131,15 @@ form_ticket_progress = "Progress (0-100)"
form_ticket_create_submit = Create a new ticket
form_ticket_edit_submit = Edit a ticket
form_ticket_select_file = Select file
env_header = Environment variables for a user
form_env_legend = Environment variables form
env_change_env_for_user = Change environment variables for user
env_change_admin_env_for_user = Change admin environment variables for user
env_change_user = Change user
default_header = Default item in a directory
default_make_redirect = Make redirect
form_default_legend = Default item form
ln_header = Link
ln_info = Create a link in directory
@@ -135,7 +147,7 @@ ln_to = Link pointing to
ln_hardlink = hardlink
ln_symlink = symbolic link
ln_make_redirect = "Make redirect (only for symbolic links)"
form_ln_legend = Link form
@@ -162,8 +174,13 @@ last_none = There is no anything information.
ls_header = Directory listing
ls_pictures_in_dir = Pictures in directory
ls_no_picture = There are not any pictures in this directory
ls_type = Type
ls_permissions = Permissions
ls_owner = Owner
ls_group = Group
ls_name = Name
ls_root_dir_name = Root dir
ipban_header = IP Banned
ipban_col_id = Id
@@ -186,6 +203,16 @@ ipban_remove_all_ip = Remove all IP's from the list
ipban_ban_list_empty = There are not any IP addresses banned at the moment.
ipban_your_ip_is_banned = Your IP address is banned on this server until to:
imgcrop_header = Image cropping
imgcrop_crop_only_thumb_info = "Crop the thumbnail of the photo, the original (large) image will not be modified."
imgcrop_create_new_thumb_info = "Select a frame on the photo with the mouse, a new thumbnail will be created from this part, the original (large) image will not be modified."
imgcrop_crop_only_original_img_info = "Crop the original image (the thumbnail will not be modified)."
imgcrop_create_new_thumb_too_info = Also create a new thumbnail
imgcrop_no_image_info = imgcrop can only be applied to image files.
imgcrop_table_option_crop_image = Image cropping
imgcrop_table_option_crop_thumb = Thumbnail cropping
imgcrop_table_option_create_new_thumb = Create a new thumbnail
man_header = Man
man_winix_funcions = Winix functions
@@ -194,10 +221,13 @@ man_ezc_functions = EZC templates functions
meta_header = Meta
meta_admin_header = Admin meta
meta_for_dir = Additional information for directory
meta_for_page = Additional information for page
meta_admin_for_dir = Additional administrative information for directory
meta_admin_for_page = Additional administrative information for page
mkdir_header = Make directory
mkdir_form_legend = Make directory form
html_lang_attr_value = "en"
language_orphans = ()
@@ -214,7 +244,6 @@ passwd_password_changed = The password has been changed
priv_header = Permissions
priv_form_legend = Permissions
priv_change_in_dir = Change permissions for all items in the following directory
priv_for_all_files = For all files to
priv_for_all_dirs = For all directories to
@@ -229,7 +258,8 @@ pw_table_is_active = Is active
pw_table_is_suspended = Is suspended
pw_table_is_banned = Is banned
pw_table_yes = yes
pw_table_no = no
# !! is it used anymore?
pw_password_changed = Your password has been changed
@@ -243,7 +273,6 @@ reload_menu = plugin menu cache
rm_header = Remove
rm_form_legend = Remove form
rm_file = Do you really want to remove file
rm_symlink = Do you really want to remove symlink
rm_dir = Do you really want to remove directory
@@ -260,8 +289,7 @@ rm_content_use_r_option = Content of a directory can be removed only with 'r' pa
rmuser_header = Remove user
rmuser_legend = Remove user form
rmuser_selectuser = Select a user
rmuser_selectuser = Choose a user to delete
rmuser_submit = Remove
rmuser_removecurrent = Are you really want to remove your account from our service?
@@ -295,7 +323,6 @@ template_header = Template
template_info_file = Current html template for this file
template_info_dir = Current html template for this directory
template_from_mount_point = is taken from the mount point
template_form_legend = Template form
template_form_info = Select a new template
template_form_from_mount_point = from the mount point
@@ -308,7 +335,10 @@ upload_button_cancel_upload = Cancel upload
upload_button_delete = Delete
upload_button_processing = Processing...
upload_button_download = Download
upload_button_edit = Edit
upload_error = Error:
upload_processing = Processing...
who_header = Sessions
who_tab_index = Ind.
@@ -335,7 +365,6 @@ admin_sort = "Sort items (sort)"
locale_header = Locale
locale_your_locale = Current language
locale_has_incorrect_id = You don't have a correct language set
locale_form_legend = Locale form
locale_select = Select language
@@ -363,15 +392,13 @@ uptime_users_logged = logged users
uptime_days = days
adduser_header_add = Add a user
adduser_header_add = Add a new user
adduser_header_register = Register
adduser_form_legend = Register user form
adduser_login = Login
adduser_password = Password
adduser_confirm_password = Confirm password
adduser_email = You can also provide your email address. If you ever forget your password we will be able send you the password back.
adduser_need_email = You have to provide your email address.
adduser_need_email2 = We send you an email with an activation link
adduser_need_email = You have to provide your email address. We send you an email with an activation link
adduser_submit = Add user
register_user_submit = Register
adduser_err_login_empty = Provide a login please.
@@ -400,7 +427,6 @@ mount_current = Current mount point
mv_header = Move
mv_form_legend = Move form
mv_page = Move page
mv_dir = Move directory
mv_only_content = Move only content of the directory
@@ -412,16 +438,15 @@ mv_dir_content_can_be_moved_to_dir = Directory content can be moved only to an o
mv_cannot_move_to_inside = A directory cannot be moved to inside it
mv_incorrect_dst_path = Incorrect destination path
mv_incorrect_dir = Incorrect directory
mv_file_exists = Such file already exists
timezone_header = Time Zone
timezone_form_legend = Time Zone form
timezone_select = Select your time zone
timezone_your_zone = Your current time zone is
timezone_has_incorrect_id = You don't have a correct time zone set
cp_header = Copy
cp_form_legend = Copy form
cp_page = Copy page
cp_dir = Copy directory
cp_only_content = Copy only content of the directory
@@ -446,6 +471,7 @@ slog_turn_over = Session's log turned over due to size greater than
sort_header = Sort
sort_current_sortindex = Current sort index
sort_info_multi = Set an order of items by using the mouse.
sort_info_multi_index = Set an order of items by providing an index number. You can also set an order of items by using the mouse and then clicking the renumerate button.
sort_item_subject = Subject:
stat_header = Stat
@@ -466,6 +492,8 @@ stat_template_from_mount_point = from the mount point
subject_header = Edit subject
tinymce_update_button = Update
tinymce_update_progressbar_img_alt = Progressbar
uname_header = Uname
uname_available_plugins = Available plugins

View File

@@ -1,9 +1,12 @@
winix_locale_id = "1"
locale_name = "polski"
winix_html_lang_attr = pl
language = pl
charset = UTF-8
winix_backend_info = Napędzany przez Winix
winix_backend_tooltip = Winix - www framework
winix_frontend_info = Zbudowany z
winix_frontend_tooltip = Odwiedź stronę UIkit 3
logged_as = zalogowany jako
@@ -25,12 +28,21 @@ account_already_activated = To konto jest już aktywowane
account_cannot_be_activated = To konto nie może być aktywowane, proszę skontaktować się z administratorem
account_email_sent = Wysłaliśmy Tobie email z linkiem aktywacyjnym
account_header = Moje konto
account_logged_as = Jesteś zalogowany jako:
account_not_logged = Nie jesteś zalogowany.
account_admin = Administrator
account_admin_yes = tak
account_groups = Grupy
account_timezone = Strefa czasowa
account_language = Język
export_header = Export
export_transer_file_info = Wciśnij przycisk Export aby wysłać ten plik na zewnętrzny serwer ftp
export_transer_dir_info = Wciśnij przycisk Export aby wysłać podany katalog na zewnętrzny serwer ftp
export_checkbox_static_file_too = "Wyślij także pliki statyczne (zdjęcia itp.)"
export_button = Export
code_expired = Ten kod stracił już swoją ważność
password_cannot_be_changed = Niestety nie możemy zmienić hasła dla tego konta, proszę skontaktować się z administratorem
@@ -78,7 +90,6 @@ cat_file_url = Adres pliku
create_thread_header = Załóż wątek
form_thread_legend = Wypełnij wszystkie pozycje formularza
button_thread_submit = Załóż wątek
url = Url
@@ -125,16 +136,16 @@ form_ticket_progress = "Postęp prac (0-100)"
form_ticket_create_submit = Załóż zgłoszenie
form_ticket_edit_submit = Edytuj zgłoszenie
form_ticket_select_file = Wybierz plik
env_header = Zmienne środowiskowe
form_env_legend = Formularz zmiany zmiennych środowiskowych dla użytkownika
env_change_env_for_user = Zmień zmienne środowiskowe dla użytkownika
env_change_admin_env_for_user = Zmień zmienne środowiskowe administracyjne dla użytkownika
env_change_user = Zmień użytkownika
default_header = Domyślna pozycja w katalogu
default_header = Domyślny element w katalogu
default_make_redirect = Wykonaj przekierowanie
form_default_legend = Formularz zmiany pozycji domyślnej
ln_header = Link
ln_info = Stwórz link w katalogu
@@ -142,14 +153,14 @@ ln_to = Link wskazujący na
ln_hardlink = hard link
ln_symlink = link symboliczny
ln_make_redirect = "Wykonaj przekierowanie (jedynie dla linków symbolicznych)"
form_ln_legend = Formularz zmiany linku
form_emacs_content_cms = Zawartość:
form_emacs_content_thread = Post:
form_emacs_content_ticket = Opis:
form_emacs_content_type = Rodzaj wiadomości:
form_emacs_content_cms = Zawartość
form_emacs_content_thread = Post
form_emacs_content_ticket = Opis
form_emacs_content_type = Rodzaj wiadomości
form_emacs_content_type_text = text
form_emacs_content_type_formatted_text = sformatowany text
@@ -167,9 +178,13 @@ last_none = Nie ma dostępnych żadnych informacji.
ls_header = Zawartość katalogu
ls_pictures_in_dir = Obrazy w katalogu
ls_no_picture = W tym katalogu nie ma żadnego obrazu
ls_type = Typ
ls_permissions = Uprawnienia
ls_owner = Właściciel
ls_group = Grupa
ls_name = Nazwa
ls_root_dir_name = Katalog główny
ipban_header = Lista zbanowanych adresów IP
ipban_col_id = L.p.
@@ -192,9 +207,22 @@ ipban_remove_all_ip = Usuń wszystkie adresy IP z listy
ipban_ban_list_empty = W tej chwili nie ma żadnych zbanowanych adresów IP.
ipban_your_ip_is_banned = Twój adres IP jest zablokowany aż do:
imgcrop_header = Kadrowanie obrazów
imgcrop_crop_only_thumb_info = "Kadruj miniaturę zdjęcia, obraz oryginalny (duży) nie zostanie zmodyfikowany."
imgcrop_create_new_thumb_info = "Zaznacz myszką kadr na zdjęciu, z tej części zostanie stworzona nowa miniatura, obraz oryginalny (duży) nie zostanie zmodyfikowany."
imgcrop_crop_only_original_img_info = "Kadruj oryginalny obraz (miniatura nie zostanie zmodyfikowana)."
imgcrop_create_new_thumb_too_info = Stwórz także nową miniaturę
imgcrop_no_image_info = imgcrop może być zastosowany tylko do plików graficznych.
imgcrop_table_option_crop_image = Kadruj zdjęcie
imgcrop_table_option_crop_thumb = Kadruj miniature
imgcrop_table_option_create_new_thumb = Stwórz nową miniature
meta_header = Meta
meta_admin_header = Admin meta
meta_for_dir = Dodatkowe informacje dla katalogu
meta_for_page = Dodatkowe informacje dla strony
meta_admin_for_dir = Dodatkowe informacje administracyjne dla katalogu
meta_admin_for_page = Dodatkowe informacje administracyjne dla strony
man_header = Man
@@ -203,7 +231,6 @@ man_ezc_functions = Funkcje szablonów EZC
mkdir_header = Stwórz katalog
mkdir_form_legend = Wypełnij wszystkie pozycje formularza
html_lang_attr_value = "pl"
@@ -238,7 +265,6 @@ passwd_password_changed = Hasło zostało zmienione
priv_header = Zmień uprawnienia dostępu
priv_form_legend = Uprawnienia
priv_change_in_dir = Zmień hurtowo uprawnienia w katalogu
priv_for_all_files = Dla wszystkich plików na
priv_for_all_dirs = Dla wszystkich katalogów na
@@ -254,7 +280,8 @@ pw_table_is_active = Aktywny
pw_table_is_suspended = Wstrzymany
pw_table_is_banned = Zbanowany
pw_table_yes = tak
pw_table_no = nie
# !! is it used anymore?
pw_password_changed = Twoje hasło zostało zmienione
@@ -268,7 +295,6 @@ reload_menu = cache pluginu 'menu'
rm_header = Usuń
rm_form_legend = Formularz usuwania
rm_file = Czy napewno usunąć plik
rm_symlink = Czy napewno usunąć symlink
rm_dir = Czy napewno usunąć katalog
@@ -284,8 +310,7 @@ rm_cannot_remove_root_dir = Nie możesz usunąć głównego katalogu
rm_content_use_r_option = Zawartość katalogu może zostać usunięta tylko z użyciem parametru 'r'
rmuser_header = Usuń użytkownika
rmuser_legend = Formularz usunięcia użytkownika
rmuser_selectuser = Wybierz użytkownika
rmuser_selectuser = Wybierz użytkownika do usunięcia
rmuser_submit = Usuń
rmuser_removecurrent = Naprawdę chcesz usunąć swoje konto z naszego serwisu?
@@ -317,7 +342,6 @@ template_header = Szablon
template_info_file = Bieżący szablon dla tego pliku
template_info_dir = Bieżący szablon dla tego katalogu
template_from_mount_point = jest brany z punktu montowania
template_form_legend = Formularz zmiany szablonu
template_form_info = Wybierz nowy szablon
template_form_from_mount_point = z punktu montowania
@@ -331,7 +355,9 @@ upload_button_cancel_upload = Przerwij wysyłanie
upload_button_delete = Usuń
upload_button_processing = Wysyłanie...
upload_button_download = Ściągnij
upload_button_edit = Edytuj
upload_error = Błąd:
upload_processing = Przygotowywanie...
who_header = Lista sesji
who_tab_index = L.p.
@@ -357,7 +383,6 @@ admin_sort = "Sortuj elementy (sort)"
locale_header = Ustawienia językowe
locale_your_locale = Bieżący język
locale_has_incorrect_id = Nie masz prawidłowo ustawionego bieżącego języka
locale_form_legend = Formularz ustawienia języka
locale_select = Wybierz język
@@ -387,13 +412,11 @@ uptime_days = dni
adduser_header_add = Dodaj użytkownika
adduser_header_register = Zarejestruj się
adduser_form_legend = Formularz rejestracji nowego użytkownika
adduser_login = Login
adduser_password = Hasło
adduser_confirm_password = Potwierdź hasło
adduser_email = Możesz także podać swój email. Jeśli zapomnisz kiedyś hasła to hasło zostanie wysłane na podany email
adduser_need_email = Wymagamy abyś podał nam swój adres email,
adduser_need_email2 = na ten adres wyślemy wiadomość z linkiem aktywacyjnym
adduser_need_email = Wymagamy abyś podał nam swój adres email, na ten adres wyślemy wiadomość z linkiem aktywacyjnym.
adduser_submit = Dodaj użytkownika
register_user_submit = Rejestruj
adduser_err_login_empty = Proszę podać login.
@@ -408,7 +431,7 @@ adduser_err_password_too_big = Hasło nie może być większe niż
adduser_err_password_too_big2 = znaków
adduser_err_email_too_big = Adres email nie może być większy niż
adduser_err_email_too_big2 = znaków
adduser_auto_activate = Automatically activate this account
adduser_auto_activate = Aktywuj automatycznie to konto
adduser_err_email_incorrect = Podany email jest nieprawidłowy
@@ -422,7 +445,6 @@ mount_current = Bieżący punkt montowania
mv_header = Przenieś
mv_form_legend = Formularz zmiany
mv_page = Przenieś stronę
mv_dir = Przenieś katalog
mv_only_content = Przenieś tylko zawartość katalogu
@@ -434,17 +456,15 @@ mv_dir_content_can_be_moved_to_dir = Zawartość katalogu może zostać przenies
mv_cannot_move_to_inside = Nie mogę przenieść katalogu do jego środka
mv_incorrect_dst_path = Nieprawidłowa ścieżka docelowa
mv_incorrect_dir = Nieprawidłowy katalog
mv_file_exists = Podany plik już istnieje
timezone_header = Strefa czasowa
timezone_form_legend = Formularz wyboru strefy czasowej
timezone_select = Wybierz swoją strefę czasową
timezone_your_zone = Twoja aktualna strefa czasowa to
timezone_has_incorrect_id = Nie masz prawidłowo ustawionej strefy czasowej
cp_header = Kopiuj
cp_form_legend = Formularz kopiowania
cp_page = Kopiuj stronę
cp_dir = Kopiuj katalog
cp_only_content = Kopiuj tylko zawartość katalogu
@@ -468,6 +488,7 @@ slog_turn_over = Log sesji wyczyszczony w związku z przekroczeniem wielkości
sort_header = Sortuj
sort_current_sortindex = Bieżący indeks sortowania
sort_info_multi = Ustaw kolejność elementów przeciągając je przy pomocy myszki.
sort_info_multi_index = Ustaw kolejność elementów podająć ich indeks. Możesz także ustawić kolejność elementów przeciągając je przy pomocy myszki i następnie kliknąć przycisk Renumeruj.
sort_item_subject = Tytuł:
stat_header = Stat
@@ -488,6 +509,9 @@ stat_template_from_mount_point = z punktu montowania
subject_header = Zmień tytuł
tinymce_update_button = Aktualizuj
tinymce_update_progressbar_img_alt = Progressbar
uname_header = Nazwa systemu
uname_available_plugins = Dostępne pluginy
uname_plugin_unknown = Plugin nie ustawił swojej nazwy

View File

@@ -91,8 +91,9 @@ void template_init()
// the first item in the html template is an empty string
// added in the html template
temp_tab.clear();
temp_tab.push_back(config->templates_index); // index: 0
temp_tab.push_back(config->templates_index_raw); // index: 1
temp_tab.push_back(config->templates_index); // index: 0 (indices are used in template.cpp in functions) !! IMPROVE ME it should be done better
temp_tab.push_back(config->templates_index_generic);// index: 1
temp_tab.push_back(config->templates_index_raw); // index: 2
Mount::ParamRow & par = system->mounts.pmount->param[system->mounts.MountParHtmlTemplate()];

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -46,7 +46,8 @@ namespace TemplatesFunctions
{
size_t pat_index; // main index pattern
size_t pat_index_raw; // pattern for a raw content
size_t pat_index_generic; // generic index pattern, without any css-site styles, only main css (uikit)
size_t pat_index_raw; // pattern for a raw content (raw content without html, body markup)
size_t pat_err_404; // 404 error
size_t pat_err_per_denied; // permission denied error
@@ -964,6 +965,7 @@ using namespace TemplatesFunctions;
ezc_blocks.Clear();
pat_index = patterns.Add(config->templates_index);
pat_index_generic = patterns.Add(config->templates_index_generic);
pat_index_raw = patterns.Add(config->templates_index_raw);
pat_err_404 = patterns.Add(L"err_404.html"); // !! IMPROVE ME name to the config
pat_err_per_denied = patterns.Add(L"err_per_denied.html"); // !! IMPROVE ME name to the config
@@ -1031,6 +1033,11 @@ using namespace TemplatesFunctions;
index = patterns.Get(pat_index, TemplatesFunctions::locale.GetCurLang());
}
else
if( template_name == config->templates_index_generic )
{
index = patterns.Get(pat_index_generic, TemplatesFunctions::locale.GetCurLang());
}
else
if( template_name == config->templates_index_raw )
{
index = patterns.Get(pat_index_raw, TemplatesFunctions::locale.GetCurLang());
@@ -1058,9 +1065,9 @@ using namespace TemplatesFunctions;
Ezc::Pattern * index = 0;
if( (cur->request->function == &functions->fun_cat || cur->request->function == &functions->fun_run) && !cur->request->last_item->html_template.empty() )
if( !cur->request->html_template.empty() )
{
index = SelectIndexPattern(cur->request->last_item->html_template);
index = SelectIndexPattern(cur->request->html_template);
}
else
{

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2018, Tomasz Sowa
* Copyright (c) 2008-2021, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -67,7 +67,8 @@ class Functions;
namespace TemplatesFunctions
{
extern size_t pat_index;
extern size_t pat_index_fullscreen;
extern size_t pat_index_generic;
extern size_t pat_index_raw;
extern size_t pat_err_404;
extern size_t pat_err_per_denied;