Пример #1
0
 function getMemberEmails($except = "")
 {
     $except = strtolower($except);
     $emails = array();
     $ms = $this->getMembers();
     foreach ($ms as $m) {
         $uname = getUsernameByMembershipID($this->Database, $m['membership_id']);
         $u = new User($uname);
         $uname = strtolower($uname);
         if ($uname != $except) {
             $emails[] = $u->getEmail();
         }
     }
     return $emails;
 }
Пример #2
0
    function getProfileX($mid)
    {
        global $people_allow_sexe, $people_allow_birthday, $people_allow_zodiac, $people_allow_website, $people_allow_nation;
        $html = "";
        // from User.class.php
        $musername = getUsernameByMembershipID($this->Database, $mid);
        $user = new User($musername);
        $avat = $user->getAvatar();
        $name_surname = $user->getNameSurname();
        $age = $user->getAge();
        $zsign = $this->evaluateZSign($user->getZSign());
        $exact_birthday = date('m/d/Y', strtotime($user->getBirthday()));
        $birthday = date('F, j', strtotime($user->getBirthday()));
        $nationality_1 = $user->getNationality();
        $nationality_flag_1 = $user->getNationalityFlag($nationality_1);
        $sexe = $user->getSexe();
        $sexeicon = $user->getSexeIcon($sexe);
        $contact_icq = $user->getContactICQ();
        $contact_jabber = $user->getContactJabber();
        $contact_msn = $user->getContactMSN();
        $contact_yahoo = $user->getContactYahoo();
        $contact_aim = $user->getContactAIM();
        $contact_email = $user->getEmail();
        $website = $user->getWebSite();
        $html .= <<<EOS
\t <div style="position:absolute;visibility:hidden;">
\t 
\t 
\t <textarea id="inf_namesurname">{$name_surname}</textarea>
\t <textarea id="inf_sexe">{$sexe}</textarea>"
\t <textarea id="inf_birthday">{$exact_birthday}</textarea>
\t <textarea id="inf_nationality">{$nationality_1}</textarea>
\t <textarea id="inf_myspace">{$website}</textarea>
\t 
\t <textarea id="inf_email"></textarea>
\t <textarea id="inf_aim">{$contact_aim}</textarea>"
\t <textarea id="inf_msn">{$contact_msn}</textarea>
\t <textarea id="inf_yahoo">{$contact_yahoo}</textarea>
\t <textarea id="inf_jabber">{$contact_jabber}</textarea>
\t <textarea id="inf_icq">{$contact_icq}</textarea>
\t 
\t 
\t </div>
\t 
EOS;
        // and start the HTML
        $html .= "<div class=\"vcard\">";
        $html .= "<img class=\"photo\" src=\"{$avat}?" . rand(0, 1000) . "\" width=\"80\" alt=\"{$name_surname}\" height=\"80\" border=\"0\" align=\"left\" style=\"margin-bottom: 5px;margin-left: 15px; margin-right: 25px;\" />";
        $html .= "<div style=\"font-size: 1.2em;\"><b><span class=\"fn\">{$name_surname}</span>";
        if ($people_allow_birthday) {
            $html .= " ({$age})";
        }
        $html .= "</b> ";
        if ($people_allow_nation) {
            $html .= "<img src=\"{$nationality_flag_1}\" width=\"16\" height=\"11\" border=\"0\" />";
        }
        $html .= "</div>";
        if ($people_allow_website) {
            $html .= "<div style=\"font-size: 1.1em;margin-bottom: 10px;\"><a class=\"url\" href=\"{$website}\">{$website}</a></div>";
        }
        $html .= "<div style=\"margin-bottom: 10px;\">";
        if ($people_allow_sexe) {
            $html .= "<img align=\"bottom\" src=\"{$sexeicon}\" border=\"0\" alt=\"\" width=\"16\" height=\"16\" /> ";
        }
        if ($people_allow_zodiac) {
            $html .= $zsign . " (<span class=\"bday\">{$birthday}</span>)";
        }
        $html .= "</div>";
        $html .= "";
        /*
        $html .= "<div>";
        $html .= "<a class=\"url\" type=\"application/x-icq\" href=\"http://www.icq.com/people/cmd.php?uin={$contact_icq}&action=message\"><img src=\"{$this->OnlineStatusIndicator}icq/{$contact_icq}\" alt=\"\" border=\"0\" style=\"margin-right: 5px; margin-right: 25px;\" /></a>";
        $html .= "<a class=\"url\" href=\"xmpp:{$contact_jabber}\"><img src=\"{$this->OnlineStatusIndicator}jabber/{$contact_jabber}\" alt=\"\" border=\"0\" style=\"margin-right: 5px; margin-right: 25px;\" /></a>";
        $html .= "<a class=\"url\" href=\"msnim:chat?contact={$contact_msn}\"><img src=\"{$this->OnlineStatusIndicator}msn/{$contact_msn}\" alt=\"\" border=\"0\" style=\"margin-right: 5px; margin-right: 25px;\" /></a>";
        $html .= "<a class=\"url\" href=\"ymsgr:sendIM?{$contact_yahoo}\"><img src=\"{$this->OnlineStatusIndicator}yahoo/{$contact_yahoo}\" alt=\"\" border=\"0\" style=\"margin-right: 5px; margin-right: 25px;\" /></a>";
        $html .= "<a class=\"url\" href=\"aim:goim?screenname={$contact_aim}\"><img src=\"{$this->OnlineStatusIndicator}aim/{$contact_aim}\" alt=\"\" border=\"0\" style=\"margin-right: 5px; margin-right: 25px;\" /></a>";
        $html .= "</div>";
        */
        $html .= "</div>";
        if (isset($_SESSION['valid_user']) && $musername == $_SESSION['valid_user']) {
            $html .= <<<EOS

        
        <script type="text/javascript" src="http://grou.ps/includes/wz_dragdrop.js"></script>
        <script type="text/javascript">
        <!--
        
        function crop_preloader() {
                
            SET_DHTML('theCrop');
                
        }
            
        crop_preloader();
            
            

        function my_DragFunc()
        {
            var z = xHeight('theImage')<=xWidth('theImage')?xHeight('theImage'):xWidth('theImage');
            
            dd.elements.theCrop.maxoffr = xWidth('theImage') - dd.elements.theCrop.w;
            dd.elements.theCrop.maxoffb = xHeight('theImage') - dd.elements.theCrop.h;
            dd.elements.theCrop.maxoffl = 0;
            dd.elements.theCrop.maxofft = 0;
            dd.elements.theCrop.minw = 80;
            dd.elements.theCrop.minh = 80;
            dd.elements.theCrop.maxw = (xWidth('theImage') + xPageX('theImage')) - dd.elements.theCrop.x;
            dd.elements.theCrop.maxh = (xHeight('theImage') + xPageY('theImage')) - dd.elements.theCrop.y;
        }

        function my_ResizeFunc()
        {
            var z = xHeight('theImage')<=xWidth('theImage')?xHeight('theImage'):xWidth('theImage');
            
            dd.elements.theCrop.maxoffr = xWidth('theImage') - dd.elements.theCrop.w;
            dd.elements.theCrop.maxoffb = xHeight('theImage') - dd.elements.theCrop.h;
            dd.elements.theCrop.maxoffl = 0;
            dd.elements.theCrop.maxofft = 0;
            dd.elements.theCrop.minw = 80;
            dd.elements.theCrop.minh = 80;
            dd.elements.theCrop.maxw = (xWidth('theImage') + xPageX('theImage')) - dd.elements.theCrop.x;
            dd.elements.theCrop.maxh = (xHeight('theImage') + xPageY('theImage')) - dd.elements.theCrop.y;
        }

   

        //-->
        </script>
        
        

\t\t
EOS;
        }
        return $html;
    }