text stringlengths 2 1.03M |
|---|
<?php
return [
'application_number' => 'Application number',
'fullname' => 'Full name',
'region' => 'Region',
'district' => 'District',
'address' => 'Address',
'needpaid' => 'Need pay',
'paid' => 'Paid',
'cancel' => 'Cancel',
'confirm_cancel_action' => 'Confirm Cancel action',
'... |
<?php
/**
* Created by PhpStorm.
* User: 1
* Date: 2017-03-13
* Time: 20:05
*/
namespace sunsun\hwfish\model;
use sunsun\server\model\BaseDeviceEventModel;
class HwfishDeviceEventModel extends BaseDeviceEventModel
{
} |
<?php
namespace Api\Controller;
use Think\Controller;
/*
团队成员管理
*/
class TeamMemberController extends BaseController {
//添加和编辑
public function save(){
$login_user = $this->checkLogin();
$member_username = I("post.member_username");
$team_id = I("post.team_id/d");
$teamInf... |
<?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 mcorten87\rabbitmq_api\test\unit\jobs;
use mcorten87\rabbitmq_api\jobs\JobVirtualHostList;
use mcorten87\rabbitmq_api\objects\VirtualHost;
use PHPUnit\Framework\TestCase;
class JobVirtualHostDListTest extends TestCase
{
/**
* Tests if the dependency injection in the constructor works
*/
... |
<?php
// autoload_namespaces.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'danog\\' => array($vendorDir . '/danog/primemodule/lib', $vendorDir . '/danog/magicalserializer/src'),
'cash' => array($vendorDir . '/cash/lrucache/src'),
'Parse... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class home extends CI_Controller
{
public function index()
{
$this->load->view('templates/header');
$this->load->view('home/index');
$this->load->view('templates/footer');
}
}
?> |
<?php
/**
* @version 1.4.0
* @package RSform!Pro 1.4.0
* @copyright (C) 2007-2013 www.rsjoomla.com
* @license GPL, http://www.gnu.org/copyleft/gpl.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div class="rsform_error" id="rsform_themes_disabled" <?php if ($this->form->FormLayoutName != 'responsive') { ?>s... |
<?php
use yii\helpers\Html;
?>
<div class="container" >
<h2>待评价订单列表</h2>
<div class="list-group" >
<?php foreach($tofeedback as $feedback){
echo '<a href="/feedback/feedback?dealid='. $feedback['dealid'] . '&couponid=' . $feedback['couponid'] . '&userid=' . $feedback['userid'] . '" class="list-group-item">';
... |
<?php
/* @var $this yii\web\View */
$this->title = 'My Yii Application';
?>
<div class="site-index">
<div class="jumbotron">
<h1>Congratulations!</h1>
<p class="lead">You have successfully created your Yii-powered application.</p>
<p><a class="btn btn-lg btn-success" href="http://www.yi... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AlterSiteTableSiteContatosAddFkMotivoContatosTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
... |
<?php
session_start();
unset($_SESSION["session_user"]);
session_destroy();
header("Location: ../../index.php");
exit();
?> |
<?php @extends('layout')
@section('content')
?>
<p> dasdsa </p>
<?php
@endsection
?> |
<?php
/**
* Created by PhpStorm.
* User: Admin
* Date: 9/18/2017
* Time: 5:21 PM
*/
namespace App\Exceptions;
use Exception;
class DuplicateInfoException extends SException
{
/**
* @return void
*/
public function __construct($id=0)
{
parent::__construct('duplicate ma', \Config::ge... |
<?php
namespace Akela;
use Illuminate\Notifications\Notifiable;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'name', 'email... |
<?php
use app\models\Category\CategoryPack;
use app\models\Products\ProductPresentation;
$this->registerCssFile('/css/site.css');
$this->registerCssFile('/css/admin/site.css');
$this->registerJsFile("/ckeditor/ckeditor.js", ['position' => static::POS_END]);
$this->registerCssFile('/bootstrap-select/css/bootstrap-se... |
@extends('adminlte::page')
@section('title', 'Club Tennis i Pàdel Blanes')
@section('content_header')
@stop
@section('content')
@livewire('admin.activity-create')
@stop
@section('css')
@stop
@section('js')
@livewireScripts
<link rel="stylesheet" href="{{asset('css/livewire/perfilCrear.css')}}">
<script> ... |
<?php
/**
* Tracking functions for reporting plugin usage to the Ninja Forms site for users that have opted in
*
* @package Ninja Forms
* @subpackage Admin
* @copyright Copyright (c) 2016, The WP Ninjas
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 2.9.52
*/
... |
<?php
include('seg/seguridad.php');
require('conexion/conexion.php');
$Datos = buscarDietas();
function buscarDietas() {
$BD = new MiBD();
$sql = "SELECT * FROM terapias";
if (!$resultado = $BD->query($sql)){return false;}
return $resultado;
}
?>
<!DOCTYPE html>
<html lang="es">
<head>
<?php incl... |
<?php
$params = array_merge(
require(__DIR__ . '/../../common/config/params.php'),
require(__DIR__ . '/../../common/config/params-local.php'),
require(__DIR__ . '/params.php'),
require(__DIR__ . '/params-local.php')
);
return [
'id' => 'app-api',
'basePath' => dirname(__DIR__),
'bootstrap' ... |
<?hh // partial
function foo(int $a, string& $b, bool $c): void {}
function test(): void {
$i = 3;
$s = 'x';
$b = true;
$foo_str = fun('foo');
foo(42, &$s, true);
foo(3, 'x', false);
foo($i, $s, $b);
foo($i, $s, &$b);
foo(&$i, $s, $b);
foo(&$i, $s, &$b);
foo($i, &$s, $b);
foo($i, &$s, &$b);
... |
<?php
use Codeception\TestCase\Test;
class AcademicUpdateRepositoryTest extends \Codeception\TestCase\Test
{
use Codeception\Specify;
/**
*
* @var Symfony\Component\DependencyInjection\Container
*/
private $container;
/**
*
* @var \Synapse\CoreBundle\Repository\RepositoryRes... |
<!DOCTYPE html>
<html>
<head>
<title>Invoice</title>
{{-- <link href="https://fonts.googleapis.com/css?family=Poppins&display=swap" rel="stylesheet"> --}}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style type="text/css">
body {
font-family: "DejaVu Sans";
... |
<?php
use yii\db\Schema;
use yii\db\Migration;
class m150710_091933_review_answer_create_table extends Migration
{
public function up()
{
$tableOptions = null;
if ($this->db->driverName === 'mysql') {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
... |
<?php
/* dropdown.twig */
class __TwigTemplate_bae015a40e8a1a5edb926f41e0aad971e6a46153b1f0c1fe661b8419a8d70256 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = [
];
}
protec... |
<?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\Cache\Tests\Adapter;
use Predis\Connection\StreamConn... |
<!DOCTYPE html>
<html lang="en">
<!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title> {{ $page_title??'Admin' }} </title>
<link rel="shortcut icon" type="image/png" href="{{asset('assets/img/fav.png')}}" />
<meta http-equiv="X-UA-Compatible" content=... |
<?php
declare(strict_types = 1);
namespace App\Http\Controllers\Auth;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
/**
* Class ForgotPasswordController
*
* @package App\Http\Controllers\Auth
*/
class ForgotPasswordController extends Controller
{
/*
|-----... |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Main_model extends CI_Model {
public function get($username){
$this->db->where('username', $username); // Untuk menambahkan Where Clause : username='$username'
$result = $this->db->get('login')->row(); // Untuk men... |
<?php
use yii\helpers\Html;
$this->title = 'Create Product Photos';
$this->params['breadcrumbs'][] = ['label' => 'Product Photos', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="venue-photos-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
... |
@extends('layouts.navbar')
@section('content')
<div class="row align-items-start g-2">
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th class="col-md-2" scope="col"> Libro </th>
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateContactsTable extends Migration
{
public function up()
{
Schema::create('contacts', function (Blueprint $table) {
$table->bigIncrements('id');
... |
<?php
declare(strict_types=1);
namespace Rector\Core\PhpParser\Node\Commander;
use PhpParser\Node;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Expression;
use PhpParser\NodeTraverser;
use Rector\ChangesReporting\Collector\AffectedFilesCollector;
use Rector\Core\Contract\PhpPa... |
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* SubCategory
*
* @ORM\Table(name="sub_category")
* @ORM\Entity(repositoryClass="AppBundle\Repository\SubCategoryRepository")
*/
class SubCategory
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
... |
<?php
class ColoredListsUsers {
public $property = 1;
public function CreateAccount($newval) {
$this->prop1 = $newval;
}
public function VerifyAccount($newval) {
$this->prop1 = $newval;
}
public function UpdateAccounteMail($newval) {
$this->prop1 = $newval;
}
... |
<footer class="page-footer font-small special-color-dark pt-4">
<!-- Footer Elements -->
<div class="container">
<!-- Social buttons -->
<ul class="list-unstyled list-inline text-center">
<li class="list-inline-item">
<a class="btn-floating btn-fb mx-1">
<i class="fa... |
<?php
/**
* This file is part of Maximumtest\JWT, a simple library to handle JWT and JWS
*
* @license http://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
namespace Maximumtest\JWT\Signer;
use Maximumtest\JWT\Signer\Ecdsa\MultibyteStringConverter;
use Maximumtest\JWT\Signer\Ecdsa\SignatureConverter;
use co... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="">INSERT</form>
<table border="1px">
<tr>
<th>Name</th>
<th>delete</th>
... |
<div id="page-wrapper">
<div class="col">
<!-- main content -->
<div class="content">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="header-icon">
<i cl... |
<!DOCTYPE html>
<html lang="{{ App::getLocale() }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="HandheldFriendly" content="true">
<meta name="MobileOptimized" content="0">
<meta
name="viewport"
content="width=device-width, initial-... |
<?php
declare(strict_types = 1);
namespace CoolBeans\Result;
class InsertMultiple implements \CoolBeans\Contract\Result
{
use \Nette\SmartObject;
public function __construct(
public array $insertedIds,
)
{
}
} |
<?php
namespace app\manager\model;
use app\common\component\Code;
/**
* 已售出的卡
*/
class SoldCard extends \app\common\model\SoldCard {
/**
* 获取由用户购买的卡
* @param type $mchId
* @param type $userId
* @param type $params
*/
public function getUserByCard($mchId, $userId, $params = []) {
... |
<?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 RectorPrefix20211109\Symfony\Component\DependencyInjection\Compiler;
use... |
<?php
namespace Container2YDdIFD;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\Exception\RuntimeException;
/**
* @internal This class has been auto-generated by the Symfony Dependency Injection Component.
*/
class getMaker_AutoCommand_MakeMigrati... |
<?php
use Illuminate\Database\Seeder;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;
class RoleHasPermissionsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$role = Role::findById(7);
$p... |
<?php
/**
* MIT License
*
* Copyright (c) 2020 Wolf Utz<wpu@hotmail.de>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
... |
<?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 if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Resize {
var $image;
var $width;
var $height;
var $imageResized;
var $extension;
function getFileInfo($filename){
// *** Open up the file
$this->image = $this->openImage($filename);
// *** Get width and height
$this->wi... |
<?php
namespace App\Policies;
use App\Models\Comment;
use App\Models\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class CommentPolicy
{
use HandlesAuthorization;
/**
* Determine whether the user can view any models.
*
* @param \App\Models\User $user
* @return mixed
*/
... |
<?php
namespace Tests\Unit\Models\Eloquent;
use App\Models\ContactRequest;
use App\Models\Contracts\ContactRequest as ContactRequestContract;
use Tests\TestCase;
class ContactRequestModelTest extends TestCase
{
public function testModelInstanceOfContract()
{
$this->assertInstanceOf(ContactRequestCont... |
<?php //[STAMP] 1851b833d18f3bf3c19e9db818d0cca7
namespace _generated;
// This class was automatically generated by build task
// You should not change it manually as it will be overwritten on next build
// @codingStandardsIgnoreFile
use Helper\Dummy;
trait DummyTesterActions
{
/**
* @return \Codeception\S... |
<?php
/*
* Copyright 2014 Google Inc.
*
* 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/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
<?php
namespace arteNatural\Http\Controllers\Auth;
use arteNatural\User;
use arteNatural\Http\Controllers\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|----------------------------------------------------... |
<?php
/**
* East Website.
*
* LICENSE
*
* This source file is subject to the MIT license
* license that are bundled with this package in the folder licences
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to richarddeloge@gmail.co... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Service extends Model
{
use \Sushi\Sushi;
protected $rows = [
[
'label' => 'House Rent',
'value' => 'house-rent'
],
[
'label' => 'Car Rent',
'value' => 'car-rent'
... |
<!-- Main Content -->
<div class="main-content">
<section class="section">
<div class="section-header">
<h1><?= !$empty ? 'Update' : 'Tambah'; ?> Alat</h1>
<div class="section-header-breadcrumb">
<div class="breadcrumb-item active"><a href="<?= base_url(); ?>">Dashboa... |
<table class="table table-bordered">
<tr>
<th>ID</th>
<th>管理员名</th>
<th>管理员角色</th>
<th>管理员状态</th>
<th>操作</th>
</tr>
<?php foreach ($admins as $admin): ?>
<tr>
<td><?=$admin->id?></td>
<td><?=$admin->username?></td>
<td><?php
for... |
<?php
namespace Clover\WechatOA\Api;
/**
* Class Media
*/
class Material
{
private $accessToken;
private $getUrl = 'https://api.weixin.qq.com/cgi-bin/material/get_material?access_token=%s';
private $addUrl = 'https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=%s&type=%s';
private... |
<?php
namespace common\models;
use Yii;
use \common\models\base\Kabupaten as BaseKabupaten;
/**
* This is the model class for table "kabupaten".
*/
class Kabupaten extends BaseKabupaten
{
} |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateRecipeTagTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('mts_recipe_ta... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FutureSeekers</title>
<link rel="stylesheet" href="<?php echo base_url('/assets/... |
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| ... |
<?php
namespace Fy\Carbon\PHPStan;
use PHPStan\Reflection\ClassReflection;
use PHPStan\Reflection\MethodReflection;
use PHPStan\Reflection\MethodsClassReflectionExtension;
use PHPStan\Reflection\Php\PhpMethodReflectionFactory;
use PHPStan\Type\TypehintHelper;
/**
* Class MacroExtension.
*
* @codeCoverageIgnore Pu... |
<?php
$httpBody = file_get_contents('php://input');
$input = json_decode($httpBody, true);
$output = [];
if ($input['data1'] == $input['data2']){
$output['tulos'] = 'samat';
} else {
$output['tulos'] = 'erit';
}
header('Content-type: application/json');
echo json_encode($output);
//debug($data['data1']);
/... |
<?php
/**
*
* @copyright 2008 - https://www.clicshopping.org
* @Brand : ClicShopping(Tm) at Inpi all right Reserved
* @Licence GPL 2 & MIT
* @licence MIT - Portion of osCommerce 2.4
* @Info : https://www.clicshopping.org/forum/trademark/
*
*/
namespace ClicShopping\Apps\OrderTotal\SubTotal\... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class validate_Register extends Controller
{
//
} |
<?php
/**
* Squiz_Sniffs_Formatting_OperationBracketSniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Greg Sherwood <gsherwood@squiz.net>
* @author Marc McIntyre <mmcintyre@squiz.net>
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.c... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class AdminLoginMiddleware
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Clo... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class PenaltiesUpdate extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
//
Schema::table('penaltie... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Area extends Model
{
protected $fillable = ['name', 'city_id','delivery_charge', 'express_charge'];
public function getRules(){
$rules = [
'name' => 'required|string',
'city_id' => 'required|exists:cities,id',
'deliv... |
<?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 App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class EveryHour extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
... |
<?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license inf... |
@extends('layout')
@section('content')
<h1>Contact!!</h1>
<p>Hello this is contact</p>
@endsection |
<?php
namespace app\controllers;
use yii\web\Response;
use yii\data\Pagination;
use Yii;
use yii\filters\AccessControl;
use yii\web\Controller;
use yii\filters\VerbFilter;
use app\models\LoginForm;
use app\models\ContactForm;
use app\models\entryForm;
use app\models\users;
use app\models\event;
use app\models\groups;... |
<?php
namespace Drupal\Tests\node\Kernel\Migrate\d7;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
use Drupal\node\Entity\Node;
use Drupal\node\NodeInterface;
/**
* Tests node migration.
*
* @group node
*/
class MigrateNodeTest extends MigrateDrupal7TestBase {
/**
* {@inheritdoc}
*/
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddForeignsToDistrictsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('distric... |
<div id="edit_panel" class="display-none">
<div class="card">
<div class="card-header text-center">
<h5>Edit Panel</h5>
</div>
<form method="POST" action="{{route('admin.topics.update',$topic)}}" id="edit_form">
@csrf
@method('patch')
<div clas... |
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<div class="pull-left image">
<img src="{{URL::asset("dist/img/user2-160x160.jpg")}}" class="img-circle" alt... |
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class PostFactory extends Factory
{
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
$nbWords = 6;
$variableNbWords = true;
return... |
<?php
namespace PhpBench\Tests\Unit\Formatter\Format;
use Generator;
use PhpBench\Formatter\Format\InvertOnThroughputFormat;
use PhpBench\Tests\TestCase;
use PhpBench\Util\TimeUnit;
class InvertOnThroughputFormatTest extends TestCase
{
/**
* @dataProvider provideFormat
*/
public function testFormat... |
<?php
require 'vendor/autoload.php'; // include Composer's autoloader
require_once 'common.php';
//used the GD library to resize an image.
//TODO check possible missbehavior if the source and target reolutions have different width-to-height ratios
function resize_image($file, $w, $h) {
list($width, $height) = geti... |
<?php
include 'connect.php';
if(isset($_POST['submit']))
{
$from = $_GET['id'];
$to = $_POST['to'];
$amount = $_POST['amount'];
$sql = "SELECT * from users where id=$from";
$query = mysqli_query($conn,$sql);
$sql1 = mysqli_fetch_array($query);
$sql = "SELECT * from users where id=$to";
... |
<?php
/**
* KirySaaS--------||bai T o o Y ||
* =========================================================
* ----------------------------------------------
* User Mack Qin
* Copy right 2019-2029 kiry 保留所有权利。
* ----------------------------------------------
* ========================================================... |
<?php
namespace Saom\Http\Middleware;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as Middleware;
class VerifyCsrfToken extends Middleware
{
/**
* Indicates whether the XSRF-TOKEN cookie should be set on the response.
*
* @var bool
*/
protected $addHttpCookie = true;
/**... |
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +-------------------------------------------------... |
<?php
namespace CMSBundle\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use CMSBundle\Entity\Infographic;
use CMSBundle\Entity\City;
use CMSBundle\Form\InfographicType;
/**
* Infographic controller.
*
*/
class InfographicController extends Con... |
@extends('layouts.admin-temp')
@section('users')
active
@endsection
@section('users-active')
active
@endsection
@section('header')
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<style type="text/css">
button#user-detail,
button#u... |
<!-- Home -->
<div class="home">
<div class="breadcrumbs_container">
<div class="container">
<div class="row">
<div class="col">
<div class="breadcrumbs">
<ul>
<li><a href="index.html">Home</a></li>
<li>Profile</li>
</ul>
</div>
</div>
</div>
</div>
... |
<?php
/*
* $Id: Mssql.php 6484 2009-10-12 17:40:41Z jwage $
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN... |
<?php
namespace App\Services;
use App\Entity\Svistyn;
use App\Entity\GroupUsers;
use Doctrine\Common\Persistence\ManagerRegistry;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
use Knp\Component\Pager\PaginatorInterface;
class SvistService
{
/*... |
<?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
/**
* Nexmo Client Library for PHP
*
* @copyright Copyright (c) 2016 Nexmo, Inc. (http://nexmo.com)
* @license https://github.com/Nexmo/nexmo-php/blob/master/LICENSE.txt MIT License
*/
namespace Nexmo\Client\Credentials;
use Lcobucci\JWT\Builder;
use Lcobucci\JWT\Signer\Key;
use Lcobucci\JWT\Signer\Rsa\S... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Page extends CI_Model {
private $pid;
private $title;
private $content;
private $psid;
private $created_auid;
private $updated_auid;
private $created_time;
private $updated_time;
/**
* Constants
... |
<!-- footer -->
<footer id="main-footer" class="bg-dark text-white mt-5 p-5">
<div class="container">
<div class="row">
<div class="col">
<p class="lead text-center">
Copyright ©AdminBlog
<?php
... |
<?php
namespace Fenrizbes\FormConstructorBundle\Admin\SonataAdmin;
use Fenrizbes\FormConstructorBundle\Propel\Model\Field\FcField;
use Fenrizbes\FormConstructorBundle\Propel\Model\Field\FcFieldQuery;
use Fenrizbes\FormConstructorBundle\Propel\Model\Form\FcForm;
use Fenrizbes\FormConstructorBundle\Propel\Model\Form\Fc... |
<?php
//
/**
* View template file of the plugin
*
* @internal Add form page view.
*/
global $rm_env_requirements;
?>
<div class="rmagic">
<!--Dialogue Box Starts-->
<div class="rmcontent">
<?php
$form = new RM_PFBC_Form("rm_form_add");
$form->configure(array(
"prevent... |
<?php
/**
* This file is part of webman.
*
* Licensed under The MIT License
* For full copyright and license information, please see the MIT-LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @author walkor<walkor@workerman.net>
* @copyright walkor<walkor@workerman.net>
* @li... |
--TEST--
Connect to MongoDB with SSL and cert verification
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_libmongoc_ssl(); ?>
<?php skip_if_not_ssl(); ?>
<?php skip_if_no_ssl_dir(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";
$driverOptions = [
// libmongo... |
<?php
namespace Sharkodlak\Gettext;
/** Adds dollar to '%1' placeholder to convert it to '%1$s', which is usable in sprintf.
*/
class DollarTranslatorDecorator extends TranslatorBase {
private $translator;
public function __construct(Translator $translator) {
$this->translator = $translator;
}
public functio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.