Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Nadir Latif  >  Usenet Downloader  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: main program file
Class: Usenet Downloader
Retrieve newsgroup articles from NNTP servers
Author: By
Last change:
Date: 2009-02-11 18:20
Size: 1,187 bytes
 

Contents

Class file image Download
<?

GetGroupDescription
();

function 
GetGroupDescription()
    {
        include_once(
"get_group_description.php");
        
$nntp_group_description=new NNTPGroupDescription();
        
//$nntp_group_description->GetGroupDetailsFromIcs();
        //$nntp_group_description->GetGroupDetailsFromIbiblio();
        
$nntp_group_description->GetGroupDetailsFromGoogle();
    }

function 
GetNNTPServerList()
    {
        include_once(
"get_server_list.php");        
        
$get_nntp_server_list=new GetNNTPServerList();
        
$get_nntp_server_list->GetMoreServers('craigsweb');
    }
    
function 
GetNNTPServerList()
    {
        include_once(
"save_group_info.php");        
        
$get_nntp_groups=new GetNNTPGroups();
        
$get_nntp_groups->GetGroups();
    }
    
function 
SaveGroupListings()
    {
        include_once(
"save_group_listings.php");        
        
        
$get_group_listings=new GetGroupListings();
        
        
$script_id=$argv[1];
        
$server_name=$argv[2];
        
        
$server_id=$get_group_listings->GetServerId($script_id,$server_name);
        while(
$server_id!=-1)
            {                
                if(
$get_group_listings->GetListings($server_id)!==false)$get_group_listings->MarkUpdated($server_id);
                
$server_id=$get_group_listings->GetServerId($script_id,$server_name);
            }

    }
?>