2021-09-19 21:12:06 +00:00
< ? php function show_dir ( $dir ){
$scan = scandir ( $dir );
echo " \t \t \t <ul> \n " ;
foreach ( $scan as $fr ){
2021-12-18 20:59:41 +00:00
if ( is_dir ( " $dir / $file " ) && ! in_array ( $fr , array ( " . " , " .. " , " index.html " ))){
echo " \t \t \t \t <li><a href= \" $dir / $fr\ " > $fr </ a ></ li > \n " ;
2021-09-19 21:12:06 +00:00
}
}
echo " \t \t \t </ul> \n " ;
} ?>
<! DOCTYPE html >
< html dir = " ltr " lang = " en " >
< head >
< title > Luqaska ' s S ** te </ title >
< meta name = " viewport " content = " width=device-width,initial-scale=1 " >
< style >
@ import url ( " https://fonts.googleapis.com/css2?family=Fira+Mono:wght@400;500;700&display=swap " );
body {
font - family : " Fira Mono " , monospace ;
padding : 0 10 % ; margin : 0 0 2 em 0 ;
background - image : url ( " data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8' standalone='no'%3F%3E%3Csvg xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:cc='http://creativecommons.org/ns%23' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns:svg='http://www.w3.org/2000/svg' xmlns='http://www.w3.org/2000/svg' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' width='30.0px' height='30.0px' viewBox='0 0 30.0 30.0' version='1.1' id='SVGRoot' sodipodi:docname='tilde.svg' inkscape:version='1.0.1 (3bc2e813f5, 2020-09-07)'%3E%3Cdefs id='defs1414' /%3E%3Csodipodi:namedview id='base' pagecolor='%23ffffff' bordercolor='%23666666' borderopacity='1.0' inkscape:pageopacity='0.0' inkscape:pageshadow='2' inkscape:zoom='7.9195959' inkscape:cx='17.485262' inkscape:cy='25.213873' inkscape:document-units='px' inkscape:current-layer='layer1' inkscape:document-rotation='0' showgrid='true' inkscape:window-width='1343' inkscape:window-height='1030' inkscape:window-x='96' inkscape:window-y='0' inkscape:window-maximized='0'%3E%3Cinkscape:grid type='xygrid' id='grid1984' /%3E%3C/sodipodi:namedview%3E%3Cmetadata id='metadata1417'%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage' /%3E%3Cdc:title%3E%3C/dc:title%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cg inkscape:label='Capa 1' inkscape:groupmode='layer' id='layer1'%3E%3Ctext xml:space='preserve' style='font-style:normal;font-weight:normal;font-size:40px;line-height:1.25;font-family:sans-serif;fill:%2300ff08;fill-opacity:1;stroke:none;' x='-1.227743' y='27.821028' id='text1993'%3E%3Ctspan sodipodi:role='line' id='tspan1991' x='-1.227743' y='27.821028'%3E~%3C/tspan%3E%3C/text%3E%3C/g%3E%3C/svg%3E " );
background - color : #353535;
background - position : center ;
color : #00FF08;
}
. inside {
padding : 1 px 10 px 0 10 px ;
background : black ;
border - radius : 0 0 10 px 10 px ;
}
2021-12-18 22:52:11 +00:00
img . av { width : 70 px ; height : 70 px ;}
2021-09-19 21:12:06 +00:00
a { color : #00FF08;}
2022-03-04 17:46:29 +00:00
. nick { font - size : large ; font - weight : bold ;}
2021-09-19 21:12:06 +00:00
footer { margin : 5 % 0 0 0 ;}
</ style >
</ head >
< body >
< div class = " inside " >
< h1 > Luqaska ' s S ** te </ h1 >
2021-12-18 22:52:11 +00:00
< ? php
if ( isset ( $_GET [ " book " ])){
2022-03-04 17:46:29 +00:00
echo " \t <p>To be here, create a file at <code style='background:#00FF08;color:black;font-weight:bold'>~/.lucas</code>. The content of that file will be displayed adove your username.</p> \n \t <p>Inspired by <a href= \" https://tilde.team/~mwt/ \" >~mwt</a>'s one.</p> " ;
echo " \t <table> " ;
2021-12-18 22:52:11 +00:00
foreach ( glob ( " /home/* " ) as $user ){
if ( file_exists ( $user . " /.lucas " )){ $nick = str_replace ( " /home/ " , " " , $user ); ?>
< tr >
2022-03-04 17:46:29 +00:00
< td >< ? php if ( file_exists ( $user . " /public_html/avatar.png " )) {
echo '<img class="av" src="//ttm.sh/~' . $nick . '/avatar.png">' ;
} else {
echo '<img class="av" src="//ttm.sh/ege.png" style="image-rendering:pixelated">' ;
2021-12-18 22:52:11 +00:00
} ?> </td>
2022-03-04 17:46:29 +00:00
< td >< p >
< ? php
$msg = htmlentities ( file_get_contents ( $user . " /.lucas " ));
if ( $msg == " " ) {
$msg = " " ;
} else {
$msg = explode ( " " , $msg );
foreach ( $msg as $num => $message ) {
if ( $message == " " ) {
unset ( $msg [ $num ]);
}
}
$msg = implode ( " " , $msg );
$msg = explode ( " \n " , $msg );
foreach ( $msg as $num => $line ) {
if ( $line == " " ) {
unset ( $msg [ $num ]);
}
}
$msg = implode ( " \n " , $msg );
$msg = preg_replace ( " / \n / " , " <br> " , $msg );
$msg = " \t \t \t \t \t \" " . $msg . '"<br>' ;
} echo $msg ; ?>
< a class = " nick " href = " https://tilde.team/<?= $nick ?>/ " >~< ? = $nick ?> </a>
</ p ></ td >
2021-12-18 22:52:11 +00:00
< ? php }
}
2022-03-04 17:46:29 +00:00
echo " \t </table> " ;
2021-12-18 22:52:11 +00:00
} else {
?>
2021-09-19 21:12:06 +00:00
< div id = " tools " >
< h2 >/ t / ools </ h2 >
< ? php show_dir ( " t " ) ?>
</ div >
2022-03-04 17:46:29 +00:00
<!--< div id = " tetld " >
2021-12-18 20:59:41 +00:00
< h2 >/ tetld /</ h2 >
< ? php show_dir ( " tetld " ) ?>
2022-03-04 17:46:29 +00:00
</ div >-->
2021-12-18 20:59:41 +00:00
< div id = " etc " >
< h2 > Etc .</ h2 >
< ul >
< li >< a href = " filde/ " > Filde </ a ></ li >
2022-03-04 17:46:29 +00:00
<!--< li > Visits : < a href = " https://tilde.club/~harper/counter.html " >
2021-12-19 16:30:41 +00:00
< img width = " 50px " height = " auto " style = " background:white " src = " https://tilde-counter.firebaseapp.com/counter/ " >
2022-03-04 17:46:29 +00:00
</ a ></ li >-->
2021-12-19 16:30:41 +00:00
< li >< a href = " ?book " > Sign book </ a ></ li >
2021-12-18 20:59:41 +00:00
</ ul >
< div id = " linkz " >
< h2 > Linkz </ h2 >
< ul >
2022-03-04 17:46:29 +00:00
< li >< a href = " gemini://tilde.team/~lucas/ " > Gemini </ a ></ li >
2021-12-18 22:52:11 +00:00
< li >< a href = " gopher://tilde.team/1/~lucas/ " > Gopher hole </ a ></ li >
2021-12-18 20:59:41 +00:00
< li >< a href = " https://tilde.team " >~ team </ a ></ li >
2022-03-04 19:23:06 +00:00
< li >< a href = " https://twtxte.now.sh/?url=https%3A%2F%2Ftilde.team%2F%7Elucas%2Ftwtxt.txt " > TWTXT </ a ></ li >
2021-12-18 20:59:41 +00:00
< li >< a href = " https://tildegit.org/luqaska " >~ git </ a ></ li >
< li >< a href = " https://github.com/luqaska " > GitHub </ a ></ li >
</ ul >
</ div >
< div id = " newring " >
<!-- tilde . team ring fragment -->
< h2 >~ team webring </ h2 >
[ < a href = " https://tilde.team/ring/?action=prev&me=lucas " > previous </ a > ]
[ < a href = " https://tilde.team/ring/?action=random&me=lucas " > random </ a > ]
[ < a href = " https://tilde.team/ring/?action=next&me=lucas " > next </ a > ]
< br >< a href = " https://tilde.team/ring/ " > how to join this webring </ a >
</ div >
2021-12-18 22:52:11 +00:00
< ? php } ?>
2021-12-18 20:59:41 +00:00
< footer >< p style = " text-align:left " >
2022-03-04 17:46:29 +00:00
& copy ; 2021 - 2022 < span style = " display:none " > - </ span >
2021-12-18 20:59:41 +00:00
< a style = " float:right;text-decoration:none " href = " https://tildegit.org/luqaska/website " > Code </ a >
</ p ></ footer >
2021-09-19 21:12:06 +00:00
</ div >
</ body >
2021-12-18 20:59:41 +00:00
</ html >