Сообщение от telekomstoy
|
Там и нет практически ничего. Файл php:
<?php
$profile = $_GET['profile'];
if ($profile == '2') {echo 'import url("style1.css")';}
elseif ($profile == '4') {echo 'import url("style4.css")';}
elseif ($profile == '50') {echo 'import url("style3.css")';}
else {echo 'import url("style.css")';}
?>
|
Во-первых, где собака перед import? А, во-вторых, пропиши header('Content-Type: text/css'); в начало скрипта, чтобы правильный MIME-тип был. Ну и току с запятой после закрывающей скобки для url надо поставить. В общем, как-то так:
<?php
header('Content-Type: text/css');
$profile = $_GET['profile'];
if ($profile == '2') {echo '@import url("style1.css");';}
elseif ($profile == '4') {echo '@import url("style4.css");';}
elseif ($profile == '50') {echo '@import url("style3.css");';}
else {echo '@import url("style.css");';}
?>