Giter Site home page Giter Site logo

baijunyao / thinkphp-bjyblog Goto Github PK

View Code? Open in Web Editor NEW
424.0 33.0 226.0 24.85 MB

基于 ThinkPHP 开发的的 blog

Home Page: http://baijunyao.com

License: Apache License 2.0

PHP 42.99% HTML 6.93% JavaScript 38.46% CSS 6.97% Smarty 0.22% Less 1.91% SCSS 2.53%
thinkphp php blog

thinkphp-bjyblog's Introduction

创建 QQ 群及捐赠渠道

链接

相关链接

开源项目系列之thinkphp-bjyblog博客

简介

闲暇之时使用thinkphp开发了一个个人博客用来整理技能知识;

如今博客的功能基本已经齐备;特开源以供各类猿们免费使用;

亦可以作为初学thinkphp的同学们的参考源代码;

此博客程序前后台页面以及逻辑代码的都由我手工打造;没有版权限制;可以随意折腾;

想研究支付宝、微信支付、邮件发送、短信通知验证码发送、oss云存储、融云即时通讯、友盟推送、Memcached缓存、权限管理、等更多功能的可以参考进阶版的bjyadmin https://github.com/baijunyao/thinkphp-bjyadmin

这还有个使用 laravel 开发的博客 https://github.com/baijunyao/laravel-bjyblog

使用说明

  1. 请将项目内的所有文件直接放在根目录下;不要多层目录;
    例如正确:www/;错误:www/thinkbjy/;
  2. 后台登录密码默认为admin;
  3. 如果确认开启了mod_rewrite
    请将/Application/Common/Conf/config.php中的URL_MODEL改为2以优化url
    未开启路由:http://baijunyao.com/index.php/Home/Index/article/aid/60
    开启路由后:http://baijunyao.com/article/60
  4. 把根目录下的robots.txt中的baijunyao.com改为自己的域名;
  5. 可以在用户管理中;将第三方账号标记为站长;然后后台就必须使用第三方账号登录以增强安全性;

针对thinkphp的改进优化;

  1. 修复tinkphp的session设置周期无效的bug;
  2. 自定义标签 /Application/Common/Tag/My.class.php;
  3. 将html视图页面分离;

项目介绍

  1. 前台基于boostrap的响应式页面布局适配手机和平板;
  2. 带表情的ajax无限级评论系统;
  3. PHPMail邮件系统;
  4. QQ、微博、豆瓣、人人、开心网等第三方登录;
  5. ueditor 百度富文本编辑器;
  6. font-awesome;
  7. iCheck;

商业友好的开源协议

bjyblog遵循Apache2开源协议发布。Apache Licence是著名的非盈利开源组织Apache采用的协议。该协议和BSD类似,鼓励代码共享和尊重原作者的著作权,同样允许代码修改,再作为开源或商业软件发布。

thinkphp-bjyblog's People

Contributors

baijunyao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thinkphp-bjyblog's Issues

Third party login ? More informations ?

Hello ,

Well , first of all i want to thank you for the hard work , I liked your blog so much , I've one question if you don't mind !

I want to modify the Third party login , i want to use only Facebook & Github , could you please guide me to find the path to modify these things ?

Possible XSS vulnerability

Hello,

I would like to report XSS vulnerability.

In file AdminBaseController.class.php
line 20

redirect(U('Admin/Login/login'));

In file https://github.com/baijunyao/thinkphp-bjyblog/blob/master/ThinkPHP/Mode/Api/functions.php

line 869 function U

$domain = $host.(strpos($host,'.')?'':strstr($_SERVER['HTTP_HOST'],'.'));

function U

// line 999
$url   =  (is_ssl()?'https://':'http://').$domain.$url;
// line 1003
return $url;

function redirect

// line 694
$url        = str_replace(array("\n", "\r"), '', $url);
// line 707
$str    = "<meta http-equiv='Refresh' content='{$time};URL={$url}'>";
// line 709
exit($str);

exit function will terminate the script and print the message to the user which has $_SERVER['HTTP_HOST']. Then there is XSS vulnerability.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.