<?php
header("Content-Type:text/css");
$color = ""; $secondColor = "";

function checkhexcolor($color){
    return preg_match('/^#[a-f0-9]{6}$/i', $color);
}

if (isset($_GET['color']) AND $_GET['color'] != '') {
    $color = "#" . $_GET['color'];
}

function checkhexcolor2($secondColor){
    return preg_match('/^#[a-f0-9]{6}$/i', $secondColor);
}

if (isset($_GET['secondColor']) AND $_GET['secondColor'] != '') {
    $secondColor = "#" . $_GET['secondColor'];
}

if (checkhexcolor($color) && checkhexcolor2($secondColor) ) { ?>
	body {
		background:linear-gradient(180deg,rgba(50,91,253,.2) 0, <?php echo $color; ?>60 48.03%),<?php echo $color; ?> !important;
		color: <?php echo $secondColor; ?> !important;
	}

	.c3Fnas {
		background:linear-gradient(180deg,rgba(50,91,253,.2) 0, <?php echo $color; ?>60 48.03%),<?php echo $color; ?> !important;
	}

	.footer {
		border-top: 1px solid <?php echo $secondColor; ?> !important;
		background: <?php echo $color; ?> !important;
		background: linear-gradient(to bottom,#FFF,<?php echo $secondColor; ?>) !important;
	}
	.widget-four .widget-content .w-summary-info h6 {
		color: <?php echo $secondColor; ?> !important;
	}
	.widget-four .widget-content .w-summary-info .summary-count {
		color: <?php echo $secondColor; ?> !important;
	}
	.text-white{
		color: <?php echo $secondColor; ?> !important;
	}
	.floatleft>.ruiOp {
		background: linear-gradient(360deg, <?php echo $color; ?> 0%, <?php echo $secondColor; ?> 100%) !important;
	}

	.zh-coine-coent>div {
		background: <?php echo $color; ?> !important;
		background: linear-gradient(180deg, <?php echo $secondColor; ?> 0%, <?php echo $color; ?> 100%);
	}

.riotop {
    background: linear-gradient(90deg, <?php echo $secondColor; ?> 0%, <?php echo $color; ?> 55%, <?php echo $secondColor; ?> 100%) !important;
}

table {
    background: linear-gradient(180deg, <?php echo $secondColor; ?> 0%, <?php echo $color; ?> 100%) !important;
}


.rop td {
    color: <?php echo $color; ?> !important;
}
h3 {
    color: <?php echo $secondColor; ?> !important;
}

.youbianc p {
    color: <?php echo $secondColor; ?> !important;
}

.rio-ol-po {
    background-color: <?php echo $color; ?> !important;
    background: linear-gradient(360deg, <?php echo $color; ?> 0%, <?php echo $secondColor; ?>70 100%) !important;
}

.blueTwo, .widuyirbtn {
    background: linear-gradient(360deg, <?php echo $color; ?> 0%, <?php echo $secondColor; ?>50 100%) !important;
}

.indexOut-secondbox{ background:linear-gradient(180deg,rgba(50,91,253,.2) 0, <?php echo $color; ?>10 93.03%),<?php echo $color; ?> !important;}

.neiindex-rong {
    color: <?php echo $secondColor; ?> !important;
}

.enterM {
    background: <?php echo $secondColor; ?>70 !important;
}

.widget-content .summary-list.summary-expenses {
    background: <?php echo $secondColor; ?>70 !important;
}

.topheader {
    background: linear-gradient(180deg, <?php echo $secondColor; ?>80 0%, <?php echo $color; ?>40 100%) !important;
    border-bottom: 0.2px solid <?php echo $secondColor; ?> !important;
}

.widget-content .summary-list.summary-profit {
    background: <?php echo $secondColor; ?>30 !important;
}

<?php } ?>