text stringlengths 2 1.03M |
|---|
@extends('layouts.dashboard')
@section('title')
Profile Page
@stop
@section('css')
{!! Html::style('assets/js/card-master/lib/css/card.css') !!}
@stop
@section('content')
<div class="pageheader"><h2><i class="fa fa-user"></i> Edit Profile</h2></div>
<div class="contentpanel">
<div class="row">
<div class="col-s... |
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
class Handler extends ExceptionHandler
{
/**
* A list of the exception types that are not reported.
*
* @var array
*/
protected $do... |
<?php
$app->on('system.dashboard', function(\Pagekit\Widget\Event\RegisterWidgetEvent $event) use ($app) {
$event->register('Pagekit\_2048\GameWidget');
});
return [
'autoload' => [
'Pagekit\\_2048\\' => 'src'
]
]; |
<!DOCTYPE HTML>
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Co... |
<?php
namespace App\Http\Controllers;
use App\Pagante;
use Illuminate\Http\Request;
class PaganteController extends Controller
{
public function index(){
$paganti = Pagante::all();
return view('paganti', compact('paganti'));
}
public function show($id){
$pagante = Pagante::findOrFail... |
<?php
/*
* Copyright © 2017 Divante, Inc. All rights reserved.
* See LICENSE for license details.
*/
declare(strict_types=1);
namespace OpenLoyalty\Bundle\CoreBundle\Tests\Unit\Service;
use Faker\Provider\Uuid;
use OpenLoyalty\Bundle\CoreBundle\CSVGenerator\Mapper;
use OpenLoyalty\Bundle\CoreBundle\Service\CSVGen... |
<?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
function calcSinglePerformance($rank, $times, $standings) {
$roundRank = ($rank + $rank + $times - 1) / 2;
$l = 0;
$r = 6000;
while ($l < $r) {
$mid = floor(($l + $r) / 2) + 1;
$res = 0;
foreach ($standings as $particular) {
$res += 1 / (1 + pow(6.0, ($m... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false);
func... |
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Controllers\Controller;
use App\Http\Requests;
use App\department;
use Illuminate\Http\Request;
class departmentController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\View\View
*/
public fu... |
@extends('layouts.app')
@section('content')
<div class="pt170">
<div class="container-login100">
<div class="p-t-90 p-b-30">
<form class="login100-form validate-form" method="post" action="{{ route('event.join', $event->id) }}">
@csrf
<span class="login100-form-t... |
<?php
class zpActions extends sfFauneActions
{
/**
* GeoJson encoder/decoder
*
* @var Service_GeoJson
*/
private $geojson;
/**
* Create Service_GeoJson instance
*
*/
public function preExecute()
{
$this->geojson = new Services_GeoJson();
}
/**
* Simple list of all zp
*
* @return sfV... |
<?php
namespace App\Models;
use App\Models\File;
use App\Models\User;
use App\Models\Category;
use App\Models\Characteristic;
use App\Support\FilterPaginateOrder;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Product extends Model
{
use HasFactory;
use F... |
<?php
namespace Illuminate\Database\Query\Processors;
use Illuminate\Database\Query\Builder;
class Processor
{
/**
* Process the results of a "select" query.
*
* @param \Illuminate\Database\Query\Builder $query
* @param array $results
* @return array
*/
public function proce... |
@extends('layouts.app')
@section('title' , 'Dashboard')
@section('content')
<section class="content">
<div class="container-fluid">
<!-- Small boxes (Stat box) -->
<div class="row">
<div class="col-lg-3 col-6">
<!-- small box -->
<div class="small-box bg... |
@extends('template.app')
@section('custom-css')
<link rel="stylesheet" href="{{ asset('css/what-we-do/WhatWeDo.css') }}">
@endsection
@section('content')
<!-- Header Photo -->
<div class="container-fluid flex-container align-center">
<div class="col-sm-10">
<img class="top-layer img-fl... |
<?php
namespace Database\Factories;
use App\Models\Duta;
use Illuminate\Database\Eloquent\Factories\Factory;
class DutaFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Duta::class;
/**
* Define the model's defau... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Freelancer profile
*/
'invite_to_job' => '초청',
'work_history' => '작업리력',
'availability' => '능력',
'language' => '언어',
'verifications' => '검증',
'group' => '그룹',
'overview' => '개괄',
'portfolio' => '대표과제',
'work... |
<!Doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>@yield('title')</title>
<!-- 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">
<meta name="description" ... |
<?php
/**
* Shortcode attributes
* @var $atts
* @var $width
* @var $height
* @var $color
* @var $margin_top
* @var $margin_bottom
* @var $position
* Shortcode class
* @var WPBakeryShortCode_Separator
*/
$output = '';
$atts = vc_map_get_attributes( $this->getShortcode(), $atts );
extract( $atts );
$st... |
<?php
$empCode = "";
if(isset($_GET['empCode'])){
$empCode =$_GET['empCode'];
}
$empPass="";
$empName="";
$empBrith=date_default_timezone_set('Asia/Tokyo');
$empAddress="";
$empMail="";
$empIC="";
$empRole="";
$result = searchEmployee($empCode);
//Lấy dữ liệu đưa vào mảng
if(isset($result))
{
list($empCode,$empPa... |
<?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath."/../config/config.php");
Class Database{
public $host = DB_HOST;
public $user = DB_USER;
public $pass = DB_PASS;
public $dbname = DB_NAME;
public $link;
public $error;
public function __construct(){
... |
<?php
namespace App\Domains\Blogs\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes;
class BlogCategory exten... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="DESCRIPTION">
<script src="https://js.pusher.com/7.0/pusher.min.js"></script>
<meta name="keywords" content="dashboa... |
@extends('templates-layouts.headerandfooter')
@if(empty(session('session_id')))
<script type="text/javascript">
alert("No tiene los permisos suficientes para acceder a esta ventana por favor inicie sesión o contacte a un administrador");
window.location.href = "/";
</script>
@else
@section('body')
<div class="i... |
<div class="row item fontsize">
<div id="about_us" class="col-xs-12 dropdown-wrapper dropdown-wrapper-info">
<div class="toggleshow fontsize-header" ><h2 class="terms-condition">About us<i class="icon-svernut-dly-vsex-stranic"></i></h2></div>
<div class="togglediv color-white" style="padding-left... |
<?php declare(strict_types=1);
namespace Star\Component\Document\Tests\Design\Domain\Model\Parameters;
use PHPUnit\Framework\TestCase;
use Star\Component\Document\Design\Domain\Model\Parameters\NullParameter;
final class NullParameterTest extends TestCase
{
public function test_it_should_configure_parameter_data... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Inertia\Inertia;
class PagesController extends Controller
{
public function index()
{
return Inertia::render('Homepage', [
'title_post'=>"Este é o primeiro post de teste",
'title'=>"Home | inertiaReact",
... |
<?php
// autoload_psr4.php @generated by Composer
$vendorDir = dirname(dirname(__FILE__));
$baseDir = dirname($vendorDir);
return array(
'think\\composer\\' => array($vendorDir . '/topthink/think-installer/src'),
'think\\' => array($baseDir . '/thinkphp/library/think'),
'app\\' => array($baseDir . '/appl... |
<?php
/**
* Website: https://mudew.com/
* Author: Lkeme
* License: The MIT License
* Email: Useri@live.cn
* Updated: 2021 ~ 2022
*/
namespace BiliHelper\Plugin;
use BiliHelper\Core\Log;
use BiliHelper\Core\Curl;
use BiliHelper\Util\TimeLock;
class ManGa
{
use TimeLock;
/**
* @use run
*... |
@extends("admin.master")
@section("content")
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1... |
<?php
namespace Nmotion\ApiBundle\Controller\V1;
use FOS\Rest\Util\Codes;
use Nmotion\NmotionBundle\Controller\RestaurantTrait;
use Nmotion\NmotionBundle\Controller\FormTrait;
use Nmotion\NmotionBundle\Controller\BaseRestController;
use Nmotion\NmotionBundle\Entity\Config;
use Nmotion\NmotionBundle\Entity\Order;
use... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the Route... |
<?php
$UTF8_TO_ASCII[0xc7] = array(
); |
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateSupplementaryFoodTypesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('... |
<?php
/*
* Copyright 2021 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
<?php
$conn = new mysqli(_DB_HOST,_DB_USER,_DB_PASS,_DB_NAME) or die("Connection failed: " . $conn->connect_error); |
<?php
class Sales_model extends Crud_model
{
function __construct()
{
parent::__construct();
$this->table = 'sales';
$this->load->model('api/Invoices_model', 'invoicemodel');
$this->load->model('api/Clients_model', 'clients_model');
$this->load->model('api/Users_model', 'users_model');
... |
<?php
namespace AMQPy\Tests\Serializers;
use AMQPy\Serializers\JSON;
use Exception;
use StdClass;
/**
* @group serializers
*/
class JSONTest extends \PHPUnit_Framework_TestCase
{
/**
* @var JSON
*/
protected $object;
/**
* Sets up the fixture, for example, opens a network connection.
... |
<?php declare(strict_types = 1);
namespace Contributte\EventDispatcher\Exceptions\Logical;
use Contributte\EventDispatcher\Exceptions\LogicalException;
class InvalidArgumentException extends LogicalException
{
} |
<?php
/**
* This file is part of addcnos/laravel-gateway-worker.
*
* @link https://github.com/addcnos/laravel-gateway-worker
* @document https://github.com/addcnos/laravel-gateway-worker/blob/1.x/README.md
* @contact huangdijia@gmail.com
* @license https://github.com/addcnos/laravel-gateway-worker/blob/1.x/... |
<?php
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the Route... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Default tax rate
|--------------------------------------------------------------------------
|
| This default tax rate will be used when you make a class implement the
| Taxable interface and us... |
<?php
return [
'about' => 'ES programmēšanas nedēļa ir iedzīvotāju iniciatīva, kuras mērķis ir iepazīstināt ikvienu ar programmēšanu un digitālo pratību interesantā un saistošā veidā.',
'when' => '2020. gada 10.–25. oktobrī',
'when_text' => 'Iemācoties programmēt, mēs spējam labāk izprast strauji mainīgo ... |
<?php
namespace Solarium\Exception;
/**
* Solarium client HTTP exception.
*
* This exception class exists to make it easy to catch HTTP errors.
* HTTP errors usually mean your Solr settings or Solr input (e.g. query)
* contain an error.
*
* The getMessage method returns an error description that includes the s... |
<?php
/* input data format:
* {
data_store:'',
log:'yes/no',
data:
[
[{
index:'column1',
value:'value1',
unique:'yes/no',
uniqueWith:['col1','col2']
},
{
index:'column2',
value:'value2',
}],
[{
index:'column1',
... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator ... |
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200503143500 extends AbstractMigration
{
public function getDescription() : string
{... |
@extends('layouts.adminbase')
@section('tdk')
<title>ZONGSCAN后台</title>
<meta name="keywords" content="ZONGSCAN,后台" />
<meta name="description" content="ZONGSCAN后台管理系统" />
@endsection
@section('css')
@parent
@endsection
@section('content')
<div class="row clearfix">
我是中间
</div>
@endsection
@section('js')
@paren... |
<?php
namespace Database\Seeders;
use App\Models\international;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class internationanl extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('internationals')->dele... |
<?php
use App\Http\Controllers\Api\XenditController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Auth;
use App\Http\Controllers\ItemController;
use App\Http\Controllers\HomeController;
/*
|--------------------------------------------------------------------------
| Web Routes
|---------------... |
<?php
namespace App\Http\Controllers\Api;
use App\DataObject\EletronicPointProfile as DataObjectEletronicPointProfile;
use App\DataObject\SeachIndex;
use App\Http\Controllers\Controller;
use App\Models\EletronicPointProfile;
use App\Repositories\EletronicPointProfileRepository;
use Illuminate\Http\Request;
use Illumi... |
<?php
/**
* ArrayOfArrayOfNumberOnly
*
* PHP version 7.4
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do ... |
--TEST--
Testing register_shutdown_function() with timeout. (Bug: #21513)
--FILE--
<?php
ini_set('display_errors', 0);
echo "Start\n";
function boo()
{
echo "Shutdown\n";
}
register_shutdown_function("boo");
/* not necessary, just to show the error sooner */
set_time_limit(1);
/* infinite loop to simulate l... |
<?php
namespace ComposerUnused\ComposerUnused\Test\Unit\OutputFormatter;
use ComposerUnused\ComposerUnused\OutputFormatter\DefaultFormatter;
use ComposerUnused\ComposerUnused\OutputFormatter\FormatterFactory;
use ComposerUnused\ComposerUnused\OutputFormatter\GithubFormatter;
use ComposerUnused\ComposerUnused\Test\Stu... |
<?php
/*
* This file is part of Twig.
*
* (c) 2010 Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* Represents a template function.
*
* @package twig
* @author Fabien Potencier <fabien@symfony.com... |
<?php
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Auth::routes();
Route::get('/home', 'HomeController@index')->name('home');
Route::resource('customers', 'CustomerController'); |
<?php
namespace Nelmio\Alice\Loader;
class MissingReferenceException extends \UnexpectedValueException {
const FORWARD = 0;
const DEFERRED = 1;
} |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
namespace backend\models;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use backend\models\Privatewidget;
/**
* PrivatewidgetSearch represents the model behind the search form about `backend\models\Privatewidget`.
*/
class PrivatewidgetSearch extends Privatewidget
{
/**
* @inheritdoc... |
<?php
/**
* Garrick Theme Customizer.
*
* @package Garrick
*/
/**
* Add postMessage support for site title and description for the Theme Customizer.
*
* @param WP_Customize_Manager $wp_customize Theme Customizer object.
*/
function garrick_customize_register( $wp_customize ) {
$wp_customize->get_setting( 'blo... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call([
CategoriesTableSeeder::class,
]);
}
} |
<?php
declare(strict_types=1);
namespace Tests\Unit;
use Tests\UnitTestCase;
use TypeError;
use Zablose\DotEnv\Env;
class IntegersTest extends UnitTestCase
{
public function setUp(): void
{
(new Env())->reset()->setArrays(['VAR_ARRAY'])
->read(__DIR__.'/../data/envs/integers.env')
... |
<?php
require_once(app_path('helpers.php'));
Route::get('/', function () {
return redirect()->route('projects.index');
});
Route::resource('projects', 'ProjectsController'); |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
return [
'$replaceRules' => [
[
'table',
'field',
\Magento\Framework\Module\Setup\Migration::ENTITY_TYPE_MODEL,
\Magento\Framework\Module\Setup\Migration::... |
<?php
class Kwf_Test_TestSuite extends PHPUnit_Framework_TestSuite
{
public function __construct($name = 'Kwf Framework')
{
parent::__construct($name);
$this->setBackupGlobals(false);
if (file_exists('tests')) {
$classes = $this->_addDirectory('./tests', false);
} els... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Navs extends Model
{
protected $table='navs';
protected $hidden = [
'created_at', 'updated_at',
];
} |
<?php
namespace Urbem\CoreBundle\Entity\Economico;
/**
* LicencaObservacao
*/
class LicencaObservacao
{
/**
* PK
* @var integer
*/
private $codLicenca;
/**
* PK
* @var string
*/
private $exercicio;
/**
* @var string
*/
private $observacao;
/**
... |
<?php
use kartik\editable\Editable;
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\web\View;
/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Posts';
$this->params['breadcrumbs'][] = $this->title;
$js='
function batchDelete()
{
var keys = $("#Grid").yii... |
<?php
declare(strict_types = 1);
namespace FondOfSpryker\Glue\HelloWorld\Plugin\ResourceRoute;
use FondOfSpryker\Glue\HelloWorld\HelloWorldConfig;
use Generated\Shared\Transfer\RestHelloWorldAttributesTransfer;
use Spryker\Glue\GlueApplicationExtension\Dependency\Plugin\ResourceRouteCollectionInterface;
use Spryker\... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
class ProductsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
//
DB::table('products')->insert([
'id'=>100,
'name'=>'Carrots'
... |
<?php
namespace StudioNet\GraphQL\Filter;
use GraphQL\Type\Definition\InputType;
/**
* Abstract filter
*/
interface TypedFilterInterface extends FilterInterface {
/**
* Defines GraphQL Type if current filter
* @return InputType $wrappedType
*/
public function getType();
} |
<!doctype html>
<html lang="en">
<head>
<title>MetalMusicCoin Donation Button</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="description" content="MetalMusicCoin Widget for your websites." />
<meta name="keywords" content="MetalMusicCoin donation button,MTLMC donate" />
<link rel="sty... |
<?php
namespace backend\models;
use Yii;
use common\models\myFuncs;
/**
* This is the model class for table "asv_chuyennganh".
*
* @property integer $id
* @property string $tenchuyennganh
* @property string $code
*
* @property Hocvien[] $hocviens
*/
class Chuyennganh extends \yii\db\ActiveRecord
{
/**
... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class NewDetail extends Model
{
protected $table = 'new_detail';
public function new_offer(){
return $this->belongsTo('App\NewOffer','id_new','id');
}
public function product(){
return $this->belongsTo('App\Product','id_pr... |
@if ($errors->any())
<div class="alert alert-danger">
Whoops!
<ul>
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif |
<div class="wrapper">
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Left navbar links -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
<li clas... |
<?php
use yii\helpers\Html;
/* @var $this yii\web\View */
/* @var $model common\models\BookingAlert */
$this->title = 'Update Booking Alert:'.$model->alert_title;
$this->params['breadcrumbs'][] = ['label' => 'Booking Alerts', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->alert_title, 'url... |
<?php
namespace agc_service;
/**
* Kompi-ajaib class
* @package agc_service
*/
class medium_com extends Service
{
function __construct()
{
parent::__construct();
}
function content()
{
$this->verifydom();
$html = $this->dom;
$_SESSION['title'] = $this->title = $ptitle = $html && $html->f... |
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
... |
<?php
namespace AppBundle\Curl;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of CurlTools
*
* @author Administrator
*/
class CurlTools {
//put your code ... |
<?php
/**
* ProSupl - Backend
* © 2020 Václav Maroušek
*
* requester.php
*/
namespace OpenSOS;
class Requester {
/** @var array $cookies */
private $cookies = [];
/** @var array $requestHeaders */
private $requestHeaders = [
//Default headers
'Host' => NULL,
... |
<?php
$messages = $vars['messages'];
header('Content-type: text/html');
header("Access-Control-Allow-Origin: *");
if (empty($vars['title']) && !empty($vars['description'])) {
$vars['title'] = implode(' ', array_slice(explode(' ', strip_tags($vars['description'])), 0, 10));
}
// Use a... |
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.topnav {
overflow: hidden;
background-color: #333;
margin-top: 100px;
}
.topnav a {
float: left;
color: #f2f2f2;
text-align: center... |
<?php
/**
* Mailer configuration
*
* @package Brocooly
* @subpackage Brocket
* @since 1.7.0
*/
return [
/**
* -------------------------------------------------------------------------
* Default mailer
* -------------------------------------------------------------------------
*
* Your application wil... |
@extends('layout.base', ["current"=>"alimentos"])
@section('body')
<form>
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="Enter email">
<small id="emailHelp" class="fo... |
<?php
namespace App\Events\Game;
use Illuminate\Broadcasting\Channel;
use Illuminate\Queue\SerializesModels;
use Illuminate\Broadcasting\PrivateChannel;
use Illuminate\Broadcasting\PresenceChannel;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Contract... |
<?php
namespace backend\models\form;
use common\models\ar\MyObjectAR;
/**
*
*/
class AddressFlatForm extends MyObjectAR
{
public function rules()
{
return [
['myAddress', 'required', 'message' => 'Введите адрес'],
['myLatitude', 'safe'],
['myLongitude', 'safe'],
... |
<?php
$sql3 = mysql_query("SELECT * FROM spk_a WHERE id_user='".$_SESSION["ses_user"]."'") or die (mysql_error());
$cek3=mysql_num_rows($sql3);
if ($cek3 >=1 ){
$sql_val_spk = mysql_query("select*from spk_a where id_user='".$_SESSION["ses_user"]."' order by id_a desc")
or die (mysql_error());
... |
<?php
namespace Laravel5Fundatmentals\Http\Controllers;
use Laravel5Fundatmentals\Repositories\FooRepository;
use Illuminate\Http\Request;
use Laravel5Fundatmentals\Http\Requests;
class FooController extends Controller
{
/**
* @var FooRepository
*/
private $fooRepository;
/**
* Demo cons... |
<?php
use SilverStripe\CMS\Model\SiteTree;
class Page extends SiteTree {
private static $db = array(
);
private static $has_one = array(
);
} |
@extends('layouts.template')
@section('content')
<div class="col-sm-12">
@if($msg = session()->get('success'))
<script>
Swal.fire('Good job!',
'{{$msg}}',
'success')
</script>
@endif
@if($msg = session()->get('f... |
@extends('layout')
@section('content')
<h1 class='text-center m-3'>Edit Application</h1>
<form class='col-lg-7 text-center mx-auto' action="{{ route('applications.update', ["application" => $application]) }}" method="POST" enctype="multipart/form-data" >
@csrf
@method("PATCH")
<div class="form-group">
... |
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Prophecy\Call\Call;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->c... |
<?php
require_once "conexionPDO.php";
function getEquipos()
{
$conexionNBA = getConexion("dwes_01_nba");
$resultado = $conexionNBA->query("SELECT nombre FROM equipos");
unset($conexionNBA);
return $resultado;
$pdo=getConexion();
$consulta="select * from equi... |
<?php
namespace yiitk\db;
use Throwable;
use Yii;
use yii\behaviors\SluggableBehavior;
use yii\db\Expression;
use yii\db\StaleObjectException;
use yiitk\behaviors\DateTimeBehavior;
use yiitk\behaviors\ExternalIdBehavior;
use yiitk\behaviors\HashableBehavior;
use yiitk\behaviors... |
<?php
namespace Backup\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
class MysqlDump extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'backup:mysql-dump
... |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</tit... |
<?php
/**
* papaya CMS
*
* @copyright 2000-2019 by papayaCMS project - All rights reserved.
* @link http://www.papaya-cms.com/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, version 2
*
* You can redistribute and/or modify this script under the terms of the GNU Gene... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.