text stringlengths 2 1.03M |
|---|
<?php
/*
* This file is part of the RollerworksPasswordStrengthValidator package.
*
* (c) Sebastiaan Stok <s.stok@rollerscapes.net>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Rollerworks\Component\PasswordStrength\Tests;
use Pro... |
<?php
namespace App\Http\Controllers;
use App\Models\Broker;
use App\Models\EmailCustomer;
use App\Models\EmailList;
use Illuminate\Http\Request;
class EmailsListsController extends Controller
{
public function index()
{
$lists = EmailList::where('user_id', auth()->user()->id)->latest()->get();
... |
<?php
namespace lshopadmin\controllers;
use Yii;
use common\controllers\AdminController as Controller;
use common\models\goods\GoodsModel;
use common\models\goods\ar\Goods;
use common\models\goods\ar\GoodsDetail;
use yii\base\DynamicModel;
use yii\data\ActiveDataProvider;
use common\models\goods\query\GoodsQuery;
use ... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class OfferAdress extends Model
{
use HasFactory;
} |
@extends('layouts.empty', ['paceTop' => true])
@section('title', 'Login Page')
@section('content')
<!-- begin login -->
<div class="login login-v1">
<!-- begin login-container -->
<div class="login-container">
<!-- begin login-header -->
<div class="login-header">
<div class="brand">
<span class=... |
<?php
/**
* Garp_Auth_Adapter_Facebook
* Authenticate using Facebook (using oAuth)
* @author Harmen Janssen | grrr.nl
* @modifiedby $LastChangedBy: $
* @version $Revision: $
* @package Garp
* @subpackage Auth
* @lastmodified $Date: $
*/
class Garp_Auth_Adapter_Facebook extends Garp_Auth_Adapter_Abstract {
... |
@extends('layouts.app')
@php
$perPage=$tags->perPage();
$currentPage=$tags->currentPage()-1;
$index=$perPage*$currentPage+1;
@endphp
@section('content')
<div class="container">
<div class="card">
<br>
<div class="row">
<h2 class="card-title col-10">  Tags available</h2>
</div>
<div ... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Bunche;
use App\Http\Requests\BuncheRequest;
use Illuminate\Support\Facades\Auth;
class BuncheController extends Controller
{
/**
* Display a buncheing of the resource.
*
* @return \Illuminate\Http\Response
*/
publ... |
<!-- include css -->
<link rel="stylesheet" href="<?= site_url('public/style/user.css') ?>">
<style>
.customer_info {
flex-wrap: wrap;
display: flex;
}
.customer_info li strong {
display: inline-block;
min-width: 85px;
}
.customer_info li {
min-width: 245px;... |
<!DOCTYPE html>
<html>
<head>
<title>Login Page</title>
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css" integrity="sha384-PmY9l28YgO4JwMKbTvgaS7XNZJ30MK9FAZjjzXtlqyZCqBY6X6bXIkM++IkyinN+" crossorigin="anonymous">
<link rel="stylesheet" href="<?php echo base_url();?>assets/css/lo... |
<?php
return[
'codeSet' => '1234567890',
// 验证码字符集合
'expire' => 1800,
// 验证码过期时间(s)
'useZh' => false,
// 使用中文验证码
'zhSet' => '们以我到他会作时要动国产的一是工就年阶义发成部民可出能方进在了不和有大这主中人上为来分生对于学下级地个用同行面说种过命度革而多子后自社加小机也经力线本电高量长党得实家定深法表着水理化争现所二起政三好十战无农使性前等反体合斗路图把结第里正新开论之物从当两些还天资事队批点育重其思与间内去因件日利相由压员气业代全组数果... |
<?php
namespace Wawans\SismiopDatabase\Ttr;
use Wawans\SismiopDatabase\Model;
class TtrSrtTegoran extends Model
{
/**
* The primary key for the model.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* The "type" of the primary key ID.
*
* @var string
*/
p... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateDistrictsTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('districts', function(Blueprint $table)
{
$table->increments('id');
$ta... |
<?php
namespace App\Http\Controllers;
use App\Article;
use App\Mail\TestMail;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
class HomeController extends Controller
{
public function home()
{
$articles = Article::orderBy('id' , 'desc')->get();
return view('ind... |
<div class="breadcrumbs">
<div class="col-sm-4">
<div class="page-header float-left">
<div class="page-title">
<h1>@yield('breadcrumbs')</h1>
</div>
</div>
</div>
<div class="col-sm-8">
... |
<?php
/**
* This file is part of the O2System PHP Framework package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @author Steeve Andrian Salim
* @copyright Copyright (c) Steeve Andrian Salim
*/
// ---------------... |
@extends('painel.template.main')
@section('titulo')
Cadastro de Usuário
@endsection
@section('conteudo')
@include('painel.includes.errors')
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row">
<div class="c... |
<form class="form-horizontal" role="form">
<div class="row">
<div class="col-sm-6 col-lg-4">
<div class="form-group">
<label for="inputEmail" class="col-md-4 control-label">Nombre:</label>
<div class="col-md-8">
<input type="text" class="form-control" id="txtNombre" pla... |
<?php
// MyDMS. Document Management System
// Copyright (C) 2002-2005 Markus Westphal
// Copyright (C) 2006-2008 Malcolm Cowe
// Copyright (C) 2010-2011 Matteo Lucarelli
// Copyright (C) 2010-2016 Uwe Steinmann
//
// This program is free software; you can redistribute it and/or modify
// it under t... |
<?php
namespace App\Manager;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\RedirectionExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
clas... |
<?php
/**
* @author Jean Silva <me@jeancsil.com>
* @license MIT
*/
namespace Jeancsil\FlightSpy\Service\ElasticSearch;
interface Processor
{
/**
* @param array $data
* @return array
*/
public function process(array $data);
} |
@extends('layouts.admin')
@section('title')
Kelola Direktori Disnaker
@endsection
@section('style')
<style>
.dropleft .dropdown-toggle::before {
display: none !important;
}
</style>
@endsection
@section('subheader')
<div class="row">
<div class="col-1 my-auto">
<i class="far fa-folder font-24"><... |
<?php
namespace App\PressMedia\Entity;
use App\PressMedia\Repository\OwnerRepository;
use Doctrine\Common\Collections\ArrayCollection;
class Owner
{
/**
* @var string
*/
private $id;
/**
* @var integer
*/
private $sourceId;
/**
* @var string
*/
public $name;
... |
<?php
$session = session();
$data = $session->get('loginInfo');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title><?= $pageTitle ?></title>
<?php include __DIR__ . '/../../../layout/cssLinks.p... |
<?php
namespace Acme\MayaBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass="Acme\MayaBundle\Repository\MensajeRepository")
* @ORM\Table(name="mensaje")
* @ORM\HasLifecycleCallbacks
*/
class Mensaje {
/**
* @ORM\Id
... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
class SettingsController extends Controller
{
public function profile()
{
return view('settings.profile');
}
public fu... |
@extends('layouts.dashboard')
@section('content')
<div class="row bg-title">
<div class="col-lg-3 col-md-4 col-sm-4 col-xs-12">
<h4 class="page-title">Clinic</h4>
</div>
<div class="col-lg-9 col-sm-8 col-md-8 col-xs-12">
<ol class="breadcrumb">
<li><a href="{{ route('clinic.index... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option controls the default authentication "guard" and password
| reset options for y... |
<?php
namespace Kanunak\test\Money;
use Kanunak\Money\Currency;
class CurrencyTest extends \PHPUnit_Framework_TestCase
{
/**
* @test
*/
public function itShouldReturnAValidCurrencyWithAValidCurrencyCode()
{
$currencyCode = Currency::CURRENCY_CODE_EURO;
$currency = new Currency(... |
<?php
use App\Http\Controllers\AuthController;
use App\Http\Controllers\Book;
use App\Http\Controllers\Flight;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|-----------------------------------------------... |
@extends('layouts.app')
@section('navegacion')
@include('ui.menu0')
@endsection
@section('content')
<embed src="{{asset('storage/uploads/pdf/Reglamento-Competiciones-2021.pdf')}}" type="application/pdf" width="100%" height="1000px" />
@endsection |
<?php
/**
* @file
* Contains \Drupal\Core\Routing\UrlGeneratorInterface.
*/
namespace Drupal\Core\Routing;
use Symfony\Cmf\Component\Routing\VersatileGeneratorInterface;
/**
* Defines an interface for generating a url from a route or system path.
*
* Provides additional methods and options not present in the ... |
<?php
define( 'MYSQL_HOST', '10.16.90.76' );
define( 'MYSQL_USER', 'fonos' );
define( 'MYSQL_PASSWORD', 'mabs008' );
define( 'MYSQL_DB_NAME', 'fono' );
$myvar = json_decode($_GET['data'], true);
$myvar[0] = explode('/', $myvar[0]); // transforma em array
$myvar[0] = array_reverse($myvar[0]); // i... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Answer;
class VoteAnswerController extends Controller
{
public function __construct()
{
$this->middleware('auth');
}
public function __invoke(Answer $answer)
{
$vote = (int) request()->vote;
$vote... |
<?php
/* Cachekey: cache/stash_default/doctrine/[concrete\core\entity\page\template$ptemplateisinternal@[annot]][1]/ */
/* Type: array */
/* Expiration: 2020-10-19T03:56:20+00:00 */
$loaded = true;
$expiration = 1603079780;
$data = array();
/* Child Type: array */
$data['return'] = unserialize(base64_decode('YTox... |
<?php
namespace Repository;
/**
* Class EntityRepositoryException
* @package Repository
*/
class EntityRepositoryException extends \Exception {}
/**
* Class EntityRepository
* @package Repository
*/
class EntityRepository extends \Doctrine\ORM\EntityRepository {
/**
* @var \Doctrine\ORM\EntityManager ... |
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreatePostTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up ()
{
Schema::create('posts', function ... |
<?php
declare(strict_types=1);
/**
* CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
*
* Licensed under The MIT License
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files m... |
<meta name="format-detection" content="telephone=no">
<style type="text/css">
a {
color: #0087C3;
text-decoration: none;
}
/*division one*/
.division-one{
line-height: 2.3rem;
width:100%;
min-height:150px;
padding-bottom:5px;
}
.division-logo{
... |
@extends('dashboard.layouts.master')
@push('styles')
<link rel="stylesheet" href="{{ asset('') }}css/nice-select.css">
<link rel="stylesheet" href="{{ asset('dashboard') }}/assets/vendor/summernote/css/summernote-bs4.css">
@endpush
@section('contents')
<div class="row">
<div class="col-md-12">... |
<!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">
<link rel="shortcut icon" href="<?php
$i = $_GET['n'];
$unselected = isset($_GET['unselected']) ? 'true' : 'fal... |
<?php
declare(strict_types=1);
namespace Qameta\Allure\Model;
trait ModelProviderTrait
{
/**
* @return list<Link>
*/
public function getLinks(): array
{
return [];
}
/**
* @return list<Label>
*/
public function getLabels(): array
{
return [];
}
... |
<script type="text/javascript">
function drawLap(formData){
saiPostLoad("{{ url('yakes-report/lap-bina-sehat') }}", null, formData, null, function(res){
if(res.result.length > 0){
$('#pagination').html('');
var show = $('#show').val();
generatePag... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Tutorial Laravel</title>
<link rel="stylesheet" href="/css/bootstrap.min.cs... |
<?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()
{
Schema::create('products', fun... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Furniture extends Model
{
use HasFactory;
use SoftDeletes;
public $timestamps = false;
protected $table = 'furnitures';
... |
<?php
require_once '../db_config.php';
if($_POST)
{
$id=$_POST['id'];
$descripcion=$_POST['descripcion'];
try{
$stmt=$db_con->prepare("UPDATE catalogo_flujo SET descripcion = '$descripcion' WHERE id='$id'");
if($stmt->execute())
{
echo "OK";
}
else{
echo "Ocurrio un problema";
}
}
catch(PDOException $e){
echo $e-... |
<!doctype html>
<html>
<head>
<title>harviacode.com - codeigniter crud generator</title>
<link rel="stylesheet" href="<?php echo base_url('assets/bootstrap/css/bootstrap.min.css') ?>"/>
<style>
.word-table {
border:1px solid black !important;
bord... |
@extends('layouts.admin')
@section('content-title','Daftar Menu Unggulan')
@section('search')
<div class="col-md-5 col-sm-5 form-group pull-right top_search">
<form action="{{ route('admin.menu.index') }}" method="get">
<div class="input-group">
<input type="text" class="form-control" placehol... |
<!DOCTYPE html>
<html style="font-size: 16px;">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<meta name="keywords" content="Delivery Boy Details">
<meta name="description" content="">
<meta name="page_type" content="np-template-header-footer-from-plugin">... |
<?php
namespace App\Observers;
use App\Models\User;
// creating, created, updating, updated, saving,
// saved, deleting, deleted, restoring, restored
class UserObserver
{
// 为注册用户设置默认头像
public function saving(User $user)
{
// 这样写扩展性更高,只有空的时候才指定默认头像
if (empty($user->avatar)) {
... |
<?php
/* @var $this \yii\web\View */
/* @var $content string */
use app\assets\AppAsset;
use app\models\Movie;
use yii\bootstrap4\Breadcrumbs;
use yii\bootstrap4\Html;
AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
<meta charset="... |
<?php
namespace FedEx\OpenShipService\SimpleType;
use FedEx\AbstractSimpleType;
/**
* Specifice the kind of tax or miscellaneous charge being reported on a Commercial Invoice.
*
* @author Jeremy Dunn <jeremy@jsdunn.info>
* @package PHP FedEx API wrapper
* @subpackage OpenShip Service
*/
class TaxesOrM... |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Estante extends Model
{
use HasFactory;
protected $fillable = ['nome'];
} |
<?php namespace Pensoft\InternalDocuments\Controllers;
use Backend\Classes\Controller;
use BackendMenu;
class Folders extends Controller
{
public $implement = [ 'Backend\Behaviors\ListController', 'Backend\Behaviors\FormController', 'Backend\Behaviors\ReorderController' ];
public ... |
@extends('partials.master')
@section('title', 'View Quotation')
@section('heading', 'View Quotation Details')
@section('content')
<div class="pull-right">
<a href="{{ route('quotation.index') }}" class="btn btn-primary">Back To Quotation Page</a>
</div>
<br><br><br>
<div class="alert alert-success">
<strong>QUOTAT... |
<?php
namespace DansMaCulotte\PayPal\Ipn\Event;
class MessageVerifiedEvent extends MessageVerificationEvent
{
} |
<?php
namespace Innoweb\Sitemap\Pages;
class SitemapPageController extends \PageController {
} |
<?php
namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use App\Services\AnimeService;
use Illuminate\Http\Request;
class AnimeController extends Controller
{
public function __construct(protected AnimeService $animeService)
{
}
public function __invoke()
{
... |
<?php
defined('BASEPATH') or exit('No direct script access allowed');
class Login extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('Model_admin');
}
function index()
{
if (isset($_SESSION['Admin'])) {
redirect('Controller... |
<?php
namespace common\models\search;
use Yii;
use yii\base\Model;
use yii\data\ActiveDataProvider;
use common\models\AdsShare;
/**
* AdsShareSearch represents the model behind the search form about `common\models\AdsShare`.
*/
class AdsShareSearch extends AdsShare
{
/**
* @inheritdoc
*/
public f... |
<?php
namespace Yurun\Util\ChineseUtil\Test\Number;
/**
* @testdox FFI Mode 中文数字转换
*/
class FFINumberTest extends BaseNumberTest
{
/**
* 模式
*
* @var string
*/
protected $mode = 'FFI';
protected function check()
{
if('0' === getenv('CHINESE_UTIL_FFI'))
{
... |
<h1>Contributed Talks</h1>
<p>Lists of confirmed speakers sorted by presentation title. Click for: <a href="./lightning_talks">Lightning Talks</a>.</p>
<dl>
<dt id="51" style="padding-left: 2em; text-indent: -2em;"><a data-toggle="collapse" data-target="#a-51" style="cursor: pointer;">A better way to manage hierarchi... |
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
/* @var $model app\modules\admin\models\Comment */
$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Comments', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="comment-view"... |
<?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 RectorPrefix20220220\Symfony\Component\DependencyInjection\Extension;
us... |
<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">Form LHPD dalam daerah</h1>
</div><!-- /.col -->
<div class="col-sm-6">
<ol class="breadcr... |
<?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
namespace ZendServerAPITest;
use ZendService\ZendServerAPI\Adapter\ApplicationList;
class AdapterTest extends \PHPUnit_Framework_TestCase
{
public function testSetContentTransformation()
{
$adapter = $this->getMockForAbstractClass('\ZendService\ZendServerAPI\Adapter\Adapter');
$content =... |
<!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, shrink-to-fit=no">
<link rel="apple-touch-icon" sizes="57x57" href="/theme/favicon/apple-icon-57x57.png">
<link rel="apple-... |
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads/v10/errors/operation_access_denied_error.proto
namespace Google\Ads\GoogleAds\V10\Errors\OperationAccessDeniedErrorEnum;
use UnexpectedValueException;
/**
* Enum describing possible operation access denied errors.
*
* ... |
<?php /* Template Name: Homes */ ?>
<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()): the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php
$homepages = get_posts(array('post_type' => 'home'));
?>
<div... |
<?php
namespace PetFishCo\Frontend\Controllers;
use PetFishCo\Frontend\Models\DTO\Aquarium;
use PetFishCo\Frontend\Models\DTO\AquariumInstance;
use PetFishCo\Frontend\Models\DTO\Shop;
class ShopController extends BaseController {
public function indexAction($shop_id) {
$fail = true;
//get shop data
/**@var... |
@extends('admin::layouts.master')
@section('title') Xác nhận giao dịch @endsection
@section('content')
<div class="container">
<form class="form-transaction" action="{{ route('admin.transaction.postConfirm', $transaction->id) }}" method="POST" novalidate>
{!! csrf_field() !!}
<div class="ro... |
@extends('cms.layout.master')
@section('title', 'Create Topic')
@section('parentPageTitle', 'Topic')
@section('page-style')
<link rel="stylesheet" href="{{asset('assets/plugins/bootstrap-material-datetimepicker/css/bootstrap-material-datetimepicker.css')}}"/>
<link rel="stylesheet" href="{{asset('assets/plugins/bootstr... |
@extends('layouts.master')
@section('additional_styles')
<link rel="stylesheet" href="{{ asset ("/bower_components/admin-lte/plugins/datatables/dataTables.bootstrap.css") }}">
@endsection
@section('content')
<div class="col-md-6" style="width: 100%;">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs... |
<?php
namespace App\Models;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Facades\Storage;... |
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Auth;
class ViewerAuth
{
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)... |
<?php
class SdSuperAdminMustAccessAllFilesAndDirectories extends CakeMigration {
/**
* Migration description
*
* @var string
* @access public
*/
public $description = '';
/**
* Actions to be performed
*
* @var array $migration
* @access public
*/
public $migration = array(
'up' => array(
),
'down' =... |
<?php
/**
* Lithium: the most rad php framework
*
* @copyright Copyright 2013, Union of RAD (http://union-of-rad.org)
* @license http://opensource.org/licenses/bsd-license.php The BSD License
*/
namespace lithium\tests\cases\net\http;
use lithium\net\http\Message;
class MessageTest extends \lithium\te... |
<?php
/*
* This file is part of the core-library package.
*
* (c) 2018 WEBEWEB
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace WBW\Library\Quadratus\Tests\Model\QGI;
use WBW\Library\Quadratus\Model\QGI\RgCorrespondance... |
<?php
/**
* @author Natan Felles <natanfelles@gmail.com>
*/
defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Class Migration_create_table_users
*
* @property CI_DB_forge $dbforge
* @property CI_DB_query_builder $db
*/
class Migration_create_table_vendors extends CI_Migration {
... |
<?php
declare(strict_types=1);
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::... |
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Bookable extends Model
{
public function bookings()
{
return $this->hasMany(Booking::class);
}
public function reviews()
{
return $this->hasMany(Review::class);
}
public function availableFor($from, $to):... |
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Detail_pengiriman_model extends CI_Model
{
public $table = 'detail_pengiriman';
public $id = 'id';
public $order = 'DESC';
function __construct()
{
parent::__construct();
}
// datatables
funct... |
<!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', 'PETDIET') }}</tit... |
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav metismenu" id="side-menu">
<li class="nav-header">
<div class="dropdown profile-element">
<img alt="image" class="rounded-circle" style="width: 100p... |
<?php
namespace App;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
class appointments extends Model
{
protected $fillable = [
'dates', 'doctor_id', 'status', 'user_id'
];
protected $dates = ['dates'];
public function users()
{
return $this->belongsTo('App\U... |
<?php
/**
* File containing the ezcDocumentEzXmlToDocbookLiteralHandler class.
*
* @package Document
* @version 1.3.1
* @copyright Copyright (C) 2005-2010 eZ Systems AS. All rights reserved.
* @license http://ez.no/licenses/new_bsd New BSD License
*/
/**
* Visit eZXml literals.
*
* All literal elements are c... |
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Model\PostDescription;
use Faker\Generator as Faker;
$factory->define(PostDescription::class, function (Faker $faker) {
return [
'title'=>$faker->title,
'content'=>$faker->text
];
}); |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your H... |
<?php declare(strict_types=1);
require_once('tests/data/MockNode.php');
use PHPUnit\Framework\TestCase;
use PHPHtmlParser\Dom\MockNode as Node;
class NodeParentTest extends TestCase {
public function testHasChild()
{
$parent = new Node;
$child = new Node;
$parent->addChild($child);
... |
<?php
session_start();
if(!isset($_SESSION['user']))
{
header("location:../index.php");
}
?>
<?php
//session_start();
include('config.php');
$id=$_SESSION['id'];
$user=$_SESSION['user'];
$query="SELECT * from admin where id='$id' ";
$res=mysqli_query($mysqli,$query);
$row=mysqli_fetch_row($res);
if(isset($_GET['del']... |
<?php
return [
/*
|--------------------------------------------------------------------------
| PDO Fetch Style
|--------------------------------------------------------------------------
|
| By default, database results will be returned as instances of the PHP
| stdClass object; however, you may desire to ret... |
<?php
namespace App\Http\Model;
use Illuminate\Database\Eloquent\Model;
use DB;
class Master_Usergroup extends Model
{
protected $table = 'ms_user_group';
const UPDATED_AT = 'modified_date';
const CREATED_AT = 'created_date';
public static function all_usergroup(){
$ms_user_group = ... |
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>404 Page Not Found</title>
</head>
<body>
<div id="container">
<h1><?php echo $heading; ?></h1>
<?php echo $message; ?>
</div>
</body>
</html> |
<?php
return array(
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By default, we will use ... |
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application. This value is used when the
| framework needs to plac... |
<?php
function GetAvailableStageList()
{
$list = array();
$gameData = \Base::instance()->get('GameData');
$stages = $gameData['stages'];
foreach ($stages as $key => $value) {
if (IsStageAvailable($value)) {
$list[] = $key;
}
}
$output = array('error' => '');
$outp... |
<?php
class User_model extends CI_Model {
public function __construct() {
$this->load->database();
}
public function login($username, $password) {
$this->db->where('username', $username);
$this->db->where('password', $password);
$result = $... |
<?php
header("Content-type: text/html; charset=gb2312");
include "Snoopy.class.php";
session_start();
//设置超时时间
set_time_limit(60 * 15);
if(empty($_SESSION['a2_c'])){
$_SESSION['a2_c']=$_POST['c'];
}
if(empty($_SESSION['a2_a'])){
$_SESSION['a2_a']=$_POST['a'];
}
if(empty($_SESSION['a2_radio-choice-h-1'])){
$_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.