客客威客簡訊介面修改(kppw) 配置

2021-08-18 14:21:27 字數 4540 閱讀 3536

1.首先在安裝外掛程式或修改**的,先備份把您要修改或替換的檔案進行備.

2.編寫呼叫簡訊介面的核實**(dxw56sms.php),**如下:

<?php 

/** * created by phpstorm.

* user: lenovo

* date: 2016/5/30

* time: 12:48

*/class dxw56sms

return true;}}

<?php 

keke_lang_class::load_lang_class('keke_msg_class');

require (dirname(__file__) . directory_separator . 'dxw56sms.php');

class keke_msg_class

function basic_init()

function config_init($k)

function setuid($uid)

function setusername($username)

function settitle($title)

function settype($type)

function setemail($email)

function setvalue($key, $value)

function setmobile($str_mobile)

function validate($k) else

} }function send()

if (! $this->validate ( $this->_k ))

$this->pregmessage ( $this->_k );

$sum = array_sum ( $this->_v );

switch ($sum)

$this->_key = array ();

} private function getmessagetpl()

return $tpl;

} private function pregmessage()

$cont0 = $tpl [0] ['content'];

$cont0 = $this->tpl_format ( $cont0 );

$this->_normal_content = $cont0;

$cont1 = $tpl [0] ['mobile_content'];

$cont1 = $this->tpl_format ( $cont1 );

$this->_mobile_content = $cont1;

} private function tpl_format($content) ', $this->_username, $content );

$this->_uid and $cont = str_replace ( '', $this->_uid, $cont );

$this->_sitename and $cont = str_replace ( '', $this->_sitename, $cont );

foreach ( $this->_key as $k2 => $v2 ) ', $v2, $cont );

} return $cont;

} private function sendmessage()

public function sendmail()

if (! $this->_email)

$this->_basicconfig and $basicconfig = $this->_basicconfig or $basicconfig = kekezu::get_config ( 'basic' );

if ($basicconfig ['mail_server_cat'] == 'mail') \nreply-to:\nx-mailer: php/" . phpversion () . "\ncontent-type:text/html";

mail ( $this->_email, $this->_title, htmlspecialchars_decode($this->_normal_content), $hearer );

}} else if ($basicconfig ['smtp_url'] && $basicconfig ['mail_server_port'] && $basicconfig ['post_account'] && $basicconfig ['account_pwd'] && $basicconfig ['website_name'])

} public function send_phone_sms( $mobiles = '', $tar_content = '')

$res = db_factory::query('select * from ' . tablepre . 'witkey_basic_config where type="mobile"');

if (empty($res))

$res = $this->getuserinfo($res);

if (empty($res))

!$mobiles and $mobiles = $this->_mobile;

!$tar_content and $tar_content = $this->_mobile_content;

$tar_content = strip_tags(htmlspecialchars_decode($tar_content));

return dxw56sms::sendsms($res['username'], $res['password'], $mobiles, $tar_content);

} private function getuserinfo($res)

else if ('mobile_password' == $item['k']) else

} if (!isset($retarr['username']) || !isset($retarr['password']))

return $retarr;

} public function send_message($uid, $username, $action, $title, $v_arr = array(), $email = null, $mobile = null,$type=null)

$this->settitle ( $title );

$this->send ();

} }public static function send_private_message($title, $tar_content, $to_uid, $to_username, $url = '', $output = 'normal')

$msg_obj = new keke_witkey_msg_class ();

$msg_obj->_msg_id = null;

$msg_obj->setuid ( $uid );

$msg_obj->setusername ( $username );

$msg_obj->settitle ( $title );

$msg_obj->setto_uid ( $to_uid );

$msg_obj->setto_username ( $to_username );

$msg_obj->setcontent ( $tar_content );

$msg_obj->seton_time ( time () );

$msg_obj->settype(2);

return $msg_obj->create_keke_witkey_msg ();

} public static function notify_user($uid, $username, $action, $title, $v_arr = array(),$type=null)

public static function get_contact($uid)

}

3.現在的簡訊必須加上簽名,如果您想修改自己**的簽名,檔名:keke_auth_mobile_class.php 目錄:\lang\cn\public,也可以修改一下傳送的簡訊內容.如圖

4.全域性配置 -> 簡訊介面,開啟並添寫簡訊介面使用者名稱,密碼,如圖

5.根據需要開啟相應的傳送簡訊功能,如圖:

6.開啟之後,就可以實現簡訊的傳送了,比如:對會員中心手機進行認證,手機認證成功後,提示如圖所示:

關於 威客,創客,極客,黑客的哲學理解(簡單)

黑客 hacker 精通計算機各類技術的計算機高手 文化 娛樂 極客 geek 狂熱於技術的人.精神 極限 創客 maker 指不以贏利為目標,把創意轉變為現實的人.信仰 創新 威客 the key of wisdom 指通過網際網路把自己的智慧型 知識 能力 經驗轉換成實際收益的人.模式 賺錢 本...

關注新興名詞 威客

催生新的商業模式 web2 0的概念始於2001年,當時正值網際網路泡沫破滅,但同所謂的 崩潰 迥然不同,網際網路比其他任何時候都更重要,新的令人激動的應用程式和 正在不斷湧現出來。那些倖免於網路泡沫的公司,看起來有一些共同之處。這些共性成了當今web2 0概念的核心。這裡所說的web2 0概念的核...

「威客」詮釋社群盈利機制

witkey wit 智慧型,key 鑰匙 指個人的智慧型 知識和專業特長通過網際網路轉換成實際收入的模式,其代表應用包括 google answer k68.cn 時間財富網等。想想自己還曾在 k68上消費過,任務是要設計乙個公司的 logo 只是沒想這個就是所謂的威客概念。看了幾個著名的威客 主...