Code Monkey home page Code Monkey logo

bottlelogin's Introduction

BottleLogin

简单的,无须数据库的登录系统,基于PHP

具体内容在示例页面examplepage.php里面有介绍。


在使用BottleLogin之前,请访问m.php进行初始化


m.php?t=login用来显示登录页面

m.php?t=reg用来显示注册页面

m.php?t=rpass用来修改密码

v.php?do=logout用来登出


检测登录API为o.php,
sessionstart的前提下,引用o.php,可以用checklogin()检查是否登录,若没有登录将被强行送到m.php?t=login.  

checkrefer()若检查已经登录,则跳转到指定的页面.

checklogged()会返回bool值来代表是否登录.

checklogin()判断如果没有登录会直接跳转到登录页面.

新增:

setprofile(用户,属性,内容); 来给用户设置某一项特殊的属性
getprofile(用户,属性); 可以获取设置的属性内容
removeprofile(用户,属性); 可以移除用户的某一项属性

[例如]

setprofile('Sobo','exp',4);
getprofile('Sobo','exp'); //return : 4  

另外,如果找不到用户,会返回false


极速登录模式

config文件里oldmode选项调为yes可以使登录界面最低兼容诺基亚且极速。

在lconfig路径里有一个配置文件,可以对该登录系统进行基本配置

  • DEMO USER:Sobo
  • DEMO PASSWORD:123456

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.