Esempio n. 1
0
 $GLOBALS['THRIFT_ROOT'] = 'C:/xampp/htdocs/cassandra';
 // Load up all the thrift stuff
 require_once $GLOBALS['THRIFT_ROOT'] . '/class.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/Thrift.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/protocol/TBinaryProtocol.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/transport/TSocket.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/transport/TBufferedTransport.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/tmp.php';
 require_once $GLOBALS['THRIFT_ROOT'] . '/key.php';
 $emailD = $_SESSION['ema'];
 $usernameD = $_SESSION['usrn'];
 $passwordD = $_SESSION['pass'];
 // Initialize Cassandra
 $cassandra = new CassandraDB("ContentManagementSystem");
 // Debug on
 $cassandra->SetDisplayErrors(true);
 echo "<table border='0' cellspacing='0' cellpadding='2' width='80%' align='center'>";
 echo "<tr>";
 echo "<td colspan='1' valign='top' width='30%' style='font-family:arial; font-size:12pt;color:black'>";
 echo "Email[To|From]";
 echo "</td>";
 echo "<td colspan='1' valign='top' with='48%' style='font-family:arial; font-size:12pt;color:black'>";
 echo "Subject";
 echo "</td>";
 echo "<td colspan='1' valign='top' width='25%' style='font-family:arial; font-size:12pt;color:black'>";
 echo "Date";
 echo "</td>";
 echo "<td colspan='1' valign='top' width='3%'>";
 echo "&nbsp";
 echo "</td>";
 echo "</tr>";