コード例 #1
0
ファイル: FileUploader.php プロジェクト: awwthentic1234/hey
 public function sendLink($email, $message, $url)
 {
     Trace::output($this->traceID, "sendLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "sendLink");
     //----------------------------------------------------------
     $chk = GenFun::error_CHK($obj);
     //----------------------------------------------------------
     $emailObj = array("emailTo" => $email, 'link' => "http://awwthentic.com/Modules/DOM/uber_src/server/werm/services/Download.php?url={$url}", 'linkTxt' => "Click here to download file.", "message" => $message, "subject" => $subject = $obj['sender'] . " sent you a file!!!");
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk = SendEmail_v0::sendDefault($emailObj);
     } else {
         return $chk;
     }
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk['message'] = "Email was successfully sent to {$email}";
     }
     //----------------------------------------------------------
     return $chk;
 }
コード例 #2
0
ファイル: FileUploader.php プロジェクト: awwthentic1234/hey
 public function sendLink($obj, $url, $fileName)
 {
     Trace::output($this->traceID, "sendLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "sendLink");
     //----------------------------------------------------------
     GlobalMas::$name = $obj['from'];
     //----------------------------------------------------------
     $message = $obj['from'] . " sent you a file!!!";
     //----------------------------------------------------------
     if ($obj['message'] != "") {
         $message .= "<br><br>" . $obj['message'];
     }
     $emailObj = array("emailTo" => $obj['email'], 'link' => $url, 'linkTxt' => $fileName, "message" => $message, "subject" => $subject = $obj['from'] . " sent you a file!!!");
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk = SendEmail_v0::sendDefault($emailObj);
     } else {
         return $chk;
     }
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk['message'] = "Email was successfully sent to " . $obj['email'];
     }
     //----------------------------------------------------------
     return $chk;
 }
コード例 #3
0
ファイル: VideoOrganizer.php プロジェクト: awwthentic1234/hey
 public function sendLink($obj)
 {
     Trace::output($this->traceID, "sendLink");
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, "traceID" => "sendLink");
     //----------------------------------------------------------
     //$arr = explode("#v-", $obj['url']);
     //----------------------------------------------------------
     $chk = GenFun::error_CHK($obj);
     //----------------------------------------------------------
     $chk = InsertInto::go('suggestions', array('hash' => $obj['hash'], 'sender' => $obj['sender'], "broken" => $obj['broken'], "subject" => $subject, 'message' => $obj['message']));
     //----------------------------------------------------------
     if (!empty($chk['duplicate'])) {
         $chk['message'] = "This video has already been suggested to you by '" . $chk["duplicate"]['result'][0]["sender"] . "'.";
     }
     //----------------------------------------------------------
     $emailObj = array("emailTo" => GlobalMas::EMAIL, 'link' => $obj['url'] . "?suggestion_id=" . GlobalMas::$mysqli->insert_id, 'linkTxt' => "Click here to see video", "message" => $obj['message'], "subject" => $subject = $obj['sender'] . " sent you a youtube link!!!");
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk = SendEmail_v0::sendDefault($emailObj);
     } else {
         return $chk;
     }
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk = GenFun::errorKey_CHK($obj, array("url", "sender"));
     } else {
         return $chk;
     }
     //----------------------------------------------------------
     if ($chk['bool']) {
         $chk['message'] = "Link was successfully sent to Wilmer";
     }
     //----------------------------------------------------------
     if ($chk['bool']) {
         $this->resetQueries();
     }
     //----------------------------------------------------------
     return $chk;
 }