예제 #1
0
파일: user.php 프로젝트: BillTheBest/1.6.x
function Building_bottom_section_mail()
{
    if (is_object($GLOBALS["CLASS_USER"])) {
        $user = $GLOBALS["CLASS_USER"];
    } else {
        $user = new user($_SESSION["uid"]);
    }
    if (!isset($_SESSION["ALL_MAILS"])) {
        $_SESSION["ALL_MAILS"] = $user->HASH_ALL_MAILS;
    }
    $func = new funct();
    if ($_SESSION["getCountOFMailsRTM"] == null) {
        $count = $func->getCountOFMailsRTM();
        $_SESSION["getCountOFMailsRTM"] = $count;
    } else {
        $count = $_SESSION["getCountOFMailsRTM"];
    }
    $events = "\n   \t\t<div class=\"bottom-box1\">\n      \t\t<div class=\"bottom-box1-inside\"><span class=\"title-14\">{$count} {events}</span>\n      \t\t<div class=\"bottom-box-th\"><img src=\"img/eve-pic.jpg\"></div>\n\t    \t\t<div class=bottom-box-tx>{user_events_emails_query_text}</div>\n\t\t   \t\t<div class=\"green-link-box\"><a href=\"rtmm.php\" class=\"read-more\">&raquo;&raquo;&nbsp;{events}</a></div>\n\n\t \t\t</div>\n\t  \t</div>";
    if ($_SESSION["getSizeOfBackupedMails"] == null) {
        $count = $func->getSizeOfBackupedMails();
        $count = $count / 1024;
        $count = FormatBytes($count);
        $_SESSION["getSizeOfBackupedMails"] = $count;
    } else {
        $count = $_SESSION["getSizeOfBackupedMails"];
    }
    $backup = "\n\t\n   \t\t<div class=\"bottom-box1\">\n      \t\t<div class=\"bottom-box1-inside\"><span class=\"title-14\">{$count} {backup}</span>\n      \t\t<div class=\"bottom-box-th\"><img src=\"img/eve-pic-1.jpg\"></div>\n\t    \t\t<div class=bottom-box-tx>{user_backup_emails_query_text}</div>\n\t\t   \t\t<div class=\"green-link-box\"><a href=\"backup.php\" class=\"read-more\">&raquo;&raquo;&nbsp;{backup}</a></div>\n\n\t \t\t</div>\n\t  \t</div>";
    if ($_SESSION["getCountOFMailQuar"] == null) {
        $count = $func->getCountOFMailQuar();
        $_SESSION["getCountOFMailQuar"] = $count;
    } else {
        $count = $_SESSION["getCountOFMailQuar"];
    }
    $quarantine = "\n\t\n   \t\t<div class=\"bottom-box1\">\n      \t\t<div class=\"bottom-box1-inside\"><span class=\"title-14\">{$count} {quarantinems}</span>\n      \t\t<div class=\"bottom-box-th\"><img src=\"img/eve-pic-2.jpg\"></div>\n\t    \t\t<div class=bottom-box-tx>{user_quarantine_emails_query_text}</div>\n\t\t   \t\t<div class=\"green-link-box\"><a href=\"backup.php\" class=\"read-more\">&raquo;&raquo;&nbsp;{backup}</a></div>\n\n\t \t\t</div>\n\t  \t</div>";
    $UserIdentity = UserIdentity();
    return "\n\n\t<div class=\"body-bottom\">{$events}{$backup}{$quarantine}</div>";
}
예제 #2
0
            case 38:
                $build = "Great Warehouse";
                break;
            case 39:
                $build = "Great Granary";
                break;
            case 40:
                $build = "Wonder of the World";
                break;
            case 41:
                $build = "Horse Drinking Trough";
                break;
            default:
                $build = "Error";
                break;
        }
        return $build;
    }
}
$funct = new funct();
if ($funct->CheckLogin()) {
    if ($_GET['action']) {
        $funct->Act($_GET);
    }
    if ($_POST['action']) {
        $funct->Act2($_POST);
    }
}
if ($_POST['action'] == 'login') {
    $funct->LogIN($_POST['name'], $_POST['pw']);
}