Skip to content

Commit

Permalink
20190311.2
Browse files Browse the repository at this point in the history
  • Loading branch information
phc authored and phc committed Mar 11, 2019
1 parent 274d1b3 commit aaf1ad4
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 37 deletions.
22 changes: 21 additions & 1 deletion default.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ nav {
height: 9em;
}

#login {
bottom: 3em;
}

.login{
height: 2em;
margin: 4px auto;
}

#post {
position: absolute;
top: 0.3em;
Expand Down Expand Up @@ -58,6 +67,10 @@ nav {
left: 0;
}

#close {
margin: 4px auto;
}

#by {
position: absolute;
right: 0;
Expand Down Expand Up @@ -173,11 +186,12 @@ select {
}

ul li {
font-size: small;
font-size: smaller;
font-weight: bold;
}

ul li ul li {
font-size: small;
font-weight: normal;
}

Expand Down Expand Up @@ -248,6 +262,12 @@ a:link, a:visited {
}

.emo {
font-family: monospace;
font-size: medium;
white-space: pre-nowrap;
}

.emo_big {
font-family: monospace;
font-size: large;
white-space: pre-nowrap;
Expand Down
10 changes: 5 additions & 5 deletions emo.dat
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
:(|😞
:)|😊
;)|😉
:}|💋
:(|😞
:/|😕
:#|😠
:*|😗
:+|👍
:-|👎
:3|😍
:5|👊
:8|😎
:a|🙏
:b|🥊
:c|😢
:d|😃
:D|🤣
:g|🤗
:d|🤣
:g|😃
:h|💗
:H|🤗
:L|💪
:o|😲
:p|😛
:u|👊
:v|😠
:V|👿
:x|🤩
Expand Down
47 changes: 16 additions & 31 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,8 @@ function go($tag)
while (!feof($emo_fh)) {
$emo_ln = fgets($emo_fh);
$emo_ln = trim($emo_ln);
$emo_ln = explode("|", $emo_ln);
$emo_la[] = $emo_ln;
}

fclose($emo_fh);

foreach ($emo_la as $item) {
$emo_ln = explode("|", $item);

if (stripos($txt, $emo_ln[0]) !== false) {
$txt = trim(
Expand All @@ -749,9 +744,10 @@ function go($tag)
)
);
}

}

unset($item);
fclose($emo_fh);
}
}

Expand Down Expand Up @@ -1014,7 +1010,7 @@ function go($tag)

/**
***********************************************************************
* Chat Log *
* Chatlog *
***********************************************************************
*/

Expand All @@ -1026,7 +1022,7 @@ function go($tag)
" " . $lc_str['text'] . " <input " .
"id=\"txta\" size=\"4\" value=\"$char\" disabled /> " .

//** Emoji auto select hover menu
//** Emoji hover menu
"<span class=\"emo\">&#x1F60E;</span> " .
$lc_str['emo'] . "\n" .
" <div id=\"mo_list\">\n";
Expand All @@ -1036,19 +1032,13 @@ function go($tag)
while (!feof($emo_fh)) {
$emo_ln = fgets($emo_fh);
$emo_ln = trim($emo_ln);
$emo_ln = explode("|", $emo_ln);
$emo_la[] = $emo_ln;
}

fclose($emo_fh);

foreach ($emo_la as $item) {

if ($item !== "") {
$emo_ln = explode("|", $item);
$emo_id = str_replace("&#x", "", $emo_ln[1]);
$emo_id = str_replace(";", "", $emo_id);
$emo_id = "emo_$emo_id";
$emo_id = str_replace("&#x", "", $emo_ln[1]);
$emo_id = str_replace(";", "", $emo_id);
$emo_id = "emo_$emo_id";

if ($emo_ln[0] !== "") {
echo " <input type=\"text\" " .
"id=\"$emo_id\" class=\"emo_id\" " .
"value=\"$emo_ln[1]\" " .
Expand All @@ -1057,7 +1047,7 @@ function go($tag)
}
}

unset($item);
fclose($emo_fh);

echo " </div>\n" .
" </div>\n" .
Expand Down Expand Up @@ -1232,28 +1222,23 @@ function go($tag)
if ($emo === 1) {
echo " <h2>" . $lc_str['emo'] . "</h2>\n" .
" <p>" . $lc_str['emo_txt'] . "</p>\n" .
" <p class=\"emo\">";
" <p class=\"emo_big\">";

$emo_fh = fopen($emo_dat, 'r');

while (!feof($emo_fh)) {
$emo_ln = fgets($emo_fh);
$emo_ln = trim($emo_ln);
$emo_ln = explode("|", $emo_ln);
$emo_la[] = $emo_ln;
}

fclose($emo_fh);

foreach ($emo_la as $item) {

if ($item !== "") {
$emo_ln = explode("|", $item);
if ($emo_ln[1] !== "") {
echo "<span class=\"glue\">" . $emo_ln[0] .
"&nbsp;" . $emo_ln[1] . "</span> ";
}
}

unset($item);
fclose($emo_fh);

echo "</p>\n";
}
Expand Down Expand Up @@ -1667,7 +1652,7 @@ function go($tag)
" <p>" . $lc_str['js_txt'] . "</p>\n" .
" </noscript>\n" .
" </article>\n" .
" <nav class=\"block\">\n" .
" <nav class=\"block login\">\n" .
" <div>\n" .

//** Name
Expand Down

0 comments on commit aaf1ad4

Please sign in to comment.