Exemplo n.º 1
0
 function __construct($conn = NULL, $database = NULL)
 {
     if (is_null($conn)) {
         $this->conn = GenFun::hostConnect($database);
     }
     $this->traceID = "Guestbook_v0";
     Trace::register($this, $this->traceID);
     $this->subject = "You have a new message";
 }
Exemplo n.º 2
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once dirname(dirname(dirname(__FILE__))) . "/uber_src/client/werm/utils/Trace.php";
require_once "Dummy.php";
$dummy = new Dummy();
Trace::register($dummy, "Dummy");
$dummy->shit();
print_r(Trace::$output);
Exemplo n.º 3
0
<?php

//------------------------------------------------------------------------
//------------------------------------------------------------------------
//php imports
//------------------------------------------------------------------------
//------------------------------------------------------------------------
require_once 'Import.php';
require_once Import::$uber_src_path . "server/werm/services/Account_v0.php";
require_once Import::$uber_src_path . "server/kaloyan/class.krumo.php";
//------------------------------------------------------------------------
Trace::$html = true;
//------------------------------------------------------------------------
$account = new Account_v0();
Trace::register($account, "account");
$account->tblName = Accounts_const::TBL;
$chk = $account->confirm($_GET['hash'], Accounts_const::TBL);
$chk['output'] = Trace::$output;
krumo($chk);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Exemplo n.º 4
0
 public function init()
 {
     $this->confirmLink = new ConfirmLink_v0();
     Trace::register($this->confirmLink, "confirmLink", $this);
 }
Exemplo n.º 5
0
    return $conn;
}
//------------------------------------------------------------------------
function database($conn, $database)
{
    mysql_select_db($database, $conn) or die('Could not connect to mysql database.');
}
//------------------------------------------------------------------------
$conn = hostConnect();
//------------------------------------------------------------------------
database($conn, Constants::DATABASE);
//------------------------------------------------------------------------
Trace::$html = true;
//------------------------------------------------------------------------
$ml = new Mailinglist_v0();
Trace::register($ml, "maillinglist");
$ml->init();
$chk = $ml->confirm($_GET['hash']);
$chk['output'] = Trace::$output;
print_r($chk['output']);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> 
<!--===================================================================-->
<!--===================================================================-->
<!--header-->
<!--===================================================================-->
<!--===================================================================-->
<head>