当前位置: 首页>>代码示例>>PHP>>正文


PHP notification::message方法代码示例

本文整理汇总了PHP中notification::message方法的典型用法代码示例。如果您正苦于以下问题:PHP notification::message方法的具体用法?PHP notification::message怎么用?PHP notification::message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在notification的用法示例。


在下文中一共展示了notification::message方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: users

} else {
    //	echo "<script> alert('3'); </script>";
    $stm = "select * from users where email='" . $email . "'";
    $res = mysqli_query($conn, $stm);
    if (mysqli_num_rows($res) > 0) {
        //		echo "<script> alert('4'); </script>";
        $_SESSION['errorMess'] = 2;
        echo "<meta http-equiv='refresh' content='0; url=http://32.208.103.211/chatRegistration/registerHere.php'>";
        //		echo "<script> alert('5'); </script>";
    } else {
        //		echo "<script> alert('6'); </script>";
        $value = 0;
        $cnumber = $cc . $cnumber;
        $stm = "insert into users(name, lname, email, username, password, contactNumber, activationCode,activated) values('" . $fname . "','" . $lname . "','" . $email . "','" . $uname . "','" . $password . "'," . $cnumber . "," . $activation . "," . $value . ");";
        mysqli_query($conn, $stm);
        //		echo "<script> alert('7'); </script>";
        $not = new notification();
        $link = "http://32.208.103.211/chatRegistration/activateAccount.php?activationCode=" . $activation . "&email=" . $email;
        $body = "Thank you for registering with us.<br><br><a href='" . $link . "'>Click here</a> to activate your account.";
        $ans = $not->email("mailtosecureyou@gmail.com", "Administration", "mailtosecureyou@gmail.com", "mailstodeliver", $email, "Activation Email", $body);
        $_SESSION['emailSent'] = $ans;
        echo "<script> alert('" . $ans . "'); </script>";
        if ($ans == 1) {
            $refCode = $not->message("12035432147", $cnumber, $link);
        }
        //		echo "<script> alert('8'); </script>";
        $_SESSION['newlyRegistered'] = $uname;
        echo "<meta http-equiv='refresh' content='0; url=http://32.208.103.211/chatRegistration/imageUpload.php'>";
    }
}
mysqli_close($conn);
开发者ID:naikamish,项目名称:Chat-Client,代码行数:31,代码来源:mailAndMessage.php


注:本文中的notification::message方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。