home.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558
  1. <?php
  2. /**
  3. * Copyright 2021, 2024 5 Mode
  4. *
  5. * This file is part of Avatar Free.
  6. *
  7. * Avatar Free 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. * Avatar Free 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 Avatar Free. If not, see <https://www.gnu.org/licenses/>.
  19. *
  20. * home.php
  21. *
  22. * Home of Avatar Free.
  23. *
  24. * @author Daniele Bonini <my25mb@aol.com>
  25. * @copyrights (c) 2016, 2024, 5 Mode
  26. */
  27. // CONSTANTS AND VARIABLE DECLARATION
  28. $CURRENT_VIEW = PUBLIC_VIEW;
  29. $CUDOZ = 1;
  30. $AVATAR_PATH = APP_DATA_PATH . DIRECTORY_SEPARATOR . AVATAR_NAME;
  31. $CV_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "cv";
  32. $FRIENDS_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "friends";
  33. $BLOG_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "blog";
  34. $GALLERY_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "gallery";
  35. $TRES1_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "tres1";
  36. $TRES2_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "tres2";
  37. $TRES3_PATH = $AVATAR_PATH . DIRECTORY_SEPARATOR . "tres3";
  38. $profilePic = APP_DEF_PROFILE_PIC;
  39. // PAGE PARAMETERS
  40. $password = filter_input(INPUT_POST, "Password");
  41. if ($password !== PHP_STR) {
  42. $hash = hash("sha256", $password . APP_SALT, false);
  43. if ($hash !== APP_HASH) {
  44. $password=PHP_STR;
  45. }
  46. }
  47. if ($password !== PHP_STR) {
  48. $CURRENT_VIEW = ADMIN_VIEW;
  49. } else {
  50. $CURRENT_VIEW = PUBLIC_VIEW;
  51. }
  52. function uploadNewRes() {
  53. global $AVATAR_PATH;
  54. global $CV_PATH;
  55. global $FRIENDS_PATH;
  56. global $BLOG_PATH;
  57. global $GALLERY_PATH;
  58. global $TRES1_PATH;
  59. global $TRES2_PATH;
  60. global $TRES3_PATH;
  61. //echo_ifdebug(true, "AVATAR_PATH#1=");
  62. //echo_ifdebug(true, $AVATAR_PATH);
  63. //if (!empty($_FILES['files'])) {
  64. if (!empty($_FILES['filesdd']['tmp_name'][0])) {
  65. //no file uploaded
  66. //$uploads = (array)fixMultipleFileUpload($_FILES['files']);
  67. //if ($uploads[0]['error'] === UPLOAD_ERR_NO_FILE) {
  68. $uploads = (array)fixMultipleFileUpload($_FILES['filesdd']);
  69. //}
  70. //if ($uploads[0]['error'] === PHP_UPLOAD_ERR_NO_FILE) {
  71. // echo("WARNING: No file uploaded.");
  72. // return;
  73. //}
  74. $google = "abcdefghijklmnopqrstuvwxyz";
  75. if (count($uploads)>strlen($google)) {
  76. echo("WARNING: Too many uploaded files.");
  77. return;
  78. }
  79. $i=1;
  80. foreach($uploads as &$upload) {
  81. switch ($upload['error']) {
  82. case PHP_UPLOAD_ERR_OK:
  83. break;
  84. case PHP_UPLOAD_ERR_NO_FILE:
  85. echo("WARNING: One or more uploaded files are missing.");
  86. return;
  87. case PHP_UPLOAD_ERR_INI_SIZE:
  88. echo("WARNING: File exceeded INI size limit.");
  89. return;
  90. case PHP_UPLOAD_ERR_FORM_SIZE:
  91. echo("WARNING: File exceeded form size limit.");
  92. return;
  93. case PHP_UPLOAD_ERR_PARTIAL:
  94. echo("WARNING: File only partially uploaded.");
  95. return;
  96. case PHP_UPLOAD_ERR_NO_TMP_DIR:
  97. echo("WARNING: TMP dir doesn't exist.");
  98. return;
  99. case PHP_UPLOAD_ERR_CANT_WRITE:
  100. echo("WARNING: Failed to write to the disk.");
  101. return;
  102. case PHP_UPLOAD_ERR_EXTENSION:
  103. echo("WARNING: A PHP extension stopped the file upload.");
  104. return;
  105. default:
  106. echo("WARNING: Unexpected error happened.");
  107. return;
  108. }
  109. if (!is_uploaded_file($upload['tmp_name'])) {
  110. echo("WARNING: One or more file have not been uploaded.");
  111. return;
  112. }
  113. // name
  114. $name = (string)substr((string)filter_var($upload['name']), 0, 255);
  115. if ($name == PHP_STR) {
  116. echo("WARNING: Invalid file name: " . $name);
  117. return;
  118. }
  119. $upload['name'] = $name;
  120. // fileType
  121. $fileType = substr((string)filter_var($upload['type']), 0, 30);
  122. $upload['type'] = $fileType;
  123. // tmp_name
  124. $tmp_name = substr((string)filter_var($upload['tmp_name']), 0, 300);
  125. if ($tmp_name == PHP_STR || !file_exists($tmp_name)) {
  126. echo("WARNING: Invalid file temp path: " . $tmp_name);
  127. return;
  128. }
  129. $upload['tmp_name'] = $tmp_name;
  130. //size
  131. $size = substr((string)filter_var($upload['size'], FILTER_SANITIZE_NUMBER_INT), 0, 12);
  132. if ($size == "") {
  133. echo("WARNING: Invalid file size.");
  134. return;
  135. }
  136. $upload["size"] = $size;
  137. $tmpFullPath = $upload["tmp_name"];
  138. $originalFilename = pathinfo($name, PATHINFO_FILENAME);
  139. $originalFileExt = pathinfo($name, PATHINFO_EXTENSION);
  140. $fileExt = strtolower(pathinfo($name, PATHINFO_EXTENSION));
  141. $date = date("Ymd-His");
  142. $rnd = mt_rand(1000000000, 9999999999);
  143. if ($originalFileExt!==PHP_STR) {
  144. $destFileName = $date . "-" . $rnd . substr($google, $i-1, 1) . "|" . str_replace(" ", "_", $originalFilename) . ".$fileExt";
  145. } else {
  146. return;
  147. }
  148. //$CV_PATH = APP_DATA_PATH . DIRECTORY_SEPARATOR . "cv";
  149. //$FRIENDS_PATH = APP_DATA_PATH . DIRECTORY_SEPARATOR . "friends";
  150. //$BLOG_PATH = APP_DATA_PATH . DIRECTORY_SEPARATOR . "blog";
  151. //$GALLERY_PATH = APP_DATA_PATH . DIRECTORY_SEPARATOR . "gallery";
  152. switch ($fileExt) {
  153. case "doc":
  154. case "docx":
  155. case "pdf":
  156. $destPath = $CV_PATH;
  157. break;
  158. case "txt":
  159. $destPath = $BLOG_PATH;
  160. break;
  161. case "png":
  162. case "jpg":
  163. case "jpeg":
  164. case "gif":
  165. case "webp":
  166. $destPath = $GALLERY_PATH;
  167. break;
  168. default:
  169. $destPath = $TRES1_PATH;
  170. break;
  171. }
  172. $destFullPath = $destPath . DIRECTORY_SEPARATOR . $destFileName;
  173. if (file_exists($destFullPath)) {
  174. echo("WARNING: destination already exists");
  175. return;
  176. }
  177. //echo_ifdebug(true, "AVATAR_PATH#2=");
  178. //echo_ifdebug(true, $AVATAR_PATH);
  179. //echo_ifdebug(true, "is_readable(AVATAR_PATH)=");
  180. //echo_ifdebug(true, is_readable($AVATAR_PATH));
  181. if (!is_readable($AVATAR_PATH)) {
  182. mkdir($AVATAR_PATH, 0777);
  183. }
  184. if (!is_readable($destPath)) {
  185. mkdir($destPath, 0777);
  186. }
  187. $pattern = $destPath . DIRECTORY_SEPARATOR . "*" . "|" . str_replace(" ", "_", $originalFilename) . ".$fileExt";
  188. $aExistingPaths = glob($pattern);
  189. if (!empty($aExistingPaths)) {
  190. continue;
  191. }
  192. copy($tmpFullPath, $destFullPath);
  193. // Cleaning up..
  194. // Delete the tmp file..
  195. unlink($tmpFullPath);
  196. $i++;
  197. }
  198. }
  199. }
  200. function writeFriends() {
  201. global $FRIENDS_PATH;
  202. $destPath = $FRIENDS_PATH;
  203. $s = filter_input(INPUT_POST, "f", FILTER_SANITIZE_STRING);
  204. if ($s != PHP_STR) {
  205. //echo($s);
  206. //exit(0);
  207. $friends=explode("|", $s);
  208. if (!is_readable($destPath)) {
  209. mkdir($destPath, 0777);
  210. }
  211. foreach($friends as $friend) {
  212. $a = explode("://",$friend);
  213. $s = $a[1];
  214. $a = explode("/", $s);
  215. $friendName = $a[0] . ".txt";
  216. file_put_contents($destPath . DIRECTORY_SEPARATOR . $friendName, $friend);
  217. }
  218. }
  219. }
  220. function grabProfileImage() {
  221. global $GALLERY_PATH;
  222. $pattern = $GALLERY_PATH . DIRECTORY_SEPARATOR . "*";
  223. $aImagePaths = glob($pattern);
  224. if (isset($aImagePaths[0])) {
  225. $retval = basename($aImagePaths[0]);
  226. } else {
  227. $retval = null;
  228. }
  229. return $retval;
  230. }
  231. function startApp() {
  232. global $CURRENT_VIEW;
  233. global $profilePic;
  234. if ($CURRENT_VIEW == ADMIN_VIEW) {
  235. uploadNewRes();
  236. writeFriends();
  237. }
  238. $profilePic = grabProfileImage() ?? APP_DEF_PROFILE_PIC;
  239. //echo("profile pic=" . $profilePic);
  240. }
  241. startApp();
  242. ?>
  243. <!DOCTYPE html>
  244. <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
  245. <head>
  246. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  247. <!--<?PHP echo(APP_LICENSE);?>-->
  248. <title>Avatar Free: everyone its social presence.</title>
  249. <link rel="shortcut icon" href="/favicon.ico" />
  250. <meta name="description" content="Welcome to Avatar Free! Let everyone have its social presence."/>
  251. <meta name="keywords" content="Avatar Free,social,presence,avatarfree.org,on,premise,solution"/>
  252. <meta name="robots" content="index,follow"/>
  253. <meta name="author" content="5 Mode"/>
  254. <script src="/js/jquery-3.6.0.min.js" type="text/javascript"></script>
  255. <script src="/js/sha.js" type="text/javascript"></script>
  256. <script src="/js/common.js" type="text/javascript"></script>
  257. <link href="/css/style.css?r=<?PHP echo(time());?>" type="text/css" rel="stylesheet">
  258. <link href="/css/bootstrap.min.css" type="text/css" rel="stylesheet">
  259. </head>
  260. <?PHP if ($CURRENT_VIEW == ADMIN_VIEW): ?>
  261. <body style="background:url('/res/bg1.jpg') no-repeat; background-size: cover; background-attachment: fixed; background-position: center;">
  262. <div style="width:100%;height:fit-content;position:fixed;background:yellow;color:darkorange;text-align:center;cursor:pointer;" onclick="showHowTo();"><br>How-to: Manage your avatars in Avatar Free<br><br></div>
  263. <form id="frmUpload" role="form" method="post" action="/<?PHP echo(AVATAR_NAME);?>" target="_self" enctype="multipart/form-data">
  264. <div class="dragover" style="width:100%;height:100%;border:0px solid red;" dropzone="copy">
  265. <img id="picavatar" src="/img?av=<?PHP echo(AVATAR_NAME);?>&pic=<?PHP echo($profilePic);?>" align="middle" style="position:absolute;width:255px;height:255px;border-radius: 90%; display:none;">
  266. <input type="hidden" id="a" name="a">
  267. <input type="hidden" id="f" name="f">
  268. </div>
  269. <input type="hidden" id="Password" name="Password" value="<?PHP echo($password);?>">
  270. </form>
  271. <div id="footerCont">&nbsp;</div>
  272. <div id="footer"><span style="background:#FFFFFF; opacity:0.7;">&nbsp;&nbsp;<a class="aaa" href="dd.html">Disclaimer</a>.&nbsp;&nbsp;A <a href="http://5mode.com" class="aaa">5 Mode</a> project and <a href="http://demo.5mode.com" class="aaa">WYSIWYG</a> system. Some rights reserved.</span></div>
  273. <?PHP else: ?>
  274. <body style="background:#dadada no-repeat; background-size: cover; background-attachment: fixed; background-position: center;">
  275. <div style="width:100%;height:fit-content;position:fixed;background:yellow;color:darkorange;text-align:center;cursor:pointer;z-index:99999;" onclick="showHowTo();"><br>How-to: Manage your avatars in Avatar Free<br><br></div>
  276. <form id="frmUpload" role="form" method="post" action="/<?PHP echo(AVATAR_NAME);?>" target="_self" enctype="multipart/form-data">
  277. <div id="title" style="position:relative;top:80px;left:50px;width:100%;float:left;font-size:25px;font-family:'Press Start 2P';border:0px solid blue;">
  278. <div id="cudoz" style="width:255px;height:255px;float:left;border:0px solid yellow;">
  279. <img id="picavatar" src="/img?av=<?PHP echo(AVATAR_NAME);?>&pic=<?PHP echo($profilePic);?>" align="middle" style="width:255px;height:255px;border-radius: 90%;">
  280. </div>
  281. <div id="cudoz" style="width:250px;height:255px;padding-top:122px;float:left;border:0px solid yellow;vertical-align:middle;">
  282. &nbsp;<?PHP echo(strtoupper(AVATAR_NAME));?>&nbsp;&nbsp;&nbsp;
  283. </div>
  284. <div id="cudoz" style="width:250px;height:255px;padding-top:116px;float:left;border:0px solid green;vertical-align:middle;">
  285. <?PHP for ($i=1;$i<=$CUDOZ;$i++): ?>
  286. <img id="cudozentry<?PHP echo($i);?>" src="/res/chicca_it.png" style="float:left;width:46px">
  287. <?PHP endfor; ?>
  288. <?PHP for ($i=$CUDOZ+1;$i<=5;$i++): ?>
  289. <img id="cudozentry<?PHP echo($i);?>" src="/res/chiccadis.png" style="float:left;width:46px">
  290. <?PHP endfor; ?>
  291. </div>
  292. <div id="cvs" style="float:right;border:3px solid darkgray;border-radius:4px;padding:4px;background:#dadada;font-size:20px;font-family:'Press Start 2P';">
  293. <div style="float:left;width:47px;margin-top:20px;margin-left:7px;">CV</div>
  294. <?PHP
  295. $pattern = $CV_PATH . DIRECTORY_SEPARATOR . "*";
  296. $aFilePaths = glob($pattern);
  297. if (empty($aFilePaths)): ?>
  298. <img src="/res/wordicondis.png" style="float:left;width:64px">&nbsp;&nbsp;<img src="/res/pdficondis.png" style="float:left;width:64px">
  299. <?PHP else: ?>
  300. <?PHP
  301. $CUDOZ++;
  302. $pattern = $CV_PATH . DIRECTORY_SEPARATOR . "*.doc";
  303. $aFilePaths = glob($pattern);
  304. if (empty($aFilePaths)): ?>
  305. <img src="/res/wordicondis.png" style="float:left;width:64px">&nbsp;&nbsp;
  306. <?PHP else: ?>
  307. <a href="/doc?av=<?PHP echo(AVATAR_NAME);?>&re=cv&doc=<?PHP echo(basename($aFilePaths[0]));?>"><img src="/res/wordicon.png" style="float:left;width:64px"></a>&nbsp;&nbsp;
  308. <?PHP endif; ?>
  309. <?PHP
  310. $pattern = $CV_PATH . DIRECTORY_SEPARATOR . "*.pdf";
  311. $aFilePaths = glob($pattern);
  312. if (empty($aFilePaths)): ?>
  313. <img src="/res/pdficondis.png" style="float:left;width:64px">
  314. <?PHP else: ?>
  315. <a href="/doc?av=<?PHP echo(AVATAR_NAME);?>&re=cv&doc=<?PHP echo(basename($aFilePaths[0]));?>"><img src="/res/pdficon.png" style="float:left;width:64px"></a>
  316. <?PHP endif; ?>
  317. <?PHP endif; ?>
  318. </div>
  319. </div>
  320. <br>
  321. <div id="blog" style="height:fit-content;float:left;margin:6%;margin-top:130px;margin-bottom:5px;width:90%;font-size:15px;font-family:'Press Start 2P';color:#000000;">
  322. <?PHP
  323. $pattern = $BLOG_PATH . DIRECTORY_SEPARATOR . "*.txt";
  324. $aFilePaths = glob($pattern);
  325. if (empty($aFilePaths)): ?>
  326. <div class="blog-content" style="width:100%;float:left;border:3px solid darkgray;border-radius:4px;color:#000000;">
  327. <div class="blog-entry" style="width:100%;margin-bottom:0px;min-height:120px;background:#FFFFFF;border:1px solid black;padding:30px;">
  328. Hello from 5 Mode,<br>
  329. This is just an example of blog entry.
  330. </div>
  331. </div>
  332. <?PHP else: ?>
  333. <?PHP
  334. $CUDOZ++;
  335. $iEntry = 1;
  336. foreach ($aFilePaths as $filePath) {
  337. $s=file_get_contents($filePath);
  338. if ($iEntry === count($aFilePaths)) {
  339. $marginbottom = "0px";
  340. } else {
  341. $marginbottom = "5px";
  342. }
  343. ?>
  344. <div class="blog-content" style="margin-bottom:<?PHP echo($marginbottom);?>;width:100%;float:left;border:3px solid darkgray;border-radius:4px;color:#000000;">
  345. <div class="blog-entry" style="min-height:120px;background:#FFFFFF;border:1px solid black;padding:30px;">
  346. <?PHP echo(HTMLencode($s, true));?>
  347. </div>
  348. </div>
  349. <?PHP
  350. $iEntry++;
  351. }?>
  352. <?PHP endif; ?>
  353. </div>
  354. <div id="gallery" style="float:left;margin:6%;margin-top:0px;margin-bottom:5px;width:90%;font-size:15px;font-family:Arial,Sans,Verdana;color:#000000;background:#C2DBF2;">
  355. <div class="gallery-content" style="width:100%;float:left;border:3px solid darkgray;border-radius:4px;color:#000000;">
  356. <?PHP
  357. $pattern = $GALLERY_PATH . DIRECTORY_SEPARATOR . "*";
  358. $aFilePaths = glob($pattern);
  359. if (empty($aFilePaths)): ?>
  360. <div class="image-entry" style="height:fit-content;min-height:120px;float:left;width:fit-content;border:0px solid green;padding:10px;text-align:center;">
  361. <div style="width:100%;border:0px solid black;"><img src="/res/imgicon.png" align="center" style="width:64px;border:1px solid gray;"></div>
  362. <div style="margin-top:10px;">Sample</div>
  363. </div>
  364. <?PHP else: ?>
  365. <?PHP
  366. $CUDOZ++;
  367. $iEntry = 1;
  368. foreach ($aFilePaths as $filePath) {
  369. $orifilename = basename($filePath);
  370. $filename = explode("|",basename($filePath))[1];
  371. if ($iEntry === count($aFilePaths)) {
  372. $marginbottom = "0px";
  373. } else {
  374. $marginbottom = "5px";
  375. }
  376. ?>
  377. <div class="image-entry" style="height:fit-content;min-height:120px;float:left;width:fit-content;border:0px solid green;padding:10px;text-align:center;">
  378. <a href="/img?av=<?PHP echo(AVATAR_NAME);?>&pic=<?PHP echo($orifilename);?>">
  379. <div style="width:100%;border:0px solid black;"><img src="/res/imgicon.png" align="center" style="width:64px;border:1px solid gray;"></div>
  380. <div style="margin-top:10px;"><?PHP echo($filename);?> </div>
  381. </a>
  382. </div>
  383. <?PHP
  384. $iEntry++;
  385. }?>
  386. <?PHP endif; ?>
  387. </div>
  388. </div>
  389. <div id="friends" style="float:left;margin:6%;margin-top:50px;width:90%;font-size:15px;font-family:Arial,Sans,Verdana;color:#000000;background:#dadada">
  390. <div class="friends-content" style="width:100%;float:left;border:3px solid transparent;border-radius:4px;color:#000000;padding-top:10px;text-align:center;">
  391. <div style="font-family:'Press Start 2P';width:fit-content;margin:auto;color:#245269;">My Network:<br><br>
  392. <?PHP
  393. $pattern = $FRIENDS_PATH . DIRECTORY_SEPARATOR . "*.txt";
  394. $aFilePaths = glob($pattern);
  395. if (empty($aFilePaths)): ?>
  396. <div class="friend-entry" style="height:fit-content;min-height:120px;float:left;width:fit-content;border:0px solid green;padding:10px;text-align:center;">
  397. <a href="http://5mode.com">
  398. <div style="width:100%;border:0px solid black;"><img src="/res/pic1.png" align="center" style="width:64px;border:0px solid gray;"></div>
  399. <div style="margin-top:10px;">Sample</div>
  400. </a>
  401. </div>
  402. <?PHP else: ?>
  403. <?PHP
  404. $CUDOZ++;
  405. $iEntry = 1;
  406. foreach ($aFilePaths as $filePath) {
  407. $orifilename = basename($filePath);
  408. $link=file_get_contents($filePath);
  409. $filename = pathinfo($filePath, PATHINFO_FILENAME);
  410. if ($iEntry === count($aFilePaths)) {
  411. $marginbottom = "0px";
  412. } else {
  413. $marginbottom = "5px";
  414. }
  415. ?>
  416. <div class="friend-entry" style="height:fit-content;min-height:120px;float:left;width:fit-content;border:0px solid green;padding:10px;text-align:center;">
  417. <a href="<?PHP echo($link);?>">
  418. <div style="width:100%;border:0px solid black;"><img src="/res/pic1.png" align="center" style="width:64px;border:0px solid gray;"></div>
  419. <div style="margin-top:10px;"><?PHP echo($filename);?> </div>
  420. </a>
  421. </div>
  422. <?PHP
  423. $iEntry++;
  424. }?>
  425. <?PHP endif; ?>
  426. </div>
  427. </div>
  428. </div>
  429. <div id="passworddisplay" style="float:left;position:fixed;top:680px;left:50px;width:255px;height:120px;background:darkgray;text-align:left;white-space:nowrap; font-family:'Bungee Hairline'; color:#d4b0dc; font-weight:900;z-index:99999;">
  430. <br>
  431. &nbsp;&nbsp;<input type="password" id="Password" name="Password" placeholder="password" style="font-size:18px; background:transparent; width: 60%; border-radius:3px; font-weight:900;" value="<?php echo($password);?>" autocomplete="off">&nbsp;<input type="submit" value="Go" style="text-align:left;width:25%;color:#000000;"><br>
  432. &nbsp;&nbsp;<input type="text" id="Salt" placeholder="salt" style="position:relative; top:+5px; font-size:18px; background:transparent; width: 90%; border-radius:3px; font-weight:900;" autocomplete="off"><br>
  433. <div style="text-align:center;">
  434. <a href="#" onclick="showEncodedPassword();" style="position:relative; left:-2px; top:+5px; font-size:18px; font-weight:900; color:#000000;">Hash Me!</a>
  435. </div>
  436. </div>
  437. </form>
  438. <div id="footerCont">&nbsp;</div>
  439. <div id="footer"><span style="background:#FFFFFF; opacity:0.7;">&nbsp;&nbsp;<a class="aaa" href="dd.html">Disclaimer</a>.&nbsp;&nbsp;A <a href="http://5mode.com" class="aaa">5 Mode</a> project and <a href="http://demo.5mode.com" class="aaa">WYSIWYG</a> system. Some rights reserved.</span></div>
  440. <?PHP endif; ?>
  441. <script src="/js/home-js.php?hl=<?PHP echo($lang);?>&av=<?PHP echo(AVATAR_NAME);?>&cv=<?PHP echo($CURRENT_VIEW);?>&cu=<?PHP echo($CUDOZ);?>" type="text/javascript"></script>
  442. <?php if (file_exists(APP_PATH . DIRECTORY_SEPARATOR . "metrics.html")): ?>
  443. <?php include("../../Public/metrics.html"); ?>
  444. <?php endif; ?>
  445. </body>
  446. </html>