public function __construct() { $this->protocol = is_SSL() ? 'https://' : 'http://'; $this->settings = get_option('zam_options'); $this->twitter_id = !empty($this->settings['zam_twitter_id']) ? $this->settings['zam_twitter_id'] : ''; add_action('admin_init', function () { new Zam_Options(); }); add_action('admin_menu', array($this, 'zam_admin_init')); add_action('widgets_init', function () { register_widget('zam_tweets_widget'); }); add_action('save_post', array($this, 'save_tweet')); add_shortcode('zam_tweets', array($this, 'shortcode_to_tweet')); add_action('activate_zam/zam.php', array($this, 'installation_housekeeping')); register_uninstall_hook(__FILE__, array('Zam', 'uninstall_housekeeping')); }
// ** 邮件设置 ** // /* * 邮局地址* */ define('SMTP_HOST', "smtp.qq.com"); /* * 邮局端口* */ define('SMTP_PORT', 465); /* * 邮件用户名* */ define('SMTP_USERNAME', "*****@*****.**"); /* * 邮件密码* */ define('SMTP_PASSWD', "12345678"); /* * 邮件发件人* */ define('SMTP_FROMNAME', "竹井詩織里(战网安全令在线版)"); //禁止直接include define('ZHANGXUAN', true); //是否SSL /* * 页面地址 */ if (is_SSL()) { define('SSLMODE', 1); define("SITEHOST", "https://myauth.us/"); define("SITEHOSTSAFEMODE", "http://myauth.us/"); } else { define('SSLMODE', 0); define("SITEHOST", "http://myauth.us/"); define("SITEHOSTSAFEMODE", "https://myauth.us/"); } define("TITLENAME", "战网安全令在线版"); /* * 微博分享内容* */ define("SINAKEY", "11111"); define("TENCENTKEY", "1111"); define("SOHUKEY", "111fafas"); define("NETEASEKEY", "23121321321312"); define("WEIBOMESSAGE", "战网安全令,魔兽世界,暗黑破坏神,炉石传说,风暴英雄,星际争霸,创建战网安全令,还原战网安全令,台服,美服,欧服,国服,手机安全令,丢失安全令!");
</div> <br> <h3 class="article-ci"> 版权所有 </h3> <p>战网安全令在线版 © <?php if (date('Y') == 2013) { echo "2013"; } else { echo "2013-" . date('Y'); } ?> 竹井詩織里 <br>All rights reserved </p> </div> </div> </div> </div> </div> </div> </div></div> <?php if (!is_SSL()) { ?> <script language="JavaScript" type="text/javascript"> var Ipv6_Js_Server = (("https:" == document.location.protocol) ? "https://" : "http://"); document.write(unescape("%3Cscript src='" + Ipv6_Js_Server + "www.ipv6forum.com/ipv6_enabled/sa/SA.php?id=4376' type='text/javascript'%3E%3C/script%3E")); </script> <?php } ?>