plugins/localizer/LoggingEngine/plugins localizer.php,1.16,1.17
Sebastian Bergmann <[email protected]> Tue, 18 May 2004 07:31:18 +0000
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/plugins/localizer/LoggingEngine/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23304/localizer/LoggingEngine/plugins
Modified Files:
localizer.php
Log Message:
Flush.
Index: localizer.php
===================================================================
RCS file: /cvsroot/phpopencounter/plugins/localizer/LoggingEngine/plugins/localizer.php,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- localizer.php 18 May 2004 06:49:52 -0000 1.16
+++ localizer.php 18 May 2004 07:31:15 -0000 1.17
@@ -32,24 +32,24 @@
*/
class phpOpenTracker_LoggingEngine_Plugin_localizer extends phpOpenTracker_LoggingEngine_Plugin {
/**
- * URL of the Localizer Service
+ * Constructor.
*
- * @var string $localizerDB
+ * @access public
*/
- var $localizerService = 'http://localhost:1025/localize/';
+ function phpOpenTracker_LoggingEngine_Plugin_localizer($parameters) {
+ parent::phpOpenTracker_LoggingEngine_Plugin($parameters);
- /**
- * @var string $table
- */
- var $table = 'pot_localizer';
+ $this->config['plugins']['localizer']['access_method'] = isset($this->config['plugins']['localizer']['access_method']) ? $this->config['plugins']['localizer']['access_method'] : 'webservice';
+ $this->config['plugins']['localizer']['localizer_table'] = isset($this->config['plugins']['localizer']['localizer_table']) ? $this->config['plugins']['localizer']['localizer_table'] : 'localizer';
+ $this->config['plugins']['localizer']['pot_table'] = isset($this->config['plugins']['localizer']['pot_table']) ? $this->config['plugins']['localizer']['pot_table'] : 'pot_localizer';
+ $this->config['plugins']['localizer']['service_url'] = isset($this->config['plugins']['localizer']['service_url']) ? $this->config['plugins']['localizer']['service_url'] : 'http://localhost:1025/localize/';
+ }
/**
* @return array
* @access public
*/
function post() {
- $this->config['plugins']['localizer']['access_method'] = isset($this->config['plugins']['localizer']['access_method']) ? $this->config['plugins']['localizer']['access_method'] : 'webservice';
-
if ($this->container['first_request']) {
if ($this->config['plugins']['localizer']['access_method'] == 'webservice') {
$result = $this->_queryWebservice();
@@ -70,7 +70,7 @@
'%s', '%s', '%s', '%s',
%f, %f, %f)",
- $this->table,
+ $this->config['plugins']['localizer']['pot_table'],
$this->container['accesslog_id'],
$this->db->prepareString($result[0]),
$this->db->prepareString($result[1]),
@@ -109,8 +109,6 @@
}
function _queryWebservice() {
- $this->config['plugins']['localizer']['service_url'] = isset($this->config['plugins']['localizer']['service_url']) ? $this->config['plugins']['localizer']['service_url'] : 'http://localhost:1025/localize/';
-
$url = sprintf(
'%s?format=csv&ip=%s',
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click