Location: PHPKode > projects > CsWebmail > cswebmail-3.10/cswebmail-3.10/test.php
<?
define('INCPATH',getcwd().'/include/');
if(!defined('TMPLPATH')){
  define('TMPLPATH',getcwd().'/templates/');
}

// add to include
set_include_path(get_include_path().':'.INCPATH.'Pear');

include(INCPATH.'config.php');
include(INCPATH.'mail.php');
include(INCPATH.'files.php');
include(INCPATH.'functions.php');
include(INCPATH.'cache.php');
include(INCPATH.'mail_protocols.php');


include(TMPLPATH."html_start.php");
?>

<script type="text/javascript" src="./rte/convert.js"></script>
<script type="text/javascript">
function dumpObject(obj,full){
  var msg = "["+(typeof obj)+"]\n";
  for (var i in obj) {
    if(full){
      var type = (typeof obj[i]);
      msg += i + " : ";
      if(type=="boolean"||type=="string"||type=="number")
        msg += obj[i]+"\n";
      else if(type=="object"||type=="function")
        msg += type+"\n";
      else
        msg += "\n"+obj[i]+"\n";
    }
    else
      msg += i + " : " + (typeof obj[i]) + "\n";
    
  }
  return msg;
}

var d = parseXML('<zopa><huj>NAH</huj> dfdf fdfdf</zopa>');
alert(dumpObject(d));
</script>

<?include(TMPLPATH."html_end.php");?>


Return current item: CsWebmail