<?php
header('content-type:text/plain');
?>
<?php 
echo '<?php
header(\'content-type:image/svg+xml\');';
?>
echo '<?php echo '<?xml version="1.0" encoding="ISO-8859-1"?>';?>';
echo '<?php echo '<?xml-stylesheet type="text/css" href="clock.css"?>';?>';
?>

<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100" height="100">
<!-- xml file generated by Tangui's brain >> Skedar.Dark@laposte.net -->
<circle id="cadran" cx="50" cy="50" r="49"/>
<circle id="souscadran" cx="50" cy="50" r="36"/>


<text x="47" y="12">XII</text>
<text x="71" y="17" transform="rotate(30 71 15)">I</text>
<text x="84" y="30" transform="rotate(60 84 28)">II</text>
<text x="89" y="49" transform="rotate(90 89 48)">III</text>
<text x="86" y="68" transform="rotate(120 86 66)">IV</text>
<text x="68" y="90" transform="rotate(150 72 86)">V</text>
<text x="49" y="94" transform="rotate(180 53 91)">VI</text>
<text x="30" y="90" transform="rotate(210 33 87)">VII</text>
<text x="10" y="74" transform="rotate(240 16 71)">VIII</text>
<text x="5" y="48" transform="rotate(270 13 49)">IX</text>
<text x="10" y="30" transform="rotate(300 16 27)">X</text>
<text x="26" y="18" transform="rotate(330 28 18)">XI</text>
<text class="cadran" x="37" y="28">Gold</text>
<text class="cadran" x="48" y="35">Style</text>
<text class="cadran" x="30" y="74">By</text>
<text class="cadran" x="39" y="80"><tspan>S</tspan>ir<tspan>W</tspan>am</text>


<?php echo '<?php
$angle_heures = ((date(\'h\')*3600+date(\'i\')*60+date(\'s\'))/43200)*360
?>';?>
<line id="aiguille_heures" x1="50" y1="50" x2="50" y2="25">
        <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="<?php echo '<?php echo $angle_heures; ?>';?> 50 50" to="<?php echo '<?php echo $angle_heures+360; ?>';?> 50 50" begin="0s" dur="43200s" repeatCount="indefinite"/>
</line>

<?php echo '<?php
$angle_minutes = (date(\'i\')*60+date(\'s\'))/3600*360;
?>';?>
<line id="aiguille_minutes" x1="50" y1="56" x2="50" y2="10">
        <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="<?php echo '<?php echo $angle_minutes; ?>';?> 50 50" to="<?php echo '<?php echo $angle_minutes+360; ?>';?> 50 50" begin="0s" dur="3600s" repeatCount="indefinite"/>
</line>

<?php echo '<?php
$angle_secondes = date(\'s\')/60*360;
?>';?>
<line id="aiguille_secondes" x1="50" y1="60" x2="50" y2="5" transform="rotate(<?php echo'<?php echo $angle_secondes; ?>';?> 50 50)">
        <animateTransform attributeName="transform" attributeType="XML" type="rotate" calcMode="discrete" values="0 50 50;6 50 50;12 50 50;18 50 50;24 50 50;30 50 50;36 50 50;42 50 50;48 50 50;54 50 50;60 50 50;66 50 50;72 50 50;78 50 50;84 50 50;90 50 50;96 50 50;102 50 50;108 50 50;114 50 50;120 50 50;126 50 50;132 50 50;138 50 50;144 50 50;150 50 50;156 50 50;162 50 50;168 50 50;174 50 50;180 50 50;186 50 50;192 50 50;198 50 50;204 50 50;210 50 50;216 50 50;222 50 50;228 50 50;234 50 50;240 50 50;246 50 50;252 50 50;258 50 50;264 50 50;270 50 50;276 50 50;282 50 50;288 50 50;294 50 50;300 50 50;306 50 50;312 50 50;318 50 50;324 50 50;330 50 50;336 50 50;342 50 50;348 50 50;354 50 50" begin="0s" dur="60s" additive="sum" repeatCount="indefinite"/>
</line>

<circle id="centre" cx="50" cy="50" r="3"/>


</svg>