cvs: php-news-web / README common.inc search.php

From: Date: Wed, 26 Jan 2005 17:46:18 +0000
Subject: cvs: php-news-web / README common.inc search.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-27330@lists.php.net to get a copy of this message
didou Wed Jan 26 12:46:18 2005 EDT Modified files: /php-news-web README common.inc search.php Log: Nicer error message We don't need register_globals to be true anymore http://cvs.php.net/diff.php/php-news-web/README?r1=1.3&r2=1.4&ty=u Index: php-news-web/README diff -u php-news-web/README:1.3 php-news-web/README:1.4 --- php-news-web/README:1.3 Wed Dec 22 17:39:19 2004 +++ php-news-web/README Wed Jan 26 12:46:17 2005 @@ -47,5 +47,3 @@ RewriteRule ^/(php.+)/([0-9]+) /article.php?group=$1&article=$2 [L] RewriteRule ^/(php[^/]+)(/)?$ /group.php?group=$1 [L] -Also note that register_globals must be on. - http://cvs.php.net/diff.php/php-news-web/common.inc?r1=1.29&r2=1.30&ty=u Index: php-news-web/common.inc diff -u php-news-web/common.inc:1.29 php-news-web/common.inc:1.30 --- php-news-web/common.inc:1.29 Wed Jan 26 11:52:39 2005 +++ php-news-web/common.inc Wed Jan 26 12:46:17 2005 @@ -4,7 +4,7 @@ function error($str) { head("PHP news : error"); - echo "<p><strong>Error:</strong> $str</p>\n"; + echo "<blockquote><strong>Error:</strong> $str</blockquote>\n"; foot(); die(); } http://cvs.php.net/diff.php/php-news-web/search.php?r1=1.3&r2=1.4&ty=u Index: php-news-web/search.php diff -u php-news-web/search.php:1.3 php-news-web/search.php:1.4 --- php-news-web/search.php:1.3 Wed Aug 22 21:20:31 2001 +++ php-news-web/search.php Wed Jan 26 12:46:17 2005 @@ -1,6 +1,8 @@ <?php require 'common.inc'; +$q = isset($_GET['q']) ? $_GET['q'] : false; + if ($q && get_magic_quotes_gpc()) $q = stripslashes($q); head("news search");

« previous php.mirrors (#27330) next »