private function getAttachmentURL()
 {
     if ($this->debug) {
         echo "开始获取附件URL函数<br/>";
         echo $this->aid . " : " . $this->uid . " : " . $this->tableid . " : " . SECURITY_AUTHKEY . " : <br/>";
     }
     if ($this->aid == 0 || $this->uid == 0 || $this->tableid == 127 || !defined('SECURITY_AUTHKEY')) {
         if ($this->debug) {
             echo "class:GCAttachment:getAttachmentURL()获取下载附件URL失败";
         }
         return false;
     }
     $t = time();
     if ($this->debug) {
         echo "t:" . $t . "<br/>";
     }
     $aid = intval($this->aid);
     if ($this->debug) {
         echo "aid:" . $aid . "<br/>";
     }
     $uid = intval($this->uid);
     if ($this->debug) {
         echo "uid:" . $uid . "<br/>";
     }
     $k = substr(md5($aid . md5(SECURITY_AUTHKEY) . $t . $uid), 0, 8);
     if ($this->debug) {
         echo "k:" . $k . "<br/>";
     }
     $tableid = intval($this->tableid);
     $str = $aid . "|" . $k . "|" . $t . "|" . $uid . "|" . $tableid;
     if ($this->debug) {
         echo "str:" . $str . "<br/>";
     }
     $str = urlencode(base64_encode($str));
     if ($this->debug) {
         echo "获取附件URL函数成功<br/>";
     }
     $GC_URL = GCAttachment::curPageURL();
     $this->downloadURL = str_ireplace("plugin.php", "forum.php", $GC_URL) . "?mod=attachment&aid=" . $str;
     return true;
 }