2012-02-12-12-50 2011-12-30-18-30 2010-01-10-11-11 2010-01-09-16-26 2009-04-06-10-57 2008-09-22-23-38 2008-08-11-20-27 2008-02-17-06-27 2008-01-01-22-25 2007-11-23-19-21 2007-11-23-19-02 2007-11-23-18-58 2007-05-08-17-56 2007-05-06-02-39 2007-05-06-02-38 2007-03-17-01-38 2007-03-13-20-32 2007-03-12-20-15 2007-03-12-00-22 2007-03-11-20-32 2007-02-25-11-55 2007-02-24-12-17 2007-02-23-14-20 2007-01-31-16-31 2007-01-31-16-22 2006-11-05-01-13 2006-11-02-22-47 2006-05-06-18-02 2006-04-19-16-10 2006-03-30-19-07 2006-02-22-14-04 2005-11-24-12-06 2005-11-19-18-50 2005-11-19-18-28 2005-11-19-18-27 2005-11-19-18-26 2005-11-19-18-25 2005-11-19-18-24 2005-11-19-02-24 2005-11-05-20-53 2005-11-02-23-45 2005-11-01-18-08 2005-11-01-01-07 2005-10-30-21-07 2005-10-30-21-03 2005-10-30-20-57 2005-10-29-20-59 2005-10-29-01-06 2005-10-29-00-41 2005-10-28-23-44 2005-10-28-22-43 2005-10-28-22-32 2005-10-27-21-51 2005-10-04-15-46 2005-10-01-07-38 2005-09-27-21-00 2005-09-27-16-26 2005-09-27-16-19 2005-09-27-16-14 2005-09-03-09-23 2005-07-26-15-36 2005-07-26-14-29 2005-07-25-13-21 2005-06-27-22-17 2005-06-24-17-15 2005-06-09-14-55 2005-06-08-22-46 2005-05-25-00-46 2004-12-23-14-12 2004-12-10-14-03 2004-11-24-06-49 2004-11-24-05-27 2004-11-15-22-23 2004-10-19-05-04 2004-10-16-00-09 2004-10-16-00-08 2004-10-16-00-01 2004-10-15-06-17 2004-10-14-07-06 2004-10-08-02-24 2004-10-08-02-14 2004-10-06-15-40 2004-09-06-10-53 2004-09-06-10-43 2004-09-06-01-13 2004-09-06-01-08 2004-09-06-01-06 2004-09-06-01-05 2004-09-06-01-04 scrot -s -b -t 15 -e 'scp -pC *_grab*png hina.fr:/var/www/shout \
&& echo http://hina.fr/shout/$f' '%Y-%m-%d-%H-%M_grab.png' \
&& rm -f *_grab*png
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
<?php
$h = opendir(".");
while ($file = readdir($h)) {
if (substr($file,-15,15) == "_grab-thumb.png") {
$shoots[] = substr($file,0,-15);
}
}
rsort($shoots);
closedir($h);
$nb = count($shoots);
?>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Shoots</title>
<style type="text/css"><!--
body {
background-color : #000000;
color : #999999;
}
a {
text-decoration : none;
font-family : fixed, monospace;
font-size : 9pt;
color : #66aaff;
padding : 3px 12px 3px 12px;
-moz-border-radius : 1em;
border : 1px solid #000000;
}
a:hover {
background-color : #232323;
border : 1px solid #999966;
color : #FFFFFF;
font-weight : bold;
}
a.on {
border : 1px solid #666633;
}
div, pre {
margin : 10px;
padding : 10px;
border : 1px solid #999966;
-moz-border-radius : 1em;
}
--></style>
</head>
<body>
<div align="center">
<a href="http://hina.fr">hina</a>
<a href="index.php">shoots</a>
</div>
<?
if (isset($_GET['shoot'])) {
echo '<div align="center"><img src="'.$_GET['shoot'].'_grab.png"';
echo ' border="1" alt="'.$_GET['shoot'].'" />';
echo '<div>'.$_GET['shoot'].'</div></div>';
}
?>
<div>
<?
if (isset($_GET['s'])) {
$s = $_GET['s'];
} else {
$s = 0;
}
for ($i=$s;$i<$s+5;$i++) {
$sh = $shoots[$i];
echo '<a href="index.php?';
if (isset($_GET['s'])) {
echo 's='.$_GET['s'].'&';
}
echo 'shoot='.urlencode($sh).'"><img src="'.$sh.'_grab-thumb.png"';
echo ' border="1" alt="'.$sh.'" /></a>';
}
?>
</div>
<?
for ($i=0;$i<$nb;$i++) {
echo '<a href="index.php?s='.$i.'"';
if ($i >= $s and $i < $s+5) { echo ' class="on"'; }
echo '>'.$shoots[$i].'</a> ';
}
?>
<pre>scrot -s -b -t 15 -e 'scp -pC *_grab*png hina.fr:/var/www/shout \
&& echo http://hina.fr/shout/$f' '%Y-%m-%d-%H-%M_grab.png' \
&& rm -f *_grab*png</pre>
<pre><?
ini_set('highlight.comment','#666666');
ini_set('highlight.default','#decebe');
ini_set('highlight.html', '#6688AA');
ini_set('highlight.keyword','#66AA88');
ini_set('highlight.string', '#AA8866');
highlight_file(__FILE__);
?></pre>
</body>
</html>