index.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Actitude.
  6. *
  7. * Actitude is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation, either version 3 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * Actitude is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with Actitude. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * index.php
  21. *
  22. * Actitude home page.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2021, 2024, 5 Mode
  26. */
  27. require "init.inc";
  28. $signHistory = [];
  29. $cmd = PHP_STR;
  30. $opt = PHP_STR;
  31. $param1 = PHP_STR;
  32. $param2 = PHP_STR;
  33. $param3 = PHP_STR;
  34. $curLocale = APP_LOCALE;
  35. $lastSign = PHP_STR;
  36. function showHistory() {
  37. global $signHistory;
  38. global $curPath;
  39. global $CONFIG;
  40. global $curLocale;
  41. global $LOCALE;
  42. global $lastSign;
  43. global $password;
  44. $m = 1;
  45. foreach($signHistory as $val) {
  46. $val = rtrim($val, "\n");
  47. $ipos=mb_stripos($val, "|");
  48. $myname = left($val,$ipos);
  49. $ipos2=mb_strripos($val, "|");
  50. $myplace = substr($val, $ipos+1, (($ipos2 - $ipos) - 1));
  51. $aflag = substr($val, $ipos2+1, 1);
  52. // If I'm in admin
  53. if ($password !== PHP_STR) {
  54. $adminFnc = PHP_STR;
  55. if ($aflag === "u") {
  56. $adminFnc = "<a href='#' onclick=\"confSign('" . $val . "')\"><img src='/ACT_res/confirm.png' style='width:36px;'></a>";
  57. } else {
  58. $adminFnc = "<a href='#' onclick=\"delSign('" . $val . "')\"><img src='/ACT_res/del.png' style='width:36px;'></a>";
  59. }
  60. echo("<span style='font-family:".DISPLAY_NAME_FONT.";font-size:38px;'>".$myname."</span>,".PHP_SPACE.$myplace."&nbsp;&nbsp;&nbsp;".$adminFnc."<br>");
  61. // If I'm not in admin
  62. } else {
  63. if ($aflag !== "u") {
  64. echo("<span style='font-family:".DISPLAY_NAME_FONT.";font-size:38px;'>".$myname."</span>,".PHP_SPACE.$myplace."<br>");
  65. }
  66. }
  67. $m++;
  68. }
  69. }
  70. function updateHistory(&$update, $maxItems) {
  71. global $signHistory;
  72. global $curPath;
  73. // Making enough space in $signHistory for the update..
  74. $shift = (count($signHistory) + count($update)) - $maxItems;
  75. if ($shift > 0) {
  76. $signHistory = array_slice($signHistory, $shift, $maxItems);
  77. }
  78. // Adding $signHistory update..
  79. if (count($update) > $maxItems) {
  80. $beginUpd = count($update) - ($maxItems-1);
  81. } else {
  82. $beginUpd = 0;
  83. }
  84. $update = array_slice($update, $beginUpd, $maxItems);
  85. foreach($update as $val) {
  86. $signHistory[] = $val;
  87. }
  88. // Writing out $signHistory on disk..
  89. $filepath = $curPath . DIRECTORY_SEPARATOR . ".ACT_history";
  90. file_put_contents($filepath, implode('', $signHistory));
  91. }
  92. function updatecaptchaHistory(&$update) {
  93. global $captchaHistory;
  94. global $curPath;
  95. foreach($update as $val) {
  96. $captchaHistory[] = $val;
  97. }
  98. // Writing out $captchaHistory on disk..
  99. $filepath = $curPath . DIRECTORY_SEPARATOR . ".ACT_captchahistory";
  100. file_put_contents($filepath, implode('', $captchaHistory));
  101. }
  102. function parseCommand() {
  103. global $command;
  104. global $cmd;
  105. global $opt;
  106. global $param1;
  107. global $param2;
  108. global $param3;
  109. $str = trim($command);
  110. $ipos = stripos($str, PHP_SPACE);
  111. if ($ipos > 0) {
  112. $cmd = left($str, $ipos);
  113. $str = substr($str, $ipos+1);
  114. } else {
  115. $cmd = $str;
  116. return;
  117. }
  118. if (left($str, 1) === "-") {
  119. $ipos = stripos($str, PHP_SPACE);
  120. if ($ipos > 0) {
  121. $opt = left($str, $ipos);
  122. $str = substr($str, $ipos+1);
  123. } else {
  124. $opt = $str;
  125. return;
  126. }
  127. }
  128. if (left($str, 1) === "'") {
  129. $ipos = stripos($str, "'", 1);
  130. if ($ipos > 0) {
  131. $param1 = substr($str, 0, $ipos+1);
  132. $str = substr($str, $ipos+1);
  133. } else {
  134. $param1 = $str;
  135. return;
  136. }
  137. } else {
  138. $ipos = stripos($str, PHP_SPACE);
  139. if ($ipos > 0) {
  140. $param1 = left($str, $ipos);
  141. $str = substr($str, $ipos+1);
  142. } else {
  143. $param1 = $str;
  144. return;
  145. }
  146. }
  147. $ipos = stripos($str, PHP_SPACE);
  148. if ($ipos > 0) {
  149. $param2 = left($str, $ipos);
  150. $str = substr($str, $ipos+1);
  151. } else {
  152. $param2 = $str;
  153. return;
  154. }
  155. $ipos = stripos($str, PHP_SPACE);
  156. if ($ipos > 0) {
  157. $param3 = left($str, $ipos);
  158. $str = substr($str, $ipos+1);
  159. } else {
  160. $param3 = $str;
  161. return;
  162. }
  163. }
  164. function signParamValidation() {
  165. global $opt;
  166. global $param1;
  167. global $param2;
  168. global $param3;
  169. global $name;
  170. global $place;
  171. global $captchacount;
  172. global $captchasign;
  173. global $captchaHistory;
  174. //opt!=""
  175. if ($opt!==PHP_STR) {
  176. echo("WARNING: invalid options<br>");
  177. return false;
  178. }
  179. //param1==""
  180. if ($param1!==PHP_STR) {
  181. echo("WARNING: invalid parameters<br>");
  182. return false;
  183. }
  184. //param2==""
  185. if ($param2!==PHP_STR) {
  186. echo("WARNING: invalid parameters<br>");
  187. return false;
  188. }
  189. //param3==""
  190. if ($param3!==PHP_STR) {
  191. echo("WARNING: invalid parameters<br>");
  192. return false;
  193. }
  194. //name!=""
  195. if ($name===PHP_STR || strlen($name)<3) {
  196. //echo("WARNING: invalid name<br>");
  197. return false;
  198. }
  199. //place!=""
  200. if ($place===PHP_STR || strlen($place)<3) {
  201. //echo("WARNING: invalid place<br>");
  202. return false;
  203. }
  204. $rescaptcha1=$captchacount>=4;
  205. $rescaptcha2=count(array_filter($captchaHistory, "odd")) > (APP_MAX_FROM_IP - 1);
  206. if ($rescaptcha1) {
  207. echo("WARNING: captcha expired #1<br>");
  208. }
  209. if ($rescaptcha2) {
  210. echo("WARNING: captcha expired #2<br>");
  211. }
  212. if ($rescaptcha1 || $rescaptcha2) {
  213. return false;
  214. }
  215. return true;
  216. }
  217. function odd($val) {
  218. global $captchasign;
  219. return rtrim($val,"\n") == $captchasign;
  220. }
  221. function myExecSignCommand() {
  222. global $name;
  223. global $place;
  224. global $curPath;
  225. global $lastMessage;
  226. global $captchacount;
  227. global $captchasign;
  228. global $captchaHistory;
  229. $newSign = HTMLencodeF($name,false) . "|" . HTMLencodeF($place,false) . "|u";
  230. //echo("array_filter=".count(array_filter($captchaHistory, "odd"))."<br>");
  231. //echo("new_sign?=".((hash("sha256", $newSign . APP_SALT, false) !== $lastMessage)?"true":"false")."<br>");
  232. if (hash("sha256", $newSign . APP_SALT, false) !== $lastMessage) {
  233. // Updating message history..
  234. $output = [];
  235. $output[] = $newSign . "\n";
  236. updateHistory($output, HISTORY_MAX_ITEMS);
  237. // Updating captcha history..
  238. $output = [];
  239. $output[] = $captchasign . "\n";
  240. updatecaptchaHistory($output);
  241. $lastMessage = hash("sha256", $newSign . APP_SALT, false);
  242. }
  243. }
  244. function confParamValidation() {
  245. global $opt;
  246. global $param1;
  247. global $param2;
  248. global $param3;
  249. global $signHistory;
  250. //opt!=""
  251. if ($opt!==PHP_STR) {
  252. echo("WARNING: invalid options<br>");
  253. return false;
  254. }
  255. $myval = trim($param1,"'");
  256. //param1!=""
  257. if ($myval===PHP_STR) {
  258. echo("WARNING: invalid parameters<br>");
  259. return false;
  260. }
  261. //param1 in $signHistory
  262. if (!in_array($myval."\n",$signHistory)) {
  263. echo("WARNING: invalid parameters<br>");
  264. return false;
  265. }
  266. //param2==""
  267. if ($param2!==PHP_STR) {
  268. echo("WARNING: invalid parameters<br>");
  269. return false;
  270. }
  271. //param3==""
  272. if ($param3!==PHP_STR) {
  273. echo("WARNING: invalid parameters<br>");
  274. return false;
  275. }
  276. return true;
  277. }
  278. function myExecConfSignCommand() {
  279. global $param1;
  280. global $signHistory;
  281. global $curPath;
  282. $mysign = trim($param1,"'");
  283. if ($signHistory) {
  284. //echo("inside myExecConfSignCommand()");
  285. $newval = left($mysign, strlen($mysign)-2) . "|v";
  286. $key = array_search($mysign."\n", $signHistory);
  287. if ($key !== false) {
  288. $signHistory[$key] = $newval . "\n";
  289. // Writing out $signHistory on disk..
  290. $filepath = $curPath . DIRECTORY_SEPARATOR . ".ACT_history";
  291. file_put_contents($filepath, implode('', $signHistory));
  292. }
  293. }
  294. }
  295. function delParamValidation() {
  296. global $opt;
  297. global $param1;
  298. global $param2;
  299. global $param3;
  300. global $signHistory;
  301. //opt!=""
  302. if ($opt!==PHP_STR) {
  303. echo("WARNING: invalid options<br>");
  304. return false;
  305. }
  306. $myval = trim($param1,"'");
  307. //param1!=""
  308. if ($myval===PHP_STR) {
  309. echo("WARNING: invalid parameters<br>");
  310. return false;
  311. }
  312. //param1 in $signHistory
  313. if (!in_array($myval."\n",$signHistory)) {
  314. echo("WARNING: invalid parameters<br>");
  315. return false;
  316. }
  317. //param2==""
  318. if ($param2!==PHP_STR) {
  319. echo("WARNING: invalid parameters<br>");
  320. return false;
  321. }
  322. //param3==""
  323. if ($param3!==PHP_STR) {
  324. echo("WARNING: invalid parameters<br>");
  325. return false;
  326. }
  327. return true;
  328. }
  329. function myExecDelSignCommand() {
  330. global $param1;
  331. global $signHistory;
  332. global $curPath;
  333. $mysign = trim($param1,"'");
  334. if ($signHistory) {
  335. //echo("inside myExecDelSignCommand()");
  336. $newval = left($mysign, strlen($mysign)-2) . "|u";
  337. $key = array_search($mysign."\n", $signHistory);
  338. if ($key !== false) {
  339. $signHistory[$key] = $newval . "\n";
  340. // Writing out $signHistory on disk..
  341. $filepath = $curPath . DIRECTORY_SEPARATOR . ".ACT_history";
  342. file_put_contents($filepath, implode('', $signHistory));
  343. }
  344. }
  345. }
  346. $curPath = APP_DATA_PATH;
  347. chdir($curPath);
  348. $signHistory = file($curPath . DIRECTORY_SEPARATOR . ".ACT_history");
  349. $captchaHistory = file($curPath . DIRECTORY_SEPARATOR . ".ACT_captchahistory");
  350. $password = filter_input(INPUT_POST, "Password")??"";
  351. $password = strip_tags($password);
  352. if ($password==PHP_STR) {
  353. $password = filter_input(INPUT_POST, "Password2")??"";
  354. $password = strip_tags($password);
  355. }
  356. $command = filter_input(INPUT_POST, "CommandLine")??"";
  357. $command = strip_tags($command);
  358. //$pwd = filter_input(INPUT_POST, "pwd")??"";
  359. $hideSplash = filter_input(INPUT_POST, "hideSplash")??"";
  360. $hideSplash = strip_tags($hideSplash);
  361. $hideHCSplash = filter_input(INPUT_POST, "hideHCSplash")??"";
  362. $hideHCSplash = strip_tags($hideHCSplash);
  363. $name = filter_input(INPUT_POST, "name")??"";
  364. $name = strip_tags($name);
  365. $place = filter_input(INPUT_POST, "place")??"";
  366. $place = strip_tags($place);
  367. $captchasign = hash("sha256", $_SERVER["REMOTE_ADDR"] . date("Y") . APP_SALT, false);
  368. $lastMessage = filter_input(INPUT_POST, "last_message")??"";
  369. $lastMessage = strip_tags($lastMessage);
  370. $totsigns = count($signHistory);
  371. //print_r($totsigns);
  372. //exit(0);
  373. if ($totsigns > 0) {
  374. $lastMessage = hash("sha256", rtrim($signHistory[$totsigns-1],"\n") . APP_SALT, false);
  375. }
  376. $captchacount = (int)filter_input(INPUT_POST, "captcha_count")??"";
  377. $captchacount = strip_tags($captchacount);
  378. //if ($captchacount === 0) {
  379. // $captchacount = 1;
  380. //}
  381. if ($password !== PHP_STR) {
  382. $hash = hash("sha256", $password . APP_SALT, false);
  383. if ($hash !== APP_HASH) {
  384. $password=PHP_STR;
  385. }
  386. }
  387. parseCommand($command);
  388. //echo("cmd=" . $cmd . "<br>");
  389. //echo("opt=" . $opt . "<br>");
  390. //echo("param1=" . $param1 . "<br>");
  391. //echo("param2=" . $param2 . "<br>");
  392. if ($password !== PHP_STR) {
  393. if (mb_stripos(CMDLINE_VALIDCMDS, "|" . $command . "|")) {
  394. if ($cmd === "sign") {
  395. $captchacount = $captchacount + 1;
  396. if (signParamValidation()) {
  397. myExecSignCommand();
  398. }
  399. } else if ($command === "refresh") {
  400. // refreshing Msg Board..
  401. }
  402. } else if (mb_stripos(CMDLINE_VALIDCMDS, "|" . $cmd . "|")) {
  403. if ($cmd === "del") {
  404. if (delParamValidation()) {
  405. myExecDelSignCommand();
  406. }
  407. } else if ($cmd === "conf") {
  408. if (confParamValidation()) {
  409. myExecConfSignCommand();
  410. }
  411. }
  412. } else {
  413. }
  414. } else {
  415. if (mb_stripos(CMDLINE_VALIDCMDS, "|" . $command . "|")) {
  416. if ($cmd === "sign") {
  417. $captchacount = $captchacount + 1;
  418. if (signParamValidation()) {
  419. myExecSignCommand();
  420. }
  421. }
  422. }
  423. }
  424. ?>
  425. <!DOCTYPE html>
  426. <head>
  427. <meta charset="UTF-8"/>
  428. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  429. <!--
  430. Copyright 2021, 2024 5 Mode
  431. This file is part of Actitude.
  432. Actitude is free software: you can redistribute it and/or modify
  433. it under the terms of the GNU General Public License as published by
  434. the Free Software Foundation, either version 3 of the License, or
  435. (at your option) any later version.
  436. Actitude is distributed in the hope that it will be useful,
  437. but WITHOUT ANY WARRANTY; without even the implied warranty of
  438. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  439. GNU General Public License for more details.
  440. You should have received a copy of the GNU General Public License
  441. along with Actitude. If not, see <https://www.gnu.org/licenses/>.
  442. -->
  443. <title><?php echo(APP_TITLE); ?></title>
  444. <link rel="shortcut icon" href="/favicon.ico?v=<?php echo(time()); ?>>" />
  445. <meta name="description" content="<?php echo(APP_DESCRIPTION); ?>"/>
  446. <meta name="keywords" content="<?php echo(APP_KEYWORDS); ?>"/>
  447. <meta name="author" content="5 Mode"/>
  448. <meta name="robots" content="index,follow"/>
  449. <script src="/ACT_js/jquery-3.6.0.min.js" type="text/javascript"></script>
  450. <script src="/ACT_js/common.js" type="text/javascript"></script>
  451. <script src="/ACT_js/bootstrap.min.js" type="text/javascript"></script>
  452. <script src="/ACT_js/index.js" type="text/javascript" defer></script>
  453. <link href="/ACT_css/bootstrap.min.css" type="text/css" rel="stylesheet">
  454. <link href="/ACT_css/style.css" type="text/css" rel="stylesheet">
  455. <style>
  456. @import url('https://fonts.googleapis.com/css2?family=<?php echo(str_ireplace(" ","+",DISPLAY_NAME_FONT));?>');
  457. </style>
  458. </head>
  459. <body style="<?php echo(DISPLAY_BODY_CSS);?>">
  460. <?php if (file_exists(APP_PATH . DIRECTORY_SEPARATOR . "jscheck.html")): ?>
  461. <?php include(APP_PATH . DIRECTORY_SEPARATOR . "jscheck.html"); ?>
  462. <?php endif; ?>
  463. <form id="frmHC" method="POST" action="/" target="_self" enctype="multipart/form-data">
  464. <?php if(APP_USE === "PRIVATE"): ?>
  465. <div class="header" style="background-color:#ffffff;z-index:90;">
  466. <a id="burger-menu" href="#" style="display:none;"><img src="/ACT_res/burger-menu2.png" style="width:58px;"></a><a id="ahome" href="http://actitude.5mode-foss.eu" target="_blank" style="color:black; text-decoration: none;"><img id="logo-hmm" src="/ACT_res/ACTlogo.png" style="width:48px;">&nbsp;Actitude</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="agithub" href="https://github.com/par7133/Actitude" style="color:#000000"><span style="color:#119fe2">on</span> github</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="afeedback" href="mailto:posta@elettronica.lol" style="color:#000000"><span style="color:#119fe2">for</span> feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a id="asupport" href="tel:+39-331-4029415" style="font-size:13px;background-color:#15c60b;border:2px solid #15c60b;color:black;height:27px;text-decoration:none;">&nbsp;&nbsp;get support&nbsp;&nbsp;</a><div id="pwd2" style="float:right;position:relative;top:+13px;display:none"><input type="password" id="Password2" name="Password2" placeholder="password" style="font-size:13px; background:#393939; color:#ffffff; width: 125px; border-radius:3px;" value="" autocomplete="off"></div>
  467. </div>
  468. <?php else: ?>
  469. <div class="header2" style="margin:0;padding:0;border-bottom:0px;text-align:center;">
  470. <?php echo(APP_CUSTOM_HEADER); ?>
  471. </div>
  472. <?php endif; ?>
  473. <div style="clear:both;margin:auto">&nbsp;</div>
  474. <?php
  475. $callSideBarTOP = 1;
  476. if(APP_USE === "PRIVATE") {
  477. $callSideBarTOP = 65;
  478. }
  479. ?>
  480. <div id="call-sidebar" style="position:absolute; top:<?php echo($callSideBarTOP);?>px; left:1px; clear:both; float:left; width:1.5%; max-width:5px; height:100%; min-height:1900px; text-align:center; border-right: 1px solid #2c2f34;z-index:1;">
  481. &nbsp;
  482. </div>
  483. <div id="sidebar" style="position:absolute; left:6px; top:0px; clear:both; background-color:#FFFFFF; padding:8px; width:25%; max-width:250px; height:100%; text-align:center; border-right: 1px solid #2c2f34; display:none;z-index:91;">
  484. <button type="button" class="close" aria-label="Close" onclick="closeSideBar();" style="position:relative; left:-10px;">
  485. <span aria-hidden="true">&times;</span>
  486. </button>
  487. <br><br>
  488. <img src="/ACT_res/ACTgenius.png" alt="ACT Genius" title="ACT Genius" style="position:relative; left:+6px; width:90%; border: 1px dashed #EEEEEE;">
  489. &nbsp;<br><br>
  490. <div style="text-align:left;white-space:nowrap;">
  491. &nbsp;&nbsp;<input type="password" id="Password" name="Password" placeholder="password" style="font-size:13px; background:#393939; color:#ffffff; width: 60%; height:30px; border-radius:3px;" value="<?php echo($password);?>" autocomplete="off">&nbsp;<input type="submit" value="<?php echo(getResource("Go", $curLocale));?>" style="text-align:left;width:25%;"><br>
  492. &nbsp;&nbsp;<input type="text" id="Salt" placeholder="salt" style="position:relative; top:+5px; font-size:13px; background:#393939; color:#ffffff; width: 90%; height:30px; border-radius:3px;" autocomplete="off"><br>
  493. <div style="text-align:center;">
  494. <a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; color:#000000; font-size:12px;"><?php echo(getResource("Hash Me", $curLocale));?>!</a>
  495. <br><br><br>
  496. </div>
  497. </div>
  498. </div>
  499. <div id="contentbar" style="width:100%;float:left;">
  500. <?php if (APP_SPLASH): ?>
  501. <?php if ($hideSplash !== PHP_STR): ?>
  502. <div id="splash" style="color:black; border-radius:20px; position:relative; left:+3px; width:98%; background-color: #f0f8fb; padding: 20px; margin-bottom:8px;">
  503. <button type="button" class="close" aria-label="Close" onclick="closeSplash();" style="position:relative; left:-10px;">
  504. <span aria-hidden="true">&times;</span>
  505. </button>
  506. Hello and welcome to Actitude!<br><br>
  507. Actitude is a light and simple software on premise to get registrations to events or support.<br><br>
  508. Actitude is released under GPLv3 license, it is supplied AS-IS and we do not take any responsibility for its misusage.<br><br>
  509. Actitude name comes from a prank between two words: "active" meaning our positive way to do stuff and "attitude".<br><br>
  510. First step, use the left side panel password and salt fields to create the hash to insert in the config file. Remember to manually set there also the salt value.<br><br>
  511. As you are going to run Actitude in the PHP process context, using a limited web server or phpfpm user, you must follow some simple directives for an optimal first setup:<br>
  512. <ol>
  513. <li>Check the permissions of your "data" folder in your web app private path; and set its path in the config file.</li>
  514. <li>In the data path create a ".ACT_history" and ".ACT_captchahistory" files and give them the write permission.</li>
  515. <li>Finish to setup the configuration file apporpriately, in the specific:</li>
  516. <ul>
  517. <li>Configure the APP_USE and APP_CONTEXT appropriately.</li>
  518. <li>Configure the DISPLAY attributes as required.</li>
  519. <li>Configure the max history items as required (default: 1000).</li>
  520. </ul>
  521. </ol>
  522. <br>
  523. Hope you can enjoy it and let us know about any feedback: <a href="mailto:posta@elettronica.lol">posta@elettronica.lol</a>
  524. </div>
  525. <?php endif; ?>
  526. <?php endif; ?>
  527. <div style="width:100%; padding: 8px; text-align:center; font-size:26px; border:0px solid red;">
  528. <br>
  529. <div style="font-size:23px;margin-bottom:23px;font-weight:900;"><h1><?php echo(APP_WELCOME_MSG??"&nbsp;"); ?></h1></div>
  530. <br>
  531. <input type="text" id="name" name="name" placeholder="Name">&nbsp;<input type="text" id="place" name="place" placeholder="Place"><br>
  532. <input type="button" id="send" name="send" value="&nbsp;<?php echo(DISPLAY_SUBMIT_BUTTON);?>&nbsp;" title="<?php echo(DISPLAY_SUBMIT_BUTTON);?>" style="position:relative;top:+28px;margin-top:25px;height:50px;background-color:red;border:1px solid black;color:white;font-size:medium;">
  533. <br><br>
  534. <hr style="color:black; margin-top:30px;">
  535. <br>
  536. <?php showHistory(); ?>
  537. <br><br><br>
  538. <div style="font-size:23px;">
  539. <?php if ((APP_SUPPORT_LINK!="") || (APP_GITHUB_BUTTON!="") || (APP_SHOP_LINK!="")):?>
  540. <?php echo(APP_SUPPORT_MSG);?><br><br>
  541. <?php endif;?>
  542. <?php if (APP_SUPPORT_LINK!=""):?>
  543. <?php echo (APP_SUPPORT_LINK);?><br>
  544. <?php endif;?>
  545. <?php if (APP_GITHUB_BUTTON!=""):?>
  546. <?php echo (APP_GITHUB_BUTTON);?><br>
  547. <?php endif;?>
  548. <?php if (APP_SHOP_LINK!=""):?>
  549. <?php echo (APP_SHOP_LINK);?><br>
  550. <?php endif;?>
  551. </div>
  552. <br><br>
  553. <?php if(APP_USE === "BUSINESS"): ?>
  554. <div style="font-size:23px">
  555. <a id="ahome" href="http://actitude.5mode-foss.eu" target="_blank" style="color:black;"><img id="logo-act" src="/ACT_res/ACTlogo.png" style="position:relative;top:-25px;width:48px;margin:5px;">Powered by Actitude</a>
  556. </div>
  557. <?php endif; ?>&nbsp;
  558. </div>
  559. </div>
  560. <input type="hidden" id="CommandLine" name="CommandLine">
  561. <input type="hidden" name="hideSplash" value="<?php echo($hideSplash); ?>">
  562. <input type="hidden" name="hideHCSplash" value="1">
  563. <input type="hidden" name="captcha_count" value="<?php echo($captchacount); ?>">
  564. <input type="hidden" name="last_message" value="<?php echo($lastMessage); ?>">
  565. </form>
  566. <!--
  567. <div class="footer">
  568. <div id="footerCont">&nbsp;</div>
  569. <div id="footer"><span style="background:#FFFFFF;opacity:1.0;margin-right:10px;">&nbsp;&nbsp;A <a href="http://5mode.com">5 Mode</a> project <span class="no-sm">and <a href="http://wysiwyg.systems">WYSIWYG</a> system</span>. Some rights reserved.</span></div>
  570. </div>
  571. -->
  572. <?php if (file_exists(APP_PATH . DIRECTORY_SEPARATOR . "metrics.html")): ?>
  573. <?php include("metrics.html"); ?>
  574. <?php endif; ?>
  575. </body>
  576. </html>