This blob has been accessed 490 times via Git panel.
- <?php
- session_start();
- if (!isset($_SESSION['logged_uid'])) {
- echo 0;
- exit;
- }
- ob_start();
- require_once("conf.php");
- ob_end_clean();
- $subdir = explode('@', $_SESSION['logged_uid']);
- $usrdir = "$mail_root/$subdir[1]/{$subdir[0][0]}/$subdir[0]/new";
- if (!file_exists($usrdir)) {
- echo 0;
- exit;
- }
- if (count(glob("$usrdir/*", GLOB_NOSORT)) > 0) {
- echo 1;
- }
- else {
- echo 0;
- }
- ?>