text
stringlengths
2
1.03M
@extends( env('THEME').'.layouts.site' )
<?php <<__EntryPoint>> function main() { $array = [['a', 'b'], 'c', 'd']; foreach($array as $key => list()) { } }
@extends('layouts.base') @include('layouts.head') @include('layouts.header') @section('title', 'ログイン') @section('content') <div class="lead" id="lead"> <p class="lead-text">メールアドレスとパスワードを記入してログインしてください。</p> <p class="lead-text">会員登録がまだの方はこちらから。</p> <p class="lead-text">&raquo;<a href="/...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>About</title> </head> <body> <a href="{{url('/')}}">Home</a> <a href="{{route('admin')}}">Admin</a> ...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSucursalesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sucursales',...
<?php namespace SmartMove; /** * Class Util * * @package SmartMove */ class Util { /** * Converts a response from the SmartMove API to the corresponding PHP object. * * @param array $response The response from the SmartMove API. * @param array $opts * @return Resource|array */ ...
<div> <h3>Invoice Detail</h3> <form wire:submit.prevent="submit"> <div class="row"> <div class="col"> <label for="">Invoice Number</label> <input type="number" wire:model="data.id" class="form-control"> @error('data.id') <span class="text-dang...
<?php namespace App\Metrics; use GurmanAlexander\Metrics\Types\CountMetrics; class VideoViewCountMetrics extends CountMetrics { }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, min-scale=1"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link href="https://fonts.googleapis.com/css2?family=Cormorant+Upright...
<main id="main"> <!-- ======= Intro Single ======= --> <section class="intro-single"> <div class="container"> <div class="row"> <div class="col-md-12 col-lg-8"> <div class="title-single-box"> <h1 class="title-single"><?php echo $produk->nama ?></h1> ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOrganismePublicsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { if(!Schema::hasTable(...
<?php namespace App; use Illuminate\Database\Eloquent\Model; class sale_damage extends Model { // }
<!DOCTYPE html> <html lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Meta, title, CSS, favicons, etc. --> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-wi...
<?php namespace App\Listeners\Backend\PortfolioCategory; /** * Class PortfolioCategoryEventListener. */ class PortfolioCategoryEventListener { /** * @param $event */ public function onCreated($event) { \Log::info('PortfolioCategory Created'); } /** * @param $event */...
<?php namespace Tests\Feature; use App\Models\User; use Tests\TestCase; class TodoListControllerTest extends TestCase { public function test_can_create_todolist() { $user = User::factory()->make(); var_dump($user->id); $this->post('/api/user/' . $user->id . '/todo_lists', ["descriptio...
<label for="rs_sheet_type_select">시트 종류</label> <select name="<?=RS_META_NAME_SHEET_TYPE?>" id="rs_sheet_type_select"> <?php $rs_type = rs_common_get_post_rs_type(); $sheets = rs_common_get_allsheets(); foreach ($sheets as $value) { if ($rs_type == $value) { $selected = ' selected="selected"'; } else { $s...
<?php // 登录逻辑 // 1. 连接数据库 // 2. 接受前端发送的数据 // 3. 根据前端的数据 进行数据查找 // 找到数据 ——> 登录成功 // 未找到数据 ——> 登录失败 include('./library/conn.php'); $username = $_REQUEST['username']; $password = $_REQUEST['password']; // 查询语句 $select = "select * from users where phone='$username' and ...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateMaintextsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('maintexts', f...
<?php // autoload.php @generated by Composer require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitd05270a571df4dc719248c2c4970ae5c::getLoader();
<?php namespace Application\View\Helper; use Zend\View\Helper\AbstractHelper; use Zend\ServiceManager\ServiceManager; use Application\Form\HeadmetaForm; use Application\Model\HeadmetaTable; class UserHelper extends AbstractHelper { public function __invoke() { } public function setServiceLocator(Servic...
<?php use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSpGetFrequentUserFoodsTemp extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::unprepared('DROP PROCEDURE IF EXISTS getFrequentUserFoo...
<?php /** * Data validation Email field type class * * @author Christophe SAUVEUR <christophe@cheeseburgames.com> * @version 1.0 * @package framework */ namespace CheeseBurgames\MFX\DataValidator\Field; use CheeseBurgames\MFX\DataValidator\Field; use CheeseBurgames\MFX\DataValidator\FieldType; use CheeseBurgames...
<?php /* @var $this \yii\web\View */ /* @var $content string */ use app\assets\MaterialDesignIconsAsset; use CottaCush\Yii2\Assets\ToastrNotificationAsset; use yii\helpers\Html; use app\assets\AppAsset; use app\assets\FontAwesomeAsset; AppAsset::register($this); FontAwesomeAsset::register($this); ToastrNotificationAsse...
<?php header ("Cache-Control: no-cache, must-revalidate"); header ("Pragma: no-cache"); header ("Content-type: application/x-msexcel"); header ("Content-type: application/octet-stream"); header ("Content-Disposition: attachment; filename= Data Riwayat Kerja Karyawan.xls"); ?> <style type="text/css"...
<?php /** * +---------------------------------------------------------------------- * 监听进程关闭事件 * +---------------------------------------------------------------------- * 官网:https://www.sw-x.cn * +---------------------------------------------------------------------- * 作者:小黄牛 <1731223728@qq.com> * +-------------...
<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use Auth; class SessionsController extends Controller { public function __construct() { $this->middleware('guest',[ 'only'=>['create'] ]); } public function create(){ return view('sessions.create...
<?php namespace App\Http; use Illuminate\Foundation\Http\Kernel as HttpKernel; class Kernel extends HttpKernel { /** * The application's global HTTP middleware stack. * * These middleware are run during every request to your application. * * @var array */ protected $middleware =...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class AddProductViewViewreservations extends Migration { /** * Run the migrations. * * @return void */ public function up() { DB::statement(" ...
<?php namespace RedSnapper\Medikey\Tests; use RedSnapper\Medikey\MedikeyServiceProvider; class TestCase extends \Orchestra\Testbench\TestCase { protected function getPackageProviders($app): array { return [ MedikeyServiceProvider::class, ]; } }
<?php namespace app\home\controller; use think\Request; class Goods extends Base { /** * 显示资源列表 */ public function index() { $cate_id = request()->param('id'); $cate = \app\home\model\Category::find($cate_id); $goods = \app\home\model\Goods::where('cate_id',$cate_id)->or...
<?php namespace App\Models; use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Foundation\Auth\User as Authenticatable; use Illuminate\Notifications\Notifiable; class UserDetail extends Authenticatable { protected $table = 'user_detail'; use H...
<?php /** *@static <p>The Database Host</p> */ define ( "DB_HOST", "localhost" ); /** * @static <p>The Database User</p> * @var username */ define ( "DB_USER", "root" ); /** * @static <p>Database User password</p> * @var user password */ define ( "USER_PASSWORD", "" ); /** * @static <p>Database name</...
<?php namespace PhpSports\Activity\Parse\ParseFile; use PhpSports\Activity\Parse\BaseParseFile; use PhpSports\Activity\Parse\ParseFileInterface; use PhpSports\Activity\Parse\ParseBinaryInterface; use PhpSports\Analyzer\Analysis\ResumeAnalysis; use PhpSports\Model\ActivityCollection; use PhpSports\Model\Activity; use ...
<?php include 'model/configRegion.php'; include 'controller/option1Controller.php'; foreach ($listRegionResult as $row) { ?> <option value="<?= $row->reg_id ?>"><?= $row->reg_v_nom ?></option> <?php } ?>
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\PropertyInfo\Tests\Extractor; use PHPUnit\Framework\T...
<?php $base = [ 0x00 => NULL, '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', '+', ',', '-', '.', '/', 0x10 => '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', '>', '?', 0x20 => '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 0x30 => 'P', 'Q', 'R', 'S', '...
<?php namespace App\Services\Auth; use App\LoginToken; use App\User; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; class MagicAuthentication { const INVALID_TOKEN = 'token.invalid'; const AUTHENTICATED = 'authenticated'; protected $request; public function __construct(Request $...
<?php /** * The Leginon software is Copyright 2003 * The Scripps Research Institute, La Jolla, CA * For terms of the license agreement * see http://ami.scripps.edu/software/leginon-license * * refinement selection form */ require_once "inc/particledata.inc"; require_once "inc/leginon.inc"; require_once "inc/p...
<?php if(!empty($all_events[0]['category_id'])) { $get_cate_id_exp = explode(',',$all_events[0]['category_id']); } $this->load->view('include/head'); ?> <body> <?php $this->load->view('include/header');?> <main class="dashboard" id="dashboard-main"> <?php $this->load->view('include/left-sidebar');?> <div class="dashboa...
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Laravel Crud Form</title> <!-- <link rel="stylesheet" href="../css/style.css"> --> <link rel="stylesheet" href="<?php echo e(asset('css/style.css')); ?>"> <link...
<?php namespace Test\Unit\UserController; use Controller\UserController; class UserControllerTestClass extends UserController { }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Ttd extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller...
<?php /* Smarty version 2.6.18, created on 2011-07-30 18:54:21 compiled from banner-index-list.html */ ?> <?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php'); smarty_core_load_plugins(array('plugins' => array(array('function', 't', 'banner-index-list.html', 35, false),array('function', 'ox_column_cla...
<?php namespace Modules\OrderModule\Http\Controllers\user; use Barryvdh\DomPDF\Facade\Pdf; use Illuminate\Contracts\Support\Renderable; use Illuminate\Http\File as HttpFile; use Illuminate\Http\Request; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\File; use Ill...
--TEST-- gregoriantojd() --EXTENSIONS-- calendar --SKIPIF-- <?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?> --FILE-- <?php echo gregoriantojd(5, 5, 6000000) . "\n"; ?> --EXPECT-- 2193176185
<?php /** * 请求获取类 * @author Yurun <yurun@yurunsoft.com> * @copyright 宇润软件(Yurunsoft.Com) All rights reserved. */ class Request { /** * CLI模式下的参数数组 * @var type */ public static $cliArgs = array(); /** * 判断是否为https方式访问 * @return boolean */ public static function isHttps() { return isset($_SERVER['...
<?php $id=intval($_REQUEST["id"]); $key=$_REQUEST["key"]; $flag=$_REQUEST["flag"]; if (!preg_match("/^[a-zA-Z0-9_=]+$/", $flag)) die("bad flag format"); if (!preg_match("/^[a-zA-Z0-9]+$/", $key)) die("bad key format"); $data='<?php if($_GET["key"]!="'.$key.'") die("bad key"); echo "'.$flag.'"; ?>'; file_put_conten...
<?php /** * Created by PhpStorm. * User: fanliang * Date: 2016/5/24 * Time: 11:13 */ namespace DbImporter\Libs\Configs; use Symfony\Component\Yaml\Yaml; class YamlConfig extends ConfigProvider { public $configPath; public $suffix; public $sources = []; public function loadConfig($config) {...
<?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Model; use App\Users; class UsersTableSeeder extends Seeder { public function run(){ DB::table('users')->delete(); Users::create([ 'username'=>'seisyo1234', 'password'=>Hash::make('12345678'), 'mail'=>'seisyo1234@gmail.com', 'bir...
<?php declare(strict_types=1); namespace Shopware\Core\Checkout\Test\Payment\SalesChannel; use PHPUnit\Framework\TestCase; use Shopware\Core\Checkout\Payment\Event\PaymentMethodRouteCacheTagsEvent; use Shopware\Core\Checkout\Payment\SalesChannel\PaymentMethodRoute; use Shopware\Core\Framework\DataAbstractionLayer\Sea...
<?php include_once "dbconn.inc.php"; function test(){ header("Location: ../signup.php?wrong=insertion_problem"); } function login_data($rollno,$upassword,$tablename,$conn){ $sql = "SELECT * FROM `ninjaart` WHERE rollno = \"$rollno\" and upassword = \"$upassword\""; $result = mysqli_query($...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); $config['base_url'] = "http://" . $_SERVER['HTTP_HOST'] . str_replace(basename($_SERVER['SCRIPT_NAME']), "", $_SERVER['SCRIPT_NAME']); $config['index_page'] = ''; $config['language'] = 'indonesia'; $config['url_suffix'] = ''; $config['encryption_ke...
<?php $url = $this->uri->segment(1); ?> <?php ?> <style> #map { height: 100%; } /* Optional: Makes the sample page fill the window. */ #floating-panel { position: absolute; top: 10px;Loan Recommended (Rs.) left: 25%; z-index: 5; background-c...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateTasksTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('tasks', function ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateUserFollowTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('user_follow',...
<?php namespace OmegaUp\DAO; /** * Contests Data Access Object (DAO). * * Esta clase contiene toda la manipulacion de bases de datos que se necesita * para almacenar de forma permanente y recuperar instancias de objetos * {@link \OmegaUp\DAO\VO\Contests}. * * @author alanboy * @access public * @package docs ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateArpuRequestsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('arpu_reque...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateModulesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('modules', funct...
<?php class Admin extends Controller{ public function __construct(){ //kiem tra tai khoan admin if(isset($_SESSION['isLoggedIn'])){ if($_SESSION['usertype'] == 1) { $this->productModel = $this->model('Product'); }else { redirect('...
<?php namespace faraamds\fias\Models; use Illuminate\Database\Eloquent\Model; use DateTimeInterface; class RoomType extends Model { protected $table = 'fias_room_type'; protected $fillable = ['rmtypeid', 'name', 'shortname', ]; protected $visible = ['id', 'rmtypeid', 'name', 'shortname', ]; /...
<?php /** * DO NOT EDIT THIS FILE! * * This file was automatically generated from external sources. * * Any manual change here will be lost the next time the SDK * is updated. You've been warned! */ namespace DTS\eBaySDK\Test\ResolutionCaseManagement\Types; use DTS\eBaySDK\ResolutionCaseManagement\Types\Appeal...
<?php namespace App\Models; use CodeIgniter\Model; class UserModel extends Model { protected $table = "user"; protected $useTimestamps = false; protected $allowedFields = ['username', 'password', 'img']; }
<?php namespace Phpactor\Extension\LanguageServerCodeTransform\LspCommand; use Amp\Promise; use Amp\Success; use Phpactor\CodeTransform\Domain\Exception\TransformException; use Phpactor\CodeTransform\Domain\Refactor\ExtractExpression; use Phpactor\CodeTransform\Domain\SourceCode; use Phpactor\Extension\LanguageServer...
<script type="text/javascript"> @if(!empty(session('error')) && session('error') == '此账号已在别处登录' || session('error') == '此账号已被禁用') alert("{{ session('error') }}"); parent.indexHerf('/login'); @else parent.parent.indexHerf('/login'); parent.indexHerf('/login'); @endif </script> <!DOCTYPE ...
<?php namespace App\Http\Requests\Adverts; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; class AttributesRequest extends FormRequest { public function authorize() { return true; } public function rules() { $items=[]; foreach ($this->advert->...
<?php //error_reporting(0); include '../config/koneksi.php'; $kelas = $_POST["kelas"]; $namal = $_POST["namal"]; $diskusi = $_POST["disku"]; $target_dir = "../filediskusi/"; $target_file = $target_dir.basename($_FILES["fileToUpload"]["name"]); $uploadOk=1; $documentfiletype=pathinf...
@extends('layouts.app') @section('content') <section class="content-header"> <h1> User </h1> </section> <div class="content"> @include('adminlte-templates::common.errors') <div class="box box-primary"> <div class="box-body"> <d...
--TEST-- Bug #69751: Change Error message of sprintf/printf for missing/typo position specifier. --FILE-- <?php try { sprintf('%$s, %2$s %1$s', "a", "b"); } catch (ValueError $e) { echo $e->getMessage(), "\n"; } try { sprintf('%3$s, %2$s %1$s', "a", "b"); } catch (ArgumentCountError $e) { echo $e->get...
<?php /** * Created by PhpStorm. * Power By Mikkle * Email:776329498@qq.com * Date: 2017/9/7 * Time: 14:16 */ namespace app\erp\controller\template_message; class YzfErpOptions { static public $template =' { "touser":"{$ToUserName}", "template_id":"{$template_id}", "url":"{...
<?php namespace SuperfoodElatedNamespace\Modules\Header\Types; use SuperfoodElatedNamespace\Modules\Header\Lib\HeaderType; /** * Class that represents Header Simple layout and option * * Class HeaderFullScreen */ class HeaderFullScreen extends HeaderType { protected $heightOfTransparency; protected $heigh...
<?php namespace Drupal\KernelTests\Core\Plugin\Condition; use Drupal\Component\Render\FormattableMarkup; use Drupal\KernelTests\KernelTestBase; /** * Tests the CurrentThemeCondition plugin. * * @group Condition */ class CurrentThemeConditionTest extends KernelTestBase { /** * {@inheritdoc} */ public s...
<?php namespace app\controllers; use app\models\TelephoneActivationForm; use app\models\ChangeTelephoneNumberForm; use app\models\Users; use Yii; use yii\db\Connection; use app\models\SellerRegistrationForm; use yii\web\Controller; use yii\filters\AccessControl; use yii\web\NotFoundHttpException; class SellerControl...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreatePacientesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pacientes', f...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Blog extends CI_Controller { public function index() { $this->load->view('blog'); } } /* End of file Blog.php */ /* Location: ./application/controllers/Blog.php */
<?php /* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENS...
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Exception; /** * @author Ben Ramsey <ben@...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" href="assets/images/pfbci-logo-128x128-128x128.png" type="image/x-icon"> <meta name="description" content=...
<?php /** * GetJwtSuccess * * PHP version 5 * * @category Class * @package Ale\Rainbow\S2S\Client\AuthPortal * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Rainbow authentication portal * * # Rainbow authentication portal API guide ## Preamble [Download Postman co...
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This front is released under the MIT License (MIT) * * Copyright (c) 2014 - 2017, British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwar...
<div class="forms-main"> <div class="graph-form"> <div class="validation-form"> <!----> <h2 align="center"><?php echo strtoupper($_GET['sad']); ?></h2> <?php $web_info_check = $sad->general_setting_check(); $check_we = $web_info_check->num_rows; if($check_we>0) { echo "<script>wind...
<?php namespace App\Mail; use Illuminate\Mail\Mailable; class ReportNotification extends Mailable { protected $review; protected $user; /** * ReportNotification constructor. * @param $review * @param $user */ public function __construct($review, $user) { $this->revie...
<?php use Anax\Route\Exception\ForbiddenException; use Anax\Route\Exception\InternalErrorException; use Anax\Route\Exception\NotFoundException; return [ // Path where to mount the routes, is added to each route path. // "mount" => "api", // All routes in order "routes" => [ [ "inf...
<?php /** * 多媒体文件客户端 * @author yikai.hu * @version $Id: AlipayMobilePublicMultiMediaClient.php, v 0.1 Aug 15, 2014 10:19:01 AM yikai.hu Exp $ */ //namespace alipay\api ; include("AlipayMobilePublicMultiMediaExecute.php"); class AlipayMobilePublicMultiMediaClient{ private $DEFAULT_CHARSET = 'UTF-8'; ...
<?php class OAuthScope extends BaseModel { protected $table = 'oauth_scopes'; }
<?php defined('BASEPATH') OR exit('No direct script access allowed'); /* |-------------------------------------------------------------------------- | Base Site URL |-------------------------------------------------------------------------- | | URL to your CodeIgniter root. Typically this will be your base URL, | WITH...
<?php namespace database\engine; // database\engine namespace tanımlaması class mysql extends \PDO implements DriverI { private \PDO $PDO; public function __construct( private string $host ="mariadb", private string $user="root", private string $pass="root", private string ...
--TEST-- Test array_filter() function : usage variations - Unexpected values for 'input' argument --FILE-- <?php /* Prototype : array array_filter(array $input [, callback $callback]) * Description: Filters elements from the array via the callback. * Source code: ext/standard/array.c */ /* Passing different scalar ...
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); if (!function_exists('rupiah')) { function rupiah($uang) { $format = number_format($uang, 0, ",", "."); return $format; } }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Bootstrap 实例 - 一个简单的网页</title> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.st...
<?php namespace App\View\Components\admin; use Illuminate\View\Component; class addRegister extends Component { // * Button to create a new register public $table; // model to create a register public $title; // Button legend public function __construct($table, $title) { $thi...
<?php class Model_Alumni extends CI_Model { function get_table(){ return $this->db->get("siswa"); } function get_data(){ $query = $this->db->query("SELECT * FROM siswa JOIN kelas WHERE siswa.id_kelas=kelas.id_kelas AND kelas.kelas='0' "); return $query->result(); } function get_kelas(){ ...
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateOrderDetailsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('order_deta...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateRoleUserTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('role_user', fu...
<?php namespace Redmine\Tests\Unit\Api; use Redmine\Api\Tracker; /** * @coversDefaultClass \Redmine\Api\Tracker * * @author Malte Gerth <mail@malte-gerth.de> */ class TrackerTest extends \PHPUnit\Framework\TestCase { /** * Test all(). * * @covers ::all * @test */ public funct...
<?php return [ 'version' => '2.1', 'sub_version' => '2.1.1', 'homepage' => 'https://s-cart.org', 'name' => 'S-Cart', 'title' => 'Free Open Source eCommerce for Business', 'github' => 'https://github.com/s-cart/s-cart', 'email' => 'lanhktc@gmail.com', 'api_link' => env('SC_API_LINK', 'htt...
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- Tell the browser to be responsive to screen width --> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> <!-- Bootstrap 3.3.7 --> <link rel="stylesheet" href="../../bower_components/boo...
<?php /* * This file is part of PHPUnit. * * (c) Sebastian Bergmann <sebastian@phpunit.de> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Default utility for PHP sub-processes. */ class PHPUnit_Util_PHP_Default extends PH...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateSemestersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('semesters', f...
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class AddShippingToOrdersTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('orders', f...