BVB Source Codes

The latest thinkphp v5.2 work order system Show CommonController.class.php Source code

Return Download The latest thinkphp v5.2 work order system: download CommonController.class.php Source code - Download The latest thinkphp v5.2 work order system Source code - Type:.php
  1. <?php
  2. namespace Admin\Controller;
  3. use Think\Controller;
  4.  
  5. class CommonController extends Controller {
  6.        
  7.         public function _initialize() {
  8.  
  9.                 header("Content-type: text/html; charset=utf-8");
  10.                
  11.                 Session_start();
  12.                 $userid = strtolower(I("session.userid"));
  13.                 $pass = I("session.pass");
  14.                  
  15.                 //是否已登录
  16.                 if(empty($userid) && empty($pass)){
  17.                          
  18.                         $this->redirect('Index/index');
  19.                         exit;
  20.                          
  21.                 }
  22.                  
  23.                 //是否已完善资料
  24.                 if(I("session.zl_status") == "-1" and I("session.limtis") == "3"){
  25.                
  26.                         $this->redirect('Index/editprofile');
  27.                         exit;
  28.                 }
  29.                
  30.                 $User = D("User");
  31.                 $user_arr = $User->where("userid='$userid'")->find();
  32.  
  33.                 //权限
  34.                 $limits = $user_arr['limits'];
  35.                 $this->assign("limits",$limits);
  36.                
  37.                 //是否已经完善资料
  38.                 if($user_arr['zl_status'] == "-1" and $user_arr['limits'] == "3"){
  39.                                
  40.                         $this->redirect('Index/editprofile');
  41.                                
  42.                         exit;
  43.                 }
  44.                
  45.         }
  46.        
  47.        
  48.        
  49. }
downloadCommonController.class.php Source code - Download The latest thinkphp v5.2 work order system Source code
Related Source Codes/Software:
V3.3.6 Workerman high-performance PHP Socket (framework) - High performance PHP Socket framework Workerman re... 2017-05-03
The phosphor meeting room reservation system MRBS (loop reservation v16.0) - The phosphor meeting room reservation system MRBS ... 2017-05-03
IDC v5.2.3 agent center - IDC Centre IDC for exploitation is a PHP+MySQL age... 2017-05-03
Zen master v9.0.1 project management software - Zen is the first domestic open source project mana... 2017-05-03
Ray speed v7.03 employee files management system - Employee files project is various, and some conten... 2017-05-03
HITCMS Haitian responsive electronic mechanical v3.0 foreign trade website source code - HITCMS Haitian response electronic machinery trade... 2017-05-03
Ray v7.02 speed survey system - Lightning speed survey system is a. NET+MSSQL deve... 2017-05-03
Cool HITCMS reactive black v3.0 enterprise website source code - HITCMS-Haitian response black enterprises website ... 2017-05-03
WebOA v17.2 network office automation system - WebOA network using b/s structure development of o... 2017-05-03
Pure imitation of han site source code, one a 】 【 c9cms kernel v1.0 - Generic http://www.wufazhuce.com/Han one · Config... 2017-05-04
zone.js - Implements Zones for JavaScript ... 2017-05-11
dragonfly - A Ruby gem for on-the-fly processing - suitable fo... 2017-05-11
oh-my-fish - The Fishshell Framework. 2017-05-11
canvas-lms - The open LMS by Instructure, Inc. 2017-05-11
ledger - Double-entry accounting system with a command-line... 2017-05-11
Python - My Python Examples http://w... 2017-05-11
blade - 2017-05-11
LaZagne - Credentials recovery project 2017-05-10
Pull-to-Refresh.Rentals-iOS - This project aims to provide a simple and customiz... 2017-05-10
spoon - Distributing instrumentation tests to all your And... 2017-05-10

 Back to top