<?php
function pg_log($pg){
 $pg_f="pagelog/".$pg; // здесь будут храниться файлы статистики

 $m=date("H:i:s d.m.Y",time())."\t";
 $m.=getenv("REQUEST_METHOD")."\t".getenv("HTTP_USER_AGENT")."\t".getenv("REMOTE_ADDR")."\t".urldecode(getenv('HTTP_REFERER'))."\n";

 $f = @fopen($pg_f, "a+" );
 @fputs ($f, $m);
 @fflush($f);
 @fclose($f);
 @chmod($pg_f, 0666);
 if ((filesize($pg_f))>250000){
    @unlink($pg_f); 
 }
}
$listSource = './list.txt';
$pageName = 'main_page';

pg_log( $pageName );

$news = 0;

if (isset($_GET['news']) && is_numeric($_GET['news']) ){
 $news = $_GET['news'];
}

define( 'NEWS_COUNT', 8); //news rows +1

function getNews(){
    global $news;
    $result = file("./news.txt");
    $newsArrayCnt = (int)count($result);
    $newsArray = array();
        if ( $news*NEWS_COUNT <= count($result) ){
            for ( $i=$news*NEWS_COUNT; $i < ($news*NEWS_COUNT)+NEWS_COUNT; $i++ ){
           $newsArray[] = $result[$i];
        }
    }
    $resStr = implode( '', $newsArray );
    $resStr .='<br/><br/><span style="margin-right:10px;" ><strong>More GTD news...</strong></span>';
    for( $i=0,$j=0; $i < $newsArrayCnt; $i+=NEWS_COUNT, $j++ ){
	if ( $j == $news ){
		$resStr.='<span style="background-color:#DDDDDD;padding:9px;margin:3px;"><b>'.($j+1).'</b></span>';
	} else {
        $resStr.='<span style="background-color:#777777;padding:5px;margin:2px;"><b><a href="?news='.$j.'">'.($j+1).'</a></b></span>';
    }

    }
    return $resStr;
}
function getList(){
    return implode('', file( './list.txt' ) );
}

?><html>

<head>
<title>Best GTD tools and productivity software tips. Life improvement with GTD (Getting Things Done).</title>
<meta name="verify-v1" content="587BGtXlryK680cbCIsDr39l27kOGssFyGRSn8/vks4=" />
<meta name="description" content="Getting Things Done GTD The set of online and offline GTD tools for optimizing your life. List of Productivity software." >
<meta name="keywords" content="GTD, tools, online, productivity, selfimprovement, lifehack, optimization, optimisation, productivity software, project software" >
<style>

body, table {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 9pt;
	margin: 0px;
	background-color: #ffffff;
	padding:5px;
}
</style>
</head>
<body>

<table>
<tr>
<td>

<h3>Best GTD tools and productivity software tips. Life improvement with GTD</h3>
The complete set of online, software and offline tools and applications <br/>
for improve and optimize your life and Getting Things Done (GTD technology / methodology). <br/>
Best free and comercial GTD software, to do list and project software.  <br/>
Implement your own productivity system. <br/>
Get last news about using GTD and learn powerfull tips and tricks.
<br /><br />
<a style="font-size:20px;padding:10px;" href="http://imanagr.com">Get early access to <b>iManagr</b> - new organizing tool.</a>
</td>
<td>

<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="gtd-tools.com"></input>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Google Search" id="sbb"></input>
</td></tr>
</tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked id="ss0"></input>
<label for="ss0" title="Search the Web"><font size="-1" color="#000000">Web</font></label></td>
<td>
<input type="radio" name="sitesearch" value="gtd-tools.com" id="ss1"></input>
<label for="ss1" title="Search gtd-tools.com"><font size="-1" color="#000000">gtd-tools.com</font></label></td>
</tr>
</table>
<input type="hidden" name="client" value="pub-6831762101904597"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="3093390958"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="Ki2Ih7utXiq5eT3L"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->

<br/>
<!-- Firefox link -->
<script type="text/javascript"><!--
google_ad_client = "pub-6831762101904597";
google_ad_output = "textlink";
google_ad_format = "ref_text";
google_cpa_choice = "CAAQyaP2_gEaCBPE4hoUEk7kKLGsuIEBMAA";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

</td>
</tr>
<tr>
<!-- from pipe -->
<td>
<br/>
Last <strong>GTD news</strong><br/><br/>
<?= getNews(); ?>
</td>
<!-- end from pipe -->

<td valign="top">

<br/>
<br/>
<!-- Ads -->
<script type="text/javascript"><!--
google_ad_client = "pub-6831762101904597";
google_ad_width = 250;
google_ad_height = 250;
google_ad_format = "250x250_as";
google_ad_type = "text";
//2007-09-07: gtdtools
google_ad_channel = "5285031178";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<!-- end Ads -->
</td>
</tr>
</table>
<br><br>

<script type="text/javascript"><!--
google_ad_client = "pub-6831762101904597";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al_s";
//2007-07-27: gtdtools
google_ad_channel = "5285031178";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<ul>
<?= getList(); ?>
</ul>


<div style="width:750px;">
<!-- google custom -->
<h2 style="color:#791618">Search in carefully selected sites and blogs about GTD and productivity</h2>
This feature powered by Custom Search technology from Google.
<div id="cse" style="width: 100%;">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
  google.load('search', '1', {language : 'en', style : google.loader.themes.MINIMALIST});
  google.setOnLoadCallback(function() {
    var customSearchControl = new google.search.CustomSearchControl('006352905992216409701:lnxxqpoujwa');
    customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
    var options = new google.search.DrawOptions();
    options.setAutoComplete(true);
    customSearchControl.draw('cse', options);
    }, true);
</script>
</div>

<br>
Usefull links
<ul>
<li>Post about <a rel='nofollow' href="http://www.antonyjohnston.com/gtw/" title="Getting Things Written">Getting Things Written</a> - an adaptation of GTD for writers.</li>

</ul>

<script type="text/javascript"><!--
google_ad_client = "pub-6831762101904597";
google_ad_width = 728;
google_ad_height = 15;
google_ad_format = "728x15_0ads_al";
//2007-08-06: gtdtools
google_ad_channel = "5285031178";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<br>
<br/>

<h2>Look at <b><a rel='nofollow' href="/productivity_bloggers_list.php">The list of a Productivity bloggers</a></b> </h2>

<h2><b>Don't miss David Allen's <a rel='nofollow' href="http://odeo.com/show/2561503/view">Productive Talk</a></b></h2>
In this episode, David and Merlin look at best practices for implementing Getting Things Done. 
David shares some great advice on firewalling review time and warns us how to avoid the 
perils of "cruise control."
<br/>


Source of initial list: 
http://wiki.jeffsandquist.com/default.aspx/GTD/GTDTools.html

<br/>
<br/>
Interesting: <a href="http://blog-posts-with-lists.blogspot.com" >Blog contains blog posts digests for posts with lists</a>.
<br/>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-2389220-1";
urchinTracker();
</script>
</body>
</html>