text stringlengths 2 1.03M |
|---|
<?php
/*
* 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 NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS ... |
<?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 MrsJoker\Trade\Goods\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\Config;
class Good extends Model
{
use SoftDeletes;
/**
* Many-to-Many relations with the category model.
* Named "perms" for backwards ... |
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Новости компании");
?>
<p><?$APPLICATION->IncludeComponent("bitrix:news", ".default", array(
"IBLOCK_TYPE" => "news",
"IBLOCK_ID" => "1",
"NEWS_COUNT" => "20",
"USE_SEARCH" => "N",
"USE_RSS" => "Y",
"NUM_NEWS" => "20",
"NUM_DAYS"... |
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace yii\rbac;
use Yii;
use yii\base\Object;
/**
* Item represents an authorization item.
* An authorization item can be an operation, a task or a role.
* The... |
<?php /* Smarty version 2.6.13, created on 2006-11-22 19:19:57
compiled from search.tpl */ ?>
<?php if ($this->_tpl_vars['form_search']['javascript']): echo $this->_tpl_vars['form_search']['javascript']; endif; ?>
<form action="index.php" method=post name=searchForm>
<?php echo $this->_tpl_vars['form_search... |
<?php
return array(
'controllers' => array(
'invokables' => array(
'Album\Controller\Album' => 'Album\Controller\AlbumController',
),
),
'router' => array(
'routes' => array(
'halbum' => array(
'type' => 'Hostname',
'opt... |
<?php
return [
'name' => 'Setting'
]; |
<?php
namespace App\RMS\Addon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Addon extends Model
{
use SoftDeletes;
protected $dates = ['deleted_at'];
protected $table = 'add_on';
protected $fillable=['id','food_name','category_id','description','image',... |
@extends('layouts.app')
@section('title', $user->name . ' 的个人中心')
@section('content')
<div class="row">
<div class="col-lg-3 col-md-3 hidden-sm hidden-xs user-info">
<div class="card ">
<img class="card-img-top" src="{{ $user->avatar }}" alt="{{ $user->name }}">
... |
<?php
session_start();
if(isset($_SESSION['login'])){
if(isset($_GET['file']) && $_GET['param']){
$file = $_GET['file'];
$param = $_GET['param'];
define('JAVA_INC_URL', 'http://localhost:8080/JavaBridge/java/Java.inc');
require_once(JAVA_INC_URL);
require_once('../includes/connexionJAVA.php');
... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEpidemiologistesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('epidem... |
<div class="modal fade modal-slide-in-right" aria-hidden="true"
role="dialog" tabindex="-1" id="imprimirc-4-<?php echo e($gs->idgrupsol); ?>">
<?php echo e(Form::Open(array('action'=>array('solicitudpicController@sRatificaciondeTribunalAsesor'),'route'=>['ues.solicitudesconta.sRatificaciondeTribunalAsesor'], 'method... |
<?php
/**
* Unit test class for the Syntax sniff.
*
* PHP version 5
*
* @category PHP
* @package PHP_CodeSniffer
* @author Blaine Schmeisser <blainesch@gmail.com>
* @author Greg Sherwood <gsherwood@squiz.net>
* @copyright 2006-2014 Squiz Pty Ltd (ABN 77 084 670 600)
* @license https://github.com/sq... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
use App\Department;
class DepartmentAdminModel extends Model
{
//
protected $fillable = ['name', 'd_head_name', 'image_wmask', 'image_womask', 'description', 'image', 'user_id','is_approved', 'department_name', "remarks", "department_id"];
prot... |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Admin | Log in</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesh... |
<?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 martiadrogue/sqlbuilder package.
*
* @author Martí Adrogué <marti.adrogue@gmail.com>
* @copyright 2016 Martí Adrogué
* @license https://opensource.org/licenses/MIT MIT License
*/
namespace MartiAdrogue\SqlBuilder\Expression;
class SyntaxCollection
{
const KEY_WORDS =... |
<?php
namespace Code_Alchemy\Applications\Helpers;
use Code_Alchemy\Core\Stringable_Object;
use Code_Alchemy\Helpers\Code_Alchemy_Root_Path;
class Application_Root extends Stringable_Object {
/**
* @param string $name of application
*/
public function __construct( $name ){
$this->string... |
@extends('layouts.tabletDesktopArtifact')
@section('content')
@include('partials.artifactPublishConfirmModal')
<div class="container">
<div class="row vertical-spacer-40">
<div class="col-md-10">
<div class="text-center">
<h2>{{ $pageTitle }}</h2>
</div>
</... |
<?php
namespace Concorde\artefact;
/**
* Concorde
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2019 - 2020, Vincent MOULIN
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this soft... |
<?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 Version20210105135623 extends AbstractMigration
{
public function getDescription() : string
{... |
<?php
/**
* @copyright (c) JTL-Software-GmbH
* @license http://jtl-url.de/jtlshoplicense
*/
require_once __DIR__ . '/includes/admininclude.php';
$smarty->display('marktplatz.tpl'); |
<?php
class Kwc_Directories_Item_Directory_Controller extends Kwf_Controller_Action_Auto_Kwc_Grid
{
protected $_buttons = array(
'save',
'delete',
'reload',
'add'
);
protected $_filters = array('text'=>true);
protected $_paging = 25;
public function preDispatch()
... |
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-light topbar mb-4 static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="s... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddPhoneToPoussinsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('poussins', ... |
<?php
declare(strict_types=1);
namespace K911\Swoole\Bridge\Symfony\ErrorHandler;
use Error;
use ErrorException;
use ReflectionMethod;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Throwable;
final class ExceptionHandlerFactory
{
/**
* @var HttpKern... |
<?php
namespace Ideahut\sdms\util;
use Exception;
use ReflectionClass;
use ReflectionMethod;
use ReflectionProperty;
use \Doctrine\Common\Annotations\AnnotationReader;
use \Doctrine\Common\Util\ClassUtils;
use \Ideahut\sdms\Common;
use \Ideahut\sdms\base\BaseFormat;
use \Ideahut\sdms\annotation\Format;
use \Ideahut\... |
<?php
class Beranda extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('ModelBeranda');
}
public function p()
{
$p = $this->uri->segment(3);
$data['title'] = "Aplikasi Manajemen Laundry";
$data['folder'] = "beranda";
if (empty($p)) {
$p = "be... |
<?php
namespace Illuminate\Validation;
use BadMethodCallException;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Translation\Translator;
use Illuminate\Contracts\Validation\DataAwareRule;
use Illuminate\Contracts\Validation\ImplicitRule;
use Illuminate\Contracts\Validation\Rule as RuleContrac... |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" type="text/css" href="css/main.css"... |
<?php namespace App\Http\Controllers\EncargadoCampus;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Models\Asignatura;
use App\Models\Departamento;
use Illuminate\Support\Facades\Request;
use Illuminate\Routing\Redirector;
use Illuminate\Support\Facades\Session;
class AsignaturasController exte... |
<?php
namespace App\Repositories;
use Illuminate\Support\Facades\DB;
class MovieRepository extends AbstractRepository
{
public const MOVIEU_UPDATE_Value = 1;
public function findMovieByField($field, $value)
{
$query = $this->model
->where($field,'=', $value);
return $query-... |
<?php
namespace App\Http\Controllers;
use App\Helpers\ResponseHelper;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use App\User;
class PetugasController extends Controller
{
public $response;
public function __construct(){
$this->response ... |
<html>
<head>
<title>99points.info : Animated JQuery Login / SignUp Form : Demos</title>
<link href="style.css" rel="stylesheet" />
<script type="text/javascript" src="jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script language="javascript">
$(document).ready(... |
<?php
use yii\helpers\Html;
use kartik\grid\GridView;
use yii\widgets\Pjax;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\ProjectSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Proyectos lexicográficos';
$this->params['breadcrumbs'][] = $this->t... |
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
Commands\Insp... |
@extends('layouts.app')
@section('content')
<div class="m-auto">
<div class="text-center">
<h1 class="text-uppercase">
EDIT CARS
</h1>
</div>
<div class="flex-form">
<form action="{{route('cars.update',$car->id) }}" method="POST">
@csrf
@method('PUT')
... |
<html>
<head>
<title>login Form</title>
</head>
<body>
<div>
<?php echo form_open('User_Authentication/resetPassword')?>
<?php
if (isset($message)) {
echo $message."<br>";
}
?>
Old Password:
<input type="password" name="oldPassword">
<?php echo form_error('oldPassword');?>
<br>
... |
<?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 Version20190812071539 extends AbstractMigration
{
public function getDescription() : string
{... |
<?php
class KS_Giveaways_Vendor_Mailchimp_Campaigns {
public function __construct(KS_Giveaways_Vendor_Mailchimp $master) {
$this->master = $master;
}
/**
* Get the content (both html and text) for a campaign either as it would appear in the campaign archive or as the raw, original content
... |
<?php
use Illuminate\Database\Seeder;
use App\Models\User;
class UsersTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$users = factory(User::class)->times(50)->make();
User::insert($users->makeVisible(['password', '... |
<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| r... |
<?php
//J:\awww\apl\dev1\04knjige\kalendar\kal\public\del.php
//declare(strict_types=1); // php 7
$status = session_status();
if ($status == PHP_SESSION_NONE){ session_start(); } //if there is no active session
// Make sure an ID was passed and the user is logged in
// Collect ID from URL string or If no ID is supplie... |
<?php
/**
* Implementation of UserDefaultKeywords view
*
* @category DMS
* @package SeedDMS
* @license GPL 2
* @version @version@
* @author Uwe Steinmann <uwe@steinmann.cx>
* @copyright Copyright (C) 2002-2005 Markus Westphal,
* 2006-2008 Malcolm Cowe, 2010 Matteo Lucarelli,
* ... |
<?php
namespace common\models;
use Yii;
/**
* This is the model class for table "viechle_brand".
*
* @property integer $id
* @property string $name
* @property string $code
* @property integer $status
*/
class VehicleBrand extends \yii\db\ActiveRecord
{
/**
* @inheritdoc
*/
public static fun... |
<?php
/**
* Wishlist Factory class
*
* @author YITH
* @package YITH\Wishlist\Classes\Wishlists
* @version 3.0.0
*/
if ( ! defined( 'YITH_WCWL' ) ) {
exit;
} // Exit if accessed directly
if ( ! class_exists( 'YITH_WCWL_Wishlist_Factory' ) ) {
/**
* This class is used to create all Wishlist object required by... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class userController extends Controller
{
public function save_distributor(Request $r)
{
$distributor = new \App\tbl_distributor();
$distributor->nama_distributor = $r->input('nama_distributor');
$distributor->id_distributor... |
<?php
/**
* This file is part of the Imbo package
*
* (c) Christer Edvartsen <cogo@starzinger.net>
*
* For the full copyright and license information, please view the LICENSE file that was
* distributed with this source code.
*/
namespace Imbo\Http\Response;
use Imbo\EventManager\EventInterface,
Imbo\Event... |
@extends('layout.app')
@section('content')
<div class="row">
<div class="col-md-12">
<nav aria-label="breadcrumb" >
<ol class="breadcrumb" style="background-color: white">
<li class="breadcrumb-item"><a href="{{'/'}}">Главная страница</a></li>
... |
<?php
/*
* 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.
*/
namespace App\Services;
use App\Contracts\ReportContract;
use App\Contracts\ProjectContract;
use App\Models\Report;
use Auth;
... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class RedirectIfAuthenticated
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @param string|null $guard
* @return mixed
*/
... |
@extends('layouts.student')
@section('content')
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box bg-olive-active">
<span class="info-box-icon"><i class="fa fa-graduation-cap"></i></span>
<div class="info-box-content">
... |
<?php
namespace Elgg;
use ElggAnnotation;
use ElggEntity;
use ElggMetadata;
use ElggObject;
use ElggUser;
use InvalidArgumentException;
/**
* @group UnitTests
*/
class UserCapabilitiesUnitTest extends UnitTestCase {
/**
* @var PluginHooksService
*/
private $hooks;
public function up() {
$this->hooks = _... |
<?php
namespace DavideCasiraghi\LaravelEventsCalendar\Models;
use Illuminate\Support\Facades\Cache;
use Illuminate\Database\Eloquent\Model;
class Country extends Model
{
/***************************************************************************/
/**
* The table associated with the model.
*
*... |
<?php
use Illuminate\Contracts\View\Factory;
use Collective\Html\HtmlBuilder;
use Illuminate\Http\Request;
use Illuminate\Routing\RouteCollection;
use Illuminate\Routing\UrlGenerator;
use Mockery as m;
class HtmlBuilderTest extends PHPUnit\Framework\TestCase
{
/**
* Setup the test environment.
*/
p... |
<?php
namespace Cms\Orm;
/**
* Rekord tekstu
*/
class CmsTextRecord extends \Mmi\Orm\Record
{
public $id;
public $lang;
public $key;
public $content;
public $dateModify;
/**
* Zapis rekordu
* @return boolean
*/
public function save()
{
//data modyfikacji
... |
<?php
/**
* @package yii2-krajee-base
* @author Kartik Visweswaran <kartikv2@gmail.com>
* @copyright Copyright © Kartik Visweswaran, Krajee.com, 2014 - 2016
* @version 1.8.7
*/
namespace kartik\base;
use Yii;
use yii\base\InvalidConfigException;
use yii\helpers\FormatConverter;
use yii\helpers\Html;... |
<?php
// Composer: "fzaninotto/faker": "v1.3.0"
use Faker\Factory as Faker;
class MedicinesTableSeeder extends Seeder {
public function run()
{
$faker = Faker::create();
foreach(range(1, 10) as $index)
{
Medicine::create([
]);
}
}
} |
<?php
/*
* Copyright 2016 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.