This commit is contained in:
2019-02-06 00:49:12 +03:00
commit 8dbb1bb605
4796 changed files with 506072 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 692 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 420 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -0,0 +1,71 @@
<!--MOODINDEX-->
<HTML><BODY BGCOLOR=#ffffff>
<CENTER>
<FONT FACE="verdana,arial,helvetica" SIZE=1 color=#999999>
&#149;&#149; click for background color &#149;&#149;
</FONT>
<TABLE border=1 bordercolor=#999999 cellpadding=0 cellspacing=0><tr><td valign=center align=center bgcolor=#eaeaea>
<FORM>
<TABLE border=0 bordercolor=#999999 cellpadding=0 cellspacing=0>
<TR valign=middle align=center bgcolor=#eaeaea>
<td><input type=button value=" " onclick="document.bgColor='ffffff'" style="background-color: #ffffff"></td>
<td><input type=button value=" " onclick="document.bgColor='333333'" style="background-color: #333333"></td>
<td><input type=button value=" " onclick="document.bgColor='663300'" style="background-color: #663300"></td>
<td><input type=button value=" " onclick="document.bgColor='ff9900'" style="background-color: #ff9900"></td>
<td><input type=button value=" " onclick="document.bgColor='ffff33'" style="background-color: #ffff33"></td>
<td><input type=button value=" " onclick="document.bgColor='00ff00'" style="background-color: #00ff00"></td>
<td><input type=button value=" " onclick="document.bgColor='006600'" style="background-color: #006600"></td>
<td><input type=button value=" " onclick="document.bgColor='009999'" style="background-color: #009999"></td>
<td><input type=button value=" " onclick="document.bgColor='0066cc'" style="background-color: #0066cc"></td>
<td><input type=button value=" " onclick="document.bgColor='9900cc'" style="background-color: #9900cc"></td>
<td><input type=button value=" " onclick="document.bgColor='ff3399'" style="background-color: #ff3399"></td>
<td><input type=button value=" " onclick="document.bgColor='ff0000'" style="background-color: #ff0000"></td>
</tr><tr>
<td><input type=button value=" " onclick="document.bgColor='cccccc'" style="background-color: #cccccc"></td>
<td><input type=button value=" " onclick="document.bgColor='000000'" style="background-color: #000000"></td>
<td><input type=button value=" " onclick="document.bgColor='cccc99'" style="background-color: #cccc99"></td>
<td><input type=button value=" " onclick="document.bgColor='ffcc99'" style="background-color: #ffcc99"></td>
<td><input type=button value=" " onclick="document.bgColor='ffffcc'" style="background-color: #ffffcc"></td>
<td><input type=button value=" " onclick="document.bgColor='ccffcc'" style="background-color: #ccffcc"></td>
<td><input type=button value=" " onclick="document.bgColor='339933'" style="background-color: #339933"></td>
<td><input type=button value=" " onclick="document.bgColor='99ffff'" style="background-color: #99ffff"></td>
<td><input type=button value=" " onclick="document.bgColor='99ccff'" style="background-color: #99ccff"></td>
<td><input type=button value=" " onclick="document.bgColor='cc99ff'" style="background-color: #cc99ff"></td>
<td><input type=button value=" " onclick="document.bgColor='ff99cc'" style="background-color: #ff99cc"></td>
<td><input type=button value=" " onclick="document.bgColor='ffcccc'" style="background-color: #ffcccc"></td>
</tr></table></td></tr></table></font></center>
<B><A HREF="../">../</A></B><BR>
<TABLE CELLPADDING=2>
<TR VALIGN=MIDDLE><TD>aggravated.gif</TD><TD><IMG SRC="aggravated.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>artistic.gif</TD><TD><IMG SRC="artistic.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>bored.gif</TD><TD><IMG SRC="bored.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>cold.gif</TD><TD><IMG SRC="cold.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>confused.gif</TD><TD><IMG SRC="confused.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>content.gif</TD><TD><IMG SRC="content.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>cranky.gif</TD><TD><IMG SRC="cranky.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>curious.gif</TD><TD><IMG SRC="curious.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>embarrassed.gif</TD><TD><IMG SRC="embarrassed.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>envious.gif</TD><TD><IMG SRC="envious.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>evil.gif</TD><TD><IMG SRC="evil.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>full.gif</TD><TD><IMG SRC="full.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>giggly.gif</TD><TD><IMG SRC="giggly.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>groggy.gif</TD><TD><IMG SRC="groggy.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>happy.gif</TD><TD><IMG SRC="happy.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>hopeful.gif</TD><TD><IMG SRC="hopeful.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>hot.gif</TD><TD><IMG SRC="hot.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>hungry.gif</TD><TD><IMG SRC="hungry.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>hyper.gif</TD><TD><IMG SRC="hyper.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>loved.gif</TD><TD><IMG SRC="loved.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>mellow.gif</TD><TD><IMG SRC="mellow.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>nerdy.gif</TD><TD><IMG SRC="nerdy.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>okay.gif</TD><TD><IMG SRC="okay.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>sad.gif</TD><TD><IMG SRC="sad.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>sick.gif</TD><TD><IMG SRC="sick.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>silly.gif</TD><TD><IMG SRC="silly.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>sleepy.gif</TD><TD><IMG SRC="sleepy.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>stressed.gif</TD><TD><IMG SRC="stressed.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>tired.gif</TD><TD><IMG SRC="tired.gif"></TD></TR>
<TR VALIGN=MIDDLE><TD>worried.gif</TD><TD><IMG SRC="worried.gif"></TD></TR>
</TABLE></BODY></HTML>

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 B

64
images/mood/square/b/prepare.pl Executable file
View File

@@ -0,0 +1,64 @@
#!/usr/bin/perl
#
use Image::Size;
require '/home/lj/cgi-bin/ljlib.pl';
&connect_db();
my $num = shift @ARGV;
if ($num) {
my $sth = $dbh->prepare("SELECT mood, moodid FROM moods");
$sth->execute;
$moodid{$_->{'mood'}} = $_->{'moodid'} while ($_ = $sth->fetchrow_hashref);
$dir = shift @ARGV;
unless ($dir) { die "No directory prefix given!\n"; }
unless ($dir =~ /\/$/) { $dir .= "/"; }
}
opendir (DIR, ".");
@files = readdir DIR;
open (HTML, ">index.html");
print HTML "<HTML><BODY BGCOLOR=#C0C0C0>\n";
print HTML "<TABLE CELLPADDING=2>\n";
foreach my $file (sort @files)
{
next unless ($file =~ /\.gif$/);
my $newfile = $file;
$newfile =~ s/^[bpy]-//g;
if ($file ne $newfile) {
rename $file, $newfile;
$file = $newfile;
}
($w, $h) = imgsize($file);
my $noext = $file;
$noext =~ s/\..+?$//;
my $moodid;
$uri = $dir . $file;
my $quri = $dbh->quote($uri);
print HTML "<TR VALIGN=MIDDLE><TD>$file";
if ($moodid = $moodid{$noext}) {
print HTML " ($moodid)";
if ($num) {
$dbh->do("REPLACE INTO moodthemedata (moodthemeid, moodid, picurl, width, height) VALUES ($num, $moodid, $quri, $w, $h)");
print "REPLACE INTO moodthemedata (moodthemeid, moodid, picurl, width, height) VALUES ($num, , $quri, $w, $h);\n";
}
} else {
if ($num) {
print "REPLACE INTO moodthemedata (moodthemeid, moodid, picurl, width, height) VALUES ($num, , $quri, $w, $h);\n";
}
}
print HTML "</TD>";
foreach $col ("#FFFFFF", "#000000", "#C0C0C0", "#FFFF00", "#FF0000") {
print HTML "<TD BGCOLOR=$col><IMG SRC=\"$file\" WIDTH=$w HEIGHT=$h></TD>";
}
print HTML "</TR>\n";
}
print HTML "</TABLE></BODY></HTML>\n";

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 287 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 514 B