Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 4th, 2012  |  syntax: None  |  size: 0.63 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. define("BBRPC_URL","http://Ihre-Auftragsnummer.premium-admin.eu/");
  3. define("BBRPC_COOKIE","bbRpc.cookie");
  4. require_once("bb.rpc.class.php");
  5. function printBBRPCMsgs(){
  6.    global $_BBRPC_Msgs;
  7.     foreach($_BBRPC_Msgs as $hMsg){
  8.       echo("[".$hMsg["typ"]."] ".$hMsg["msg"]."\n");
  9.     }
  10. }
  11. bbRpc::auth("Ihr-Admin-Benutzer","Ihr-Admin-Passwort");
  12.  
  13. //An dieser Stelle erfolgt nun die Abfrage der gewünschten Informationen,
  14. //die nachstehende Zeile ist ein Beispiel zum Auslesen der Domaindaten
  15. $xRet = bbRpc::call("bbDomain::readEntry",array("return_array"=>1));
  16.  
  17. print_r($xRet);
  18. printBBRPCMsgs();
  19. bbRpc::logout();
  20. ?>