diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..18de60d Binary files /dev/null and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index a67d42b..c9332fb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ composer.phar # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file # composer.lock + +*.spc \ No newline at end of file diff --git a/about.php b/about.php new file mode 100644 index 0000000..fd84984 --- /dev/null +++ b/about.php @@ -0,0 +1,97 @@ +"; + +if(isset( $_GET['q'])) { // if there's a search query, show the results for it + $query = urlencode($_GET["q"]); + $show_results = TRUE; + $search_url = "https://html.duckduckgo.com/html?q=" . $query; + if(!$results_html = file_get_contents($search_url)) { + $error_text .= "Failed to get results, sorry :(
"; + } + $simple_results=$results_html; + //$simple_results= strip_tags($results_html, '