changed git call from https to git readonly
[atutor.git] / mods / wiki / tools / t_commander / info.php
1 <?php
2   include("t_config.php");
3 ?>
4 <html>
5 <head>
6  <title>WikiCommander:SplashScreen</title>
7  <link rel="stylesheet" type="text/css" href="80x25.css">
8 </head>
9 <body bgcolor="#0000c0" text="#dddddd" class="SplashScreen Panel"><div style="height:100%">
10 <?php
11   $ver = EWIKI_VERSION;
12   $php = PHP_VERSION;
13   $os = PHP_OS;
14   $web = strtok(trim($_SERVER[SERVER_SOFTWARE]), " \r\n\t\f");
15   $db = $ewiki_plugins["database"][0];
16   $db = substr($db, strrpos($db, "_"));
17   echo<<<END
18 this is the<br>
19 <b>WikiCommander&trade; 1.0</b><br>
20 <br>
21 operating sys: $os<br>
22 WebServer: $web<br>
23 environment: $_SERVER[GATEWAY_INTERFACE], $_SERVER[SERVER_PROTOCOL]<br>
24 PHP interpreter: $php<br>
25 ewiki version: <b>$ver</b><br>
26 database type: $db<br>
27 <br>
28 This tool accesses your database directly, all actions are <i>irreversible</i>.
29 <br>
30 <br>
31 <div style="font-family:sans-serif;font-size:60%;background:#555555;">
32 This utility allows for raw database editing. You can select pages in the right
33 pane and then edit page contents, flags or misc. settings in the left.
34 <br>
35 Following database flags are used currently:
36 <table border="0" cellspacing="0">
37 <tr><td>T</td><td>txt</td><td>_TEXT</td><td>type of ordinary wikipages</td></tr>
38 <tr><td>B</td><td>bin</td><td>_BINARY</td><td>non-text entries</td></tr>
39 <tr><td>Z</td><td>sys</td><td>_SYSTEM</td><td>special/secret data and control pages</td></tr>
40 <tr><td>d</td><td>off</td><td>_DISABLED</td><td>inaccesible, forbidden entries</td></tr>
41 <tr><td>P</td><td>prt</td><td>_PART</td><td>incomplete data fragments</td></tr>
42 <tr><td>r</td><td>ro</td><td>_READONLY</td><td>edit-locked</td></tr>
43 <tr><td>w</td><td>rw</td><td>_WRITEABLE</td><td>always unlocked pages</td></tr>
44 <tr><td>x</td><td>exe</td><td>_EXEC</td><td>db entry with script code</td></tr>
45 <tr><td>a</td><td>app</td><td>_APPENDONLY</td><td>can only add text at bottom</td></tr>
46 <tr><td>m</td><td>min</td><td>_MINOR</td><td>minor edits don't appear on RC</td></tr>
47 <tr><td>h</td><td>hid</td><td>_HIDDEN</td><td>pages don't appear in listings, searches</td></tr>
48 <tr><td>v</td><td>arv</td><td>_ARCHIVE</td><td>automatic page deletion (cron) won't do</td></tr>
49 <tr><td>H</td><td>htm</td><td>_HTML</td><td>raw html allowed in page text</td></tr>
50 </table>
51 <br>
52 Unless you increase the {version} number by hand, saving edited pages will
53 overwrite the same revision. You can simply duplicate a page under another
54 name by editing the {id} field there - the original page+version will remain
55 unchanged. Use [refr] to load a different version. The [del] button always
56 deletes only the shown version. The "..." brings you to a complete version
57 history of the current database entry. The checkbox behind {lastmodified}
58 will correctly update it using the system time() when saving.
59 <br>
60 <br>
61 You also can use typical *nix calls in the commandline (just try
62 "help" for a complete list).<br>
63 <pre>  rm PageName
64   ls -l
65   mv OldName "New Name"
66   exit
67 </pre>
68 <br>
69 It is all very rough still and both menus heavily depend on enabled JS. You
70 can select multiple files (for deletion e.g.) if you hold the Ctrl key down,
71 but you must take care to click beside the filename/link, because Mozilla and
72 Co. would otherwise always open a new tab for it.
73 <br><br>
74 </div>
75 <br>
76 END;
77 ?>
78 </div></body>
79 </html>