lambdaway
::
download
3
|
list
|
login
|
load
|
|
_h1 download & install {blockquote {@ style="transform:rotate(-2deg); padding:10px; font-style:italic;"} _p If you find some interest in this project and, why not, enjoy using it, please take time to say me "Hello" either in the [[agora]] page or by mail at {code marty.alain _at_ free.fr}. Thank you in advance.} _h2 First of all you should read the [[license|?view=licence]]. _p All operations that follow assume that you have a web account (on a server running PHP without any required database system) and that you are able to use a FTP tool for uploading and downloading files. Filezilla fits perfectly. _h2 1) minimal installation _p The minimal installation is straightforward: _ul 1) download the ~30kb [[archive|archive.zip]], ;; [[github archive|https://github.com/amarty66/lambdaway/achive/master.zip]] _ul 2) unzip the archive, you get a ~100kb folder named "archive", _ul 3) rename it for instance "MYWIKI", avoiding spaces and esoteric characters, _ul 4) open your FTP tool and upload the folder to your web account. _p Your wiki "{b my_wiki}" is ready! Now: _ul 1) open any modern web browser and go to "MYWIKI" in your web account, _ul 2) the start page displays an invite, _img data/wiki_start.jpg _ul 3) click on the title "start" to open the edit menu, _img data/wiki_start2.jpg _ul 4) in the editor frame, you should write the following code, no matter if you don't understand everything: _img http://lambdaway.free.fr/lambdawalks/data/wiki_start3.jpg _ul 5) Well, you can't save anything for now, there is no "Save" button because you are not yet authorized to do so. You can safely test everything you want but you can't save and publish your work. You must wait until the section {b 2)}. _h2 2) improved installation _p '{lambda tank} doesn't provide any inline administration interface, parameters must be edited in the "config.php" pure text file before uploading the wiki. You will find the {b config.php} file in the {b meca} folder. This its predefined state: {pre °° define ( "WIKI_NAME", "lambdaspeech" ); define ( "LOCK", false ); // if true the wiki can't be edited define ( "START", "start" ); // "start", "accueil" define ( "FORUM", "agora" ); // "FORUM" and "SANDBOX" always editable define ( "SANDBOX", "sandbox" ); // name could be "#&§è!çà" to hide them define ( "LOAD_MAX", "200"); // maximum size of uploadable files // don't modify define ( "VERSION", "lambdaspeech v.20200129" ); define ( "TITLE", WIKI_NAME ); define ( "PAGES", "pages/" ); define ( "HISTORY", "history/" ); // caution, passwords are not crypted $users = array( "one" => "azertyuiop" , "two" => "qsdfghjklmù" , "three" => "&é"'(§è!çà)-" ); °°} _h3 2.1) change name _p By default, the name of the wiki is {b lambdaspeech}. In order to replace it with the name of your choice, you must be able to use a "plain text" editor like NotePad/NotePad2 on Windows, TextEdit/Smultron on Mac, Kedit on Linux. Verify that the text encodage is "UTF-8". _ul open your local folder « archive », _ul find the file « config.php », duplicate this file for security, _ul open it with the text editor, find the line {code define ("WIKI_NAME", "lambdaspeech")} and replace {b lambdaspeech} by your name, say {b toto's wiki}, _ul save the file and upload it on your web account. _p The complete title of your pages will be now {b toto's wiki :: start}, the wiki's address and the name pf the first page. _h3 2.2) create a users login array _p By default, the wiki has one predefined login:password. This is the process to define a set of authorized editors : _ul find and open the file « config.php » with the text editor, _ul find the predifined array and edit it, you can define several authorized people: {pre {@ style="padding-left:50px;"} °° $users = array( "one" => "azertyuiop" , "two" => "qsdfghjklmù" , "three" => "&é"'(§è!çà)-" ); °°} _h3 Notes: _ul Be careful when you modify this file, duplicate it before. _ul Anybody can edit the pages [[forum]] and [[sandbox]] and it may be undesirable. It's hardcoded in the "meca/PHP.php" file. There is a simple "hack" to hide them : _ul30 find and open the file « config.php » with the text editor, _ul30 give to the two constant "FORUM" and "SANDBOX" some obfuscated name like "@&é§èçà", {i et voilà !}, nobody will be able to reach them ! _ul {b Caution}: Some web hosts have specific securities you must follow. On the {b free.fr} host you must add a folder named {b sessions} in the same space of the wiki's folder. _h3 2.3) archive.zip content {pre archiv.zip |-- index.php |-- meca | |-- index.php | |-- config.php | |-- login.php | |-- PHP.php | |-- JS.js | |-- CSS.css | |-- _connected.txt | |-- _logs.txt |-- pages | |-- index.php | |-- start.txt | |-- ... |-- history | |-- index.php | |-- start | |-- yyyymmdd_hhmmss.txt | |-- ... | |-- ... |-- data | |-- index.php | |-- amelie_poulain.jpg | |-- ... | }
lambdaway v.20211111