Example #1
0
         $phpThumb->setParameter('config_output_format', 'png');
         if ($phpThumb->GenerateThumbnail()) {
             include_once 'configs/globals.php';
             $membership_id = $u->getMembershipID($group_name);
             $bigfile = $app_base . "avatars/{$membership_id}/80.png";
             $smallfile = $app_base . "avatars/{$membership_id}/16.png";
             $target = $app_base . "avatars/{$membership_id}/";
             @mkdir($target);
             $phpThumb->RenderToFile($bigfile);
             makeSmallAvatar($bigfile, $smallfile);
             makeFlags($smallfile, $target);
             $u->setCustomAvatar($group_name);
         }
     } else {
         $membership_id = $u->getMembershipID($group_name);
         $u->copyAvatar($group_name, $u->getAvatarNo($group_name), $membership_id);
     }
     ob_end_clean();
     //header("location:{$service_host}{$group_name}/");
     //exit;
     $pg->setLayout($pg->FullColumn);
     $temp_translation_string_1 = $treng->_("<big><strong>You have successfully joined this group! <a href=\"%TRENGVAR_1%%TRENGVAR_2%/\">Continue...</a></strong></big><br /><br />To edit the content, go to the related page (to change your blog address, go to Blogs section) and click one of the control buttons as shown:<br /><br /><img src=\"images/controlshow.jpg\" alt=\"Example Control\" border=\"0\" width=\"600\" height=\"389\" />", "groupjoin", array($service_host, $group_name));
     $xhtml = "<div align=\"center\">\r\n\t\t\t\t\t{$temp_translation_string_1}\r\n\t\t\t\t\t</div>";
     $pg->addBlock($pg->Column, "", $xhtml, "");
     if ($pg->generateHTML()) {
         $page_content .= $pg->getHTML();
     } else {
         die('Could not generate HTML');
     }
     break;
 } else {