Show
Ignore:
Timestamp:
02/22/06 03:42:15 (3 years ago)
Author:
anarcat
Message:

[project @ alternc: changeset 2005-12-18 09:51:32 by benjamin]
export_account and other alternc_export function, next step ...

Original author: benjamin
Date: 2005-12-18 09:51:32

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bureau/class/m_sta2.php

    r578 r789  
    11<?php 
    22/* 
    3  $Id: m_sta2.php,v 1.9 2005/03/09 21:10:34 benjamin Exp $ 
     3 $Id: m_sta2.php,v 1.10 2005/12/18 09:51:32 benjamin Exp $ 
    44 ---------------------------------------------------------------------- 
    55 AlternC - Web Hosting System 
     
    285285 
    286286 
     287  /* ----------------------------------------------------------------- */ 
     288  /** 
     289   * Exporte toutes les informations states brutes du compte. 
     290   * @access private 
     291   * EXPERIMENTAL 'sid' function ;)  
     292   */ 
     293  function alternc_export($tmpdir) { 
     294    global $db,$err; 
     295    $err->log("sta2","export"); 
     296    $this->get_list_raw(); 
     297    $str="<sta2>\n"; 
     298    foreach ($f as $d) { 
     299      $str.="  <stats>\n"; 
     300      $str.="    <hostname>".xml_entities($s[hostname])."</hostname>\n"; 
     301      $str.="    <folder>".xml_entities($s[folder])."</folder>\n"; 
     302      $str.="  </stats>\n"; 
     303    } 
     304    $str.="</sta2>\n"; 
     305    return $str; 
     306  } 
     307 
    287308 
    288309} /* CLASSE m_sta2 */