当前位置: 首页>>代码示例>>PHP>>正文


PHP Token::check_a方法代码示例

本文整理汇总了PHP中Token::check_a方法的典型用法代码示例。如果您正苦于以下问题:PHP Token::check_a方法的具体用法?PHP Token::check_a怎么用?PHP Token::check_a使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Token的用法示例。


在下文中一共展示了Token::check_a方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Validate

<?php

require_once '../../core/init.php';
if (Input::exists('post')) {
    $validate = new Validate();
    $_POST['mobile'] = (int) Input::get('mobile');
    $_POST['parents_mobile'] = (int) Input::get('parents_mobile');
    $validation = $validate->check($_POST, array('gender' => array('required' => true), 'programme' => array('required' => true), 'Category' => array('required' => true), 'mobile' => array('required' => true, 'min' => 10, 'max' => 10), 'parents_mobile' => array('required' => true, 'min' => 10, 'max' => 10), 'semester' => array('required' => true), 'department' => array('required' => true), 'courses' => array('required' => true), 'total_credits' => array('required' => true), 'hostel_address' => array('required' => true), 'home_address' => array('required' => true)));
    if ($validate->passed() && Token::check_a(Input::get('token'))) {
        $stud = new Student();
        $name = Session::get('displayname');
        $email = Session::get('student_email');
        $scholar_no = Session::get('sn');
        $session = Session::get('semester_session');
        $category = Input::get('Category');
        $gender = Input::get('gender');
        $programme = strtoupper(Input::get('programme'));
        $semester = Input::get('semester');
        $department = Input::get('department');
        $mobile = Input::get('mobile');
        $parents_mobile = Input::get('parents_mobile');
        $courses = Input::get('courses');
        $courses = explode(' ,', $courses);
        $courses = $courses[1];
        $courses_load = strtoupper(Input::get('loadcode1') . ',' . Input::get('loadcode2'));
        $courses_load = rtrim($courses_load, ',');
        $course_credits = Input::get('course_credits');
        $home_address = Input::get('home_address');
        $hostel_address = Input::get('hostel_address');
        $add = $stud->register($email, $name, $gender, $scholar_no, $category, $programme, $semester, $session, $department, $mobile, $parents_mobile, $courses, $courses_load, $home_address, $hostel_address);
        if ($add == 1) {
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:registration.php

示例2: Course

<?php

require_once '../../core/init.php';
if (!loggedIn()) {
    die;
}
if (Input::exists('get')) {
    if (Input::get('sem') !== '' && Input::get('dep') !== '' && Token::check_a(Input::get('token'))) {
        $i = 0;
        $c = new Course();
        $courses = $c->getCoursesAvailable(Input::get('sem'), Input::get('dep'));
        if (!empty($courses)) {
            ?>
           <script ></script>
<input id="courses" type="hidden" name="courses" value=" "/>
            <table class="table">
                <tr>
	                <th>S.No.</th>
	                <th>Subject Name</th>
	                <th>Subject Code</th>
	                <th>Credit Point</th>
	                <th>Select</th>
                </tr>
                <?php 
            $i = 1;
            $total_credit = 0;
            while ($course = $courses->fetch_object()) {
                ?>
                <tr>
                <td><?php 
                echo $i;
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:31,代码来源:semester_courses.php

示例3: Marks

<?php

require_once '../core/init.php';
require_once ROOT_DIR . 'functions/pie.php';
if (!loggedIn() || !Token::check_a(Input::get('token'))) {
    die;
}
if (Input::exists('get')) {
    $m = new Marks();
    $aa = $m->totalNumOfGivenGrade('10', Input::get('cid'), Input::get('did'));
    $ab = $m->totalNumOfGivenGrade('9', Input::get('cid'), Input::get('did'));
    $bb = $m->totalNumOfGivenGrade('8', Input::get('cid'), Input::get('did'));
    $bc = $m->totalNumOfGivenGrade('7', Input::get('cid'), Input::get('did'));
    $cc = $m->totalNumOfGivenGrade('6', Input::get('cid'), Input::get('did'));
    $cd = $m->totalNumOfGivenGrade('5', Input::get('cid'), Input::get('did'));
    $dd = $m->totalNumOfGivenGrade('4', Input::get('cid'), Input::get('did'));
    $f = $m->totalNumOfGivenGrade('0', Input::get('cid'), Input::get('did'));
    createPie3D(array("AA" => $aa, "AB" => $ab, "BB" => $bb, "BC" => $bc, "CC" => $cc, "CD" => $cd, "DD" => $dd, "F/I/X" => $f));
}
开发者ID:mkrdip,项目名称:Management-Information-System,代码行数:19,代码来源:result_pie.php


注:本文中的Token::check_a方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。