File: 01_remove_non-free-icons_from_code.dpatch

package info (click to toggle)
bbclone 0.4.6-10
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,312 kB
  • ctags: 528
  • sloc: php: 15,858; sh: 349; makefile: 41
file content (119 lines) | stat: -rw-r--r-- 5,340 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_remove_non-free-icons_from_code.dpatch by Tiago Bortoletto Vaz <tiago@debian-ba.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Remove all non-free icons entries directly it its code 

@DPATCH@
diff -urNad trunk~/lib/html.php trunk/lib/html.php
--- trunk~/lib/html.php	2006-10-09 13:46:19.000000000 -0300
+++ trunk/lib/html.php	2006-10-31 23:00:43.000000000 -0300
@@ -157,8 +157,8 @@
 
     foreach ($navbar_title as $url => $title) {
       if (!empty($title)) {
-        $str .= "$sep<a class=\"navbar\" href=\"$url\"><img src=\"".$BBC_IMAGES_PATH."navbar_ico".$ico_nr
-               .".png\" border=\"0\" height=\"14\" width=\"14\" alt=\"icon\" />&nbsp;$title</a>";
+        $str .= "$sep<a class=\"navbar\" href=\"$url\">"
+               ."&nbsp;$title</a>";
         $sep = "&nbsp;\n";
       }
       $ico_nr++;
@@ -166,8 +166,6 @@
 
     if (!empty($lang_sel)) {
       $str .= "&nbsp;&nbsp;\n"
-             ."<img src=\"".$BBC_IMAGES_PATH."navbar_lng.png\" border=\"0\" height=\"14\" width=\"14\" "
-             ."alt=\"Language\" title=\"Language\" />&nbsp;\n"
              ."<select name=\"lng\" onchange=\"if (this.selectedIndex>0){location.href='$self?lng=' + "
              ."this.options[this.selectedIndex].value;}\">\n"
              ."<option value=\"\"".(empty($this->lng) ? " selected=\"selected\"" : "").">Language</option>\n";
@@ -211,12 +209,7 @@
 
     return "<p align=\"center\"><a href=\"http://bbclone.de/\">BBClone $BBC_VERSION</a> &copy; "
           .$_['global_bbclone_copyright']." <a href=\"http://www.gnu.org/copyleft/gpl.html\">GPL</a>. \n"
-          ." <a href=\"http://validator.w3.org/check/referer\"><img src=\"".$BBC_IMAGES_PATH."valid-xhtml10.png\" "
-          ."height=\"15\" width=\"80\" border=\"0\" alt=\"Valid XHTML 1.0!\" title=\"Valid XHTML 1.0!\" "
-          ."align=\"middle\" /></a>\n"
-          ." <a href=\"http://jigsaw.w3.org/css-validator/check/referer\"><img src=\"".$BBC_IMAGES_PATH
-          ."valid-css.png\" height=\"15\" width=\"80\" border=\"0\" alt=\"Valid CSS!\" title=\"Valid CSS!\" "
-          ."align=\"middle\" /></a></p>\n";
+          ."</p>\n";
   }
 
   # generates the explanation rows. The $val switch determines whether we show
@@ -308,4 +301,4 @@
                     ENT_QUOTES) : "noname";
   }
 }
-?>
\ No newline at end of file
+?>
diff -urNad trunk~/show_detailed.php trunk/show_detailed.php
--- trunk~/show_detailed.php	2006-10-09 13:47:49.000000000 -0300
+++ trunk/show_detailed.php	2006-10-31 22:46:25.000000000 -0300
@@ -58,9 +58,9 @@
             ."</a>&nbsp;</div>\n";
 
     case "ext":
-      return "<div align=\"left\">&nbsp;<img src=\"".$BBC_IMAGES_PATH."ext_".$connect[$field].".png\" height=\"14\" "
-            ."width=\"14\" alt=\"".$_[$connect['ext']]."\" title=\"".$_[($connect[$field])]."\" />&nbsp;&nbsp;"
-            .$_[($connect[$field])]."</div>";
+      return "<div align=\"left\">&nbsp;"
+            .$_[($connect[$field])]
+            ."</div>";
 
     case "dns":
       if (strlen($connect[$field]) > 50) $connect[$field] = "...".substr($connect[$field], -47);
@@ -84,8 +84,6 @@
       $type[1] = ($type[1] == "other") ? str_replace("other", $_['misc_other'], $type[1]) : $type[1];
 
       return "<div align=\"left\">&nbsp;"
-            ."<img src=\"".$BBC_IMAGES_PATH."browser_".$type[0].".png\" height=\"14\" width=\"14\" alt=\"".$type[1]
-            ."\" title=\"".$type[1]."\" />"
             ."&nbsp;&nbsp;".str_replace(" ", "&nbsp;", $type[1]).(empty($connect['browser_note']) ? "" : "&nbsp;"
             .$connect['browser_note'])."</div>";
 
@@ -96,8 +94,6 @@
       $type[1] = ($type[1] == "other") ? str_replace("other", $_['misc_other'], $type[1]) : $type[1];
 
       return "<div align=\"left\">&nbsp;"
-            ."<img src=\"".$BBC_IMAGES_PATH."os_".$type[0].".png\" height=\"14\" width=\"14\" alt=\"".$type[1]
-            ."\" title=\"".$type[1]."\" />"
             ."&nbsp;&nbsp;".str_replace(" ", "&nbsp;", $type[1]).(empty($connect['os_note']) ? "" : "&nbsp;"
             .$connect['os_note'])."</div>";
 
@@ -105,8 +101,6 @@
       if (!$type = bbc_finger_cat("robot", $connect[$field])) return "&nbsp;";
 
       return "<div align=\"left\">&nbsp;"
-            ."<img src=\"".$BBC_IMAGES_PATH."robot_".$type[0].".png\" height=\"14\" width=\"14\" alt=\"".$type[1]
-            ."\" title=\"".$type[1]."\" />"
             ."&nbsp;&nbsp;".str_replace(" ", "&nbsp;", $type[1]).(empty($connect['robot_note']) ? "" : "&nbsp;"
             .$connect['robot_note'])."</div>";
 
@@ -182,4 +176,4 @@
     .$bbc_html->copyright()
     .$bbc_html->topbar(0, 1)
     .$bbc_html->html_end();
-?>
\ No newline at end of file
+?>
diff -urNad trunk~/show_global.php trunk/show_global.php
--- trunk~/show_global.php	2006-10-09 13:47:49.000000000 -0300
+++ trunk/show_global.php	2006-10-31 22:42:40.000000000 -0300
@@ -79,6 +79,7 @@
 
 function bbc_list_item($icon, $item, $item_score, $total_score) {
   global $BBC_IMAGES_PATH;
+  $icon = '';
 
   return "<tr>\n"
         .(!empty($icon) ? "<td style=\"padding: 0px\" align=\"left\"><img src=\"".$BBC_IMAGES_PATH.$icon
@@ -394,4 +395,4 @@
     .$bbc_html->copyright()
     .$bbc_html->topbar(0, 1)
     .$bbc_html->html_end();
-?>
\ No newline at end of file
+?>