示例#1
0
 if (!$show && !$login[id]) {
     $show = "newuserterms";
 }
 ###########
 if ($show) {
     #####
     if ($show == "newuserterms") {
         eval("\$inc[action] = \"" . gettemplate("user.terms") . "\";");
     }
     #####
     if ($show == "newuser") {
         eval("\$inc[action] \t= \"" . gettemplate("user.newuser.form") . "\";");
     }
     #####
     if ($show == "avatarpic") {
         if (trim($str = getuseravatar($userid))) {
             header("Content-Type: image/gif");
             echo $str;
         } else {
             echo "<!-- invalid avatar //-->";
         }
         exit;
     }
     #####
     if ($show == "user") {
         $stopheaderoutput_main = TRUE;
         if (!$login[id]) {
             eval("\$inc[action] = \"" . gettemplate("fail.access.notloggedin") . "\";");
         } else {
             $user = getuser($userid);
             if (!$user) {
示例#2
0
     if ($config[avatar_ftpid]) {
         $fail = $fail_avatar;
         if (getuseravatar()) {
             eval("\$avatarpic = \"" . gettemplate("profil.avatarpic") . "\";");
         } else {
             unset($avatarpic);
         }
         $size = round($config[avatar_maxsize] / 1024, 2);
         eval("\$inc[action] = \"" . gettemplate("profil.avatar") . "\";");
     } else {
         eval("\$inc[action] = \"" . gettemplate("profil.avatar.notavailible") . "\";");
     }
 }
 #############
 if ($show == "avatarpic") {
     if ($str = getuseravatar()) {
         header("Content-Type: image/gif");
         echo $str;
     } else {
         echo @implode("", @file("images/spacer.gif"));
     }
     exit;
 }
 #############
 if ($show == "deleteaccount") {
     eval("\$inc[action] = \"" . gettemplate("profil.delaccount") . "\";");
 }
 #############
 if ($show == "capacity") {
     $countout = $db->query("SELECT COUNT(*) FROM {$tab['pm']} WHERE autid='{$login['id']}' AND outbox='1' AND inbox='0'");
     $countin = $db->query("SELECT COUNT(*) FROM {$tab['pm']} WHERE toid='{$login['id']}' AND outbox='0' AND inbox='1'");