本文整理汇总了PHP中task::checkUser方法的典型用法代码示例。如果您正苦于以下问题:PHP task::checkUser方法的具体用法?PHP task::checkUser怎么用?PHP task::checkUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类task
的用法示例。
在下文中一共展示了task::checkUser方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: task
<?php
session_start();
require_once "config.php";
$obj1 = new task();
$obj1->checkUser();
$obj = new task();
$admin_id = $_GET['admin_id'];
$query = "select * from admins where admin_id={$admin_id}";
$data = $obj->query($query);
$row = mysqli_fetch_array($data);
extract($row);
$done = 0;
if (isset($_POST["submit"])) {
$admin = new task();
if ($admin->updateadmin()) {
header("location:admins.php?a=1");
}
}
require_once "headincludes.php";
?>
<body>
<!-- topbar starts -->
<?php
require_once "topbar.php";
?>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
示例2: task
<?php
require_once 'config.php';
session_start();
$obj = new task();
$obj->checkUser();
$admin_id = $_GET["admin_id"];
$query = "select * from admins where admin_id='{$admin_id}'";
$obj->query($query);
$obj->nextRecord();
require_once "headincludes.php";
?>
<body>
<!-- topbar starts -->
<?php
require_once "topbar.php";
?>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid">
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<?php
require_once "sidemenu.php";
?>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
示例3: task
<?php
require_once "config.php";
session_start();
$obj1 = new task();
if ($obj1->checkUser()) {
echo "working";
}
require_once "headincludes.php";
?>
<body>
<!-- topbar starts -->
<?php
require_once "topbar.php";
?>
<!-- topbar ends -->
<div class="container-fluid">
<div class="row-fluid" style="min-height:6super00px;">
<!-- left menu starts -->
<div class="span2 main-menu-span">
<div class="well nav-collapse sidebar-nav">
<?php
require_once "sidemenu.php";
?>
</div><!--/.well -->
</div><!--/span-->
<!-- left menu ends -->
<noscript>