<?php
// body_border.php
// RJM Programming - April, 2015

$cssis = @file_get_contents("body_border.css");

$cb = explode("background: ", $cssis);
$afb = explode(";", $cb[1]);
$subcb = "background: " . $afb[0];

$cw = explode("width: ", $cssis);
$afw = explode(";", $cw[1]);
$subcw = "width: " . $afw[0];
$subch = "height: " . $afw[0];

$rmm = 127 * rand(0, 2);
$bmm = 127 * rand(0, 2);
$gmm = 127 * rand(0, 2);
$omm = 0.1 * rand(3, 10);

$hwmm = rand(5, 8) . "px";

$newcssis = str_replace($subch, "height: " . $hwmm, str_replace($subcw, "width: " . $hwmm, str_replace($subcb, "background: rgba(" . $rmm . "," . $bmm . "," . $gmm . "," . $omm . ")", $cssis))); 

file_put_contents("body_border.css", $newcssis);

?>


