Archives for: April 2008, 27

04/27/08

  11:49:06 pm, by The Dreamer   , 195 words  
Categories: Software

email to b2evolution

Once again some quick PHP hacking to get this to work:

PHP

--- getmail.php.dist    Sun Apr 27 23:40:39 2008
+++ getmail.php    Sun Apr 27 23:43:40 2008
@@ -18,+18,@@
 require_once dirname(__FILE__).'/../conf/_config.php';
 
 require_once $inc_path.'_main.inc.php';
+require_once $inc_path.'items/model/_itemlist.class.php';
 
 if( !$Settings->get('eblog_enabled') )
 {
@@ -200,+201,10 @@
                             }
                         }
                         $ddate_U mktime($ddate_H$ddate_i$ddate_s$ddate_m$ddate_d$ddate_Y);
+                        $ddate_U $ddate_U 3600;
+                        $ar localtime($ddate_U,true);
+                        if ($ar['tm_isdst']) { $ddate_U 3600; }
+                        $ddate_U $ddate_U date('Z');
                         $post_date date('Y-m-d H:i:s'$ddate_U);
                     }
                 }
@@ -368,+373,@@
 
         $pop3->quit();
 
-        timer_stop($output_debugging_info);
+        #timer_stop($output_debugging_info);
         exit;
 
     break;

The first and last diff, I had to find from browsing the forums, the last bit I took from my 0.9.2 hacked version....to make the time stamp valid. The 2 * 3600, is hard coding the time offset between local time and server time....

What isn't present in the diff, is that I don't use usename:password or subject prefix....I simply trust that email coming a certain addresses correspond to a given user. So, far it has worked.

  07:07:00 pm, by The Dreamer   , 329 words  
Categories: General, Software

Welcome to my new blog location

Link: http://b2evolution.net/news/2008/03/17/b2evo-2-4-1-nevada-released-stable

You may have gone to http://lawrence.chen-online.net, and ended up here. But, you are in the right place. :wave:

I had been meaning to upgrade the blog software for a long time, the old site was running 0.9.2 of b2evolution. Which I had extensively modified its PHP code to introduce a variety of customizations. Both appearance and back office hacks. Particular in dealing with spam.

Not sure if the new version does spam as good as I had it before, but they are up to version 2.4.1 now and there are some neat things that it can do that I've been wanting to try.

When my old host (before dreamhost) decided to become unreliable (without explanation), I wasn't ready to do the work of upgrading...so I restored the blog onto dreamhost and went on my way. But, then dreamhost got unreliable...and I started thinking that maybe I should look at moving once again. While browsing around on godaddy.com, I found that lawrencechen.net was available...and having some promo codes to try out...I went ahead and registered it. I used GB1.

Full story »

Now instead of subjecting some poor random forum to a long rambling thought, I will try to consolidate those things into this blog where they can be more easily ignored profess to be collected thoughts from my mind.

Latest Poopli Updaters -- http://lkc.me/poop

bloglovin

There are 20 years 1 month 16 hours 35 minutes and 13 seconds until the end of time.
And, it has been 4 years 11 months 27 days 21 hours 27 minutes and 43 seconds since The Doctor saved us all from the end of the World!

Search

April 2008
Mon Tue Wed Thu Fri Sat Sun
 << < Current> >>
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Google

Linkblog

  XML Feeds

Who's Online?

  • Guest Users: 0
This seal is issued to lawrencechen.net by StopTheHacker Inc.
powered by b2evolution free blog software

hosted by
Green Web Hosting! This site hosted by DreamHost.

monitored by
Monitored by eXternalTest
SiteUptime Web Site Monitoring Service
website uptime