﻿ <?php

$lines =array(

'Look at the source' ,

'Tags can be reconfigured' ,

'Most normal tags work' ,

'Suported in all browsers' ,

'All made in CSS' ,

'Nobody will notice it' ,

'Changes on each reload'

);





function getRand ( $x )

{

$str = 'abcdefghijkmnopqrstuvwxyz' ;

$ret = '' ;

for( $i = 0 ; $i < $x ; $i ++)

{

$ret .= $str [ mt_rand ( 0 , strlen ( $str )- 1 )];

}

return $ret ;

}



$l1 = getRand ( mt_rand ( 10 , 20 ));

$l2 = getRand ( mt_rand ( 10 , 20 ));

$l3 = getRand ( mt_rand ( 10 , 20 ));



if(isset( $_GET [ 'source' ]))

{

highlight_file ( __FILE__ );

exit( 0 );

}

?>

<!doctype HTML>

<!--

i must go now

my people need me

connection reset by peer

short version at tables-short.php

-->

<html lang="en">

<head>

<title>Custom Table</title>

<style>

body{font-family:Sans-Serif;}

<?php echo $l1 ; ?> {display: table;border-collapse:collapse;border:1px solid #000000;}

<?php echo $l1 ; ?> > <?php echo $l2 ; ?> {display: table-row;}

<?php echo $l1 ; ?> > <?php echo $l2 ; ?> > <?php echo $l3 ; ?> {display:table-cell;padding:5px;border:1px solid #000000;}

</style>

</head>

<body>

<h1>Custom Table using random tags</h1> <?php

echo "< $l1 >" ;

foreach( $lines as $line )

{

$words = explode ( ' ' , $line );

echo "< $l2 >" ;

foreach( $words as $word )

{

echo "< $l3 > $word </ $l3 >" ;

}

echo "</ $l2 >" ;

}

echo "</ $l1 >" ;

?>

<a href="tables-short.php">Short version</a><br />

<h2>Source</h2>

<div> <?php highlight_file ( __FILE__ ); ?> </div>

</body>

</html>