Andrew Gillett; [EMAIL PROTECTED]:45 -0500

Well Leif, so far there's you and there's me. I tried to email Dan Steinman but most of his addresses have bounced. I'll give it a little more time and if I don't hear anything then I'll email the remaining admins.

I should update that I've already shot a mail off to the current admin. Dan's site seems to have been disabled. Web site responds but forbids access. Email bounces. The site is still owned by Dan, but the admin and technical email addresses are the same as the address known to bounce. I don't want to hassle Dan over anything, but at this point I just hope he's alive and well. :-)


Backups are good. As far as CVS goes, it should be sufficient to tag the repository before doing anything. CVS tags are wonderful things but they haven't been used here - yet.

Well, it's a good thing that I want to mention things and get responses before doing anything, because I have no idea what CVS tags are, what they do, how, when or why to use them. I'm sketchy on the backend of CVS as I've only been a user, but in the abstract sense, I figure all those changes, comments, different versions or patches, all must sit somewhere, either in a lot of little files or some big binary file, in some format or other, and I do not get any of that when checking out, nor would I want to. Maybe it can all be obtained with other CVS commands besides checkout. Just a matter of reading a man page one afternoon. Followed up by reading some threads about best practices for code organization for larger projects down to similar sized projects.


One change to the site that I would like to see is a separation of dynapi3 related material from the earlier releases. But first the site needs some fixing. Currently there are a number of links under "Main Menu" on the LHS of the screen that point to http://dynapi.sourceforge.net/doccenter/. These all produce the error:

Fatal error: Cannot redeclare gettext() in /home/groups/d/dy/dynapi/htdocs/doccenter/lib/config.php on line 48

Now these are the links that used to point to the documentation (mostly for dynapi2 if I remember correctly). It would be good if they worked.

Yikes, well let's see what's going on. The code hasn't changed in 4 years but the language has.


This is the code at those lines. What in the heck? It doesn't do anything?

46:    $locale = array();
48:    function gettext ($text) {
49: //              global $locale;
50:  //       if (!empty ($locale[$text]))
51: //                      return $locale[$text];
52:         return $text;
53:    }

Here are all the files in the whole website tree that have "gettext" in them, all in the doccenter.

./doccenter/admin.php
./doccenter/lib/config.php
./doccenter/lib/diff.php
./doccenter/lib/display.php
./doccenter/lib/editpage.php
./doccenter/lib/fullsearch.php
./doccenter/lib/msql.php
./doccenter/lib/mysql.php
./doccenter/lib/pageinfo.php
./doccenter/lib/savepage.php
./doccenter/lib/search.php
./doccenter/lib/setupwiki.php
./doccenter/lib/stdlib.php

And here's what the PHP manual has to say about it all. PHP 4.3.10 is in use on the server.

================================================================
(PHP 3>= 3.0.7, PHP 4 )

gettext -- Lookup a message in the current domain

Description
string gettext ( string message )

This function returns a translated string if one is found in the translation table, or the submitted message if not found. You may use the underscore character '_' as an alias to this function.

Example 1. gettext()-check
<?php
setlocale(LC_ALL, 'de_DE');
bindtextdomain("myPHPApp", "./locale");
textdomain("myPHPApp");
// Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now
echo gettext("Welcome to My PHP Application");
?>
================================================================


So, now let's look at how gettext was used in doccenter code. Well, the locale array was the only thing used in config.php:gettext, so searching for anything that changes the locale array, or... even anything named locale, I find absolutely nothing.

Maybe if I just comment the whole gettext thing out everything will work and nothing will break... or maybe then all those places where gettext is currently used will cause errors, and those usages will need to be modified. That's usually the case, not always a big deal doing, just figuring out what to change.

Well, my work here is done... comment out and problem goes away. Until next time we meet in battle, oh ancient beast of the code dungeons. I feel it was an easy victory to lull me into over-confidence while you circle around and bite me in the ...

Oh and by the way, some "Submit Bug" page is totally unlocked and someone erased whatever content was there and placed in a question on 2004-08-05.

Hmm, third order of business is to make my living will, and among other things, specify instructions to turn over the admin rights and backups to the other admin in the event of an untimely demise or even temporary injury or illness. ;-)

OK, just be sure to leave your money to me :-)

Right, I'll have my attorney call your attorney. They can do lunch and when I die there should be just enough money left to buy a can of kerosene but you'll have to spot me one last time for the matches.


Leif





-------------------------------------------------------
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
_______________________________________________
Dynapi-Dev mailing list
Dynapi-Dev@lists.sourceforge.net
http://www.mail-archive.com/dynapi-dev@lists.sourceforge.net/

Reply via email to