cvs: php-master-web /fetch mirrors.php /manage mirrors.php /scripts mirror-test
| From: | Hannes Magnusson | Date: | Wed, 07 Mar 2007 21:05:12 +0000 |
| Subject: | cvs: php-master-web /fetch mirrors.php /manage mirrors.php /scripts mirror-test | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-34581@lists.php.net to get a copy of this message | ||
bjori Wed Mar 7 21:05:12 2007 UTC
Modified files:
/php-master-web/fetch mirrors.php
/php-master-web/manage mirrors.php
/php-master-web/scripts mirror-test
Log:
Reuse/misuse the 'has_search' field under check for SQLite availability
http://cvs.php.net/viewvc.cgi/php-master-web/fetch/mirrors.php?r1=1.27&r2=1.28&diff_format=u
Index: php-master-web/fetch/mirrors.php
diff -u php-master-web/fetch/mirrors.php:1.27 php-master-web/fetch/mirrors.php:1.28
--- php-master-web/fetch/mirrors.php:1.27 Mon Sep 18 13:26:50 2006
+++ php-master-web/fetch/mirrors.php Wed Mar 7 21:05:12 2007
@@ -13,7 +13,7 @@
2 Local stats flag (TRUE / FALSE)
3 Provider URL
4 Mirror type [see type constants]
- 5 Local search engine flag (TRUE / FALSE)
+ 5 SQLite availability [was originally: local search engine flag] (TRUE / FALSE)
6 Default language code
7 Status [see status constants]
http://cvs.php.net/viewvc.cgi/php-master-web/manage/mirrors.php?r1=1.94&r2=1.95&diff_format=u
Index: php-master-web/manage/mirrors.php
diff -u php-master-web/manage/mirrors.php:1.94 php-master-web/manage/mirrors.php:1.95
--- php-master-web/manage/mirrors.php:1.94 Sun Jan 7 06:56:19 2007
+++ php-master-web/manage/mirrors.php Wed Mar 7 21:05:12 2007
@@ -209,10 +209,16 @@
<th align="right">PHP version used:</th>
<td><?php print_version($row['phpversion']); ?></td>
</tr>
+<!--
<tr>
<th align="right">Local Search:</th>
<td><?php echo $searchtypes[$row['has_search']]; ?></td>
</tr>
+-->
+ <tr>
+ <th align="right">SQLite available:</th>
+ <td><?php echo $row['has_search'] ? "Yes" : "No";
?></td>
+ </tr>
<tr>
<th align="right">Local Stats:</th>
<td><?php echo ($row['has_stats'] ? "" :
"<strong>not</strong> "); ?>supported</td>
@@ -332,6 +338,8 @@
}
// See what needs to be printed out as search info
+ /* This info isn't used anymore and "has_search" is now misused under
+ * SQLite availability check
$searchcell = '';
if ($row['has_search'] == "2") { $searchcell = '('; }
if (in_array($row['has_search'], array("1", "2"))) {
@@ -341,6 +349,13 @@
}
if ($row['has_search'] == "2") { $searchcell .= ')'; }
if (!$searchcell) { $searchcell = " "; }
+ */
+
+ if ($row['has_search']) {
+ $searchcell = "SQLite";
+ } else {
+ $searchcell = " ";
+ }
// Stats information cell
$statscell = ' ';
@@ -442,7 +457,7 @@
</tr>
<tr>
<td><img src="/images/mirror_search.png" /></td>
- <td>Search:</td>
+ <td>SQLite:</td>
<td>{$stats['has_search']}</td>
</tr>
<tr>
http://cvs.php.net/viewvc.cgi/php-master-web/scripts/mirror-test?r1=1.78&r2=1.79&diff_format=u
Index: php-master-web/scripts/mirror-test
diff -u php-master-web/scripts/mirror-test:1.78 php-master-web/scripts/mirror-test:1.79
--- php-master-web/scripts/mirror-test:1.78 Sun Dec 24 12:36:12 2006
+++ php-master-web/scripts/mirror-test Wed Mar 7 21:05:12 2007
@@ -130,7 +130,8 @@
/*if (in_array($info[3], array('0', '1', '2'))) {
$hosts[$index]['has_search'] = $info[3];
}*/
- $hosts[$index]['has_search'] = 0;
+ // Abuse the "has_search" SQL field to check for SQLite availability
+ $host[$index]['has_search'] = $info[3];
// Update stats availability info
if (in_array($info[4], array('0', '1'))) {