[Feed-collector-svn] SF.net SVN: feed-collector: [110] trunk/statistics.php
Status: Beta
Brought to you by:
c167
From: <C1...@us...> - 2007-05-15 21:34:25
|
Revision: 110 http://feed-collector.svn.sourceforge.net/feed-collector/?rev=110&view=rev Author: C167 Date: 2007-05-15 14:34:20 -0700 (Tue, 15 May 2007) Log Message: ----------- deleted unused file Removed Paths: ------------- trunk/statistics.php Deleted: trunk/statistics.php =================================================================== --- trunk/statistics.php 2007-05-15 21:32:46 UTC (rev 109) +++ trunk/statistics.php 2007-05-15 21:34:20 UTC (rev 110) @@ -1,46 +0,0 @@ -<?php - - -/** -* This file is the main-control for the statistics. -* It is optional, so there is no need to make it work ;) -*/ -echo date("d.m.y H:m:s", 1168190812); -require_once "MDB2.php"; - -require_once "Log.php"; // Logger - -// some other stuff -require_once "inc/config.php"; -$conf = array ( - 'error_prepend' => "<tt>", - 'error_append' => "</tt>", - 'linebreak' => "<br />\n" -); -$log = & Log :: singleton('display', '', '', $conf, $update['loglevel']); -$dsn = array ( - 'phptype' => DB_TYPE, - 'username' => DB_LOGIN, - 'password' => DB_PASSWD, - 'hostspec' => DB_HOST, - 'database' => DB_DATABASE -); -$options = array ( - 'debug' => 2, - 'result_buffering' => true, - 'portability' => MDB2_PORTABILITY_ALL -); - -$db = & MDB2 :: factory($dsn, $options); -if (PEAR :: isError($db)) { - $log->log($db->getMessage(), PEAR_LOG_ALERT); - $log->log(sprintf(_("Script ended with error at %d"), time()), PEAR_LOG_NOTICE); - die(); -} else { - $log->log(_("Successfully connected to the database"), PEAR_LOG_NOTICE); -} -$db->setFetchMode(MDB2_FETCHMODE_ASSOC); -$db->loadModule('Extended', null, false); - - -?> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |