Changeset 15495


Ignore:
Timestamp:
Dec 14, 2005, 12:45:22 AM (15 years ago)
Author:
yeled
Message:

really - this works. Too many cooks problem here. I was fixing it on sancho,
but jmpp and matt were backing things out and the cron job was just doing
what it was told.

Russian and Italian don't even use this function but I'm placing it there
anyway.

Location:
trunk/www
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/es/index.php

    r15479 r15495  
    33                include_once("$DOCUMENT_ROOT/es/includes/common.inc");
    44                include_once("$DOCUMENT_ROOT/es/includes/functions.inc");
     5                include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    56                print_header('Home de DarwinPorts', 'utf-8');
    67        ?>
     
    89                <div id="content">
    910                        <h2 class="hdr">Introducción a DarwinPorts</h2>
    10 
     11<?
     12                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     13                if ($result) {
     14                        $row = mysql_fetch_array($result);
     15                        $count = $row[0];
     16                } else {
     17                        $count = 0;
     18                }
     19?>
    1120                        <p>El objetivo principal del proyecto DarwinPorts es proveer una forma
    1221                        sencilla de instalar varios productos de código abierto en un sistema
    1322                        Darwin, Mac OS X, FreeBSD o Linux.</p>
    1423
    15                         <p>En la actualidad hay muchos <a href="/es/ports/">portes</a>
     24                        <p>En la actualidad hay <?= $count; ?> <a href="/es/ports/">portes</a>
    1625                        completados y usables, mientras que más son agregados regularmente. Usted
    1726                        puede conocer sobre los portes recientemente añadidos al susbcribirse a la
  • trunk/www/fr/index.php

    r15479 r15495  
    33    include_once("$DOCUMENT_ROOT/fr/includes/common.inc");
    44    include_once("$DOCUMENT_ROOT/fr/includes/functions.inc");
     5    include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    56    print_header('Accueil DarwinPorts', 'utf-8');
    67  ?>
     
    89    <div id="content">
    910      <h2 class="hdr">Introduction à DarwinPorts</h2>
    10 
     11<?
     12                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     13                if ($result) {
     14                        $row = mysql_fetch_array($result);
     15                        $count = $row[0];
     16                } else {
     17                        $count = 0;
     18                }
     19?>
    1120        <p>
    1221        Le principal objectif du projet DarwinPorts est de fournir un moyen
     
    1827       
    1928        <p>
    20         Il y a actuellement beaucoup de <a href="/fr/ports/">ports</a>opérationnels
     29        Il y a actuellement <?= $count; ?> <a href="/fr/ports/">ports</a>opérationnels
    2130        et disponibles, mais d'autres seront bientôt ajoutés régulièrement. Vous pouvez
    2231        prendre connaissance des ports récemment ajoutés en souscrivant à la liste de
  • trunk/www/index.php

    r15474 r15495  
    33    include_once("$DOCUMENT_ROOT/includes/common.inc");
    44    include_once("$DOCUMENT_ROOT/includes/functions.inc");
     5    include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    56    print_header('DarwinPorts Home', 'iso-8859-1');
    67  ?>
     
    2324                }
    2425?>
    25       <p>There are currently about 3034 completed and usable
    26      <!-- <p>There are currently about <?= $count; ?> completed and usable <a -->
     26      <p>There are currently about <?= $count; ?> completed and usable
    2727        <a href="/ports/">ports</a>, with more being added on a regular basis.
    2828        You can track recently added ports by subscribing to the <a
  • trunk/www/it/index.php

    r15479 r15495  
    33    include_once("$DOCUMENT_ROOT/it/includes/common.inc");
    44    include_once("$DOCUMENT_ROOT/it/includes/functions.inc");
     5    include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    56    print_header('Home di DarwinPorts', 'utf-8');
    67  ?>
     
    89    <div id="content">
    910      <h2 class="hdr">Introduzione a DarwinPorts</h2>
    10 
     11<?
     12                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     13                if ($result) {
     14                        $row = mysql_fetch_array($result);
     15                        $count = $row[0];
     16                } else {
     17                        $count = 0;
     18                }
     19?>
    1120      <p>L'obiettivo principale del progetto DarwinPorts è fornire un metodo
    1221        per semplificare l'installazione di vario software open-source
  • trunk/www/ru/index.php

    r15479 r15495  
    33    include_once("$DOCUMENT_ROOT/ru/includes/common.inc");
    44    include_once("$DOCUMENT_ROOT/ru/includes/functions.inc");
     5    include_once("$DOCUMENT_ROOT/includes/db_portslisting.inc");
    56    print_header('DarwinPorts Home', 'utf-8');
    67  ?>
     
    89    <div id="content">
    910      <h2 class="hdr">Введение в проект DarwinPorts</h2>
     11<?
     12                $result = mysql_query("SELECT count(*) from darwinports.portfiles");
     13                if ($result) {
     14                        $row = mysql_fetch_array($result);
     15                        $count = $row[0];
     16                } else {
     17                        $count = 0;
     18                }
     19?>
    1020
    1121      <p>Главная задача проекта DarwinPorts - предоставить простой механизм
Note: See TracChangeset for help on using the changeset viewer.