You can subscribe to this list here.
2002 |
Jan
(12) |
Feb
(129) |
Mar
(24) |
Apr
(75) |
May
(6) |
Jun
(31) |
Jul
(82) |
Aug
(50) |
Sep
(116) |
Oct
(122) |
Nov
(89) |
Dec
(39) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(39) |
Feb
(83) |
Mar
(53) |
Apr
(15) |
May
(54) |
Jun
(16) |
Jul
(44) |
Aug
(6) |
Sep
(15) |
Oct
|
Nov
|
Dec
|
2004 |
Jan
(16) |
Feb
(27) |
Mar
(3) |
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
(65) |
Sep
|
Oct
|
Nov
(8) |
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(16) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Rudi B. <ru...@us...> - 2005-07-26 10:18:31
|
Update of /cvsroot/jawmail/ab2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17595 Log Message: Initial import. Status: Vendor Tag: vendor Release Tags: start N ab2/css.php N ab2/object.php N ab2/import.php N ab2/view.php N ab2/index.php N ab2/prefs.php N ab2/export.php N ab2/templates/default/object/browser_cards.php N ab2/templates/default/object/view.php N ab2/templates/default/object/browser_list.php N ab2/templates/default/object/browser_dlist.php N ab2/templates/default/object/external.php N ab2/templates/default/object_editor/footer.php N ab2/templates/default/object_editor/fields.php N ab2/templates/default/object_editor/groups.php N ab2/templates/default/object_editor/header.php N ab2/templates/default/common/menu.php N ab2/templates/default/browser/_pagination.php N ab2/templates/default/browser/_display_group.php N ab2/templates/default/browser/browser_list_empty.php N ab2/templates/default/browser/browser_dlist_empty.php N ab2/templates/default/browser/list.php N ab2/templates/default/browser/_pagination_old.php N ab2/templates/default/browser/dlist.php N ab2/templates/default/browser/_search.php N ab2/templates/default/browser/list_actions.php N ab2/templates/default/browser/cards.php N ab2/lib/importer.php N ab2/lib/object.php N ab2/lib/api.php N ab2/lib/field.php N ab2/lib/ab2_browser.php N ab2/lib/object_editor.php N ab2/lib/base.php N ab2/lib/backend.php N ab2/lib/ab2.php N ab2/lib/backend/sql.php N ab2/lib/field/group.php N ab2/lib/field/text.php N ab2/lib/field/url.php N ab2/lib/field/string.php N ab2/lib/field/email.php N ab2/lib/field/telephone.php N ab2/lib/field/select.php N ab2/scripts/sql/mysql.sql N ab2/themes/default/theme.php N ab2/themes/default/images/edit.gif N ab2/themes/default/images/ab2.gif N ab2/themes/default/images/delete.gif N ab2/themes/default/images/new_contact.gif N ab2/themes/default/images/menu/export.gif N ab2/themes/default/images/menu/import.gif N ab2/themes/default/images/menu/browse.gif N ab2/conf/regentry.php.dist N ab2/conf/backends.php.dist N ab2/conf/.cvsignore N ab2/conf/regentry.php No conflicts created by this import ***** Bogus filespec: - Imported sources |
From: Rudi B. <ru...@us...> - 2005-07-07 22:23:48
|
Update of /cvsroot/jawmail/docs/en/development In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5619/development Modified Files: translations.xml Added Files: api.xml applications.xml plugins.xml themes.xml Log Message: ... --- NEW FILE: api.xml --- <chapter id="development-api"> <title>Calling applications APIs</title> <para>To use APIs that applications provide, use registry's method <varname>call</varname>. It requires at least two parameters - first one is applications API function name, second one is applications name. If API function requires parameters, put them after these two. </para> <para> <example> <title>Calling an API function with one additional parameter</title> <!-- === --> <programlisting> <![CDATA[$JAW->registry->call('driver_factory', 'ab', 'sql1');]]> </programlisting> <!-- === --> </example> </para> </chapter> --- NEW FILE: applications.xml --- <chapter id="development-applications"> <title>Development of new applications</title> <para> Unfortunately, the documentation for the actual development is virtually non-existant. The general rule might even be <ulink url="http://burks.brighton.ac.uk/burks/foldoc/61/122.htm"><quote>Use the Source, Luke!</quote></ulink>. </para> <para> There is a skeleton for new applications in the <link linkend="general-installation-cvs">CVS repository</link>. CVS module name is <filename>skeleton</filename>. Hopefully, the application will demonstrate as many uses of libraries as possible. </para> </chapter> --- NEW FILE: plugins.xml --- <chapter id="development-plugins"> <title>Development of new plugins</title> <sect1> <title>Introduction</title> <para>Plugins are used for adding functionality, enchancements and setup specific procedures to JAW without touching the main code and therefore allowing easier upgrades without the need for constant additions of your custom code. </para> </sect1> <sect1> <title>Implementation</title> <para>Plugins are called via hooks which are spread thruout the code. Each hook has a unique name and passes parameters in a array. Parameters are referenced so that you can alter them.</para> <sect2> <title>File structure</title> <para>Plugin and its associated files are placed into the <filename>plugins/</filename> directory in the root of the JAW installation. Each plugin has its own unique ID and the subdirectory for it is the same as its ID.</para> </sect2> <sect2> <title>Neccessary files</title> <sect3> <title><filename>info.php</filename></title> <para>Contains information about the plugin that tell the loader when to invoke it, which hooks to call, the title and description of it and more. They get stored into the <varname>$INF</varname> array. <example> <title>A sample plugin info file</title> <programlisting><![CDATA[<?php $INF['name'] = _("Sample plugin"); $INF['desc'] = _("Sample demo plugin for developers"); $INF['hooks'] = array('__page_header', '__page'); $INF['apps'] = array('*'); ]]> </programlisting> </example> </para> </sect3> <sect3> <title><filename>plugin.php</filename></title> <para>Contains the base class of the plugin. The class extends the <varname>Plugin</varname> class. <example> <title>A sample plugin class</title> <programlisting><![CDATA[<?php /** * Sample plugin * * @author Rudi Benkovic <ru...@ja...> */ Class Plugin_Sample extends Plugin { function process() { global $JAW; switch ($this->current_hook) { case '__page': print 'Hello world!'; break; } } } ]]> </programlisting> </example> </para> </sect3> </sect2> <sect2> <title>Installing and enabling plugins</title> <para>Enable and pre-set plugins in the Administration application.</para> </sect2> </sect1> </chapter> --- NEW FILE: themes.xml --- <chapter id="development-themes"> <title>Themes and templates</title> <sect1 id="development-themes-about"> <title>About themes and templates</title> <para> Seperating code and the end view of processed pages is done via two helping mechanisms: themes and templates. </para> <para> Templates usually produce the actual returned XHTML code. This code shouldn't (but it <emphasis>might</emphasis>) contain any definitions regarding the actual color, style or background color of the returned elements. </para> <para> Instead, themes should be used for setting the colors of elements. This is done via CSS themes and seperate images. </para> <note> <para> In case that any of the files (or images) are missing in a particular theme or template, they fallback to the <filename>default</filename> theme or template. </para> <para> This is very useful for new themes - you don't have to copy all of the icons or background images - they automatically fallback to the default if you haven't added a new one to your theme. </para> </note> </sect1> <sect1 id="development-themes-templates"> <title>Templates</title> <para> Template files are plain PHP files which should output XHTML. </para> <para> Templates are stored in application's directory in the subdirectory <filename>templates</filename>. The default template is called <filename>default</filename> and it resides in <filename>templates/default/</filename>. </para> <para> Template files are included in applications like this: <programlisting role="php">include $JAW->templates->inc('common/header.php');</programlisting> </para> </sect1> <sect1 id="development-themes-themes"> <title>Themes</title> <para> Themes consist of a file <filename>theme.php</filename> which contains CSS definitions and a subdirectory <filename>images</filename> which should contain any required images. </para> <para> Theme files are stored in application's directory in the subdirectory <filename>themes</filename>. The default theme is called <filename>default</filename> and it resides in <filename>themes/default/</filename>. </para> </sect1> <sect1 id="development-themes-themes-developing"> <title>Developing new themes</title> <para> ... </para> </sect1> </chapter> Index: translations.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/development/translations.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- translations.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ translations.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,68 +1,68 @@ - <chapter id="development-translations"> - <title>Translations</title> +<chapter id="development-translations"> + <title>Translations</title> - <tip id="development-translations-use-a-gui"> - <title>Use a GUI!</title> - <para> - It will significantly speed up the process of making a translation! - My personal favourite is <ulink type="http" url="http://poedit.sourceforge.net/">poEdit</ulink> - - it's avaiable in Windows and Linux flavours. - </para> - <para> - Or, get some other utilities at - <ulink type="http" url="http://i18n.kde.org/translation-howto/gui-specialized-apps.html">KDE's list of them</ulink>. - </para> - </tip> - <note> - <title>Special messages</title> - - <para> - Some messages might look like this: - <programlisting>msgid "sort by|size"</programlisting> - The part before the bracket is only to keep the messages unique and to help the translator - to use the correct form. The translated string should have only the part after the bracket. - </para> - </note> + <tip id="development-translations-use-a-gui"> + <title>Use a GUI!</title> + <para> + It will significantly speed up the process of making a translation! + My personal favourite is <ulink type="http" url="http://poedit.sourceforge.net/">poEdit</ulink> + - it's avaiable in Windows and Linux flavours. + </para> + <para> + Or, get some other utilities at + <ulink type="http" url="http://i18n.kde.org/translation-howto/gui-specialized-apps.html">KDE's list of them</ulink>. + </para> + </tip> + <note> + <title>Special messages</title> - <sect1 id="development-translations-new"> - <title>New translations</title> - - <para> - Add an entry to <filename>conf/langs.php</filename>: - <programlisting>$LANGS['sl_SI'] = array('name' => _("language|Slovenian"));</programlisting> - </para> - <para> - Each application has a <filename>po/</filename> subdirectory. - <screen><prompt>[root@blisk po]#</prompt> <userinput>make messages</userinput></screen> - Copy the resulting file <filename>messages.po</filename> into a filename with the language code - of your language. - <screen><prompt>[root@blisk po]#</prompt> <userinput>cp messages.po sl_SI.po</userinput></screen> - Edit this file with an <link linkend="development-translations-use-a-gui">editor</link>. Be sure - to edit the file in UTF-8 encoding. - </para> - <para> - After you have finished translating, build the translation. - <screen><prompt>[root@blisk po]#</prompt> <userinput>make install</userinput></screen> - </para> + <para> + Some messages might look like this: + <programlisting>msgid "sort by|size"</programlisting> + The part before the bracket is only to keep the messages unique and to help the translator + to use the correct form. The translated string should have only the part after the bracket. + </para> + </note> + + <sect1 id="development-translations-new"> + <title>New translations</title> - </sect1> + <para> + Add an entry to <filename>conf/langs.php</filename>: + <programlisting>$LANGS['sl_SI'] = array('name' => _("language|Slovenian"));</programlisting> + </para> + <para> + Each application has a <filename>po/</filename> subdirectory. + <screen><prompt>[root@blisk po]#</prompt> <userinput>make messages</userinput></screen> + Copy the resulting file <filename>messages.po</filename> into a filename with the language code + of your language. + <screen><prompt>[root@blisk po]#</prompt> <userinput>cp messages.po sl_SI.po</userinput></screen> + Edit this file with an <link linkend="development-translations-use-a-gui">editor</link>. Be sure + to edit the file in UTF-8 encoding. + </para> + <para> + After you have finished translating, build the translation. + <screen><prompt>[root@blisk po]#</prompt> <userinput>make install</userinput></screen> + </para> + + </sect1> + + + <sect1 id="development-translations-update"> + <title>Updating translations</title> + <para>Some new messages might appear. Merge current translations with the new reference + file. + + <screen><prompt>[root@blisk po]#</prompt> <userinput>make merge</userinput></screen> + </para> + + <para> + Edit the updated file and rebuild the translation. + <screen><prompt>[root@blisk po]#</prompt> <userinput>make install</userinput></screen> + </para> - <sect1 id="development-translations-update"> - <title>Updating translations</title> - - <para>Some new messages might appear. Merge current translations with the new reference - file. - - <screen><prompt>[root@blisk po]#</prompt> <userinput>make merge</userinput></screen> - </para> - - <para> - Edit the updated file and rebuild the translation. - <screen><prompt>[root@blisk po]#</prompt> <userinput>make install</userinput></screen> - </para> - - - </sect1> - </chapter> + + </sect1> +</chapter> \ No newline at end of file |
Update of /cvsroot/jawmail/docs/en In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5619 Modified Files: book.xml chapters.ent contacts.xml depend.xml development.xml faq.xml general.xml Added Files: applications.xml jawmail.xml Log Message: ... --- NEW FILE: applications.xml --- <part id="applications"> <title>Applications</title> &applications.ab; &applications.admin; &applications.mail; &applications.grapher; </part> --- NEW FILE: jawmail.xml --- <appendix id="jawmail"> <title>JAWmail</title> <sect1 id="jawmail-intro"> <title>Introduction</title> <sect2 id="jawmail-intro-whatis"> <title>What is JAWmail?</title> <para> JAWmail is a distribution of JAW, packed with webmail applications (<link linkend="applications-ab">Address Book</link> and of course <link linkend="applications-mail">Mail</link>) and a simple web-based installation. </para> <para> It was introduced because installing JAW from CVS and editing all of the configuration files by hand turned out to be a little difficult for novice users. The other alternative would be to develop a powerful installation utility, but this turned out to be a bit difficult because of the wide array of possible uses of JAW (different authentication, session, ... backends, command line or web mode, ...). </para> </sect2> <sect2 id="jawmail-intro-link"> <title>How are JAW and JAWmail linked?</title> <para> The <filename>jawmail2</filename> module in the JAWmail CVS repository should contain only files that differ from the JAW repository; things like new JAWmail specific themes (altered logo) or templates, the installer or documentation on how to use the installer. </para> </sect2> </sect1> <sect1 id="jawmail-devel"> <title>Development</title> <sect2> <title>How to use JAWmail and JAW from CVS</title> <para> At first, you'll have to checkout JAW from, as <link linkend="general-installation-cvs">described</link> in the documentation. </para> <para> Now, checkout JAWmail from CVS into a seperate directory, like <filename>/home/bdfh/cvs/jawmail/</filename>: <screen><prompt>[bdfh@blisk jawmail]# </prompt><userinput>cvs -d:pserver:ano...@cv...:/cvsroot/jawmail login</userinput></screen> </para> <para> Just press <keycap>ENTER</keycap> - the password is blank. <screen><prompt>[bdfh@blisk jawmail]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co jawmail2</userinput></screen> </para> <para> Now you'll have to symlink the directories in <filename>jawmail2/</filename> into the root of your installation of JAW: <screen><prompt>[bdfh@blisk jaw]# </prompt> <userinput>ln -s /home/bdfh/cvs/jawmail/jawmail2/install.php /www/htdocs/jaw/</userinput> <prompt>[bdfh@blisk jaw]# </prompt> <userinput>ln -s /home/bdfh/cvs/jawmail/jawmail2/jawmail/ /www/htdocs/jaw/</userinput> <prompt>[bdfh@blisk jaw]# </prompt> <userinput>ln -s /home/bdfh/cvs/jawmail/jawmail2/themes/ /www/htdocs/jaw/</userinput></screen> </para> <para> Now run the script that prepares the configuration files: <screen><prompt>[bdfh@blisk jaw]# </prompt> <userinput>bash jawmail/prepare.sh</userinput></screen> </para> <para> Install the JAWmail as usual. Have fun. </para> </sect2> </sect1> </appendix> Index: book.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/book.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- book.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ book.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,9 +1,8 @@ - -<title>JAWmail</title> +<title>JAW</title> <bookinfo id="bookinfo"> - <title>JAWmail</title> + <title>JAW</title> <authorgroup> <author> @@ -13,13 +12,18 @@ </authorgroup> <copyright> - <year>2001, 2002</year> + <year>2001</year> + <year>2002</year> + <year>2003</year> + <year>2004</year> + <year>2005</year> <holder>Rudi Benkovič</holder> </copyright> <legalnotice id="copyright"> <title>Copyright</title> <simpara> + This manual can be redistributed under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) @@ -37,16 +41,18 @@ <title>Preface</title> <abstract> <simpara> - JAWmail stands for Just Another Web mail. The core is JAW, a flexible - web application framework. + JAW stands for Just Another Web. It is a web framework written in PHP, + aimed for simple administration and high customizability by the user and + the administrator. </simpara> - </abstract> </preface> + &general; +&applications; &development; -&faq; -&contacts; &depend; - +&faq; +&jawmail; +&contacts; \ No newline at end of file Index: chapters.ent =================================================================== RCS file: /cvsroot/jawmail/docs/en/chapters.ent,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- chapters.ent 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ chapters.ent 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,16 +1,17 @@ - <!ENTITY general SYSTEM "general.xml"> +<!ENTITY applications SYSTEM "applications.xml"> +<!ENTITY applications.mail SYSTEM "applications/mail.xml"> +<!ENTITY applications.ab SYSTEM "applications/ab.xml"> +<!ENTITY applications.admin SYSTEM "applications/admin.xml"> +<!ENTITY applications.grapher SYSTEM "applications/grapher.xml"> <!ENTITY general.installation SYSTEM "general/installation.xml"> <!ENTITY general.configuration SYSTEM "general/configuration.xml"> - -<!ENTITY contacts SYSTEM "contacts.xml"> - -<!ENTITY faq SYSTEM "faq.xml"> - - - - <!ENTITY development SYSTEM "development.xml"> <!ENTITY development.translations SYSTEM "development/translations.xml"> - +<!ENTITY development.plugins SYSTEM "development/plugins.xml"> +<!ENTITY development.api SYSTEM "development/api.xml"> +<!ENTITY development.applications SYSTEM "development/applications.xml"> +<!ENTITY jawmail SYSTEM "jawmail.xml"> +<!ENTITY faq SYSTEM "faq.xml"> +<!ENTITY contacts SYSTEM "contacts.xml"> <!ENTITY depend SYSTEM "depend.xml"> \ No newline at end of file Index: contacts.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/contacts.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- contacts.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ contacts.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,4 +1,3 @@ - <appendix id="contacts"> <title>Contacts</title> @@ -9,9 +8,9 @@ <formalpara> <title>Development mailing list</title> <para> - You can see the archives <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=2164">here</ulink> + You can see the archives <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=1038">here</ulink> and you can subscribe or unsubscribe via the web interface - <ulink url="http://lists.sourceforge.net/mailman/listinfo/jawmail-devel">here</ulink>. + <ulink url="http://lists.sourceforge.net/mailman/listinfo/jaw-devel">here</ulink>. </para> </formalpara> </listitem> @@ -19,9 +18,9 @@ <formalpara> <title>CVS commits mailing list</title> <para> - You can see the archives <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=7314">here</ulink> + You can see the archives <ulink url="http://sourceforge.net/mailarchive/forum.php?forum_id=6089">here</ulink> and you can subscribe or unsubscribe via the web interface - <ulink url="http://lists.sourceforge.net/mailman/listinfo/jawmail-cvs">here</ulink>. + <ulink url="http://lists.sourceforge.net/mailman/listinfo/jaw-cvs-jaw">here</ulink>. </para> </formalpara> </listitem> @@ -30,7 +29,7 @@ <sect1> - <title>Developers</title> + <title>Core developers</title> <para> <itemizedlist> @@ -45,4 +44,3 @@ </sect1> </appendix> - Index: depend.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/depend.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- depend.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ depend.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -5,12 +5,12 @@ <sect1 id="depend-intro"> <title>Introduction</title> <para> - JAWmail depends on many other external applications. It can be quite a challenge to compile + JAW depends on many other external applications. It can be quite a challenge to compile and configure all of them, so here is a little collection of tips and notes. </para> <para> - JAWmail has been designed to run on Linux servers, so configuration on other systems might be + JAW has been designed to run on Linux servers, so configuration on other systems might be a bit different. </para> </sect1> @@ -22,7 +22,7 @@ </sect1> <sect1 id="depend-php"> <title>PHP</title> - <para>An absolute requirement is <ulink url="http://www.php.net/downloads.php">PHP</ulink> 4.1.2.</para> + <para>An absolute requirement is <ulink url="http://www.php.net/downloads.php">PHP</ulink> 4.1.0.</para> <para>PHP must be compiled with these modules: <itemizedlist> <listitem> @@ -66,7 +66,7 @@ <formalpara> <title>IMAP</title> - <para>Required by the mail application and the + <para>Required by the <link linkend="applications-mail">mail application</link> and the IMAP authentication module. IMAP c-client 2001 is recommended. You can get the latest version of it <ulink url="ftp://ftp.cac.washington.edu/imap/">here</ulink>. @@ -77,7 +77,7 @@ <formalpara> <title>Various SQL modules</title> <para> - JAWmail uses PEAR::DB for access to SQL servers. It supports almost all SQL servers + JAW uses PEAR::DB for access to SQL servers. It supports almost all SQL servers that PHP does. </para> </formalpara> @@ -128,25 +128,7 @@ </para> </formalpara> </listitem> - <listitem> - <formalpara> - <title><varname>include_path</varname></title> - <para> - The <varname>include_path</varname> directive has to include these paths, seperated - by a colon: - - <itemizedlist> - <listitem><para><filename>.</filename></para></listitem> - <listitem><para><filename>../../</filename></para></listitem> - <listitem><para>Path to your <link linkend="depend-php-pear">PEAR</link> installation, usually <filename>/usr/local/lib/php/</filename>.</para></listitem> - </itemizedlist> - - The single dot has to be the first one! - </para> - </formalpara> - </listitem> - - + </itemizedlist> </para> @@ -163,7 +145,7 @@ <para> Be sure that path to PEAR (usually <filename>/usr/local/lib/php/</filename>) is in the configuration directive <varname>include_path</varname> of PHP! Script <filename>test.php</filename> in the - root directory of JAWmail will check these directives! + root directory of JAW will check these directives! </para> </sect2> </sect1> Index: development.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/development.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- development.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ development.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,6 +1,9 @@ <part id="development"> <title>Development</title> + &development.applications; + &development.api; + &development.plugins; &development.translations; </part> \ No newline at end of file Index: faq.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/faq.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- faq.xml 30 Oct 2002 23:09:16 -0000 1.3 +++ faq.xml 7 Jul 2005 22:23:37 -0000 1.4 @@ -1,93 +1,9 @@ + <appendix id="faq"> <title>Frequently Asked Questions</title> <qandaset> <qandadiv> - <title>Troubleshooting</title> - - <qandaentry> - <question> - <para> - Every time that someone uses JAWmail, I get such errors in the httpd's error log: - </para> - <para> - <programlisting>[Wed Jul 17 14:47:11 2002] [notice] child pid 18543 exit signal Segmentation fault (11) </programlisting> - </para> - - <para> - What is this? - </para> - </question> - - <answer> - <para> - Unfortunatelly, PHP or one of it's underlying libraries crashed. - Please <ulink url="http://bugs.php.net/report.php">report</ulink> this - bug to the PHP team. - You'll have to generate a - <ulink url="http://bugs.php.net/bugs-generating-backtrace.php">backtrace of the segfault</ulink>! - </para> - </answer> - - </qandaentry> - - <qandaentry> - <question> - <para>Installer says that <filename>Net/Socket.php</filename> is missing! Where can I get it?</para> - </question> - - <answer> - <para> - This is a missing PEAR module. You can try installing it by - using the PEAR command line interface, like this: - - <screen><prompt>[root@blisk jaw]# </prompt><userinput>pear install Net_Socket</userinput></screen> - </para> - - <para> - If that doesn't work, download the tarball from - <ulink url="http://pear.php.net/package-info.php?pacid=64">here</ulink> - and copy - the <filename>Socket.php</filename> file into your PEAR library directory - (usually <filename>/usr/local/lib/php/</filename>) into the - <filename>Net</filename> subdirectory. - </para> - </answer> - </qandaentry> - - <qandaentry> - <question> - <para> - I cannot log in! I'm 100% sure that my username and password - are correct! - </para> - </question> - - <answer> - <para> - Most probably, this is an IMAP/SSL problem. - </para> - <para> - First, try using the IMAP testing page. Open the page - <filename>apps/mail/test-ima.php</filename> in your browser - (so, if JAWmail is installed in <filename>http://server.lan/jawmail/</filename>, - load <filename>http://server.lan/jawmail/apps/mail/test-imap.php</filename>). - </para> - - <para> - Now, enter your IMAP username and password and enter the hostname of your IMAP server. - - In case that the connection will fail, try choosing another IMAP protocol. Most probably, - <varname>imap/notls</varname> will work. If it does, reinstall JAWmail and select - the appropriate IMAP protocol during installation. - </para> - </answer> - </qandaentry> - - - - </qandadiv> - <qandadiv> <title>Gettext</title> <qandaentry> @@ -150,7 +66,8 @@ <para>You can write or maintain a <link linkend="development-translations">translation</link>.</para> </listitem> <listitem> - <para>You can write a new application or a plugin. + <para>You can write a new <link linkend="development-applications">application</link> + or a <link linkend="development-plugins">plugin</link>. </para> </listitem> <listitem> @@ -171,20 +88,6 @@ </para> </listitem> - <listitem> - <para> - You can donate stuff! - - <itemizedlist> - <listitem> - <para> - Donate a cool geek toy from <ulink url="http://www.thinkgeek.com/">ThinkGeek</ulink>. Use - <ulink url="https://www.thinkgeek.com/brain/order/certificate.cgi">gift certificates</ulink>! - </para> - </listitem> - </itemizedlist> - </para> - </listitem> </itemizedlist> </para> @@ -195,4 +98,4 @@ </qandaset> -</appendix> \ No newline at end of file +</appendix> Index: general.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/general.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- general.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ general.xml 7 Jul 2005 22:23:37 -0000 1.2 @@ -1,4 +1,3 @@ - <part id="general"> <title>General</title> @@ -6,15 +5,10 @@ <title>Introduction</title> <sect1> - <title>What is JAWmail?</title> + <title>What is JAW?</title> <para> - JAWmail is a fast, robust and extensible webmail project. Webmail is implemented using - several applications, like Mail and Address Book. - </para> - - <para> - The core, JAW, is a framework for building web applications with the PHP server side scripting + JAW is a framework for building web applications with the PHP server side scripting language. It provides generic methods for session handling, internationalization, template handling, use authentication, preferences storage and user interface, help system and others. </para> @@ -36,4 +30,4 @@ &general.configuration; -</part> +</part> \ No newline at end of file |
From: Rudi B. <ru...@us...> - 2005-07-07 22:23:47
|
Update of /cvsroot/jawmail/docs/en/applications In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5619/applications Added Files: ab.xml admin.xml grapher.xml mail.xml Log Message: ... --- NEW FILE: ab.xml --- <chapter id="applications-ab"> <title>Address book</title> <sect1> <title>...</title> <para>...</para> </sect1> </chapter> --- NEW FILE: admin.xml --- <chapter id="applications-admin"> <title>Administration</title> <sect1> <title>...</title> <para>...</para> </sect1> </chapter> --- NEW FILE: grapher.xml --- <chapter id="applications-grapher"> <title>Grapher</title> <sect1> <title>Introduction</title> <para>Grapher is a fully featured frontend for the Round Robin Database tool - <ulink url="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/index.html">RRDtool</ulink>. Grapher fetches data from various data sources, stores them into RRD files and later graphs them. </para> </sect1> <sect1> <title>Installation</title> <para> 1. Install <ulink url="http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/">RRDtool</ulink>. 2. Edit Grapher's configuration file(s). </para> </sect1> </chapter> --- NEW FILE: mail.xml --- <chapter id="applications-mail"> <title>Mail</title> <sect1> <title>Frequently Asked Questions</title> <qandaset> <qandaentry> <question> <para> Why isn't the POP3 protocol supported? </para> </question> <answer> <para> POP3 wasn't designed for online operation, but IMAP was. But if there would be support for it, it would be slow, had many missing features, MIME support wouldn't be perfect, there would be no <literal>Sent mail</literal> folders - actually, there would be no folders at all! </para> <para> For more information, check <ulink url="ftp://ftp.cac.washington.edu/mail/imap.vs.pop.brief">this</ulink> brief article, or <ulink url="ftp://ftp.cac.washington.edu/mail/imap.vs.pop">this</ulink> one with even more details. </para> </answer> </qandaentry> </qandaset> </sect1> </chapter> |
From: Rudi B. <ru...@us...> - 2005-07-07 22:23:47
|
Update of /cvsroot/jawmail/docs/en/general In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5619/general Modified Files: configuration.xml installation.xml Log Message: ... Index: configuration.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/general/configuration.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- configuration.xml 16 Aug 2002 17:34:41 -0000 1.1.1.1 +++ configuration.xml 7 Jul 2005 22:23:38 -0000 1.2 @@ -1,138 +1,115 @@ - <chapter id="general-configuration"> <title>Configuration</title> - <para>JAWmail can be configuration either automatically using a web-based installer, - or by manually tweaking the configuration files. Manual configuration provides - much better flexibility, but you have to dig into the configuration files and SQL - tables. But you can later tweak the configuration files that were already modified - by the web installer. - </para> - - <sect1 id="general-configuration-installer"> - <title>Web installer</title> + <sect1 id="general-configuration-files"> + <title>Configuration files</title> <para> - Just load the <filename>install.php</filename> page in your web browser and - follow the instructions! - </para> - </sect1> - - <sect1 id="general-configuration-manual"> - <title>Manual configuration</title> + All of the configuration files for an application or a plugin are in the subdirectory + <filename>conf/</filename>. - <para>In case that you want to really customize the installation of JAWmail! Have fun.</para> + You must copy files like <filename>config.php.dist</filename> into <filename>config.php</filename> + and modify them as needed. - <sect2 id="general-configuration-files"> - <title>Configuration files</title> - - <para> - All of the configuration files for an application or a plugin are in the subdirectory - <filename>conf/</filename>. - - You must copy files like <filename>config.php.dist</filename> into <filename>config.php</filename> - and modify them as needed. + </para> + + <sect2> + <title>Common configuration files</title> - </para> + <para>There are some configuration files that exist for every application:</para> - <sect3> - <title>Common configuration files</title> - - <para>There are some configuration files that exist for every application:</para> - - <itemizedlist> - <listitem> - <formalpara> - <title>prefs.php</title> - <para> - All the defaults of preferences are stored in here. - </para> - </formalpara> - </listitem> - - <listitem> - <formalpara> - <title>prefs_ui.php</title> - <para> - The preferences user interface is built from this file. If you would like - to lock (disallow a user to change it) a preference, then change the last parameter - to <filename>$p->add_pref()</filename> to true - the preference is locked. - </para> - </formalpara> - </listitem> + <itemizedlist> + <listitem> + <formalpara> + <title>prefs.php</title> + <para> + All the defaults of preferences are stored in here. + </para> + </formalpara> + </listitem> - </itemizedlist> - - </sect3> + <listitem> + <formalpara> + <title>prefs_ui.php</title> + <para> + The preferences user interface is built from this file. If you would like + to lock (disallow a user to change it) a preference, then change the last parameter + to <filename>$p->add_pref()</filename> to true - the preference is locked. + </para> + </formalpara> + </listitem> + + </itemizedlist> + </sect2> + </sect1> + <sect1> + <title>SQL databases</title> + + <para>The most common backend driver for preferences, access control lists, sessions + and authentication is probably the SQL driver. If you are going to use it for any of + the avaiable purposes, read this documentation. + </para> + <sect2> - <title>SQL databases</title> - - <para>The most common backend driver for preferences, access control lists, sessions - and authentication is probably the SQL driver. If you are going to use it for any of - the avaiable purposes, read this documentation. - </para> + <title>Creating SQL tables</title> - <sect3> - <title>Creating SQL tables</title> - - <para>You'll have to import SQL dumps for your SQL server. They can be found - in the <filename>sql</filename> subdirectory.</para> - - <sect4> - <title>MySQL</title> - - <para> - At first, you'll have to create a new database for JAW: - <screen><prompt>[root@blisk sql]#</prompt> <userinput>mysqladmin -u root -p -h localhost create jaw</userinput></screen> - Then, import the SQL dump: - <screen><prompt>[root@blisk sql]#</prompt> <userinput>mysql jaw -u root -p -h localhost < mysql.dump</userinput></screen> - </para> - - </sect4> - - </sect3> + <para>You'll have to import SQL dumps for your SQL server. They can be found + in the <filename>sql</filename> subdirectory.</para> <sect3> - <title>Configuration parameters</title> + <title>MySQL</title> <para> - JAW uses the PEAR::DB unified library for access to SQL servers. - - To connect to a database through PEAR::DB, you have to create a valid DSN - - data source name. - - You can pass the DSN as an array: - <programlisting>$dsn = array('phptype' => 'mysql', - 'hostspec' => 'localhost', - 'database' => 'jaw', - 'username' => 'root', - 'password' => 'l33t' - );</programlisting> - - or as a string: - <programlisting>$dsn = 'phptype://username:password@hostspec/database';</programlisting> - - Check the <ulink url="http://pear.php.net/manual/en/core.db.tut_dsn.php">documentation</ulink> - of PEAR::DB for more details. + At first, you'll have to create a new database for JAW: + <screen><prompt>[root@blisk sql]#</prompt> <userinput>mysqladmin -u root -p -h localhost create jaw</userinput></screen> + Then, import the SQL dump: + <screen><prompt>[root@blisk sql]#</prompt> <userinput>mysql jaw -u root -p -h localhost < mysql.dump</userinput></screen> </para> - + </sect3> + </sect2> + <sect2> - <title>Testing your setup</title> - - <para>Load the <filename>test.php</filename> page in your browser. It is located - in the root of your install. Check if there are any errors - if there are, - re-read the documentation and fix them! - </para> + <title>Configuration parameters</title> <para> - If everything works okay, then log into JAW. If you have an ACL backend - that is capable of administration, then you should also see the - Administration application. If you don't, then either you weren't the first - one to login, or something is not quite okay. + JAW uses the PEAR::DB unified library for access to SQL servers. + + To connect to a database through PEAR::DB, you have to create a valid DSN + - data source name. + + You can pass the DSN as an array: + <programlisting>$dsn = array('phptype' => 'mysql', + 'hostspec' => 'localhost', + 'database' => 'jaw', + 'username' => 'root', + 'password' => 'l33t' + );</programlisting> + + or as a string: + <programlisting>$dsn = 'phptype://username:password@hostspec/database';</programlisting> + + Check the <ulink url="http://pear.php.net/manual/en/core.db.tut_dsn.php">documentation</ulink> + of PEAR::DB for more details. </para> + </sect2> </sect1> + <sect1> + <title>Testing your setup</title> + + <para>Load the <filename>test.php</filename> page in your browser. It is located + in the root of your install. Check if there are any errors - if there are, + re-read the documentation and fix them! + </para> + + <para> + If everything works okay, then log into JAW. If you have an ACL backend + that is capable of administration, then you should also see the + Administration application. If you don't, then either you weren't the first + one to login, or something is not quite okay. + </para> + </sect1> </chapter> \ No newline at end of file Index: installation.xml =================================================================== RCS file: /cvsroot/jawmail/docs/en/general/installation.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- installation.xml 15 Nov 2002 21:48:46 -0000 1.2 +++ installation.xml 7 Jul 2005 22:23:38 -0000 1.3 @@ -1,4 +1,3 @@ - <chapter id="general-installation"> <title>Installation</title> <sect1> @@ -7,7 +6,7 @@ <sect2> <title>Download a tarball</title> - <para>You can find tarballs on the <ulink url="http://sourceforge.net/project/showfiles.php?group_id=17013">SourceForge project page</ulink> of the project.</para> + <para>You can find tarballs on the <ulink url="http://sourceforge.net/project/showfiles.php?group_id=31933">SourceForge project page</ulink> of the project.</para> </sect2> <sect2 id="general-installation-cvs"> @@ -19,11 +18,11 @@ <para>Start in your webroot:</para> - <screen><prompt>[root@blisk htdocs]# </prompt><userinput>cvs -d:pserver:ano...@cv...:/cvsroot/jawmail login</userinput></screen> + <screen><prompt>[root@blisk htdocs]# </prompt><userinput>cvs -d:pserver:ano...@cv...:/cvsroot/jaw login</userinput></screen> <para>Just press <keycap>ENTER</keycap> - the password is blank.</para> - <screen><prompt>[root@blisk htdocs]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co jaw</userinput></screen> + <screen><prompt>[root@blisk htdocs]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jaw co jaw</userinput></screen> <para>Directory <filename>jaw</filename> will be created and the latest sources will pour into it.</para> @@ -35,9 +34,9 @@ <para>Now checkout the desired applications from CVS:</para> -<screen><prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co ab</userinput> -<prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co admin</userinput> -<prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co mail</userinput></screen> +<screen><prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jaw co ab</userinput> +<prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jaw co admin</userinput> +<prompt>[root@blisk apps]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jaw co mail</userinput></screen> <para>And be sure to put these lines into your <filename>~/.cvsrc</filename>: @@ -51,49 +50,14 @@ ... <prompt>[root@blisk jaw]# </prompt><userinput>cd apps/mail/</userinput> <prompt>[root@blisk mail]# </prompt><userinput>cvs update</userinput> -...</screen> - </para> +...</screen> <note><para>You have to run the update for each application from the base application's directory!</para></note> - - - <para>To also install the web-based installer, follow these steps:</para> - - - - <para> - Checkout JAWmail 2 installer from CVS into a seperate directory, like - <filename>/home/user/cvs/jawmail/</filename>: - - <screen><prompt>[user@blisk jawmail]# </prompt><userinput>cvs -d:pserver:ano...@cv...:/cvsroot/jawmail login</userinput></screen> - - </para> - <para> - Just press <keycap>ENTER</keycap> - the password is blank. - <screen><prompt>[user@blisk jawmail]# </prompt><userinput>cvs -z3 -d:pserver:ano...@cv...:/cvsroot/jawmail co jawmail2</userinput></screen> - </para> - - - <para> - Now you'll have to symlink the directories in <filename>jawmail2/</filename> - into the root of your installation of JAW: - -<screen><prompt>[user@blisk jaw]# </prompt> <userinput>ln -s /home/user/cvs/jawmail/jawmail2/install.php /www/htdocs/jaw/</userinput> -<prompt>[user@blisk jaw]# </prompt> <userinput>ln -s /home/user/cvs/jawmail/jawmail2/jawmail/ /www/htdocs/jaw/</userinput> -<prompt>[user@blisk jaw]# </prompt> <userinput>ln -s /home/user/cvs/jawmail/jawmail2/themes/ /www/htdocs/jaw/</userinput></screen> - </para> - - <para> - Now run the script that prepares the configuration files: - <screen><prompt>[user@blisk jaw]# </prompt> <userinput>bash jawmail/prepare.sh</userinput></screen> - </para> - - <para> - Install JAWmail as usual. Have fun. - </para> - - + <note><para>Also, you have to copy the default (<filename>.dist</filename> extension) <link linkend="general-configuration-files">configuration files</link> + again over the actual ones (without the <filename>.dist</filename> extension) in case that something has changed! + </para></note> + </para> </sect2> </sect1> </chapter> |
From: Rudi B. <ru...@us...> - 2005-07-07 22:22:31
|
Update of /cvsroot/jawmail/docs/en/applications In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5219/applications Log Message: Directory /cvsroot/jawmail/docs/en/applications added to the repository |
From: Rudi B. <ru...@us...> - 2005-07-07 15:07:10
|
Update of /cvsroot/jawmail/jaw In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22606 Modified Files: test.php Log Message: added tests Index: test.php =================================================================== RCS file: /cvsroot/jawmail/jaw/test.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- test.php 14 Jul 2003 21:52:18 -0000 1.3 +++ test.php 7 Jul 2005 15:07:01 -0000 1.4 @@ -53,7 +53,7 @@ <h2>Basic PHP information</h2> - + <p>PHP <b><?= phpversion(); ?></b></p> <p><a href="test.php?phpinfo=1">Show phpinfo()</a></p> @@ -95,7 +95,7 @@ ); foreach ($a as $k => $v) { ?> - <?= $v ?> - <?= ext_check($k); ?><br /> + <?php print $v; ?> - <?php print ext_check($k); ?><br /> <?php } ?> @@ -118,6 +118,9 @@ <p>Magic quotes - GPC: <?php + + print $_GET['bla']; + if (get_magic_quotes_gpc()) { ?> <font color="red">Enabled</font> @@ -144,24 +147,13 @@ ?> </p> - - <p>include_path - - <?php - - $path = ini_get('include_path'); - - if (!stristr($path, '../../')) { - ?> - <font color="red">Missing <code>../../</code> in <code><b><?= $path ?></b></code>!</font> - <?php - } else { - ?> - <font color="green">Okay</font> - <?php - } + + <?php - ?> - </p> + $path = ini_get('include_path'); + + ?> + <p>include_path's first entry - <?php if ($path{0} != '.' && $path{1} != ':') { @@ -177,7 +169,22 @@ ?> </p> + <p>short_open_tag - + <?php + if (ini_get('short_open_tag') != 1) { + ?> + <font color="red"><b>Off!</b></font> + <?php + } else { + ?> + <font color="green"><b>On</b> - Okay</font> + <?php + } + + + + ?> <h2>JAW tests</h2> <p> @@ -190,4 +197,4 @@ </body> -</html> \ No newline at end of file +</html> |
From: Rudi B. <ru...@us...> - 2005-07-07 15:06:23
|
Update of /cvsroot/jawmail/jaw/lib/vfs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21543/vfs Modified Files: sql.php Log Message: ... Index: sql.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/vfs/sql.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sql.php 11 Aug 2004 00:26:32 -0000 1.1 +++ sql.php 7 Jul 2005 15:06:15 -0000 1.2 @@ -209,14 +209,15 @@ if (!$this->is_dir($path) && !$this->is_file($path)) { - $q = sprintf('INSERT INTO %s_metadata (filename, is_dir, owner, mode) ' . - 'VALUES (%s, %s, %s, %s)', + $q = sprintf('INSERT INTO %s_metadata (filename, is_dir, owner, mode, atime) ' . + 'VALUES (%s, %s, %s, %s, %s)', $this->conf['table_prepend'], $this->DB->quoteSmart($path), $this->DB->quoteSmart(1), $this->DB->quoteSmart($JAW->auth->get('uid')), - $this->DB->quoteSmart($mode) + $this->DB->quoteSmart($mode), + time() ); $this->DB->query($q); @@ -249,6 +250,32 @@ } } + function stat($file) { + + if ($this->is_dir($file)) { + return false; + } + + $q = sprintf('SELECT * FROM %s_metadata WHERE filename = %s', + $this->conf['table_prepend'], + $this->DB->quoteSmart($file) + ); + + $q = $this->DB->query($q); + + if ($q->numRows() == 0) { + return false; + } + + $r = $q->fetchRow(); + + return array('atime' => $r['atime'], + 'size' => $r['size'], + 'mode' => $r['mode'], + 'uid' => $r['owner'] + ); + + } function ls($directory, $options = '') { |
From: Rudi B. <ru...@us...> - 2005-07-07 15:03:45
|
Update of /cvsroot/jawmail/jaw/lib/configuration_storage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21288/configuration_storage Modified Files: sql.php Log Message: ... Index: sql.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/configuration_storage/sql.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- sql.php 11 Aug 2004 00:25:31 -0000 1.1 +++ sql.php 7 Jul 2005 15:03:35 -0000 1.2 @@ -13,7 +13,12 @@ $this->DB = DB::connect($this->conf['dsn'], array()); if (DB::iserror($this->DB)) { - return false; + JAW_Fatal_Error($this->DB->toString(), + 'lib/configuration_storage/sql.php', + __LINE__, + true, + "Database error" + ); } $this->DB->fetchmode = DB_FETCHMODE_ASSOC; |
From: Rudi B. <ru...@us...> - 2005-07-07 15:03:45
|
Update of /cvsroot/jawmail/jaw/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21288 Modified Files: help.php theme.php Log Message: ... Index: help.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/help.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- help.php 16 Aug 2002 17:32:30 -0000 1.1.1.1 +++ help.php 7 Jul 2005 15:03:34 -0000 1.2 @@ -118,18 +118,19 @@ var $__current_topic = NULL; function box_top($title) { + $out = ''; - $out .= '<table border="0" width="100%" cellspacing="0">'; - $out .= '<tr class="main-box-title">'; - $out .= '<td>' . $title . '</td>'; - $out .= '</tr><tr class="main-box-bg"><td>'; + $out .= '<div class="main-box">'; + $out .= '<div class="title"> ' . $title . '</div>'; + $out .= '<div class="content">'; + return $out; } function box_bottom() { $out = ''; - - $out .= '</td></tr></table>'; + + $out .= '</div></div>'; return $out; } Index: theme.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/theme.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- theme.php 28 Apr 2003 10:05:48 -0000 1.3 +++ theme.php 7 Jul 2005 15:03:34 -0000 1.4 @@ -91,10 +91,16 @@ $k =& $JAW->registry->apps[$app]; if ($skip_default == false) { - @include(utils::ju('{' . $app . '}themes/default/theme.php')); + $a = utils::ju('{' . $app . '}themes/default/theme.php'); + if (file_exists($a)) { + include $a; + } } if ($this->theme != 'default' && !empty($this->theme)) { - @include(utils::ju('{' . $app . '}themes/' . $this->theme . '/theme.php')); + $a = utils::ju('{' . $app . '}themes/' . $this->theme . '/theme.php'); + if (file_exists($a)) { + include $a; + } } |
From: Rudi B. <ru...@us...> - 2005-07-07 15:03:44
|
Update of /cvsroot/jawmail/jaw/lib/html/widget In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21288/html/widget Modified Files: file.php Log Message: ... Index: file.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/html/widget/file.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- file.php 11 Aug 2004 00:36:49 -0000 1.2 +++ file.php 7 Jul 2005 15:03:34 -0000 1.3 @@ -17,5 +17,13 @@ function getFile() { return $_FILES[$this->id]; - } + } + + function getFileContents() { + if ($_FILES[$this->id]['size'] > 0) { + return file_get_contents($_FILES[$this->id]['tmp_name']); + } + + return false; + } } |
From: Rudi B. <ru...@us...> - 2005-07-07 14:43:02
|
Update of /cvsroot/jawmail/mail/templates/default/read In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11610/templates/default/read Modified Files: actions.php Log Message: Fix for references for PHP5. Index: actions.php =================================================================== RCS file: /cvsroot/jawmail/mail/templates/default/read/actions.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- actions.php 22 Nov 2004 21:51:59 -0000 1.5 +++ actions.php 7 Jul 2005 14:42:53 -0000 1.6 @@ -64,7 +64,7 @@ if (count($v['children']) > 0) { - _list_folderSelect_html(&$a[$k]['children'], $level + 1, &$i); + _list_folderSelect_html($a[$k]['children'], $level + 1, $i); } } |
From: Rudi B. <ru...@us...> - 2005-07-07 14:39:28
|
Update of /cvsroot/jawmail/jaw/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9775 Modified Files: base.php Added Files: fatal_error.php Log Message: Fatal error handling. --- NEW FILE: fatal_error.php --- <?php /** * Issue a self-contained error page and then exit. * * @param $msg string Message that the user will see * @param $file string * @param $line string * @param $log bool Should we log this error in the error log? Logs $msg. * @param $msg_user string If $msg contains any infos that the user should not see, * then show this message to the user instead. * */ function JAW_Fatal_Error ($msg, $file = __FILE__, $line = __LINE__, $log = false, $msg_user = '') { ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> <head> <title>JAW :: Fatal error</title> </head> <body> <span style="color: red;"> <h2><?= (empty($msg_user)) ? $msg : $msg_user ?></h2> <?php if ($log === true) { ?> A detailed error report has been logged for the administrator. <br /> <?php } ?> <code>File <?= $file ?>, line <?= $line ?></code> </span> </body> </html> <?php if ($log === true) { JAW::logMessage($msg, LOG_CRIT); } exit(); } Index: base.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/base.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- base.php 11 Aug 2004 00:27:39 -0000 1.1 +++ base.php 7 Jul 2005 14:39:15 -0000 1.2 @@ -43,6 +43,7 @@ require_once JAW_ROOT . 'lib/html.php'; require_once JAW_ROOT . 'conf/version.php'; require_once JAW_ROOT . 'lib/text.php'; +require_once JAW_ROOT . 'lib/fatal_error.php'; $JAW = new JAW; |
From: Rudi B. <ru...@us...> - 2005-07-07 14:38:23
|
Update of /cvsroot/jawmail/mail/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8970/lib Modified Files: folder_tree.php Log Message: Fix references for PHP5. Index: folder_tree.php =================================================================== RCS file: /cvsroot/jawmail/mail/lib/folder_tree.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- folder_tree.php 11 Aug 2004 11:11:16 -0000 1.10 +++ folder_tree.php 7 Jul 2005 14:38:12 -0000 1.11 @@ -124,11 +124,11 @@ global $JAW, $conf; include($JAW->templates->inc('folders/tree_header.php')); - $this->_dumpHtml(&$this->data, 0); + $this->_dumpHtml($this->data, 0); include($JAW->templates->inc('folders/tree_footer.php')); } - function _dumpHtml(&$a, $level, $i = 1) { + function _dumpHtml(&$a, $level, &$i = 1) { global $JAW, $conf; foreach ($a as $k => $v) { @@ -137,7 +137,7 @@ $this->pointers_displayed_order[] = $k; if (count($v['children']) > 0) { - $this->_dumpHtml(&$a[$k]['children'], $level + 1, &$i); + $this->_dumpHtml($a[$k]['children'], $level + 1, $i); } } } @@ -154,11 +154,11 @@ global $JAW, $conf; include($JAW->templates->inc('folders/list/tree_header.php')); - $this->_dumpHtmlList(&$this->data, 0, 1, $closed_folders); + $this->_dumpHtmlList($this->data, 0, 1, $closed_folders); include($JAW->templates->inc('folders/list/tree_footer.php')); } - function _dumpHtmlList(&$a, $level, $i = 1, $closed_folders = array()) { + function _dumpHtmlList(&$a, $level, &$i = 1, $closed_folders = array()) { global $JAW, $conf; foreach ($a as $k => $v) { @@ -173,7 +173,7 @@ $this->pointers_displayed_order[] = $k; if (!$closed && count($v['children']) > 0) { - $this->_dumpHtmlList(&$a[$k]['children'], $level + 1, &$i, $closed_folders); + $this->_dumpHtmlList($a[$k]['children'], $level + 1, $i, $closed_folders); } } } |
From: Rudi B. <ru...@us...> - 2005-07-07 14:36:57
|
Update of /cvsroot/jawmail/mail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8194 Modified Files: test-imap.php Log Message: Remove warning notices. Index: test-imap.php =================================================================== RCS file: /cvsroot/jawmail/mail/test-imap.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- test-imap.php 11 Aug 2004 11:37:33 -0000 1.2 +++ test-imap.php 7 Jul 2005 14:36:32 -0000 1.3 @@ -1,8 +1,10 @@ <?php if (!isset($_POST['host'])) { $_POST['host'] = 'localhost'; } + if (!isset($_POST['username'])) { $_POST['username'] = ''; } if (!isset($_POST['port'])) { $_POST['port'] = '143'; } if (!isset($_POST['protocol'])) { $_POST['protocol'] = 'imap'; } if (!isset($_POST['mailbox'])) { $_POST['mailbox'] = 'INBOX'; } + ?> @@ -64,7 +66,7 @@ </form> <?php - if ($_POST['submit']) { + if (isset($_POST['submit'])) { print '<hr />'; $dsn = '{' . $_POST['host'] . ':' . $_POST['port'] . '/' . $_POST['protocol'] . '}' . $_POST['mailbox']; |
From: Rudi B. <ru...@us...> - 2005-07-07 11:53:12
|
Update of /cvsroot/jawmail/jaw/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21443 Modified Files: persistent_object.php Log Message: Supposed fixes for PHP 5.1. Index: persistent_object.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/persistent_object.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- persistent_object.php 15 Feb 2003 12:31:31 -0000 1.5 +++ persistent_object.php 7 Jul 2005 11:52:55 -0000 1.6 @@ -44,11 +44,11 @@ if (isset($GLOBALS['__persistent_objects'][$id])) { $GLOBALS['__persistent_objects'][$id]->__timeout = time() + $GLOBALS['__persistent_objects_timeout']; - $ret = &$GLOBALS['__persistent_objects'][$id]; + $ret = clone $GLOBALS['__persistent_objects'][$id]; } - $GLOBALS['__persistent_objects'][$id] = &$this; + $GLOBALS['__persistent_objects'][$id] = clone $this; break; @@ -61,7 +61,8 @@ ); $q = $d->query($q); - $ret = &$this; + $ret = clone $this; + if ($q->numRows() == 1) { $r = $q->fetchRow(); $ret = unserialize($r['data']); |
From: Rudi B. <ru...@us...> - 2004-11-22 21:52:10
|
Update of /cvsroot/jawmail/mail In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1875 Modified Files: mailbox.php read.php Log Message: A little feature that allows simple plugins to handle things such as Spam reports, Spam/Ham feeding, ... Index: mailbox.php =================================================================== RCS file: /cvsroot/jawmail/mail/mailbox.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- mailbox.php 11 Aug 2004 11:37:33 -0000 1.8 +++ mailbox.php 22 Nov 2004 21:51:59 -0000 1.9 @@ -3,12 +3,12 @@ require_once 'lib/base.php'; require_once 'lib/mailbox.php'; - $JAW->plugins->hook('mail.index.after_init'); $_['page']['js'][] = 'js/index.js'; -require_once('lib/imap_utils.php'); +require_once 'lib/imap_utils.php'; +require_once 'lib/message_action.php'; if (!empty($_REQUEST['mailbox'])) { $uniq = $_REQUEST['mailbox']; @@ -31,6 +31,16 @@ $_['page']['title'] = $Mailbox->title; +$msg_actions_mng = new Mail_Message_Actions_Manager; + +$msg_actions_mng->page = 'mailbox.php'; + +$JAW->plugins->hook('mail_message_actions_load', + array('manager' => &$msg_actions_mng) + ); + + + $selected_messages = $_POST['msg']; /* select the entire folder? */ if ($_POST['_select_folder'] == '1') { @@ -38,73 +48,87 @@ } switch (utils::fetch_var('action')) { - case MAIL_ACTION_EMPTY_TRASH: - $i = IMAP_Utils::Empty_Folder($JAW->prefs->get('folder_trash', 'mail')); - - if ($i > 0) { - $JAW->message( - _("Trash folder was successfully emptied!") . ' ' . - sprintf( - ngettext("%d message was deleted!", "%d messages were deleted!", $i), - $i - ), - JAW_SUCCESS - ); - } - - break; - - case MAIL_ACTION_DELETE: - imap_utils::delete($selected_messages); - - break; - case MAIL_ACTION_MOVE: - if (empty($_POST['dest_mbox'])) { - break; - } - - imap_utils::move($selected_messages, $_POST['dest_mbox']); - - $JAW->message( - sprintf(ngettext("%d message was moved into the folder %s!", "%d messages were moved into the folder %s!", count($selected_messages)), - count($_POST['msg']), imap_utils::folder_name_display($_POST['dest_mbox']) - ), - - JAW_SUCCESS - ); - - break; - case MAIL_ACTION_COPY: - if (empty($_POST['dest_mbox'])) { - break; - } - - imap_utils::copy($selected_messages, $_POST['dest_mbox']); - - $JAW->message( - sprintf(ngettext("%d message was copied into the folder %s!", "%d messages were copied into the folder %s!", count($selected_messages)), - count($selected_messages), imap_utils::folder_name_display($_POST['dest_mbox']) - ), - - JAW_SUCCESS - ); - - break; - case MAIL_ACTION_SEARCH_FORM_SUBMIT: - - foreach (array('subject', 'body', 'to', 'from', 'cc') as $v) { - if (!empty($_POST[$v])) { - $Mailbox->setSearchCriteria($v, $_POST[$v]); - } - } + case MAIL_ACTION_EMPTY_TRASH: + $i = IMAP_Utils::Empty_Folder($JAW->prefs->get('folder_trash', 'mail')); + + if ($i > 0) { + $JAW->message( + _("Trash folder was successfully emptied!") . ' ' . + sprintf( + ngettext("%d message was deleted!", "%d messages were deleted!", $i), + $i + ), + JAW_SUCCESS + ); + } + + break; - foreach (array('personal', 'seen', 'answered', 'deleted') as $v) { - $Mailbox->setSearchCriteria('flags.' . $v, $_POST[$v]); - } + case MAIL_ACTION_DELETE: + imap_utils::delete($selected_messages); + + break; + case MAIL_ACTION_MOVE: + if (empty($_POST['dest_mbox'])) { + break; + } - $Mailbox->title = sprintf(__("Search results in %s"), $Mailbox->title); + imap_utils::move($selected_messages, $_POST['dest_mbox']); + + $JAW->message( + sprintf(ngettext("%d message was moved into the folder %s!", "%d messages were moved into the folder %s!", count($selected_messages)), + count($_POST['msg']), imap_utils::folder_name_display($_POST['dest_mbox']) + ), + + JAW_SUCCESS + ); + + break; + case MAIL_ACTION_COPY: + if (empty($_POST['dest_mbox'])) { + break; + } + + imap_utils::copy($selected_messages, $_POST['dest_mbox']); + + $JAW->message( + sprintf(ngettext("%d message was copied into the folder %s!", "%d messages were copied into the folder %s!", count($selected_messages)), + count($selected_messages), imap_utils::folder_name_display($_POST['dest_mbox']) + ), + + JAW_SUCCESS + ); + + break; + case MAIL_ACTION_SEARCH_FORM_SUBMIT: - break; + foreach (array('subject', 'body', 'to', 'from', 'cc') as $v) { + if (!empty($_POST[$v])) { + $Mailbox->setSearchCriteria($v, $_POST[$v]); + } + } + + foreach (array('personal', 'seen', 'answered', 'deleted') as $v) { + $Mailbox->setSearchCriteria('flags.' . $v, $_POST[$v]); + } + + $Mailbox->title = sprintf(__("Search results in %s"), $Mailbox->title); + + break; + + + + default: + /* message action manager */ + + $msg_actions_mng->handle(utils::fetch_var('action'), + $selected_messages + ); + + + + + break; } Index: read.php =================================================================== RCS file: /cvsroot/jawmail/mail/read.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- read.php 11 Aug 2004 11:37:33 -0000 1.15 +++ read.php 22 Nov 2004 21:51:59 -0000 1.16 @@ -72,6 +72,7 @@ require_once JAW_ROOT . 'lib/mime/renderer.php'; require_once JAW_ROOT . 'lib/html/list.php'; +require_once 'lib/message_action.php'; if (!empty($_REQUEST['mailbox'])) { $uniq = $_REQUEST['mailbox']; @@ -96,6 +97,17 @@ exit(); } + +$msg_actions_mng = new Mail_Message_Actions_Manager; +$msg_actions_mng->page = 'read.php'; +$JAW->plugins->hook('mail_message_actions_load', + array('manager' => &$msg_actions_mng) + ); + + + + + /* ============================================================================================= */ /* parse actions */ @@ -150,6 +162,13 @@ break; default: + + /* message action manager */ + + $msg_actions_mng->handle($_REQUEST['action'], + $_GET['muid'] + ); + break; } |
From: Rudi B. <ru...@us...> - 2004-11-22 21:52:09
|
Update of /cvsroot/jawmail/mail/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1875/lib Added Files: message_action.php Log Message: A little feature that allows simple plugins to handle things such as Spam reports, Spam/Ham feeding, ... --- NEW FILE: message_action.php --- <?php Class Mail_Message_Action { var $icon = ''; var $processes_more_messages = true; function process($messages = array(), $return_url = '') { } } Class Mail_Message_Actions_Manager { var $actions = array(); var $page = 'mailbox.php'; function load($action) { $c = 'mail_message_action_' . $action; $a = new $c; $this->actions[$action] = $a; } function dumpPopupHtml($messageID = NULL) { global $JAW; foreach ($this->actions as $k => $v) { ?> <li> <a href="<?= $this->link($k, $messageID) ?>"> <img src="<?= $JAW->theme->img('{mail}' . $this->actions[$k]->icon) ?>" border="0" alt="<?= $this->actions[$k]->title ?>" /> <?= $this->actions[$k]->title ?> </a> </li> <?php } } function handle($action, $messages, $return_url = '') { if (!isset($this->actions[$action])) { return; } if (empty($return_url)) { $return_url = $_SERVER['HTTP_REFERER']; } if (!(is_array($messages) && count($messages) > 0)) { return; } $this->actions[$action]->process($messages, $return_url); } function link($action, $messageID) { $l = '#'; switch ($this->page) { case 'mailbox.php': $l = sprintf('javascript:submitAction(\'%s\');', $action ); break; case 'read.php': $l = MAIL_util::read_link(array('action' => $action, 'muid' => $messageID)); break; } return $l; } function haveUsableActions() { return true; } } |
From: Rudi B. <ru...@us...> - 2004-11-22 21:52:09
|
Update of /cvsroot/jawmail/mail/lib/message_action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1875/lib/message_action Added Files: delete.php Log Message: A little feature that allows simple plugins to handle things such as Spam reports, Spam/Ham feeding, ... --- NEW FILE: delete.php --- <?php Class Mail_Message_Action_Delete extends Mail_Message_Action { var $icon = 'delete.gif'; var $title = ''; function Mail_Message_Action_Delete() { $this->title = _("Delete"); } function process($messages, $return_url) { $this->_delete($messages); } function _delete($messages) { $mailuid = $messages; $expunge = true; $messages = true; global $JAW, $Mail; $count = 0; if (is_array($mailuid)) { $count = count($mailuid); $mailuid = implode(',', $mailuid); } elseif (!empty($mailuid)) { $count = 1; } if ($count == 0) { return; } if ($JAW->prefs->get('folder_trash', 'mail') XOR ($Mail->imap_quota_full === true || $Mail->imap_quota_almost_full === true) ) { /* use a trash folder */ imap_utils::check_folder_prefs('trash'); if ($JAW->prefs->get('folder_trash', 'mail') == $Mail->imap_mailbox) { imap_delete($Mail->imap, $mailuid, FT_UID); $JAW->message( sprintf( ngettext("%d message was deleted!", "%d messages were deleted!", $count ), $count ), JAW_SUCCESS ); } else { imap_mail_move($Mail->imap, $mailuid, $JAW->prefs->get('folder_trash', 'mail'), CP_UID); $i = imap_last_error(); if (preg_match('|over quota|i', $i)) { imap_delete($Mail->imap, $mailuid, FT_UID); $expunge = true; if ($messages == true) { $JAW->message( sprintf( ngettext("%d message was deleted!", "%d messages were deleted!", $count ), $count ), JAW_SUCCESS ); } } elseif ($messages == true) { if ($messages == true) { $JAW->message( sprintf( ngettext("%d message was moved to your trash folder, %s!", "%d messages were moved to your trash folder, %s!", $count ), $count, '<a href="' . mail_util::list_link(array('open_mailbox' => $JAW->prefs->get('folder_trash', 'mail'))) . '">' . imap_utils::folder_name_display($JAW->prefs->get('folder_trash', 'mail'), true) . '</a>' ), JAW_SUCCESS ); } } } } else { /* don't. just the delete the message(s). */ imap_delete($Mail->imap, $mailuid, FT_UID); $expunge = true; if ($messages == true) { $JAW->message( sprintf( ngettext("%d message was deleted!", "%d messages were deleted!", $count ), $count ), JAW_SUCCESS ); } } if ($expunge) { imap_expunge($Mail->imap); } } } |
From: Rudi B. <ru...@us...> - 2004-11-22 21:52:08
|
Update of /cvsroot/jawmail/mail/templates/default/read In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1875/templates/default/read Modified Files: actions.php Log Message: A little feature that allows simple plugins to handle things such as Spam reports, Spam/Ham feeding, ... Index: actions.php =================================================================== RCS file: /cvsroot/jawmail/mail/templates/default/read/actions.php,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- actions.php 11 Aug 2004 11:29:26 -0000 1.4 +++ actions.php 22 Nov 2004 21:51:59 -0000 1.5 @@ -280,6 +280,19 @@ </li> + + <?php if ($msg_actions_mng->haveUsableActions()): ?> + + <ul> + <?php + $msg_actions_mng->dumpPopupHtml($parser->muid); + ?> + </ul> + + <?php endif; ?> + + + </ul> |
From: Rudi B. <ru...@us...> - 2004-11-22 21:52:08
|
Update of /cvsroot/jawmail/mail/templates/default/list In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1875/templates/default/list Modified Files: actions_js.php Log Message: A little feature that allows simple plugins to handle things such as Spam reports, Spam/Ham feeding, ... Index: actions_js.php =================================================================== RCS file: /cvsroot/jawmail/mail/templates/default/list/actions_js.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- actions_js.php 17 Aug 2004 22:55:51 -0000 1.2 +++ actions_js.php 22 Nov 2004 21:51:59 -0000 1.3 @@ -138,6 +138,13 @@ } +function submitAction(actID) { + document.msgs.action.value = actID; + document.msgs.submit(); +} + + + //--> </script> @@ -195,4 +202,18 @@ </div> +<?php if ($msg_actions_mng->haveUsableActions()): ?> + +<div id="actions" class="other_actions_popup"> + + <ul> + <?php + + $msg_actions_mng->dumpPopupHtml(); + + ?> + </ul> +</div> + +<?php endif; ?> |
From: Rudi B. <ru...@us...> - 2004-11-22 21:47:26
|
Update of /cvsroot/jawmail/mail/lib/message_action In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv685/lib/message_action Log Message: Directory /cvsroot/jawmail/mail/lib/message_action added to the repository |
From: Rudi B. <ru...@us...> - 2004-11-14 22:56:10
|
Update of /cvsroot/jawmail/jaw/lib/log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23101 Modified Files: syslog.php Log Message: A few additions. Index: syslog.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/log/syslog.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- syslog.php 14 Nov 2004 22:47:00 -0000 1.1 +++ syslog.php 14 Nov 2004 22:56:00 -0000 1.2 @@ -2,6 +2,8 @@ require_once JAW_ROOT . 'lib/log.php'; +define_syslog_variables(); + /** * Log messages to syslog. * @@ -10,13 +12,43 @@ class Log_Syslog extends Log { + + var $ident = 'jaw'; + + var $option = LOG_PID; + + var $facility = LOG_LOCAL0; + + var $opened = false; + function Log_Syslog($conf = array()) { - + if (isset($conf['ident'])) { + $this->ident = $conf['ident']; + } + + if (isset($conf['option'])) { + $this->option = $conf['option']; + } + + if (isset($conf['facility'])) { + $this->facility = $conf['facility']; + } } function log($message = '', $priority = LOG_INFO) { + $this->open(); syslog($priority, $message); } + function open() { + if ($this->opened !== false) { + return; + } + + openlog($this->ident, $this->option, $this->facility); + + $this->opened = true; + } + } |
From: Rudi B. <ru...@us...> - 2004-11-14 22:47:09
|
Update of /cvsroot/jawmail/jaw/lib/log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21004 Added Files: syslog.php Log Message: Syslog. --- NEW FILE: syslog.php --- <?php require_once JAW_ROOT . 'lib/log.php'; /** * Log messages to syslog. * * @author Rudi Benkovic <ru...@ja...> */ class Log_Syslog extends Log { function Log_Syslog($conf = array()) { } function log($message = '', $priority = LOG_INFO) { syslog($priority, $message); } } |
From: Rudi B. <ru...@us...> - 2004-08-19 02:44:21
|
Update of /cvsroot/jawmail/jaw/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18868 Modified Files: lang.php Log Message: Whoops. Index: lang.php =================================================================== RCS file: /cvsroot/jawmail/jaw/lib/lang.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- lang.php 11 Aug 2004 00:36:48 -0000 1.2 +++ lang.php 17 Aug 2004 21:51:41 -0000 1.3 @@ -112,7 +112,7 @@ if (!($in == 'default')) { - if ($a = mb_convert_encoding($str, $out, $in)) { + if ($a = @mb_convert_encoding($str, $out, $in)) { $str = $a; $d = true; } |