From f485895094cd72318b46f39689c3ba954eb37411 Mon Sep 17 00:00:00 2001 From: paul Date: Mon, 17 Nov 2014 00:27:49 +0000 Subject: [PATCH] porting busy to confetti framework svn path=/trunk/; revision=54 --- Admin.page | 56 ------ Home.page | 88 --------- Tasks.page | 120 ------------ Wiki.page | 183 ------------------- action.sh | 24 +++ {write => actions}/image_upload.cgi | 0 write/introedit.cgi => actions/introedit.sh | 23 +-- login.cgi => actions/lock.sh | 25 +-- actions/login.sh | 38 ++++ actions/logout.sh | 25 +++ actions/projectmeta.sh | 48 +++++ actions/taskmeta.sh | 53 ++++++ write/lock.cgi => actions/wikiedit.sh | 24 ++- actions/wikimeta.sh | 49 +++++ auth/permissions.sh | 15 -- cgi.sh | 54 ++++++ constants.sh | 44 +++++ index.cgi | 125 ------------- index.page | 1 - page.sh | 34 ++++ pages/Admin.sh | 39 ++++ pages/Home.sh | 60 ++++++ session.cgi => pages/Settings.sh | 30 ++- pages/Subversion.sh | 39 ++++ pages/Tasks.sh | 40 ++++ pages/Wiki.sh | 62 +++++++ pages/error.sh | 32 ++++ project.meta | 15 -- Admin.css => templates/Admin.css | 0 templates/Admin.page | 47 +++++ Error.page => templates/Error.page | 0 Git.page => templates/Git.page | 0 Home.css => templates/Home.css | 0 templates/Home.page | 97 ++++++++++ Settings.page => templates/Settings.page | 0 Subversion.css => templates/Subversion.css | 0 Subversion.page => templates/Subversion.page | 7 - Tasks.css => templates/Tasks.css | 0 templates/Tasks.page | 122 +++++++++++++ Wiki.css => templates/Wiki.css | 0 templates/Wiki_edit.page | 33 ++++ templates/Wiki_list.page | 83 +++++++++ templates/Wiki_show.page | 80 ++++++++ busy.css => templates/busy.css | 0 templates/frame.html.sh | 115 ++++++++++++ wikitext.css => templates/wikitext.css | 0 write/.htaccess | 14 -- write/projectmeta.cgi | 57 ------ write/taskmeta.cgi | 73 -------- write/user_introedit.cgi | 1 - write/user_lock.cgi | 1 - write/user_projectmeta.cgi | 1 - write/user_taskmeta.cgi | 1 - write/user_wikiedit.cgi | 1 - write/user_wikimeta.cgi | 1 - write/wikiedit.cgi | 40 ---- write/wikimeta.cgi | 62 ------- 57 files changed, 1269 insertions(+), 913 deletions(-) delete mode 100644 Admin.page delete mode 100644 Home.page delete mode 100644 Tasks.page delete mode 100755 Wiki.page create mode 100755 action.sh rename {write => actions}/image_upload.cgi (100%) rename write/introedit.cgi => actions/introedit.sh (56%) rename login.cgi => actions/lock.sh (53%) create mode 100755 actions/login.sh create mode 100755 actions/logout.sh create mode 100755 actions/projectmeta.sh create mode 100755 actions/taskmeta.sh rename write/lock.cgi => actions/wikiedit.sh (58%) create mode 100755 actions/wikimeta.sh delete mode 100755 auth/permissions.sh create mode 100755 cgi.sh create mode 100755 constants.sh delete mode 100755 index.cgi delete mode 120000 index.page create mode 100755 page.sh create mode 100755 pages/Admin.sh create mode 100755 pages/Home.sh rename session.cgi => pages/Settings.sh (65%) create mode 100755 pages/Subversion.sh create mode 100755 pages/Tasks.sh create mode 100755 pages/Wiki.sh create mode 100755 pages/error.sh delete mode 100644 project.meta rename Admin.css => templates/Admin.css (100%) create mode 100644 templates/Admin.page rename Error.page => templates/Error.page (100%) rename Git.page => templates/Git.page (100%) rename Home.css => templates/Home.css (100%) create mode 100644 templates/Home.page rename Settings.page => templates/Settings.page (100%) rename Subversion.css => templates/Subversion.css (100%) rename Subversion.page => templates/Subversion.page (76%) rename Tasks.css => templates/Tasks.css (100%) create mode 100644 templates/Tasks.page rename Wiki.css => templates/Wiki.css (100%) create mode 100755 templates/Wiki_edit.page create mode 100755 templates/Wiki_list.page create mode 100755 templates/Wiki_show.page rename busy.css => templates/busy.css (100%) create mode 100755 templates/frame.html.sh rename wikitext.css => templates/wikitext.css (100%) delete mode 100644 write/.htaccess delete mode 100755 write/projectmeta.cgi delete mode 100755 write/taskmeta.cgi delete mode 120000 write/user_introedit.cgi delete mode 120000 write/user_lock.cgi delete mode 120000 write/user_projectmeta.cgi delete mode 120000 write/user_taskmeta.cgi delete mode 120000 write/user_wikiedit.cgi delete mode 120000 write/user_wikimeta.cgi delete mode 100755 write/wikiedit.cgi delete mode 100755 write/wikimeta.cgi diff --git a/Admin.page b/Admin.page deleted file mode 100644 index 65f9e09..0000000 --- a/Admin.page +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/zsh - -metafile=project.meta -userlist="$(sed -rn 's|^([a-zA-Z0-9_+-]):.+$|\1|p' auth/htpasswd)" - -if [ "$ACL_ADMIN" = "false" ]; then - reason=noaccess - . "./Error.page" -else - - echo " -
-
-
-

General

- -
Title Display -
Project Name
-

-
Project Slogan
-

-
- -
Code Browser -
SVN Repository
-

-
GIT Repository
-

-
- -
Donations -
Flattr \"Thing\" URL
-

-
Bitcoin Address
-

-
Paypal Address
-

-
- -
Advertisement -
No Advertisement

-
- BitCoinAdvertisers.com
Bitcoin Address:
-
- - Allow gambling ads - Allow erotic ads -

-
- -
- -
- - " -fi diff --git a/Home.page b/Home.page deleted file mode 100644 index a21de71..0000000 --- a/Home.page +++ /dev/null @@ -1,88 +0,0 @@ -#!/bin/zsh -search="$(egrep -o '(^|&)(s=).+(&|$)' <<<"${QUERY_STRING}" |sed -r 's:^&?s=::;s:\+: :g;s:%:\\x:g')" -search="$(echo -e "${search}" |sed 's:\t: :g;s:\r::g;s:\\:\\\\:g' |head -n1)" - -cat < -
- -
- -
-
-WikiEND -if [ -n "$search" ]; then - echo "

News search results for: $search

" - for each in $(grep -ile "$search" Home/<0000000000-9999999999>_<000-999>.news); do - id=$(sed -r 's:^.*/::;s:.news$::' <<<$each) - echo "' - done - echo '
' -fi - -cat < - -
-
-
- $([ -r "Home/intro" ] && _wiki "Home/intro") - $($ACL_EDITINTRO && echo "
Edit" ) -
-HomeEND -$ACL_EDITINTRO && cat <
-HomeEND -echo '
' - -$ACL_ADDNEWS && cat < - Add News - - -HomeEND - -stat -c '' Home/<0000000000-9999999999>_<000-999>.news && for each in $(ls -c Home/<0000000000-9999999999>_<000-999>.news); do - info="$(sed 's:Home/::;s:.news::' <<<"$each")" - cat < -
- $([ -r "$each" ] && _wiki "$each") - $($ACL_EDITNEWS && echo "
Edit" ) -
-HomeEND - $ACL_EDITNEWS && cat <