- Timestamp:
- Dec 12, 2005, 6:57:00 PM (18 years ago)
- Location:
- trunk/www
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/es/includes/functions.inc
r8291 r15457 1 2 3 # $Id: functions.inc,v 1. 2 2004/09/14 18:05:17matt Exp $1 <?php 2 3 # $Id: functions.inc,v 1.3 2005/12/12 18:56:59 matt Exp $ 4 4 # Copyright (c) 2004, OpenDarwin 5 5 … … 250 250 } 251 251 } 252 253 ###################################################################### 254 255 # print the number or available ports 256 function print_available_ports() { 257 global $connect; 252 258 253 ?> 259 $result = mysql_query("SELECT count(*) from darwinports.portfiles"); 260 if ($result) { 261 $row = mysql_fetch_array($result); 262 $count = $row[0]; 263 echo $count; 264 } else { 265 $count = 0; 266 } 267 } 268 269 ?> -
trunk/www/es/index.php
r8291 r15457 13 13 Darwin, Mac OS X, FreeBSD o Linux.</p> 14 14 15 <p>En la actualidad hay unos cuantos cientos de<a href="/es/ports/">portes</a>15 <p>En la actualidad hay <? print_available_ports(); ?> <a href="/es/ports/">portes</a> 16 16 completados y usables, mientras que más son agregados regularmente. Usted 17 17 puede conocer sobre los portes recientemente añadidos al susbcribirse a la -
trunk/www/fr/includes/functions.inc
r15334 r15457 1 1 <?php 2 2 3 # $Id: functions.inc,v 1. 8 2005/12/06 18:40:32matt Exp $3 # $Id: functions.inc,v 1.9 2005/12/12 18:56:59 matt Exp $ 4 4 # Copyright (c) 2003, OpenDarwin 5 5 … … 276 276 } 277 277 278 278 ###################################################################### 279 280 # print the number or available ports 281 function print_available_ports() { 282 global $connect; 283 284 $result = mysql_query("SELECT count(*) from darwinports.portfiles"); 285 if ($result) { 286 $row = mysql_fetch_array($result); 287 $count = $row[0]; 288 echo $count; 289 } else { 290 $count = 0; 291 } 292 } 279 293 280 294 ?> -
trunk/www/fr/index.php
r14358 r15457 18 18 19 19 <p> 20 Il y a actuellement environ 2800 <a href="/fr/ports/">ports</a> opérationnels et21 disponibles, mais d'autres seront bientôt ajoutés régulièrement. Vous pouvez20 Il y a actuellement <? print_available_ports(); ?> <a href="/fr/ports/">ports</a>opérationnels 21 et disponibles, mais d'autres seront bientôt ajoutés régulièrement. Vous pouvez 22 22 prendre connaissance des ports récemment ajoutés en souscrivant à la liste de 23 23 discussion <a href="http://www.opendarwin.org/mailman/listinfo/cvs-darwinports-all"> -
trunk/www/includes/functions.inc
r15333 r15457 1 1 <?php 2 2 3 # $Id: functions.inc,v 1. 5 2005/12/06 18:25:03 mwwExp $3 # $Id: functions.inc,v 1.6 2005/12/12 18:56:58 matt Exp $ 4 4 # Copyright (c) 2003, OpenDarwin 5 5 … … 276 276 } 277 277 278 278 ###################################################################### 279 280 # print the number or available ports 281 function print_available_ports() { 282 global $connect; 283 284 $result = mysql_query("SELECT count(*) from darwinports.portfiles"); 285 if ($result) { 286 $row = mysql_fetch_array($result); 287 $count = $row[0]; 288 echo $count; 289 } else { 290 $count = 0; 291 } 292 } 279 293 280 294 ?> -
trunk/www/index.php
r14354 r15457 15 15 <a href="http://developer.apple.com/darwin/projects/darwin/">Darwin</a>)</p> 16 16 17 <p>There are currently about 2800completed and usable <a17 <p>There are currently about <? print_available_ports(); ?> completed and usable <a 18 18 href="/ports/">ports</a>, with more being added on a regular basis. 19 19 You can track recently added ports by subscribing to the <a -
trunk/www/it/includes/functions.inc
r15388 r15457 1 1 <?php 2 2 3 # $Id: functions.inc,v 1. 3 2005/12/09 15:20:31 riccardoExp $3 # $Id: functions.inc,v 1.4 2005/12/12 18:56:59 matt Exp $ 4 4 # Copyright (c) 2003, OpenDarwin 5 5 … … 276 276 } 277 277 278 278 ###################################################################### 279 280 # print the number or available ports 281 function print_available_ports() { 282 global $connect; 283 284 $result = mysql_query("SELECT count(*) from darwinports.portfiles"); 285 if ($result) { 286 $row = mysql_fetch_array($result); 287 $count = $row[0]; 288 echo $count; 289 } else { 290 $count = 0; 291 } 292 } 279 293 280 294 ?> -
trunk/www/ru/includes/functions.inc
r8271 r15457 1 1 <?php 2 2 3 # $Id: functions.inc,v 1. 1 2004/09/13 23:01:04matt Exp $3 # $Id: functions.inc,v 1.2 2005/12/12 18:56:59 matt Exp $ 4 4 # Copyright (c) 2003, OpenDarwin 5 5 … … 254 254 } 255 255 256 ###################################################################### 257 258 # print the number or available ports 259 function print_available_ports() { 260 global $connect; 261 262 $result = mysql_query("SELECT count(*) from darwinports.portfiles"); 263 if ($result) { 264 $row = mysql_fetch_array($result); 265 $count = $row[0]; 266 echo $count; 267 } else { 268 $count = 0; 269 } 270 } 271 256 272 ?>
Note: See TracChangeset
for help on using the changeset viewer.