231105v1 > Acounter / Modules / Base / Accbase.php

Questions? Need Help? Want to share? » PHP Forum
Script Name:
231105v1

Download:
231105v1.zip

Category:
Web Traffic Analysis

Archive Content:

Acounter > Config

Acounter > Data

Acounter > Images > Interval

Acounter > Images > Menu

Acounter > Images > Scroll

Acounter > Images > Type

Acounter > Images > Diagram > Vertical

Acounter > Images > Diagram > Horiz

Acounter > Images > Admin

Acounter > Images > View

Acounter > Images

Acounter > Modules > Base

Acounter > Modules > Count

Acounter > Modules > Admin

Acounter > Modules > Stat

Acounter > Modules > Template

Acounter > Modules > Image

Acounter > Modules > View

Acounter > Modules

Acounter > Template > Css

Acounter > Template > Diagram

Acounter > Template > Interval

Acounter > Template > List

Acounter > Template > Table

Acounter > Template > Menu

Acounter > Template > Time

Acounter > Template > Type

Acounter > Template > View

Acounter > Template > Admin

Acounter

Acounter > Modules > View

Accbase.php:


<?php

//////////////////////////////////////////////////////////////////////////
// Script:        accbase.php                                                //
//                                                                        //
// Source:        http://www.actualscripts.com/                                //
//                                                                        //
// Copyright:        (c) 2002 Actual Scripts Company. All rights reserved.        //
//                                                                        //
// YOU DON'T NEED TO EDIT ANYTHING IN THIS SCRIPT.                        //
// SEE LICENSE AGREEMENT FOR MORE DETAILS                                //
//////////////////////////////////////////////////////////////////////////

class Accountsbase extends Base
{
 var 
$CodeError;
 var 
$Conf;
 var 
$Fun;

 function 
Accountsbase ($fun, $conf)
          { global 
$ENameCoF;
           
$this->CodeError=0;
           
$this->Fun $fun;
           
$this->Conf $conf;
           
$this->Base($fun, $conf, 'accounts/accounts.lst');
          }

 function 
AccountsbaseInit ()
          { global 
$ENameCoF;
           
$this->CodeError=0;
           
$this->BaseInit(0);
          }

 function 
AddAccount$address, $name )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           
$id $this->GetIDByAccountAddress$address );
           if(
$this->CodeError)
                 {
                  if(
$this->CodeError!=2) return;
                 }
           else return 
$id;
           
$id $this->GetIDByAccountName$name );
           if(
$this->CodeError)
                 {
                  if(
$this->CodeError!=2) return;
                 }
           else return 
$id;
           
$id $this->AddRecord($address.'|'.$name.'|1|');
          }

 function 
GetIDByAccountAddress$address )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           if(empty(
$address)) {$this->CodeError=3;return;}
           
$id $this->GetIDByField,  $address );
           if(!
$this->CodeError) return $id+1;
           
$id $this->GetIDByField,  $address );
           if(!
$this->CodeError) return $id+1;
           
$id $this->GetIDByField,  $address.'/' );
           if(!
$this->CodeError) return $id+1;
          }

 function 
GetIDByAccountName$name )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           if(empty(
$name)) {$this->CodeError=3;return;}
           
$id $this->GetIDByField,  $name );
           if(!
$this->CodeError) return $id+1;
          }


 function 
GetAccountAddressByID$id )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           if(
$id<1) {$this->CodeError=100;$ENameCoF="accounts.lst";return;}
           
$address $this->GetFieldByID,  $id-);
           if(
$this->CodeError) return;
           return 
$address;
          }

 function 
GetAccountNameByID$id )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           if(
$id<1) {$this->CodeError=100;$ENameCoF="accounts.lst";return;}
           
$name $this->GetFieldByID,  $id-);
           if(
$this->CodeError) return;
           return 
$name;
          }

 function 
GetColorByID$id )
          { global 
$ENameCoF;
           
$this->CodeError=0;
           if(
$id<1) {$this->CodeError=100;$ENameCoF="accounts.lst";return;}
           
$color $this->GetFieldByID,  $id-);
           if(
$this->CodeError) return;
           return 
$color;
          }

}

?>


Other Web Traffic Analysis Scripts:

WebMaster Resources Home

©RingsWorld.com