Skip to content

Commit 1efefe2

Browse files
author
Hallvord R. M. Steen
committedNov 5, 2014
better comments and URL input field
1 parent b3abb8e commit 1efefe2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed
 

‎cssfixme.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
<?php
2+
/*
3+
4+
This is obviously just a quick and very dirty hack to make it easier to share CSS:fixme analysis of live CSS files out there in the wild.
5+
It would probably be better to port the JS code to Python or something and do the whole analysis / fixing server-side -
6+
but that's a bigger project..
7+
8+
*/
29
$url = isset($_GET['url']) ? $_GET['url'] : '';
310
$html = file_get_contents('cssfixme.htm');
4-
11+
$html = str_replace('if you find problems.', 'if you find problems.<br><form>Analyze URL (CSS files only): <input type="url" name="url" value="'.htmlentities($url).'"><input type="submit"></form>', $html);
512
if($url && substr($url, 0, 4) == 'http'){
613
$url_contents = get_url($url);
714
$is_css_content = false;

0 commit comments

Comments
 (0)
Please sign in to comment.