Changeset 809
- Timestamp:
- 11/19/08 13:40:25 (3 years ago)
- Location:
- trunk/core
- Files:
-
- 35 deleted
- 269 edited
- 8 moved
-
bin/.htaccess.txt (modified) (1 diff)
-
bin/LocalLib.cfg.txt (modified) (1 diff)
-
bin/attach (modified) (3 diffs)
-
bin/changes (modified) (3 diffs)
-
bin/configure (modified) (25 diffs)
-
bin/edit (modified) (3 diffs)
-
bin/login (modified) (3 diffs)
-
bin/logon (modified) (3 diffs)
-
bin/logos/logo140x40.gif (moved) (moved from trunk/core/bin/logos/T-logo-140x40-t.gif)
-
bin/logos/logo22x26.gif (moved) (moved from trunk/core/bin/logos/T-logo34x26-t.gif)
-
bin/manage (modified) (3 diffs)
-
bin/oops (modified) (3 diffs)
-
bin/preview (modified) (3 diffs)
-
bin/rdiff (modified) (3 diffs)
-
bin/rdiffauth (modified) (3 diffs)
-
bin/register (modified) (3 diffs)
-
bin/rename (modified) (3 diffs)
-
bin/resetpasswd (modified) (3 diffs)
-
bin/rest (modified) (3 diffs)
-
bin/save (modified) (3 diffs)
-
bin/search (modified) (3 diffs)
-
bin/statistics (modified) (3 diffs)
-
bin/twiki_cgi (modified) (3 diffs)
-
bin/upload (modified) (3 diffs)
-
bin/view (modified) (3 diffs)
-
bin/viewauth (modified) (3 diffs)
-
bin/viewfile (modified) (3 diffs)
-
data/System (moved) (moved from trunk/core/data/TWiki)
-
lib/DEPENDENCIES (modified) (2 diffs)
-
lib/Foswiki (moved) (moved from trunk/core/lib/TWiki)
-
lib/Foswiki.pm (moved) (moved from trunk/core/lib/TWiki.pm) (95 diffs)
-
lib/Foswiki.spec (moved) (moved from trunk/core/lib/TWiki.spec) (69 diffs)
-
lib/Foswiki/Access.pm (modified) (3 diffs)
-
lib/Foswiki/AccessControlException.pm (modified) (4 diffs)
-
lib/Foswiki/AggregateIterator.pm (modified) (4 diffs)
-
lib/Foswiki/Attach.pm (modified) (8 diffs)
-
lib/Foswiki/Attrs.pm (modified) (8 diffs)
-
lib/Foswiki/Compatibility.pm (modified) (10 diffs)
-
lib/Foswiki/Configure/CSS.pm (modified) (1 diff)
-
lib/Foswiki/Configure/Checker.pm (modified) (6 diffs)
-
lib/Foswiki/Configure/Checkers/AuthScripts.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/BasicSanity.pm (modified) (5 diffs)
-
lib/Foswiki/Configure/Checkers/CGISetup.pm (modified) (15 diffs)
-
lib/Foswiki/Configure/Checkers/ConfigurationLogName.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/DataDir.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/DebugFileName.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/DefaultUrlHost.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/DispScriptUrlPath.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/Environment.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/Htpasswd/Encoding.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/Htpasswd/FileName.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/LocalesDir.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/LogFileName.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/LoginManager.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/LoginNameFilterIn.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/LowerNational.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/MSWin32.pm (modified) (1 diff)
-
lib/Foswiki/Configure/Checkers/MailProgram.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/MimeTypesFileName.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/MinPasswordLength.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/NameFilter.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/OS.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/PubDir.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/PubUrlPath.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/EgrepCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/ExtOption.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/FgrepCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/SearchAlgorithm.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/asciiFileSuffixes.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/ciCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/ciDateCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/coCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/delRevCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/diffCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/histCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/infoCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/initBinaryCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/initTextCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/lockCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/rlogDateCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/tmpBinaryCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RCS/unlockCmd.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/Register/AllowLoginName.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/Register/NeedVerification.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/RegistrationApprovals.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/SafeEnvPath.pm (modified) (5 diffs)
-
lib/Foswiki/Configure/Checkers/ScriptSuffix.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/ScriptUrlPath.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/Sessions/ExpireAfter.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/Site/CharSet.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/Site/Locale.pm (modified) (7 diffs)
-
lib/Foswiki/Configure/Checkers/StoreImpl.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/TemplateDir.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/UploadFilter.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/UpperNational.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/UseClientSessions.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Checkers/UseLocale.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/WarningFileName.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/WebMasterEmail.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Checkers/WorkingDir.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Checkers/cygwin.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/FINDEXTENSIONS.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/FoswikiCfg.pm (moved) (moved from trunk/core/lib/TWiki/Configure/TWikiCfg.pm) (17 diffs)
-
lib/Foswiki/Configure/Item.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/JS.pm (modified) (1 diff)
-
lib/Foswiki/Configure/LANGUAGES.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Load.pm (modified) (11 diffs)
-
lib/Foswiki/Configure/PLUGINS.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Pluggable.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Root.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Section.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Type.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Types/BOOLEAN.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/COMMAND.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/LANGUAGE.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/NUMBER.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/OCTAL.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/PASSWORD.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/PATH.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/PERL.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/REGEX.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/SELECT.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/SELECTCLASS.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Types/STRING.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/UNKNOWN.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/URL.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/Types/URLPATH.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/UI.pm (modified) (11 diffs)
-
lib/Foswiki/Configure/UIs/AUTH.pm (modified) (5 diffs)
-
lib/Foswiki/Configure/UIs/EXTEND.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/UIs/EXTENSIONS.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/UIs/FINDEXTENSIONS.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/UIs/LANGUAGES.pm (modified) (1 diff)
-
lib/Foswiki/Configure/UIs/PLUGINS.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/UIs/PasswordProtected.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/UIs/Root.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/UIs/Section.pm (modified) (2 diffs)
-
lib/Foswiki/Configure/UIs/TAGS.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/UIs/UPDATE.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/UIs/Value.pm (modified) (3 diffs)
-
lib/Foswiki/Configure/Value.pm (modified) (4 diffs)
-
lib/Foswiki/Configure/Valuer.pm (modified) (3 diffs)
-
lib/Foswiki/Contrib/core/MANIFEST (modified) (4 diffs)
-
lib/Foswiki/Contrib/core/build.pl (modified) (2 diffs)
-
lib/Foswiki/Engine.pm (modified) (22 diffs)
-
lib/Foswiki/Engine/CGI.pm (modified) (9 diffs)
-
lib/Foswiki/Engine/CLI.pm (modified) (5 diffs)
-
lib/Foswiki/EngineException.pm (modified) (4 diffs)
-
lib/Foswiki/Form.pm (modified) (14 diffs)
-
lib/Foswiki/Form/Checkbox.pm (modified) (2 diffs)
-
lib/Foswiki/Form/FieldDefinition.pm (modified) (6 diffs)
-
lib/Foswiki/Form/Label.pm (modified) (2 diffs)
-
lib/Foswiki/Form/ListFieldDefinition.pm (modified) (3 diffs)
-
lib/Foswiki/Form/Radio.pm (modified) (2 diffs)
-
lib/Foswiki/Form/Select.pm (modified) (3 diffs)
-
lib/Foswiki/Form/Text.pm (modified) (2 diffs)
-
lib/Foswiki/Form/Textarea.pm (modified) (2 diffs)
-
lib/Foswiki/Func.pm (modified) (199 diffs)
-
lib/Foswiki/I18N.pm (modified) (20 diffs)
-
lib/Foswiki/I18N/Extract.pm (modified) (3 diffs)
-
lib/Foswiki/I18N/Fallback.pm (modified) (2 diffs)
-
lib/Foswiki/If/Node.pm (modified) (3 diffs)
-
lib/Foswiki/If/OP_allows.pm (modified) (6 diffs)
-
lib/Foswiki/If/OP_context.pm (modified) (6 diffs)
-
lib/Foswiki/If/OP_defined.pm (modified) (9 diffs)
-
lib/Foswiki/If/OP_dollar.pm (modified) (9 diffs)
-
lib/Foswiki/If/OP_ingroup.pm (modified) (6 diffs)
-
lib/Foswiki/If/OP_isempty.pm (modified) (2 diffs)
-
lib/Foswiki/If/OP_istopic.pm (modified) (6 diffs)
-
lib/Foswiki/If/OP_isweb.pm (modified) (6 diffs)
-
lib/Foswiki/If/Parser.pm (modified) (4 diffs)
-
lib/Foswiki/Infix/Error.pm (modified) (2 diffs)
-
lib/Foswiki/Infix/Node.pm (modified) (4 diffs)
-
lib/Foswiki/Infix/Parser.pm (modified) (12 diffs)
-
lib/Foswiki/LineIterator.pm (modified) (5 diffs)
-
lib/Foswiki/ListIterator.pm (modified) (5 diffs)
-
lib/Foswiki/LoginManager.pm (modified) (47 diffs)
-
lib/Foswiki/LoginManager/ApacheLogin.pm (modified) (8 diffs)
-
lib/Foswiki/LoginManager/Session.pm (modified) (5 diffs)
-
lib/Foswiki/LoginManager/TemplateLogin.pm (modified) (4 diffs)
-
lib/Foswiki/Merge.pm (modified) (9 diffs)
-
lib/Foswiki/Meta.pm (modified) (15 diffs)
-
lib/Foswiki/Net.pm (modified) (22 diffs)
-
lib/Foswiki/Net/HTTPResponse.pm (modified) (3 diffs)
-
lib/Foswiki/Net/UserCredAgent.pm (modified) (3 diffs)
-
lib/Foswiki/OopsException.pm (modified) (5 diffs)
-
lib/Foswiki/Plugin.pm (modified) (10 diffs)
-
lib/Foswiki/Plugins.pm (modified) (15 diffs)
-
lib/Foswiki/Plurals.pm (modified) (5 diffs)
-
lib/Foswiki/Prefs.pm (modified) (12 diffs)
-
lib/Foswiki/Prefs/Parser.pm (modified) (5 diffs)
-
lib/Foswiki/Prefs/PrefsCache.pm (modified) (7 diffs)
-
lib/Foswiki/Query/BinaryOP.pm (modified) (1 diff)
-
lib/Foswiki/Query/HoistREs.pm (modified) (6 diffs)
-
lib/Foswiki/Query/Node.pm (modified) (6 diffs)
-
lib/Foswiki/Query/OP_and.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_d2n.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_dot.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_eq.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_gt.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_gte.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_lc.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_length.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_like.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_lt.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_lte.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_ne.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_not.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_ob.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_or.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_ref.pm (modified) (3 diffs)
-
lib/Foswiki/Query/OP_uc.pm (modified) (2 diffs)
-
lib/Foswiki/Query/OP_where.pm (modified) (2 diffs)
-
lib/Foswiki/Query/Parser.pm (modified) (4 diffs)
-
lib/Foswiki/Query/UnaryOP.pm (modified) (1 diff)
-
lib/Foswiki/Render.pm (modified) (57 diffs)
-
lib/Foswiki/Request.pm (modified) (11 diffs)
-
lib/Foswiki/Request/Upload.pm (modified) (4 diffs)
-
lib/Foswiki/Response.pm (modified) (4 diffs)
-
lib/Foswiki/Sandbox.pm (modified) (7 diffs)
-
lib/Foswiki/Search.pm (modified) (27 diffs)
-
lib/Foswiki/Store.pm (modified) (47 diffs)
-
lib/Foswiki/Store/QueryAlgorithms/BruteForce.pm (modified) (4 diffs)
-
lib/Foswiki/Store/RcsFile.pm (modified) (36 diffs)
-
lib/Foswiki/Store/RcsLite.pm (modified) (12 diffs)
-
lib/Foswiki/Store/RcsWrap.pm (modified) (30 diffs)
-
lib/Foswiki/Store/SearchAlgorithms/Forking.pm (modified) (6 diffs)
-
lib/Foswiki/Store/SearchAlgorithms/PurePerl.pm (modified) (2 diffs)
-
lib/Foswiki/Store/Subversive.pm (modified) (33 diffs)
-
lib/Foswiki/Templates.pm (modified) (9 diffs)
-
lib/Foswiki/Time.pm (modified) (6 diffs)
-
lib/Foswiki/UI.pm (modified) (23 diffs)
-
lib/Foswiki/UI/ChangeForm.pm (modified) (5 diffs)
-
lib/Foswiki/UI/Changes.pm (modified) (7 diffs)
-
lib/Foswiki/UI/Edit.pm (modified) (20 diffs)
-
lib/Foswiki/UI/Manage.pm (modified) (73 diffs)
-
lib/Foswiki/UI/Oops.pm (modified) (4 diffs)
-
lib/Foswiki/UI/Preview.pm (modified) (5 diffs)
-
lib/Foswiki/UI/RDiff.pm (modified) (8 diffs)
-
lib/Foswiki/UI/Register.pm (modified) (64 diffs)
-
lib/Foswiki/UI/Rest.pm (modified) (10 diffs)
-
lib/Foswiki/UI/Save.pm (modified) (26 diffs)
-
lib/Foswiki/UI/Search.pm (modified) (5 diffs)
-
lib/Foswiki/UI/Statistics.pm (modified) (19 diffs)
-
lib/Foswiki/UI/Upload.pm (modified) (16 diffs)
-
lib/Foswiki/UI/View.pm (modified) (20 diffs)
-
lib/Foswiki/UserMapping.pm (modified) (11 diffs)
-
lib/Foswiki/Users.pm (modified) (25 diffs)
-
lib/Foswiki/Users/ApacheHtpasswdUser.pm (modified) (4 diffs)
-
lib/Foswiki/Users/BaseUserMapping.pm (modified) (11 diffs)
-
lib/Foswiki/Users/HtPasswdUser.pm (modified) (13 diffs)
-
lib/Foswiki/Users/Password.pm (modified) (6 diffs)
-
lib/MANIFEST (modified) (1 diff)
-
lib/Monitor.pm (modified) (1 diff)
-
pseudo-install.pl (modified) (8 diffs)
-
pub/System (moved) (moved from trunk/core/pub/TWiki)
-
pub/TWiki/ProjectLogos/T-badge-88x31.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-124x35-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-124x35.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-140x40-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-140x40.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-158x45-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-158x45.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-169x130-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-169x130.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-16x16-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-16x16.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-175x50-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-175x50.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-235x67-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-235x67.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-34x26-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-34x26.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-3640x1038-b.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-456x130-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-456x130.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-46x35-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-46x35.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-52x40-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-52x40.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-58x45-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-58x45.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-65x50-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-65x50.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-80x15.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-80x15.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-87x67-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-87x67.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo-88x31-t.gif (deleted)
-
pub/TWiki/ProjectLogos/T-logo-88x31.png (deleted)
-
pub/TWiki/ProjectLogos/T-logo.svg (deleted)
-
test/tinderbox/rebuild-deploy-test-if-new.pl (modified) (1 diff)
-
test/tinderbox/tinderbox.pl (modified) (3 diffs)
-
tools/MemoryCycleTests.pl (modified) (2 diffs)
-
tools/TWikiKernel/MANIFEST (modified) (3 diffs)
-
tools/TWikiKernel/build.pl (modified) (2 diffs)
-
tools/admin/mrtg/twiki.pl (modified) (1 diff)
-
tools/benchmark.pl (modified) (1 diff)
-
tools/benchmark/coverage.pl (modified) (1 diff)
-
tools/build.pl (modified) (7 diffs)
-
tools/buildTWikiRelease.pl (modified) (2 diffs)
-
tools/build_all_extensions.pl (modified) (2 diffs)
-
tools/distro/TWikiTopic2TestCase.pl (modified) (2 diffs)
-
tools/distro/test.pl (modified) (1 diff)
-
tools/extender.pl (modified) (19 diffs)
-
tools/fix_local_links.pl (modified) (2 diffs)
-
tools/gendocs.pl (modified) (3 diffs)
-
tools/mergeDoc.pl (modified) (1 diff)
-
tools/pkg/debian/LocalSite.cfg (modified) (1 diff)
-
tools/plugins_conformance_analyser.pl (modified) (8 diffs)
-
tools/rewriteshbang.pl (modified) (1 diff)
-
tools/tick_twiki.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/bin/.htaccess.txt
r733 r809 66 66 # Comment this out if you setup TWiki to completely deny access to WikiGuest 67 67 # in all webs or change the path to a static html page. 68 ErrorDocument 401 {ScriptUrlPath}/view/ TWiki/UserRegistration68 ErrorDocument 401 {ScriptUrlPath}/view/Foswiki/UserRegistration 69 69 # Alternatively if your users are all known to be registered you may want 70 70 # to redirect them to the ResetPassword page. 71 # ErrorDocument 401 {ScriptUrlPath}/view/ TWiki/ResetPassword71 # ErrorDocument 401 {ScriptUrlPath}/view/Foswiki/ResetPassword 72 72 73 73 # Set options for excuting CGI and allow symlinks for e.g. viewauth -
trunk/core/bin/LocalLib.cfg.txt
r784 r809 19 19 #$ENV{TWIKI_MONITOR} = 1; 20 20 21 # -------------- Path to lib directory containing TWiki.pm.21 # -------------- Path to lib directory containing Foswiki.pm. 22 22 # 23 23 # REQUIRED -
trunk/core/bin/attach
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/changes
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/configure
r784 r809 3 3 # Foswiki - The Free Open Source Wiki, http://foswiki.org/ 4 4 # 5 # Copyright (C) 2000-2007 TWiki Contributors.5 # Copyright (C) 2000-2007 Foswiki Contributors. 6 6 # 7 7 # This program is free software; you can redistribute it and/or … … 17 17 # As per the GPL, removal of this notice is prohibited. 18 18 # 19 # Configuration script for TWiki. Once you have a basic webserver19 # Configuration script for Foswiki. Once you have a basic webserver 20 20 # configuration that lets you access this script, the rest of the 21 21 # configuration process is done from here. … … 43 43 # The Model consists of a simple node tree, where each node represents a 44 44 # structural element in the *presentation* of the configuration (this may 45 # not be consistent with the structure of $ TWiki:cfg, so beware). Each45 # not be consistent with the structure of $Foswiki:cfg, so beware). Each 46 46 # leaf node has an associated Type (in the Types subdirectory) that has 47 47 # collected model and view behaviours for the basic types. 48 48 # The Model is independent of the language used to represent the 49 # configuration. There is one parser/generator provided, TWikiCfg, but it49 # configuration. There is one parser/generator provided, FoswikiCfg, but it 50 50 # would be trivial to add others. 51 51 # 52 52 # The View is a DOM document, generated as HTML by a set of UI classes. 53 53 # Because of some convoluted history, there are actually three sets of classes 54 # that generate views. They are all subclasses of TWiki::Configure::UI54 # that generate views. They are all subclasses of Foswiki::Configure::UI 55 55 # UIs - are top-level and pluggable UI components. All the main screens are 56 56 # implemented here. … … 95 95 die $@ if $@; 96 96 97 # We warn against running TWiki on an older Perl version then 5.8.497 # We warn against running Foswiki on an older Perl version then 5.8.4 98 98 # but we will not let configure die in this situation. The user 99 # may have updated many libraries and tweaked TWiki so let us give99 # may have updated many libraries and tweaked Foswiki so let us give 100 100 # him a chance. 101 101 my $perlversion = $]; … … 103 103 print STDERR <<HERE; 104 104 Your perl version is older than 5.6.0. 105 TWiki has only been successfully tested on Perl 5.6.X and 5.8.X,105 Foswiki has only been successfully tested on Perl 5.6.X and 5.8.X, 106 106 and there have been reports that it does not run on 5.5. 107 Running TWiki with an older Perl version requires upgrading of modules and108 tweaking of the TWiki code.107 Running Foswiki with an older Perl version requires upgrading of modules and 108 tweaking of the Foswiki code. 109 109 HERE 110 110 } … … 194 194 195 195 ########################################################### 196 # Establish the path to the TWiki library196 # Establish the path to the Foswiki library 197 197 198 198 # Set the working dir to the bin dir … … 218 218 $localLibFailure = $@; 219 219 # Stick the root/lib on the path; there's a high probability we'll be 220 # able to find the bits of TWiki::Configure that way. We will report220 # able to find the bits of Foswiki::Configure that way. We will report 221 221 # the setlib error later. 222 222 unshift(@INC, File::Spec->catfile(@root, 'lib')); … … 230 230 'File::Copy', 231 231 'File::Temp', 232 ' TWiki::Configure::Checker',233 ' TWiki::Configure::CSS',234 ' TWiki::Configure::Item',235 ' TWiki::Configure::JS',236 ' TWiki::Configure::Load',237 ' TWiki::Configure::Pluggable',238 ' TWiki::Configure::Root',239 ' TWiki::Configure::Section',240 ' TWiki::Configure::Type',241 ' TWiki::Configure::Types::BOOLEAN',242 ' TWiki::Configure::Types::NUMBER',243 ' TWiki::Configure::Types::SELECT',244 ' TWiki::Configure::Types::STRING',245 ' TWiki::Configure::TWikiCfg',246 ' TWiki::Configure::UI',247 ' TWiki::Configure::UIs::Section',248 ' TWiki::Configure::Value',249 ' TWiki::Configure::Valuer',232 'Foswiki::Configure::Checker', 233 'Foswiki::Configure::CSS', 234 'Foswiki::Configure::Item', 235 'Foswiki::Configure::JS', 236 'Foswiki::Configure::Load', 237 'Foswiki::Configure::Pluggable', 238 'Foswiki::Configure::Root', 239 'Foswiki::Configure::Section', 240 'Foswiki::Configure::Type', 241 'Foswiki::Configure::Types::BOOLEAN', 242 'Foswiki::Configure::Types::NUMBER', 243 'Foswiki::Configure::Types::SELECT', 244 'Foswiki::Configure::Types::STRING', 245 'Foswiki::Configure::FoswikiCfg', 246 'Foswiki::Configure::UI', 247 'Foswiki::Configure::UIs::Section', 248 'Foswiki::Configure::Value', 249 'Foswiki::Configure::Valuer', 250 250 ) { 251 251 _loadBasicModule($module); … … 258 258 # errors, so we can report errors in the browser (i.e. without using die) 259 259 260 # We are configuring $ TWiki::cfg, so we need to be in package TWiki from260 # We are configuring $Foswiki::cfg, so we need to be in package Foswiki from 261 261 # now on. 262 package TWiki;263 264 # We keep the actual config, and the default from TWiki.cfg, separate262 package Foswiki; 263 264 # We keep the actual config, and the default from Foswiki.spec, separate 265 265 use vars qw( %cfg $defaultCfg ); 266 266 267 # Declared in TWiki to support checkers267 # Declared in Foswiki to support checkers 268 268 use vars qw( $query ); 269 269 270 # 'constants' used in TWiki.cfg270 # 'constants' used in Foswiki.spec 271 271 use vars qw( $TRUE $FALSE ); 272 272 $TRUE = 1; … … 275 275 # Remember what we detected previously, for use by Checkers 276 276 if( $scriptName =~ /(\.\w+)$/ ) { 277 $ TWiki::cfg{DETECTED}{ScriptExtension} = $1;277 $Foswiki::cfg{DETECTED}{ScriptExtension} = $1; 278 278 } 279 279 … … 293 293 294 294 ########################################################### 295 # Grope the OS. This duplicates a bit of code in TWiki.pm,295 # Grope the OS. This duplicates a bit of code in Foswiki.pm, 296 296 # but it has to be duplicated because we don't want to deal 297 # with loading TWiki just yet.298 299 unless( $ TWiki::cfg{DetailedOS} ) {300 $ TWiki::cfg{DetailedOS} = $^O;301 unless( $ TWiki::cfg{DetailedOS} ) {297 # with loading Foswiki just yet. 298 299 unless( $Foswiki::cfg{DetailedOS} ) { 300 $Foswiki::cfg{DetailedOS} = $^O; 301 unless( $Foswiki::cfg{DetailedOS} ) { 302 302 require Config; 303 $ TWiki::cfg{DetailedOS} = $Config::Config{osname};304 } 305 } 306 unless( $ TWiki::cfg{OS} ) {307 if ($ TWiki::cfg{DetailedOS} =~ /darwin/i) { # MacOS X308 $ TWiki::cfg{OS} = 'UNIX';309 } elsif ($ TWiki::cfg{DetailedOS} =~ /Win/i) {310 $ TWiki::cfg{OS} = 'WINDOWS';311 } elsif ($ TWiki::cfg{DetailedOS} =~ /vms/i) {312 $ TWiki::cfg{OS} = 'VMS';313 } elsif ($ TWiki::cfg{DetailedOS} =~ /bsdos/i) {314 $ TWiki::cfg{OS} = 'UNIX';315 } elsif ($ TWiki::cfg{DetailedOS} =~ /dos/i) {316 $ TWiki::cfg{OS} = 'DOS';317 } elsif ($ TWiki::cfg{DetailedOS} =~ /^MacOS$/i) { # MacOS 9 or earlier318 $ TWiki::cfg{OS} = 'MACINTOSH';319 } elsif ($ TWiki::cfg{DetailedOS} =~ /os2/i) {320 $ TWiki::cfg{OS} = 'OS2';303 $Foswiki::cfg{DetailedOS} = $Config::Config{osname}; 304 } 305 } 306 unless( $Foswiki::cfg{OS} ) { 307 if ($Foswiki::cfg{DetailedOS} =~ /darwin/i) { # MacOS X 308 $Foswiki::cfg{OS} = 'UNIX'; 309 } elsif ($Foswiki::cfg{DetailedOS} =~ /Win/i) { 310 $Foswiki::cfg{OS} = 'WINDOWS'; 311 } elsif ($Foswiki::cfg{DetailedOS} =~ /vms/i) { 312 $Foswiki::cfg{OS} = 'VMS'; 313 } elsif ($Foswiki::cfg{DetailedOS} =~ /bsdos/i) { 314 $Foswiki::cfg{OS} = 'UNIX'; 315 } elsif ($Foswiki::cfg{DetailedOS} =~ /dos/i) { 316 $Foswiki::cfg{OS} = 'DOS'; 317 } elsif ($Foswiki::cfg{DetailedOS} =~ /^MacOS$/i) { # MacOS 9 or earlier 318 $Foswiki::cfg{OS} = 'MACINTOSH'; 319 } elsif ($Foswiki::cfg{DetailedOS} =~ /os2/i) { 320 $Foswiki::cfg{OS} = 'OS2'; 321 321 } else { 322 $ TWiki::cfg{OS} = 'UNIX';322 $Foswiki::cfg{OS} = 'UNIX'; 323 323 } 324 324 } … … 338 338 if( (defined($image)) && 339 339 (($image eq 'favicon.ico') || 340 ($image eq ' T-logo34x26-t.gif') ||341 ($image eq ' T-logo-140x40-t.gif') ||340 ($image eq 'logo22x26.gif') || 341 ($image eq 'logo140x40.gif') || 342 342 ($image eq 'warning.gif') || 343 343 ($image eq 'info.gif')) ) { … … 375 375 -type=>'image/x-icon' } ), 376 376 CGI::script( { language => 'JavaScript', 377 type => 'text/javascript' }, TWiki::Configure::JS::js1() ),378 CGI::style( { -type=>'text/css' }, TWiki::Configure::CSS::css()),377 type => 'text/javascript' }, Foswiki::Configure::JS::js1() ), 378 CGI::style( { -type=>'text/css' }, Foswiki::Configure::CSS::css()), 379 379 CGI::script( { language => 'JavaScript', 380 380 type => 'text/javascript' }, 381 TWiki::Configure::JS::js2() ),381 Foswiki::Configure::JS::js2() ), 382 382 ); 383 383 384 384 # Generate standard page header 385 385 my $hdr = CGI::start_html( 386 -title => ' TWiki Configuration',386 -title => 'Foswiki Configuration', 387 387 -head => \@meta, 388 388 -class => 'patternNoViewPage'); … … 406 406 407 407 # use this script recursively to serve the icon image 408 print CGI::img({src=>$scriptName.'?action=image;image= T-logo-140x40-t.gif;type=image/gif', class=>'logo', alt=>'TWiki', width=>'140', height=>'40'});409 410 my $stub = new TWiki::Configure::Item();411 # This call will define $ TWiki::defaultCfg by loading .spec files412 my $sanityUI = TWiki::Configure::UI::loadChecker('BasicSanity', $stub);408 print CGI::img({src=>$scriptName.'?action=image;image=logo140x40.gif;type=image/gif', class=>'logo', alt=>'Foswiki', width=>'140', height=>'40'}); 409 410 my $stub = new Foswiki::Configure::Item(); 411 # This call will define $Foswiki::defaultCfg by loading .spec files 412 my $sanityUI = Foswiki::Configure::UI::loadChecker('BasicSanity', $stub); 413 413 my ($sanityStatement, $badLSC) = $sanityUI->ui(); 414 414 … … 458 458 sub _checkLoadUI { 459 459 my ($uiname, $root) = @_; 460 my $ui = TWiki::Configure::UI::loadUI($uiname, $root);460 my $ui = Foswiki::Configure::UI::loadUI($uiname, $root); 461 461 unless ($ui) { 462 462 print "Could not load $uiname UI. Error was: <pre>$@</pre>"; … … 472 472 # Action invoked by 'Next' button on the main screen 473 473 sub _actionNext { 474 my $valuer = new TWiki::Configure::Valuer(475 $ TWiki::defaultCfg, \%TWiki::cfg);474 my $valuer = new Foswiki::Configure::Valuer( 475 $Foswiki::defaultCfg, \%Foswiki::cfg); 476 476 my %updated; 477 my $modified = $valuer->loadCGIParams($ TWiki::query, \%updated);477 my $modified = $valuer->loadCGIParams($Foswiki::query, \%updated); 478 478 479 479 # create the root of the UI 480 my $root = new TWiki::Configure::Root();480 my $root = new Foswiki::Configure::Root(); 481 481 my $ui; 482 if (! TWiki::Configure::UI::authorised()) {482 if (!Foswiki::Configure::UI::authorised()) { 483 483 print CGI::h2('Authorisation is required to save.'); 484 484 print CGI::div($modified.' configuration item'. … … 492 492 } else { 493 493 # Load the specs from the .spec files and generate the UI template 494 TWiki::Configure::TWikiCfg::load($root, 1);494 Foswiki::Configure::FoswikiCfg::load($root, 1); 495 495 496 496 $ui = _checkLoadUI('UPDATE', $root); … … 503 503 # Invoked by "find more extensions" button in the Extensions section 504 504 sub _actionFindMoreExtensions { 505 my $root = new TWiki::Configure::Root();506 print CGI::h1( 'Find TWiki Extensions');505 my $root = new Foswiki::Configure::Root(); 506 print CGI::h1( 'Find Foswiki Extensions'); 507 507 print '<div class="patternContent"><div class="patternTopic">'; 508 508 … … 516 516 # Invoked when an extension is to be installed 517 517 sub _actionInstallExtension { 518 my $root = new TWiki::Configure::Root();518 my $root = new Foswiki::Configure::Root(); 519 519 my $ui; 520 if (! TWiki::Configure::UI::authorised()) {520 if (!Foswiki::Configure::UI::authorised()) { 521 521 $ui = _checkLoadUI('AUTH', $root); 522 522 return 1 unless $ui; … … 533 533 sub _actionConfigure { 534 534 535 $ TWiki::Configure::UI::toterrors = 0;536 $ TWiki::Configure::UI::totwarnings = 0;535 $Foswiki::Configure::UI::toterrors = 0; 536 $Foswiki::Configure::UI::totwarnings = 0; 537 537 538 538 print CGI::h1( 'Configuration'); … … 540 540 541 541 # The first three sections go without a root 542 my $stub = new TWiki::Configure::Item();543 my $eui = TWiki::Configure::UI::loadChecker('Environment', $stub);542 my $stub = new Foswiki::Configure::Item(); 543 my $eui = Foswiki::Configure::UI::loadChecker('Environment', $stub); 544 544 545 545 # See if this platform has special detection or checking requirements 546 546 # (most don't) 547 $stub = new TWiki::Configure::Item();548 my $osui = TWiki::Configure::UI::loadChecker(547 $stub = new Foswiki::Configure::Item(); 548 my $osui = Foswiki::Configure::UI::loadChecker( 549 549 $Config::Config{osname}, $stub); 550 550 551 $stub = new TWiki::Configure::Item();552 my $cgiui = TWiki::Configure::UI::loadChecker('CGISetup', $stub);551 $stub = new Foswiki::Configure::Item(); 552 my $cgiui = Foswiki::Configure::UI::loadChecker('CGISetup', $stub); 553 553 554 554 # Use a separate root for the _saveable_ sections 555 my $root = new TWiki::Configure::Root();556 my $valuer = new TWiki::Configure::Valuer(557 $ TWiki::defaultCfg, \%TWiki::cfg);555 my $root = new Foswiki::Configure::Root(); 556 my $valuer = new Foswiki::Configure::Valuer( 557 $Foswiki::defaultCfg, \%Foswiki::cfg); 558 558 # Load the config structures. 559 TWiki::Configure::TWikiCfg::load($root, !$badLSC);559 Foswiki::Configure::FoswikiCfg::load($root, !$badLSC); 560 560 561 561 if (!$badLSC) { … … 563 563 <div class="patternContent"> 564 564 <div class="patternTopic"> 565 <p><strong>Use this page to set the configuration options for TWiki.565 <p><strong>Use this page to set the configuration options for Foswiki. 566 566 Fill in the settings, and then press 'Next'.</strong></p> 567 567 <div class="explanation"> 568 568 <ul> 569 <li><b>If your TWiki site is already working</b>, continue to570 <a rel="nofollow" href="$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{SystemWebName}/WebHome">571 browse to the TWiki WebHome</a>.569 <li><b>If your Foswiki site is already working</b>, continue to 570 <a rel="nofollow" href="$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{SystemWebName}/WebHome"> 571 browse to the Foswiki WebHome</a>. 572 572 <ul> 573 573 <li>You will now need to consider how you are going to manage 574 574 authentication and access control. See the reference manual 575 sections on <a rel="nofollow" href="$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{SystemWebName}/TWikiUserAuthentication">575 sections on <a rel="nofollow" href="$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{SystemWebName}/UserAuthentication"> 576 576 authentication</a> 577 577 and 578 <a rel="nofollow" href="$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{SystemWebName}/AccessControl">578 <a rel="nofollow" href="$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{SystemWebName}/AccessControl"> 579 579 access control</a>, and the 580 580 <a rel="nofollow" href="#" onclick="foldBlock('SecuritySetup'); return false;">Security Setup</a> … … 583 583 </ul> 584 584 </li> 585 <li><b>To become an administrator</b> you need to first <a rel="nofollow" href="$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{SystemWebName}/UserRegistration">586 register</a> as a normal user first and then add your wikiname to the <a rel="nofollow" href="$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{UsersWebName}/$TWiki::cfg{SuperAdminGroup}">587 $ TWiki::cfg{SuperAdminGroup}</a> (follow the text in yellow).585 <li><b>To become an administrator</b> you need to first <a rel="nofollow" href="$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{SystemWebName}/UserRegistration"> 586 register</a> as a normal user first and then add your wikiname to the <a rel="nofollow" href="$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{UsersWebName}/$Foswiki::cfg{SuperAdminGroup}"> 587 $Foswiki::cfg{SuperAdminGroup}</a> (follow the text in yellow). 588 588 </li> 589 589 <li> 590 590 <b>If you are on a non-standard platform or environment</b> there are a lot of 591 <a href="http://twiki.org/cgi-bin/view/TWiki/SupplementalDocument">supplemental documents</a> 592 on TWiki.org describing how to 593 <a href="http://twiki.org/cgi-bin/view/TWiki/InstallingTWiki">install</a>, 594 <a href="http://twiki.org/cgi-bin/view/TWiki/UpgradingTWiki">upgrade</a>, 595 <a href="http://twiki.org/cgi-bin/view/TWiki/InternationalizationSupplement">internationalize</a> and 596 <a href="http://twiki.org/cgi-bin/view/TWiki/SecuringTWikiSite">secure</a> 597 your installation. 591 <a href="http://foswiki.org/Support/SupplementalDocuments">supplemental documents</a> on Foswiki.org 598 592 </li> 599 593 <li> 600 594 <b>If you get stuck</b> there is a lot of support available at the 601 <a href="http://twiki.org/cgi-bin/view/Support/WebHome">TWiki:Support</a> 602 forum and on 603 <a href="http://twiki.org/cgi-bin/view/Codev/TWikiIRC">TWikiIRC</a> 604 (irc.freenode.net, channel #twiki). 595 <a href="http://foswiki.org/Support/WebHome">Support forum</a>. 605 596 </li> 606 597 </ul> … … 671 662 print "</div><!-- options -->\n"; 672 663 673 if ($ TWiki::Configure::UI::toterrors ||674 $ TWiki::Configure::UI::totwarnings) {675 my $mess = 'Total: '.$ TWiki::Configure::UI::toterrors.' error'.676 ($ TWiki::Configure::UI::toterrors==1?'':'s').', '.677 $ TWiki::Configure::UI::totwarnings.' warning'.678 ($ TWiki::Configure::UI::totwarnings==1?'':'s');664 if ($Foswiki::Configure::UI::toterrors || 665 $Foswiki::Configure::UI::totwarnings) { 666 my $mess = 'Total: '.$Foswiki::Configure::UI::toterrors.' error'. 667 ($Foswiki::Configure::UI::toterrors==1?'':'s').', '. 668 $Foswiki::Configure::UI::totwarnings.' warning'. 669 ($Foswiki::Configure::UI::totwarnings==1?'':'s'); 679 670 print CGI::div($mess); 680 671 } … … 685 676 -accesskey=>'N')); 686 677 687 print "<a href=\"$ TWiki::cfg{ScriptUrlPath}/view$TWiki::cfg{ScriptSuffix}/$TWiki::cfg{SystemWebName}/WebHome\">Cancel and return to TWiki WebHome</a>";678 print "<a href=\"$Foswiki::cfg{ScriptUrlPath}/view$Foswiki::cfg{ScriptSuffix}/$Foswiki::cfg{SystemWebName}/WebHome\">Cancel and return to Foswiki WebHome</a>"; 688 679 689 680 print CGI::end_form(); -
trunk/core/bin/edit
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/login
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/logon
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/manage
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/oops
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/preview
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/rdiff
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/rdiffauth
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/register
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/rename
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/resetpasswd
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/rest
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/save
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/search
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/statistics
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/twiki_cgi
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; … … 37 37 } 38 38 39 use TWiki;40 use TWiki::UI;41 $ TWiki::engine->run();39 use Foswiki; 40 use Foswiki::UI; 41 $Foswiki::engine->run(); -
trunk/core/bin/upload
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/view
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/viewauth
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/bin/viewfile
r784 r809 4 4 # 5 5 # Copyright (C) 1999-2007 Peter Thoeny, peter@thoeny.org 6 # and TWiki Contributors.6 # and Foswiki Contributors. 7 7 # 8 8 # This program is free software; you can redistribute it and/or … … 24 24 BEGIN { 25 25 if ( defined $ENV{GATEWAY_INTERFACE} ) { 26 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';26 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 27 27 use CGI::Carp qw(fatalsToBrowser); 28 28 $SIG{__DIE__} = \&CGI::Carp::confess; 29 29 } 30 30 else { 31 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';31 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 32 32 require Carp; 33 33 $SIG{__DIE__} = \&Carp::confess; … … 38 38 } 39 39 40 use TWiki;41 use TWiki::UI;42 $ TWiki::engine->run();40 use Foswiki; 41 use Foswiki::UI; 42 $Foswiki::engine->run(); -
trunk/core/lib/DEPENDENCIES
r14 r809 1 1 Apache::Htpasswd,>=0,cpan,Optional, may be required for ApacheHtpasswd password manager 2 2 Archive::Tar,>=0,cpan,Optional, may be required by the Extensions Installer in configure if command line tar or unzip is not available 3 B::Deparse,>=0,cpan,Required, for base TWiki4 CGI,>=0,cpan,Required, for base TWiki (Versions 2.89 and 3.37 must be avoided. Most version from 3.15 and onwards should work.)3 B::Deparse,>=0,cpan,Required, for base Foswiki 4 CGI,>=0,cpan,Required, for base Foswiki (Versions 2.89 and 3.37 must be avoided. Most version from 3.15 and onwards should work.) 5 5 CGI::Cookie,>=1.24,cpan,Optional, required for Sessions support, available from the CPAN archive. 6 6 CGI::Session,>=3.95,cpan,Optional, required for Sessions support, available from the CPAN archive. 7 Carp,>=0,cpan,Required, for base TWiki8 Config,>=0,cpan,Required, for base TWiki9 Cwd,>=0,cpan,Required, for base TWiki10 Data::Dumper,>=0,cpan,Required, for base TWiki7 Carp,>=0,cpan,Required, for base Foswiki 8 Config,>=0,cpan,Required, for base Foswiki 9 Cwd,>=0,cpan,Required, for base Foswiki 10 Data::Dumper,>=0,cpan,Required, for base Foswiki 11 11 Digest::MD5,>=0,cpan,Optional, may be required for password encryption 12 12 Digest::SHA1,>=0,cpan,Optional, may be required for password encryption 13 13 Encode,>=0,cpan,Optional, may be required for international characters 14 14 Encode::compat,>=0,cpan,Optional, may be required for international characters 15 Error,>=0.15,cpan,Required, for base TWiki16 Exporter,>=0,cpan,Required, for base TWiki17 File::Basename,>=0,cpan,Required, for base TWiki18 File::Glob,>=0,cpan,Required, for base TWiki19 File::Path,>=0,cpan,Required, for base TWiki20 File::Spec,>=0,cpan,Required, for base TWiki21 File::Temp,>=0,cpan,Required, for base TWiki22 FileHandle,>=2.01,cpan,Required, for base TWiki15 Error,>=0.15,cpan,Required, for base Foswiki 16 Exporter,>=0,cpan,Required, for base Foswiki 17 File::Basename,>=0,cpan,Required, for base Foswiki 18 File::Glob,>=0,cpan,Required, for base Foswiki 19 File::Path,>=0,cpan,Required, for base Foswiki 20 File::Spec,>=0,cpan,Required, for base Foswiki 21 File::Temp,>=0,cpan,Required, for base Foswiki 22 FileHandle,>=2.01,cpan,Required, for base Foswiki 23 23 FindBin,>=0,cpan,Optional, required if you want to use the Extensions Installer in configure 24 24 Getopt::Long,>=0,cpan,Optional, may be required for international characters … … 27 27 Locale::Maketext::Lexicon,>=0,cpan,Optional, may be required for international characters 28 28 LWP,>=0,cpan,Optional, needed for the Configure Extensions installer, and for external URL based INCLUDEs 29 MIME::Base64,>=0,cpan,Required, for base TWiki29 MIME::Base64,>=0,cpan,Required, for base Foswiki 30 30 Net::SMTP,>=2.29,cpan,Optional, may be required for sending mail 31 POSIX,>=1,cpan,Required, for base TWiki 32 Socket,>=0,cpan,Required, for base TWiki 31 Package::Alias,>=0.04,cpan,Optional, required if you want to use TWiki plugins 32 POSIX,>=1,cpan,Required, for base Foswiki 33 Socket,>=0,cpan,Required, for base Foswiki 33 34 Symbol,>=0,cpan,Optional, may be required for international characters 34 35 Unicode::MapUTF8,>=0,cpan,Optional, may be required for international characters -
trunk/core/lib/Foswiki.pm
r792 r809 1 1 # See bottom of file for license and copyright information 2 package TWiki;2 package Foswiki; 3 3 4 4 =pod … … 16 16 17 17 ---++ Public Data members 18 * =request= Pointer to the TWiki::Request19 * =response= Pointer to the TWiki::Respose18 * =request= Pointer to the Foswiki::Request 19 * =response= Pointer to the Foswiki::Respose 20 20 * =context= Hash of context ids 21 * moved: =loginManager= TWiki::LoginManager singleton (moved to TWiki::Users)22 * =plugins= TWiki::Plugins singleton23 * =prefs= TWiki::Prefs singleton21 * moved: =loginManager= Foswiki::LoginManager singleton (moved to Foswiki::Users) 22 * =plugins= Foswiki::Plugins singleton 23 * =prefs= Foswiki::Prefs singleton 24 24 * =remoteUser= Login ID when using ApacheLogin. Maintained for 25 25 compatibility only, do not use. 26 26 * =requestedWebName= Name of web found in URL path or =web= URL parameter 27 * =sandbox= TWiki::Sandbox singleton27 * =sandbox= Foswiki::Sandbox singleton 28 28 * =scriptUrlPath= URL path to the current script. May be dynamically 29 29 extracted from the URL path if {GetScriptUrlFromCgi}. 30 30 Only required to support {GetScriptUrlFromCgi} and 31 31 not consistently used. Avoid. 32 * =security= TWiki::Access singleton32 * =security= Foswiki::Access singleton 33 33 * =SESSION_TAGS= Hash of TWiki variables whose value is specific to 34 34 the current request. 35 * =store= TWiki::Store singleton35 * =store= Foswiki::Store singleton 36 36 * =topicName= Name of topic found in URL path or =topic= URL 37 37 parameter … … 40 40 {DefaultUrlHost} 41 41 * =user= Unique user ID of logged-in user 42 * =users= TWiki::Users singleton42 * =users= Foswiki::Users singleton 43 43 * =webName= Name of web found in URL path, or =web= URL parameter, 44 44 or {UsersWebName} … … 50 50 use Error qw( :try ); 51 51 use CGI; # Always required to get html generation tags; 52 use TWiki::Response; 53 use TWiki::Request; 52 53 BEGIN { $Package::Alias::BRAVE = 1 } 54 use Package::Alias 55 'TWiki::Plugins' => 'Foswiki::Plugins', 56 'TWiki::Func' => 'Foswiki::Func'; 57 { package TWiki::Func; } 58 59 use Foswiki::Response; 60 use Foswiki::Request; 54 61 55 62 require 5.005; # For regex objects and internationalisation … … 60 67 # Uncomment this and the __END__ to enable AutoLoader 61 68 #use AutoLoader 'AUTOLOAD'; 62 # You then need to autosplit TWiki.pm:69 # You then need to autosplit Foswiki.pm: 63 70 # cd lib 64 # perl -e 'use AutoSplit; autosplit(" TWiki.pm", "auto")'71 # perl -e 'use AutoSplit; autosplit("Foswiki.pm", "auto")' 65 72 66 73 # Other computed constants … … 96 103 ---++ StaticMethod getTWikiLibDir() -> $path 97 104 98 Returns the full path of the directory containing TWiki.pm105 Returns the full path of the directory containing Foswiki.pm 99 106 100 107 =cut … … 105 112 } 106 113 107 # FIXME: Should just use $INC{" TWiki.pm"} to get path used to load this114 # FIXME: Should just use $INC{"Foswiki.pm"} to get path used to load this 108 115 # module. 109 116 my $dir = ''; 110 117 foreach $dir (@INC) { 111 if ( $dir && -e "$dir/ TWiki.pm" ) {118 if ( $dir && -e "$dir/Foswiki.pm" ) { 112 119 $twikiLibDir = $dir; 113 120 last; … … 156 163 BEGIN { 157 164 require Monitor; 158 require TWiki::Sandbox; # system command sandbox159 require TWiki::Configure::Load; # read configuration files165 require Foswiki::Sandbox; # system command sandbox 166 require Foswiki::Configure::Load; # read configuration files 160 167 161 168 $TRUE = 1; … … 256 263 $contextFreeSyntax{IF} = 1; 257 264 258 unless ( ( $ TWiki::cfg{DetailedOS} = $^O ) ) {265 unless ( ( $Foswiki::cfg{DetailedOS} = $^O ) ) { 259 266 require Config; 260 $ TWiki::cfg{DetailedOS} = $Config::Config{'osname'};261 } 262 $ TWiki::cfg{OS} = 'UNIX';263 if ( $ TWiki::cfg{DetailedOS} =~ /darwin/i ) { # MacOS X264 $ TWiki::cfg{OS} = 'UNIX';265 } 266 elsif ( $ TWiki::cfg{DetailedOS} =~ /Win/i ) {267 $ TWiki::cfg{OS} = 'WINDOWS';268 } 269 elsif ( $ TWiki::cfg{DetailedOS} =~ /vms/i ) {270 $ TWiki::cfg{OS} = 'VMS';271 } 272 elsif ( $ TWiki::cfg{DetailedOS} =~ /bsdos/i ) {273 $ TWiki::cfg{OS} = 'UNIX';274 } 275 elsif ( $ TWiki::cfg{DetailedOS} =~ /dos/i ) {276 $ TWiki::cfg{OS} = 'DOS';277 } 278 elsif ( $ TWiki::cfg{DetailedOS} =~ /^MacOS$/i ) { # MacOS 9 or earlier279 $ TWiki::cfg{OS} = 'MACINTOSH';280 } 281 elsif ( $ TWiki::cfg{DetailedOS} =~ /os2/i ) {282 $ TWiki::cfg{OS} = 'OS2';267 $Foswiki::cfg{DetailedOS} = $Config::Config{'osname'}; 268 } 269 $Foswiki::cfg{OS} = 'UNIX'; 270 if ( $Foswiki::cfg{DetailedOS} =~ /darwin/i ) { # MacOS X 271 $Foswiki::cfg{OS} = 'UNIX'; 272 } 273 elsif ( $Foswiki::cfg{DetailedOS} =~ /Win/i ) { 274 $Foswiki::cfg{OS} = 'WINDOWS'; 275 } 276 elsif ( $Foswiki::cfg{DetailedOS} =~ /vms/i ) { 277 $Foswiki::cfg{OS} = 'VMS'; 278 } 279 elsif ( $Foswiki::cfg{DetailedOS} =~ /bsdos/i ) { 280 $Foswiki::cfg{OS} = 'UNIX'; 281 } 282 elsif ( $Foswiki::cfg{DetailedOS} =~ /dos/i ) { 283 $Foswiki::cfg{OS} = 'DOS'; 284 } 285 elsif ( $Foswiki::cfg{DetailedOS} =~ /^MacOS$/i ) { # MacOS 9 or earlier 286 $Foswiki::cfg{OS} = 'MACINTOSH'; 287 } 288 elsif ( $Foswiki::cfg{DetailedOS} =~ /os2/i ) { 289 $Foswiki::cfg{OS} = 'OS2'; 283 290 } 284 291 … … 290 297 { 291 298 $ENV{SERVER_NAME} = 292 TWiki::Sandbox::untaintUnchecked( $ENV{SERVER_NAME} );293 } 294 295 # readConfig is defined in TWiki::Configure::Load to allow overriding it296 TWiki::Configure::Load::readConfig();297 298 if ( $ TWiki::cfg{WarningsAreErrors} ) {299 Foswiki::Sandbox::untaintUnchecked( $ENV{SERVER_NAME} ); 300 } 301 302 # readConfig is defined in Foswiki::Configure::Load to allow overriding it 303 Foswiki::Configure::Load::readConfig(); 304 305 if ( $Foswiki::cfg{WarningsAreErrors} ) { 299 306 300 307 # Note: Warnings are always errors if ASSERTs are enabled … … 302 309 } 303 310 304 if ( $ TWiki::cfg{UseLocale} ) {311 if ( $Foswiki::cfg{UseLocale} ) { 305 312 require locale; 306 313 import locale(); … … 309 316 # Constant tags dependent on the config 310 317 $functionTags{ALLOWLOGINNAME} = 311 sub { $ TWiki::cfg{Register}{AllowLoginName} || 0 };312 $functionTags{AUTHREALM} = sub { $ TWiki::cfg{AuthRealm} };313 $functionTags{DEFAULTURLHOST} = sub { $ TWiki::cfg{DefaultUrlHost} };314 $functionTags{HOMETOPIC} = sub { $ TWiki::cfg{HomeTopicName} };315 $functionTags{LOCALSITEPREFS} = sub { $ TWiki::cfg{LocalSitePreferences} };318 sub { $Foswiki::cfg{Register}{AllowLoginName} || 0 }; 319 $functionTags{AUTHREALM} = sub { $Foswiki::cfg{AuthRealm} }; 320 $functionTags{DEFAULTURLHOST} = sub { $Foswiki::cfg{DefaultUrlHost} }; 321 $functionTags{HOMETOPIC} = sub { $Foswiki::cfg{HomeTopicName} }; 322 $functionTags{LOCALSITEPREFS} = sub { $Foswiki::cfg{LocalSitePreferences} }; 316 323 $functionTags{NOFOLLOW} = 317 sub { $ TWiki::cfg{NoFollow} ? 'rel=' . $TWiki::cfg{NoFollow} : '' };318 $functionTags{NOTIFYTOPIC} = sub { $ TWiki::cfg{NotifyTopicName} };319 $functionTags{SCRIPTSUFFIX} = sub { $ TWiki::cfg{ScriptSuffix} };320 $functionTags{STATISTICSTOPIC} = sub { $ TWiki::cfg{Stats}{TopicName} };321 $functionTags{SYSTEMWEB} = sub { $ TWiki::cfg{SystemWebName} };322 $functionTags{TRASHWEB} = sub { $ TWiki::cfg{TrashWebName} };323 $functionTags{WIKIADMINLOGIN} = sub { $ TWiki::cfg{AdminUserLogin} };324 $functionTags{USERSWEB} = sub { $ TWiki::cfg{UsersWebName} };325 $functionTags{WEBPREFSTOPIC} = sub { $ TWiki::cfg{WebPrefsTopicName} };326 $functionTags{WIKIPREFSTOPIC} = sub { $ TWiki::cfg{SitePrefsTopicName} };327 $functionTags{WIKIUSERSTOPIC} = sub { $ TWiki::cfg{UsersTopicName} };328 $functionTags{WIKIWEBMASTER} = sub { $ TWiki::cfg{WebMasterEmail} };329 $functionTags{WIKIWEBMASTERNAME} = sub { $ TWiki::cfg{WebMasterName} };324 sub { $Foswiki::cfg{NoFollow} ? 'rel=' . $Foswiki::cfg{NoFollow} : '' }; 325 $functionTags{NOTIFYTOPIC} = sub { $Foswiki::cfg{NotifyTopicName} }; 326 $functionTags{SCRIPTSUFFIX} = sub { $Foswiki::cfg{ScriptSuffix} }; 327 $functionTags{STATISTICSTOPIC} = sub { $Foswiki::cfg{Stats}{TopicName} }; 328 $functionTags{SYSTEMWEB} = sub { $Foswiki::cfg{SystemWebName} }; 329 $functionTags{TRASHWEB} = sub { $Foswiki::cfg{TrashWebName} }; 330 $functionTags{WIKIADMINLOGIN} = sub { $Foswiki::cfg{AdminUserLogin} }; 331 $functionTags{USERSWEB} = sub { $Foswiki::cfg{UsersWebName} }; 332 $functionTags{WEBPREFSTOPIC} = sub { $Foswiki::cfg{WebPrefsTopicName} }; 333 $functionTags{WIKIPREFSTOPIC} = sub { $Foswiki::cfg{SitePrefsTopicName} }; 334 $functionTags{WIKIUSERSTOPIC} = sub { $Foswiki::cfg{UsersTopicName} }; 335 $functionTags{WIKIWEBMASTER} = sub { $Foswiki::cfg{WebMasterEmail} }; 336 $functionTags{WIKIWEBMASTERNAME} = sub { $Foswiki::cfg{WebMasterName} }; 330 337 331 338 # Compatibility synonyms, deprecated in 4.2 but still used throughout … … 341 348 # this in 'non-locale regexes' mode. 342 349 343 if ( $ TWiki::cfg{UseLocale} ) {350 if ( $Foswiki::cfg{UseLocale} ) { 344 351 345 352 # Set environment variables for grep 346 $ENV{LC_CTYPE} = $ TWiki::cfg{Site}{Locale};353 $ENV{LC_CTYPE} = $Foswiki::cfg{Site}{Locale}; 347 354 348 355 # Load POSIX for I18N support. … … 353 360 # won't this play with the Apache process's locale settings too? 354 361 # What effects would this have? 355 setlocale( &LC_CTYPE, $ TWiki::cfg{Site}{Locale} );356 setlocale( &LC_COLLATE, $ TWiki::cfg{Site}{Locale} );362 setlocale( &LC_CTYPE, $Foswiki::cfg{Site}{Locale} ); 363 setlocale( &LC_COLLATE, $Foswiki::cfg{Site}{Locale} ); 357 364 } 358 365 359 366 $functionTags{CHARSET} = sub { 360 $ TWiki::cfg{Site}{CharSet}367 $Foswiki::cfg{Site}{CharSet} 361 368 || 'iso-8859-1'; 362 369 }; 363 370 364 371 $functionTags{LANG} = sub { 365 $ TWiki::cfg{Site}{Locale} =~ m/^([a-z]+_[a-z]+)/i ? $1 : 'en_US';372 $Foswiki::cfg{Site}{Locale} =~ m/^([a-z]+_[a-z]+)/i ? $1 : 'en_US'; 366 373 }; 367 374 … … 376 383 # Depends on locale mode and Perl version, and finally on 377 384 # whether locale-based regexes are turned off. 378 if ( not $ TWiki::cfg{UseLocale}385 if ( not $Foswiki::cfg{UseLocale} 379 386 or $] < 5.006 380 or not $ TWiki::cfg{Site}{LocaleRegexes} )387 or not $Foswiki::cfg{Site}{LocaleRegexes} ) 381 388 { 382 389 383 390 # No locales needed/working, or Perl 5.005, so just use 384 391 # any additional national characters defined in TWiki.cfg 385 $regex{upperAlpha} = 'A-Z' . $ TWiki::cfg{UpperNational};386 $regex{lowerAlpha} = 'a-z' . $ TWiki::cfg{LowerNational};392 $regex{upperAlpha} = 'A-Z' . $Foswiki::cfg{UpperNational}; 393 $regex{lowerAlpha} = 'a-z' . $Foswiki::cfg{LowerNational}; 387 394 $regex{numeric} = '\d'; 388 395 $regex{mixedAlpha} = $regex{upperAlpha} . $regex{lowerAlpha}; … … 404 411 # book at http://regex.info/. 405 412 406 $regex{linkProtocolPattern} = $ TWiki::cfg{LinkProtocolPattern};413 $regex{linkProtocolPattern} = $Foswiki::cfg{LinkProtocolPattern}; 407 414 408 415 # Header patterns based on '+++'. The '###' are reserved for numbered … … 422 429 $regex{webNameBaseRegex} = 423 430 qr/[$regex{upperAlpha}]+[$regex{mixedAlphaNum}_]*/o; 424 if ( $ TWiki::cfg{EnableHierarchicalWebs} ) {431 if ( $Foswiki::cfg{EnableHierarchicalWebs} ) { 425 432 $regex{webNameRegex} = 426 433 qr/$regex{webNameBaseRegex}(?:(?:[\.\/]$regex{webNameBaseRegex})+)*/o; … … 501 508 # Check for unsafe search regex mode (affects filtering in) - default 502 509 # to safe mode 503 $ TWiki::cfg{ForceUnsafeRegexes} = 0504 unless defined $ TWiki::cfg{ForceUnsafeRegexes};510 $Foswiki::cfg{ForceUnsafeRegexes} = 0 511 unless defined $Foswiki::cfg{ForceUnsafeRegexes}; 505 512 506 513 # initialize lib directory early because of later 'cd's … … 508 515 509 516 # initialize the runtime engine 510 if ( !defined $ TWiki::cfg{Engine} ) {517 if ( !defined $Foswiki::cfg{Engine} ) { 511 518 512 519 # Caller did not define an engine; try and work it out (mainly for 513 520 # the benefit of pre-5.0 CGI scripts) 514 521 if ( defined $ENV{GATEWAY_INTERFACE} ) { 515 $ TWiki::cfg{Engine} = 'TWiki::Engine::CGI';522 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CGI'; 516 523 use CGI::Carp qw(fatalsToBrowser); 517 524 $SIG{__DIE__} = \&CGI::Carp::confess; 518 525 } 519 526 else { 520 $ TWiki::cfg{Engine} = 'TWiki::Engine::CLI';527 $Foswiki::cfg{Engine} = 'Foswiki::Engine::CLI'; 521 528 require Carp; 522 529 $SIG{__DIE__} = \&Carp::confess; 523 530 } 524 531 } 525 $engine = eval qq(use $ TWiki::cfg{Engine}; $TWiki::cfg{Engine}->new);532 $engine = eval qq(use $Foswiki::cfg{Engine}; $Foswiki::cfg{Engine}->new); 526 533 die $@ if $@; 527 534 … … 541 548 my ( $this, $text ) = @_; 542 549 543 return $text unless ( defined $ TWiki::cfg{Site}{CharSet} );550 return $text unless ( defined $Foswiki::cfg{Site}{CharSet} ); 544 551 545 552 # Detect character encoding of the full topic name from URL … … 550 557 551 558 # If site charset is already UTF-8, there is no need to convert anything: 552 if ( $ TWiki::cfg{Site}{CharSet} =~ /^utf-?8$/i ) {559 if ( $Foswiki::cfg{Site}{CharSet} =~ /^utf-?8$/i ) { 553 560 554 561 # warn if using Perl older than 5.8 … … 567 574 # Convert into ISO-8859-1 if it is the site charset. This conversion 568 575 # is *not valid for ISO-8859-15*. 569 if ( $ TWiki::cfg{Site}{CharSet} =~ /^iso-?8859-?1$/i ) {576 if ( $Foswiki::cfg{Site}{CharSet} =~ /^iso-?8859-?1$/i ) { 570 577 571 578 # ISO-8859-1 maps onto first 256 codepoints of Unicode … … 582 589 import Encode qw(:fallbacks); 583 590 584 # Map $ TWiki::cfg{Site}{CharSet} into real encoding name591 # Map $Foswiki::cfg{Site}{CharSet} into real encoding name 585 592 my $charEncoding = 586 Encode::resolve_alias( $ TWiki::cfg{Site}{CharSet} );593 Encode::resolve_alias( $Foswiki::cfg{Site}{CharSet} ); 587 594 if ( not $charEncoding ) { 588 595 $this->writeWarning( 'Conversion to "' 589 . $ TWiki::cfg{Site}{CharSet}596 . $Foswiki::cfg{Site}{CharSet} 590 597 . '" not supported, or name not recognised - check ' 591 598 . '"perldoc Encode::Supported"' ); … … 605 612 else { 606 613 require Unicode::MapUTF8; # Pre-5.8 Perl versions 607 my $charEncoding = $ TWiki::cfg{Site}{CharSet};614 my $charEncoding = $Foswiki::cfg{Site}{CharSet}; 608 615 if ( not Unicode::MapUTF8::utf8_supported_charset($charEncoding) ) { 609 616 $this->writeWarning( 'Conversion to "' 610 . $ TWiki::cfg{Site}{CharSet}617 . $Foswiki::cfg{Site}{CharSet} 611 618 . '" not supported, or name not recognised - check ' 612 619 . '"perldoc Unicode::MapUTF8"' ); … … 710 717 711 718 # Get time now in HTTP header format 712 require TWiki::Time;719 require Foswiki::Time; 713 720 my $lastModifiedString = 714 TWiki::Time::formatTime( time, '$http', 'gmtime' );721 Foswiki::Time::formatTime( time, '$http', 'gmtime' ); 715 722 716 723 # Expiry time is set high to avoid any data loss. Each instance of … … 743 750 744 751 $contentType = 'text/html' unless $contentType; 745 if ( defined( $ TWiki::cfg{Site}{CharSet} ) ) {746 $contentType .= '; charset=' . $ TWiki::cfg{Site}{CharSet};752 if ( defined( $Foswiki::cfg{Site}{CharSet} ) ) { 753 $contentType .= '; charset=' . $Foswiki::cfg{Site}{CharSet}; 747 754 } 748 755 … … 772 779 773 780 #TODO: this should really use URI 774 if ( ( !$ TWiki::cfg{AllowRedirectUrl} )781 if ( ( !$Foswiki::cfg{AllowRedirectUrl} ) 775 782 && ( $redirect =~ m!^([^:]*://[^/]*)/*(.*)?$! ) ) 776 783 { … … 778 785 779 786 #remove trailing /'s to match 780 $ TWiki::cfg{DefaultUrlHost} =~ m!^([^:]*://[^/]*)/*(.*)?$!;787 $Foswiki::cfg{DefaultUrlHost} =~ m!^([^:]*://[^/]*)/*(.*)?$!; 781 788 my $expected = $1; 782 789 783 if ( defined( $ TWiki::cfg{PermittedRedirectHostUrls} )784 && $ TWiki::cfg{PermittedRedirectHostUrls} ne '' )790 if ( defined( $Foswiki::cfg{PermittedRedirectHostUrls} ) 791 && $Foswiki::cfg{PermittedRedirectHostUrls} ne '' ) 785 792 { 786 793 my @permitted = 787 794 map { s!^([^:]*://[^/]*)/*(.*)?$!$1!; $1 } 788 split( /,\s*/, $ TWiki::cfg{PermittedRedirectHostUrls} );795 split( /,\s*/, $Foswiki::cfg{PermittedRedirectHostUrls} ); 789 796 return 1 if ( grep ( { uc($host) eq uc($_) } @permitted ) ); 790 797 } … … 913 920 $url = $this->getScriptUrl( 914 921 1, 'oops', 915 $this->{web} || $ TWiki::cfg{UsersWebName},916 $this->{topic} || $ TWiki::cfg{HomeTopicName},922 $this->{web} || $Foswiki::cfg{UsersWebName}, 923 $this->{topic} || $Foswiki::cfg{HomeTopicName}, 917 924 template => 'oopsaccessdenied', 918 925 def => 'topic_access', … … 921 928 . $url 922 929 . ': host does not match {DefaultUrlHost} , and is not in {PermittedRedirectHostUrls}"' 923 . $ TWiki::cfg{DefaultUrlHost} . '"'930 . $Foswiki::cfg{DefaultUrlHost} . '"' 924 931 ); 925 932 } … … 961 968 $md5->add( $$, time(), rand(time) ); 962 969 my $uid = $md5->hexdigest(); 963 my $passthruFilename = "$ TWiki::cfg{WorkingDir}/tmp/passthru_$uid";970 my $passthruFilename = "$Foswiki::cfg{WorkingDir}/tmp/passthru_$uid"; 964 971 965 972 use Fcntl; … … 968 975 sysopen( F, "$passthruFilename", O_RDWR | O_EXCL | O_CREAT, 0600 ) 969 976 || die 970 "Unable to open $ TWiki::cfg{WorkingDir}/tmp for write; check the setting of {WorkingDir} in configure, and check file permissions: $!";977 "Unable to open $Foswiki::cfg{WorkingDir}/tmp for write; check the setting of {WorkingDir} in configure, and check file permissions: $!"; 971 978 $query->save( \*F ); 972 979 close(F); … … 1022 1029 otherwise only user web names are valid 1023 1030 1024 If $ TWiki::cfg{EnableHierarchicalWebs} is off, it will also return false1031 If $Foswiki::cfg{EnableHierarchicalWebs} is off, it will also return false 1025 1032 when a nested web name is passed to it. 1026 1033 … … 1049 1056 1050 1057 my @mirrorInfo = ( '', '', '', '' ); 1051 if ( $ TWiki::cfg{SiteWebTopicName} ) {1058 if ( $Foswiki::cfg{SiteWebTopicName} ) { 1052 1059 my $mirrorSiteName = 1053 1060 $this->{prefs}->getWebPreferencesValue( 'MIRRORSITENAME', $theWeb ); 1054 1061 if ( $mirrorSiteName 1055 && $mirrorSiteName ne $ TWiki::cfg{SiteWebTopicName} )1062 && $mirrorSiteName ne $Foswiki::cfg{SiteWebTopicName} ) 1056 1063 { 1057 1064 my $mirrorViewURL = … … 1067 1074 $mirrorNote = 1068 1075 $this->renderer->getRenderedVersion( $mirrorNote, $theWeb, 1069 $ TWiki::cfg{HomeTopic} );1076 $Foswiki::cfg{HomeTopic} ); 1070 1077 $mirrorNote =~ s/\s*$//g; 1071 1078 @mirrorInfo = … … 1141 1148 1142 1149 my $url; 1143 if ( defined $ TWiki::cfg{ScriptUrlPaths} && $script ) {1144 $url = $ TWiki::cfg{ScriptUrlPaths}{$script};1150 if ( defined $Foswiki::cfg{ScriptUrlPaths} && $script ) { 1151 $url = $Foswiki::cfg{ScriptUrlPaths}{$script}; 1145 1152 } 1146 1153 unless ( defined($url) ) { 1147 $url = $ TWiki::cfg{ScriptUrlPath};1154 $url = $Foswiki::cfg{ScriptUrlPath}; 1148 1155 if ($script) { 1149 1156 $url .= '/' unless $url =~ /\/$/; 1150 1157 $url .= $script; 1151 1158 if ( 1152 rindex( $url, $ TWiki::cfg{ScriptSuffix} ) !=1153 ( length($url) - length( $ TWiki::cfg{ScriptSuffix} ) ) )1159 rindex( $url, $Foswiki::cfg{ScriptSuffix} ) != 1160 ( length($url) - length( $Foswiki::cfg{ScriptSuffix} ) ) ) 1154 1161 { 1155 $url .= $ TWiki::cfg{ScriptSuffix} if $script;1162 $url .= $Foswiki::cfg{ScriptSuffix} if $script; 1156 1163 } 1157 1164 } … … 1221 1228 1222 1229 my $url = ''; 1223 $url .= $ TWiki::cfg{PubUrlPath};1230 $url .= $Foswiki::cfg{PubUrlPath}; 1224 1231 if ( $absolute && $url !~ /^[a-z]+:/ ) { 1225 1232 … … 1319 1326 1320 1327 *WARNING* if there is no web specification (in the web or topic parameters) 1321 the web defaults to $ TWiki::cfg{UsersWebName}. If there is no topic1328 the web defaults to $Foswiki::cfg{UsersWebName}. If there is no topic 1322 1329 specification, or the topic is '0', the topic defaults to the web home topic 1323 1330 name. … … 1354 1361 want to be logged-in if none is available from a session or browser. 1355 1362 Used mainly for side scripts and debugging. 1356 * =$query= the TWiki::Request query (may be undef, in which case an empty query1363 * =$query= the Foswiki::Request query (may be undef, in which case an empty query 1357 1364 is used) 1358 1365 * =\%initialContext= - reference to a hash containing context … … 1363 1370 sub new { 1364 1371 my ( $class, $login, $query, $initialContext ) = @_; 1365 ASSERT( !$query || UNIVERSAL::isa( $query, ' TWiki::Request' ) );1372 ASSERT( !$query || UNIVERSAL::isa( $query, 'Foswiki::Request' ) ); 1366 1373 Monitor::MARK("Static compilation complete"); 1367 1374 1368 1375 # Compatibility; not used except maybe in plugins 1369 $ TWiki::cfg{TempfileDir} = "$TWiki::cfg{WorkingDir}/tmp"1370 unless defined( $ TWiki::cfg{TempfileDir} );1376 $Foswiki::cfg{TempfileDir} = "$Foswiki::cfg{WorkingDir}/tmp" 1377 unless defined( $Foswiki::cfg{TempfileDir} ); 1371 1378 1372 1379 # Set command_line context if there is no query 1373 1380 $initialContext ||= defined($query) ? {} : { command_line => 1 }; 1374 1381 1375 $query ||= new TWiki::Request();1382 $query ||= new Foswiki::Request(); 1376 1383 my $this = bless( {}, $class ); 1377 1384 $this->{request} = $query; 1378 $this->{response} = new TWiki::Response();1379 1380 # Tell TWiki::Response which charset we are using if not default1381 if ( defined $ TWiki::cfg{Site}{CharSet}1382 && $ TWiki::cfg{Site}{CharSet} !~ /^iso-?8859-?1$/io )1385 $this->{response} = new Foswiki::Response(); 1386 1387 # Tell Foswiki::Response which charset we are using if not default 1388 if ( defined $Foswiki::cfg{Site}{CharSet} 1389 && $Foswiki::cfg{Site}{CharSet} !~ /^iso-?8859-?1$/io ) 1383 1390 { 1384 $this->{response}->charset( $ TWiki::cfg{Site}{CharSet} );1391 $this->{response}->charset( $Foswiki::cfg{Site}{CharSet} ); 1385 1392 } 1386 1393 … … 1393 1400 # "shared" between mod_perl instances 1394 1401 $sandbox = 1395 new TWiki::Sandbox( $TWiki::cfg{OS}, $TWiki::cfg{DetailedOS} );1396 } 1397 require TWiki::Plugins;1398 $this->{plugins} = new TWiki::Plugins($this);1399 require TWiki::Store;1400 $this->{store} = new TWiki::Store($this);1402 new Foswiki::Sandbox( $Foswiki::cfg{OS}, $Foswiki::cfg{DetailedOS} ); 1403 } 1404 require Foswiki::Plugins; 1405 $this->{plugins} = new Foswiki::Plugins($this); 1406 require Foswiki::Store; 1407 $this->{store} = new Foswiki::Store($this); 1401 1408 1402 1409 $this->{remoteUser} = 1403 1410 $login; #use login as a default (set when running from cmd line) 1404 require TWiki::Users;1405 $this->{users} = new TWiki::Users($this);1411 require Foswiki::Users; 1412 $this->{users} = new Foswiki::Users($this); 1406 1413 $this->{remoteUser} = $this->{users}->{remoteUser}; 1407 1414 … … 1412 1419 # with use strict and calling external programs that writes on the disk 1413 1420 # will fail unless Perl seens it as set to safe value. 1414 if ( $ TWiki::cfg{SafeEnvPath} ) {1415 $ENV{PATH} = $ TWiki::cfg{SafeEnvPath};1421 if ( $Foswiki::cfg{SafeEnvPath} ) { 1422 $ENV{PATH} = $Foswiki::cfg{SafeEnvPath}; 1416 1423 } 1417 1424 else { 1418 $ENV{PATH} = TWiki::Sandbox::untaintUnchecked( $ENV{PATH} );1425 $ENV{PATH} = Foswiki::Sandbox::untaintUnchecked( $ENV{PATH} ); 1419 1426 } 1420 1427 delete @ENV{qw( IFS CDPATH ENV BASH_ENV )}; … … 1429 1436 # when there is nothing better available. 1430 1437 if ( $this->{urlHost} eq 'http://localhost' ) { 1431 $this->{urlHost} = $ TWiki::cfg{DefaultUrlHost};1432 } 1433 elsif ( $ TWiki::cfg{RemovePortNumber} ) {1438 $this->{urlHost} = $Foswiki::cfg{DefaultUrlHost}; 1439 } 1440 elsif ( $Foswiki::cfg{RemovePortNumber} ) { 1434 1441 $this->{urlHost} =~ s/\:[0-9]+$//; 1435 1442 } 1436 1443 } 1437 1444 else { 1438 $this->{urlHost} = $ TWiki::cfg{DefaultUrlHost};1439 } 1440 if ( $ TWiki::cfg{GetScriptUrlFromCgi}1445 $this->{urlHost} = $Foswiki::cfg{DefaultUrlHost}; 1446 } 1447 if ( $Foswiki::cfg{GetScriptUrlFromCgi} 1441 1448 && $url 1442 1449 && $url =~ m{^[^:]*://[^/]*(.*)/.*$} … … 1471 1478 1472 1479 # jump to WebHome if 'bin/script?topic=Webname.' 1473 $topic = $ TWiki::cfg{HomeTopicName} if ( $web && !$topic );1480 $topic = $Foswiki::cfg{HomeTopicName} if ( $web && !$topic ); 1474 1481 } 1475 1482 … … 1496 1503 my $topictmp = $2; 1497 1504 my $filetmp = $3; 1498 if (-f $ TWiki::cfg{PubDir}."/$webtmp$topictmp/$filetmp") {1505 if (-f $Foswiki::cfg{PubDir}."/$webtmp$topictmp/$filetmp") { 1499 1506 $web = $webtmp; 1500 1507 $topic = $topictmp; … … 1510 1517 1511 1518 # All roads lead to WebHome 1512 $topic = $ TWiki::cfg{HomeTopicName} if ( $topic =~ /\.\./ );1513 $topic =~ s/$ TWiki::cfg{NameFilter}//go;1514 $topic = $ TWiki::cfg{HomeTopicName} unless $topic;1515 $this->{topicName} = TWiki::Sandbox::untaintUnchecked($topic);1516 1517 $web =~ s/$ TWiki::cfg{NameFilter}//go;1519 $topic = $Foswiki::cfg{HomeTopicName} if ( $topic =~ /\.\./ ); 1520 $topic =~ s/$Foswiki::cfg{NameFilter}//go; 1521 $topic = $Foswiki::cfg{HomeTopicName} unless $topic; 1522 $this->{topicName} = Foswiki::Sandbox::untaintUnchecked($topic); 1523 1524 $web =~ s/$Foswiki::cfg{NameFilter}//go; 1518 1525 $this->{requestedWebName} = 1519 TWiki::Sandbox::untaintUnchecked($web); #can be an empty string1520 $web = $ TWiki::cfg{UsersWebName} unless $web;1521 $this->{webName} = TWiki::Sandbox::untaintUnchecked($web);1526 Foswiki::Sandbox::untaintUnchecked($web); #can be an empty string 1527 $web = $Foswiki::cfg{UsersWebName} unless $web; 1528 $this->{webName} = Foswiki::Sandbox::untaintUnchecked($web); 1522 1529 1523 1530 # Convert UTF-8 web and topic name from URL into site charset if necessary … … 1538 1545 # SMELL: This untaint unchecked is duplicate of one just above 1539 1546 $this->{topicName} = 1540 TWiki::Sandbox::untaintUnchecked( ucfirst $this->{topicName} );1541 1542 $this->{scriptUrlPath} = $ TWiki::cfg{ScriptUrlPath};1543 1544 require TWiki::Prefs;1545 my $prefs = new TWiki::Prefs($this);1547 Foswiki::Sandbox::untaintUnchecked( ucfirst $this->{topicName} ); 1548 1549 $this->{scriptUrlPath} = $Foswiki::cfg{ScriptUrlPath}; 1550 1551 require Foswiki::Prefs; 1552 my $prefs = new Foswiki::Prefs($this); 1546 1553 $this->{prefs} = $prefs; 1547 1554 … … 1552 1559 $prefs->pushGlobalPreferences(); 1553 1560 1554 # SMELL: what happens if we move this into the TWiki::User::new?1561 # SMELL: what happens if we move this into the Foswiki::User::new? 1555 1562 $this->{user} = $this->{users}->initialiseUser( $this->{remoteUser} ); 1556 1563 … … 1576 1583 my $wn = $this->{users}->getWikiName( $this->{user} ); 1577 1584 if ($wn) { 1578 $prefs->pushPreferences( $ TWiki::cfg{UsersWebName}, $wn,1585 $prefs->pushPreferences( $Foswiki::cfg{UsersWebName}, $wn, 1579 1586 'USER ' . $wn ); 1580 1587 } … … 1591 1598 1592 1599 # SMELL: Every place should localize it before use, so it's not necessary here. 1593 $ TWiki::Plugins::SESSION = $this;1600 $Foswiki::Plugins::SESSION = $this; 1594 1601 1595 1602 Monitor::MARK("TWiki session created"); … … 1610 1617 1611 1618 unless ( $this->{renderer} ) { 1612 require TWiki::Render;1619 require Foswiki::Render; 1613 1620 1614 1621 # requires preferences (such as LINKTOOLTIPINFO) 1615 $this->{renderer} = new TWiki::Render($this);1622 $this->{renderer} = new Foswiki::Render($this); 1616 1623 } 1617 1624 return $this->{renderer}; … … 1630 1637 1631 1638 unless ( $this->{attach} ) { 1632 require TWiki::Attach;1633 $this->{attach} = new TWiki::Attach($this);1639 require Foswiki::Attach; 1640 $this->{attach} = new Foswiki::Attach($this); 1634 1641 } 1635 1642 return $this->{attach}; … … 1648 1655 1649 1656 unless ( $this->{templates} ) { 1650 require TWiki::Templates;1651 $this->{templates} = new TWiki::Templates($this);1657 require Foswiki::Templates; 1658 $this->{templates} = new Foswiki::Templates($this); 1652 1659 } 1653 1660 return $this->{templates}; … … 1666 1673 1667 1674 unless ( $this->{i18n} ) { 1668 require TWiki::I18N;1675 require Foswiki::I18N; 1669 1676 1670 1677 # language information; must be loaded after 1671 1678 # *all possible preferences sources* are available 1672 $this->{i18n} = new TWiki::I18N($this);1679 $this->{i18n} = new Foswiki::I18N($this); 1673 1680 } 1674 1681 return $this->{i18n}; … … 1687 1694 1688 1695 unless ( $this->{search} ) { 1689 require TWiki::Search;1690 $this->{search} = new TWiki::Search($this);1696 require Foswiki::Search; 1697 $this->{search} = new Foswiki::Search($this); 1691 1698 } 1692 1699 return $this->{search}; … … 1705 1712 1706 1713 unless ( $this->{security} ) { 1707 require TWiki::Access;1708 $this->{security} = new TWiki::Access($this);1714 require Foswiki::Access; 1715 $this->{security} = new Foswiki::Access($this); 1709 1716 } 1710 1717 return $this->{security}; … … 1723 1730 1724 1731 unless ( $this->{net} ) { 1725 require TWiki::Net;1726 $this->{net} = new TWiki::Net($this);1732 require Foswiki::Net; 1733 $this->{net} = new Foswiki::Net($this); 1727 1734 } 1728 1735 return $this->{net}; … … 1812 1819 my $text = "$user | $action | $webTopic | $extra | $remoteAddr |"; 1813 1820 1814 _writeReport( $this, $ TWiki::cfg{LogFileName}, $text );1821 _writeReport( $this, $Foswiki::cfg{LogFileName}, $text ); 1815 1822 } 1816 1823 … … 1819 1826 ---++ ObjectMethod writeWarning( $text ) 1820 1827 1821
