text stringlengths 2 1.03M |
|---|
<?php
/**
* PHP_CodeCoverage
*
* Copyright (c) 2009-2011, Sebastian Bergmann <sb@sebastian-bergmann.de>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of sour... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Stripe, Mailgun, Mandrill, and others.... |
<nav x-data="{ open: false }" class="bg-gray-800">
<!-- メインナビゲーションメニュー -->
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex">
<!-- ロゴ -->
<div class="flex-shrink-0 flex items-center">
... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Members extends MY_Controller
{
public function __construct()
{
parent::__construct();
$this->form_validation->set_error_delimiters("<div class='text-danger' style='font-size:0.7em'>", '</div>');
$this->load->mo... |
<?php
require_once ("../conexion.php");
$conexion=conexion();
$t=$_POST['Tipo_Plato_idTipo_Plato'];
$n=$_POST['Nombre_plato'];
$d=$_POST['Descripcion_plato'];
$p=$_POST['Precio_plato'];
$e=$_POST['Estado_plato'];
$f=$_POST['Fecha_plato'];
$i=$_POST['Imagen_plato'];
// CONSULTAR SI EXISTE REGISTRADO USUA... |
<?php
Class Upload_library
{
var $CI = '';
function __construct()
{
$this->CI = & get_instance();
}
function upload($upload_path = '', $file_name = '')
{
$config = $this->config($upload_path);
$this->CI->load->library('upload',$config);
if($this->CI->upload->do_upload($file_name))
{
... |
<?php
namespace App\Http\ViewComposer;
use App\Classification;
use App\Subclassification;
use Illuminate\Contracts\View\View;
class BlogComposer
{
public function compose(View $view)
{
$areas = Classification::where('status', 1)->get();
$subareas = Subclassification::where('status', 1)->get();... |
<?php
/**
* This file is part of the Discord package.
*
* Copyright Aymeric Assier <aymeric.assier@gmail.com>
*
* For the full copyright and license information, please view the `licence`
* file that was distributed with this source code.
*/
namespace Discord\Debug\Error;
class FileNotFound extends \Exception
... |
<style>
.hidden {
display: none;
}
</style>
<div class="content-wrapper">
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1 class="m-0 text-dark"><?= $header ?></h1>
</div>
<div class=... |
<?php
session_start();
if(!$_SESSION['usuario']){
header('Location: index.php?erro=1');
}
require_once('db.class.php');
$texto_tweet = $_POST['texto_tweet'];
$id_usuario = $_SESSION['id_usuario'];
if($texto_tweet == '' || $id_usuario == ''){
die();
}
$objDb = new db();
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOnlineServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('online_s... |
@extends('layouts.main')
@section('content')
<div class="container-fluid mb-2">
<div class="row">
<div class="col-8 p-3">
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div class="card-header py-3 d-flex flex-row align-items-center justify-conten... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Cold_storage_deed_receive extends Model
{
//
} |
<?php
namespace data\service;
use think\captcha\Captcha;
use think\Validate;
class HuserReg extends Validate{
protected $rule = [
'user' => 'require',
'phone' => 'require',
'email' => 'require',
'password' => 'require',
];
protected $message = [
... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Session;
use App\Product;
use App\ProductGallery;
use App\Category;
use App\Department;
use App\ProductAttributeOption;
class AdminProductsController extends Controller
{
public function __co... |
<?php
namespace Graviton\GeneratorBundle\Definition\Loader\Strategy;
/**
* Load definition from JSON string
*
* @author List of contributors <https://github.com/libgraviton/graviton/graphs/contributors>
* @license https://opensource.org/licenses/MIT MIT License
* @link http://swisscom.ch
*/
class JsonStra... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PT Kreasi Artha Makmur</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="" name="keywords">
<meta content="" name="description">
<!-- Favicons -->
<link href="{{asset ('newbiz/... |
<style>
input.ip {
border-radius: 10px 0px 0px 10px;
}
.brand img.logo-img {
width: 200px;
}
/* .slick-track {
display: flex;
align-items: center;
} */
/*noti*/
.noti {
position: fixed;
bottom: 15px;
left: 15px;
background-color: #fff;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29... |
<?php
namespace ACP\LayoutScreen;
use AC;
use AC\ListScreen;
use ACP\Layout;
use ACP\Layouts;
use WP_User_Query;
class Columns {
public function __construct() {
// Init
add_action( 'ac/settings/list_screen', array( $this, 'set_layout_on_settings_screen' ) );
// Requests
add_action( 'ac/settings/handle_req... |
<?php
namespace League\Flysystem\Adapter;
use League\Flysystem\AdapterInterface;
use League\Flysystem\Config;
use Net_SFTP;
abstract class AbstractFtpAdapter extends AbstractAdapter
{
protected $connection;
protected $host;
protected $port = 21;
protected $username;
protected $password;
prote... |
<div class="form-group">
<label class="control-label">{{__("Feature Image")}}</label>
{!! \Modules\Media\Helpers\FileHelper::fieldUpload('image_id',$row->image_id) !!}
</div>
<div class="form-group">
<label class="control-label">{{__("Gallery")}}</label>
{!! \Modules\Media\Helpers\FileHelper::fieldGalle... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Materiel extends Model
{
protected $table = 'materiels';
use SoftDeletes;
public function company()
{
return $this->belongsTo('App\Company', 'company_id');
}
public fun... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EcoleActiviteMoniteur extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'... |
<?php
/**
* Replace cosh()
*
* @category PHP
* @package PHP_Compat
* @license LGPL - http://www.gnu.org/licenses/lgpl.html
* @copyright 2004-2007 Aidan Lister <aidan@php.net>, Arpad Ray <arpad@php.net>
* @link http://php.net/function.cosh
* @author Arpad Ray <arpad@php.net>
* @version ... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
<?php
/**
* This file is part of the netsuitephp/netsuite-php library
* AND originally from the NetSuite PHP Toolkit.
*
* New content:
* @package ryanwinchester/netsuite-php
* @copyright Copyright (c) Ryan Winchester
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0
* @link https://g... |
<?php
/**
* Created by PhpStorm.
* User: germanlena
* Date: 4/22/15
* Time: 3:11 PM
*/
namespace Auth0\SDK\API\Helpers;
use \Auth0\SDK\API\Header\Header;
use \GuzzleHttp\Client;
use \GuzzleHttp\Exception\RequestException;
class RequestBuilder {
/**
* @var string
*/
protected $domain;
/**
... |
@extends('adminlte::page')
@section('title', 'Equipment')
@section('content_header')
<h1>Equipment</h1>
@stop
@section('content')
<form method="post" action="{{ route('userdevices.update', ['userdevice'=>$userdevice->id]) }}">
@csrf
@method('PUT')
<x-adminlte-select name="device_id" label="Hardware Device">... |
<?php
/*array(7) {
["idlist"]=> string(1) "1"
["name"]=> string(4) "test"
["require_moderation"]=> string(1) "0"
["description"]=> string(3) "asd"
["visible"]=> string(1) "1"
["open"]=> string(1) "1"
["guests"]=> array(1) {
[0]=> array(6) {
["id"]=> string(1) "1"
["list_id"]=> string(1) "1"
["user"]=>... |
<?php
/*
* This file is part of the DocuSign package.
*
* (c) Unit6 <team@unit6websites.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Unit6\DocuSign\Resource;
use Unit6\DocuSign;
use Unit6\DocuSign\Model;
use Uni... |
<?php
namespace app\admin\controller;
use wxsaas\classs\WxappAcount;
use wxsaas\controller\AdminBaseController;
use think\Config;
use wxsaas\model\AccountWxapp;
use wxsaas\model\Modules;
class WxappController extends AdminBaseController
{
public function index()
{
$lists = AccountWxapp::all();
$... |
<?php
// Check for empty fields
if(empty($_POST['name']) ||
empty($_POST['email']) ||
empty($_POST['phone']) ||
empty($_POST['message']) ||
!filter_var($_POST['email'],FILTER_VALIDATE_EMAIL))
{
echo "No arguments Provided!";
return false;
}
$name = $_POST['name'];
$email_address = $_POST['em... |
<?php
namespace App\Http\Controllers\Home;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
class FirstController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
// 前台首页页面
public function ... |
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use T... |
<?php
namespace App\Http\Resources;
use Illuminate\Http\Resources\Json\ResourceCollection;
class TeacherCollection extends ResourceCollection
{
/**
* Transform the resource collection into an array.
*
* @param \Illuminate\Http\Request $request
* @return array
*/
public function toA... |
<!DOCTYPE html>
<html lang="es" xmlns="http://www.w3.org/1999/html">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<!-- Font Awesome -->
{!! Html::style('css/font-awe... |
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Messaging;
class WebPushConfig implements Config
{
/**
* @var array
*/
private $rawConfig;
private function __construct()
{
}
public static function fromArray(array $data): self
{
$config = new self();
$c... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use zxbodya\yii2\galleryManager\GalleryManager;
/* @var $this yii\web\View */
/* @var $model \core\forms\manager\Site\Gallery\AlbumForm */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="album-form">
<?php $form = ActiveForm::begin(); ?>
<?= $f... |
<?php
/*
* This file is part of the Silex framework.
*
* (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 Silex\Provider;
use Silex\Application;
use Silex\ServiceProviderInterfa... |
<section>
<div class="panel-block">
<?php if ($data->logoImage()->isNotEmpty()): ?>
<div class="panel-image">
<img src="<?= $page->image($data->logoImage())->crop(600, 400)->url();?>">
</div>
<?php endif ?>
</div>
</section> |
<?php
namespace Modules\Employee\Http\Controllers;
use Modules\Employee\Entities\EmpAbsence;
use Modules\Employee\Entities\Employee;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
class EmployeeReportController extends Controller
{
/**
* Display a listing of t... |
<?php require_once('../model/Database.php') ?>
<?php
/**
* Created by PhpStorm.
* User: Wasura Dananjith
* Date: 19-Dec-17
* Time: 8:28 PM
*/
class FilledRequest
{
protected static $db;
protected static $connection;
// default constructor
function __construct(){
self::$db = new Databas... |
<?php
namespace App;
use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;
class User extends Authenticatable
{
use Notifiable;
/**
* The attributes that are mass assignable.
*
* @var array
*/
p... |
<h1>Activate User</h1>
<p>Insert activation code</p>
<form method="get" action="<?php echo current_url() ?>">
<input type="text" name="act" value="" />
<input type="submit" />
</form>
<a href="<?php echo site_url('user/generate_activation_code') ?>" class="btn">Generate New Activation Code</a> |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model app\models\AttendanceLeave */
$this->title = '修改请假单:# ' . $model->id;
$this->params['breadcrumbs'][] = ['label' => '请假单管理', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$t... |
<?php
class PodcastUpdaterTest extends TestCase {
public function setUp()
{
$this->assertTrue(true);
}
/** @test */
public function it_works()
{
$this->assertTrue(true);
}
} |
<?php
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=__DBHOST__;dbname=__DBNAME__',
'username' => '__DBUSER__',
'password' => '__DBPASSWORD__',
'charset' => 'utf8',
'enableSchemaCache' => true,
]; |
@extends('layouts.app' , ['activePage' => 'ventas', 'titlePage' => 'Ventas'])
@section('content')
<section class="section">
<div class="section-header">
<h3 class="page__heading">Detalle de Venta de Producto</h3>
</div>
<div class="section-body">
<div class="row">
<div class="co... |
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use PhpParser\Node\Expr\FuncCall;
class StoreSliderPost extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return... |
<?php
declare(strict_types=1);
namespace Autopage\PgSearch;
use Autopage\PgSearch\Database\Type\TsvectorType;
use Cake\Core\BasePlugin;
use Cake\Core\PluginApplicationInterface;
use Cake\Database\TypeFactory;
/**
* Plugin for PgSearch
*/
class Plugin extends BasePlugin
{
/**
* Load all the plugin configur... |
<style>
.dataTables_length{
color:black;
}
</style>
<div class="table-info">
<table class="table table-striped table-bordered" id="datatablesProyectos" style="width:100%"
cellspacing="0" align="center">
<thead>
<tr>
<th>id</th>
<th>Nombre del Proyecto</th>
<th>Descripcion</th>
... |
@extends('user_dashboard.layouts.app')
@section('css')
<style>
.product {
color: #5B7DCA;;
}
.product:hover {
text-decoration: underline;
}
</style>
@endsection
@section('content')
<section class="section-06 history padding-30">
<div class="c... |
<?php
namespace App;
use App\Tag;
use Illuminate\Database\Eloquent\Model;
class Article extends Model
{
protected $guarded = [];
public function user(){
return $this->belongsTo(User::class);
}
public function tags(){
return $this->belongsToMany(Tag::class)->withTimestamps();
}
... |
<?php
/**
* This file is part of the browser-detector-tests package.
*
* Copyright (c) 2015-2019, Thomas Mueller <mimmi20@live.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types = 1);
namespace BrowserDetecto... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
$this->title = Yii::t('trade', 'trade');
$this->params['subtitle'] = Yii::t('trade', 'info');
$this->params['breadcrumbs'][] = [
'label' => Yii::t('trade', 'traders'),
'url' => ['index']
];
$this->params['breadcrumbs'][] = Yii::t('trade', 'info');
?>
... |
<?php
namespace App\Http\Controllers\Admin\Auth;
use App\User;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;
class RegisterController extends Controller
{
/*
|---------------------------------... |
<div class="page">
<div class="container">
<div class="pillow-100">
</div>
<div class="col-md-offset-4 col-md-4">
<form action="<?= $this->di->get("url")->create("loginprocess") ?>" method="POST">
<legend>LOGGA IN</legend>
<div class="form-group">
... |
<div class="card">
<div class="card-header">
<h4 class="card-title font-weight-bold">Home</h4>
</div>
<div class="card-body">
<?php if($data['info']->status == 0):?>
<div class="alert alert-warning">
<strong class="h5 font-weight-bold text-white">Perhatian!</stron... |
<?php
/**
* EDB Class -- Easy Database Class
* @version 0.1.3
* @author Eduards Marhelis <eduards.marhelis@gmail.com>
* @link http://code.google.com/p/edb-php-class/
* @copyright Copyright 2010 Eduards Marhelis
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @package EDB... |
<?php
namespace Strava\API\Service;
/**
* Strava stub Service
*
* @author Bas van Dorst
* @package StravaPHP
*/
class Stub implements ServiceInterface
{
public function getAthlete($id = null)
{
$json = '{ "id": 227615, "resource_state": 2, "firstname": "John", "lastname": "Applestrava", "profile_... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class EmailSettings extends Model
{
//
protected $table = 'mail_template';
protected $fillable = [
'id', 'module', 'description', 'header', 'body', 'footer', 'to_mail', 'cc_mail', 'subject_mail'
];
} |
<?php
/**
* Copyright (c) 2018-2019 Ryan Parman <http://ryanparman.com>
* Copyright (c) 2018-2019 Contributors
*
* http://opensource.org/licenses/Apache2.0
*/
declare(strict_types=1);
namespace TextEncoder\Util;
/**
* Pulled from the IANA and WHATWG official character encoding alias lists.
*
* DO NOT EDIT MA... |
@extends('layouts.app')
@section('content')
<div class="">
<div class="sm:max-w-lg w-full p-10 bg-white rounded-xl z-10 mt-10 mx-10 mb-10">
<div class="text-center">
<h2 class="mt-5 text-3xl font-bold text-gray-900">
Edit Post!
</h2>
<!-- <p class="mt-2 text-sm text-gray-400">Lorem ipsum is placeholde... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateOrderReceiptHeadersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('ord... |
<?php
namespace App\Http\Requests\Admin\SearchHistory;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Support\Facades\Gate;
use Illuminate\Validation\Rule;
class StoreSearchHistory extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
... |
<!DOCTYPE html>
<html>
<head>
<title>Chinese the Right Way</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="../css/style.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?fam... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class User 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 controlle... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">REDAGUOTI</div>
<div class="card-body">
<form method="POST" action="{{route(... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableTipoMaoDeObra extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tipo_mao_... |
<?php
/*
* This file is part of Handlebars.php Helpers Set
*
* (c) Dmitriy Simushev <simushevds@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace JustBlackBird\HandlebarsHelpers\Collection;
use Handlebars\Conte... |
<?php
return array(
'administrator' => 'Administrator',
'moderator' => 'Moderator',
'member' => 'Member',
'guest' => 'Guest',
); |
@extends('admin.layouts.app')
@section('title')
<title>Astroaquila | Manage Home Page Second Slider</title>
@endsection
@section('style')
@include('admin.includes.style')
<style type="text/css">
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Fire... |
<?php declare(strict_types=1);
namespace Src\cli\BlockChain\Explorer\Network;
use Src\cli\BlockChain\Explorer\Network\Lib\IquidusExplorer;
class Bulwark extends IquidusExplorer
{
protected const EXPLORER_URL = 'http://explorer.bulwarkcrypto.com';
} |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProductsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
$PRODUCT_STATUS_ENUM = [
... |
<?php
/**
* -----------------------------------------------------------------------------
* Generated 2021-08-11T11:45:09-05:00
*
* DO NOT EDIT THIS FILE DIRECTLY
*
* @item enabled
* @group poptin
* @namespace null
* -----------------------------------------------------------------------------
*/
re... |
<?php
namespace NobrainerWeb\Solr\Index;
use DNADesign\Elemental\Models\ElementalArea;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\FullTextSearch\Search\Variants\SearchVariantVersioned;
use SilverStripe\Versioned\Versioned;
class SolrIndex extends \SilverStripe\FullTextSearch\Solr\SolrIndex
{
/**
... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\ServiceSearch */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="service-search">
<?php $form = ActiveForm::begin([
'action' => ['index'],
'method' => 'get',
]); ?>
... |
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a co... |
<?php
/**
* LinkTest
*
* PHP version 7.2
*
* @category Class
* @package Finbricks\Api\Info
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* Finbricks.com API - Account information
*
* Finbricks.com API - Account information
*
* The version of the OpenAPI document: 1... |
<?php
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License")... |
<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="box box-success">
<div class="box-body">
<div class="row">
<div class="col-xs-4 col-sm-4 col-md-4 col-... |
<?php
/*
* This file is part of the `src-run/arthur-doctrine-library` project.
*
* (c) Rob Frawley 2nd <rmf@src.run>
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace SR\Doctrine\ORM\Mapping\Tests\Fixture;
use SR\Doct... |
<?php
// from php manual page
function formatBytes($val, $digits = 3, $mode = 'SI', $bB = 'B'){ //$mode == 'SI'|'IEC', $bB == 'b'|'B'
$si = array('', 'K', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y');
$iec = array('', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi', 'Yi');
switch(strtoupper($mode)) {
case 'SI' : $factor... |
<!DOCTYPE HTML>
<html lang="ru">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
</head>
<body>
<form role="form" action="/wohoo" method="POST">
<label>Stuff</label>
<div class="multi-field-wrapper">
<div class="multi-fields">
<div class="multi-field">... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUsersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('users', function ... |
@extends('layouts.admin')
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>Insectos</title>
@section('estilos')
@endsection
</head>
<body id="page-top">
@section('navbar')
<div class="d-flex flex-column" id="content-wrapp... |
<?php
class Cms_Ajax_Menu_Controller extends Cms_Base_Controller {
//FILTERS
public function __construct()
{
parent::__construct();
//Must be logged
//$this->filter('before', 'cms_no_auth');
}
public function post_save_menu()
{
$auth = Auth::check();
if($auth and is_numeric(AUTHORID)) {
$input ... |
<?php
declare(strict_types=1);
namespace GuzzleHttp\Tests\Psr7;
use GuzzleHttp\Psr7\ServerRequest;
use GuzzleHttp\Psr7\UploadedFile;
use GuzzleHttp\Psr7\Uri;
use PHPUnit\Framework\TestCase;
/**
* @covers GuzzleHttp\Psr7\ServerRequest
*/
class ServerRequestTest extends TestCase
{
public function dataNormalizeF... |
<?php
/**
* Created by PhpStorm.
* User: ADEX-DOM
* Date: 11/26/2017
* Time: 11:56 PM
*/
require('tempheading.php');
$post=$_GET['post_ids'];
$sql="select * from post where post_id='$post'";
$result=$connection->query($sql);
?>
<div class="well row">
<?php
while ($row = $result->fetch_assoc()) {
?>
<di... |
@extends('layouts.app')
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Login') }}</div>
<div class="card-body">
<form method="POST... |
<?php
N2Loader::import('libraries.image.image');
N2Loader::import('libraries.image.manager');
class N2SmartSliderFeatures {
/**
* @var N2SmartSliderRenderableAbstract
*/
private $slider;
public $allowBGImageAttachmentFixed = true;
/**
* @var N2SmartSliderFeatureFadeOnLoad
*/
... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateDisciplinasTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('disciplinas... |
<?php
class ApiControl extends Control
{
public function __construct()
{
$this->model = new ApiModel();
$this->view = new ApiView();
parent::__construct();
}
public function index()
{
}
} |
<?php
namespace App\UseCase\AdminBrowserAPI\Auth;
use Auth;
use Illuminate\Auth\Passwords\PasswordBroker;
class Password
{
private DatabaseTokenRepository $tokenRepository;
/**
* Password constructor.
* @param DatabaseTokenRepository|null $tokenRepository
*/
public function __construct(Da... |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateChecksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('checks', function ... |
<?php
use Carbon\Carbon;
use Symfony\Component\Yaml\Parser;
class ApiDropzoneController extends BaseController {
/**
* Create a new API Dropzone controller.
*
* @return \ApiDropzoneController
*/
public function __construct()
{
parent::__construct();
$this->beforeFilter('auth');
}
/**
* Display a... |
<?php
namespace App\Http\Controllers;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Routing\Controller as BaseController;
class Controller extends BaseController
{
public function __co... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateUserPemesananTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('user_peme... |
<?php
namespace EThesis\Models\Bs;
class Bs1_research_model extends \EThesis\Library\Adodb
{
var $schema = 'dbo';
var $table = 'BS1_RESEARCH';
var $primary = 'BS1_RESEARCH_ID';
var $use_view = FALSE;
var $field_insert = ['BS1_ID','BS1_RESEARCH_NAME_TH','BS1_RESEARCH_NAME_EN'];
var $field_u... |
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\Category */
/* @var $form yii\widgets\ActiveForm */
?>
</div>
<br>
<div class="container">
<div class="row" style="text-align: center;">
<div class="co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.