5 $files = file(DB_PATH
."idlist.log");
6 foreach ($files as $key) {
8 $array[0] = explode("<><>", $key);
9 $worldofArray[0] = $array[0][1];
10 // $dir[] = $inbox->loggedEmail($worldofArray[0], MDB_PATH);
11 $dir[] = array('directory' => $inbox->loggedEmail($worldofArray[0], MDB_PATH
), 'id' => $array[0][0]);
16 foreach($dir as $key){
17 if(is_dir($key['directory'])){
20 $hi = explode("/", $key['directory']);
21 $strReplaced = str_replace("-", "@", $hi[5]);
23 foreach (glob($key['directory']."*.dat") as $filename){
25 $h = explode("/", $filename);
27 $arrayContainer['data'][$countIndex] = array( $key['id'], "<a href=\"conversation.php?em={$strReplaced}\">".$strReplaced."</a>" , $count);
32 header("Content-type: application/json");
33 echo json_encode($arrayContainer);